Skip to content

Commit

Permalink
make selected-specific-display for permit TWord 0
Browse files Browse the repository at this point in the history
This handles bullet 2 of #288
  • Loading branch information
JasonGross committed Jan 5, 2018
1 parent 5a17101 commit 595a5d7
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 130 deletions.
18 changes: 9 additions & 9 deletions src/Specific/NISTP256/AMD64/feaddDisplay.log
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
Interp-η
(λ var : Syntax.base_type → Type,
λ '(x8, x9, x7, x5, (x14, x15, x13, x11))%core,
uint64_t x17, uint8_t x18 = addcarryx_u64(0x0, x5, x11);
uint64_t x20, uint8_t x21 = addcarryx_u64(x18, x7, x13);
uint64_t x23, uint8_t x24 = addcarryx_u64(x21, x9, x15);
uint64_t x26, uint8_t x27 = addcarryx_u64(x24, x8, x14);
uint64_t x29, uint8_t x30 = subborrow_u64(0x0, x17, 0xffffffffffffffffL);
uint64_t x32, uint8_t x33 = subborrow_u64(x30, x20, 0xffffffff);
uint64_t x35, uint8_t x36 = subborrow_u64(x33, x23, 0x0);
uint64_t x38, uint8_t x39 = subborrow_u64(x36, x26, 0xffffffff00000001L);
uint64_t _, uint8_t x42 = subborrow_u64(x39, x27, 0x0);
uint64_t x17, bool x18 = addcarryx_u64(0x0, x5, x11);
uint64_t x20, bool x21 = addcarryx_u64(x18, x7, x13);
uint64_t x23, bool x24 = addcarryx_u64(x21, x9, x15);
uint64_t x26, bool x27 = addcarryx_u64(x24, x8, x14);
uint64_t x29, bool x30 = subborrow_u64(0x0, x17, 0xffffffffffffffffL);
uint64_t x32, bool x33 = subborrow_u64(x30, x20, 0xffffffff);
uint64_t x35, bool x36 = subborrow_u64(x33, x23, 0x0);
uint64_t x38, bool x39 = subborrow_u64(x36, x26, 0xffffffff00000001L);
uint64_t _, bool x42 = subborrow_u64(x39, x27, 0x0);
uint64_t x43 = cmovznz64(x42, x38, x26);
uint64_t x44 = cmovznz64(x42, x35, x23);
uint64_t x45 = cmovznz64(x42, x32, x20);
Expand Down
150 changes: 75 additions & 75 deletions src/Specific/NISTP256/AMD64/femulDisplay.log
Original file line number Diff line number Diff line change
Expand Up @@ -6,105 +6,105 @@ Interp-η
uint64_t x20, uint64_t x21 = mulx_u64(x5, x13);
uint64_t x23, uint64_t x24 = mulx_u64(x5, x15);
uint64_t x26, uint64_t x27 = mulx_u64(x5, x14);
uint64_t x29, uint8_t x30 = addcarryx_u64(0x0, x18, x20);
uint64_t x32, uint8_t x33 = addcarryx_u64(x30, x21, x23);
uint64_t x35, uint8_t x36 = addcarryx_u64(x33, x24, x26);
uint64_t x38, uint8_t _ = addcarryx_u64(0x0, x36, x27);
uint64_t x29, bool x30 = addcarryx_u64(0x0, x18, x20);
uint64_t x32, bool x33 = addcarryx_u64(x30, x21, x23);
uint64_t x35, bool x36 = addcarryx_u64(x33, x24, x26);
uint64_t x38, bool _ = addcarryx_u64(0x0, x36, x27);
uint64_t x41, uint64_t x42 = mulx_u64(x17, 0xffffffffffffffffL);
uint64_t x44, uint64_t x45 = mulx_u64(x17, 0xffffffff);
uint64_t x47, uint64_t x48 = mulx_u64(x17, 0xffffffff00000001L);
uint64_t x50, uint8_t x51 = addcarryx_u64(0x0, x42, x44);
uint64_t x53, uint8_t x54 = addcarryx_u64(x51, x45, 0x0);
uint64_t x56, uint8_t x57 = addcarryx_u64(x54, 0x0, x47);
uint64_t x59, uint8_t _ = addcarryx_u64(0x0, x57, x48);
uint64_t _, uint8_t x63 = addcarryx_u64(0x0, x17, x41);
uint64_t x65, uint8_t x66 = addcarryx_u64(x63, x29, x50);
uint64_t x68, uint8_t x69 = addcarryx_u64(x66, x32, x53);
uint64_t x71, uint8_t x72 = addcarryx_u64(x69, x35, x56);
uint64_t x74, uint8_t x75 = addcarryx_u64(x72, x38, x59);
uint64_t x50, bool x51 = addcarryx_u64(0x0, x42, x44);
uint64_t x53, bool x54 = addcarryx_u64(x51, x45, 0x0);
uint64_t x56, bool x57 = addcarryx_u64(x54, 0x0, x47);
uint64_t x59, bool _ = addcarryx_u64(0x0, x57, x48);
uint64_t _, bool x63 = addcarryx_u64(0x0, x17, x41);
uint64_t x65, bool x66 = addcarryx_u64(x63, x29, x50);
uint64_t x68, bool x69 = addcarryx_u64(x66, x32, x53);
uint64_t x71, bool x72 = addcarryx_u64(x69, x35, x56);
uint64_t x74, bool x75 = addcarryx_u64(x72, x38, x59);
uint64_t x77, uint64_t x78 = mulx_u64(x7, x11);
uint64_t x80, uint64_t x81 = mulx_u64(x7, x13);
uint64_t x83, uint64_t x84 = mulx_u64(x7, x15);
uint64_t x86, uint64_t x87 = mulx_u64(x7, x14);
uint64_t x89, uint8_t x90 = addcarryx_u64(0x0, x78, x80);
uint64_t x92, uint8_t x93 = addcarryx_u64(x90, x81, x83);
uint64_t x95, uint8_t x96 = addcarryx_u64(x93, x84, x86);
uint64_t x98, uint8_t _ = addcarryx_u64(0x0, x96, x87);
uint64_t x101, uint8_t x102 = addcarryx_u64(0x0, x65, x77);
uint64_t x104, uint8_t x105 = addcarryx_u64(x102, x68, x89);
uint64_t x107, uint8_t x108 = addcarryx_u64(x105, x71, x92);
uint64_t x110, uint8_t x111 = addcarryx_u64(x108, x74, x95);
uint64_t x113, uint8_t x114 = addcarryx_u64(x111, x75, x98);
uint64_t x89, bool x90 = addcarryx_u64(0x0, x78, x80);
uint64_t x92, bool x93 = addcarryx_u64(x90, x81, x83);
uint64_t x95, bool x96 = addcarryx_u64(x93, x84, x86);
uint64_t x98, bool _ = addcarryx_u64(0x0, x96, x87);
uint64_t x101, bool x102 = addcarryx_u64(0x0, x65, x77);
uint64_t x104, bool x105 = addcarryx_u64(x102, x68, x89);
uint64_t x107, bool x108 = addcarryx_u64(x105, x71, x92);
uint64_t x110, bool x111 = addcarryx_u64(x108, x74, x95);
uint64_t x113, bool x114 = addcarryx_u64(x111, x75, x98);
uint64_t x116, uint64_t x117 = mulx_u64(x101, 0xffffffffffffffffL);
uint64_t x119, uint64_t x120 = mulx_u64(x101, 0xffffffff);
uint64_t x122, uint64_t x123 = mulx_u64(x101, 0xffffffff00000001L);
uint64_t x125, uint8_t x126 = addcarryx_u64(0x0, x117, x119);
uint64_t x128, uint8_t x129 = addcarryx_u64(x126, x120, 0x0);
uint64_t x131, uint8_t x132 = addcarryx_u64(x129, 0x0, x122);
uint64_t x134, uint8_t _ = addcarryx_u64(0x0, x132, x123);
uint64_t _, uint8_t x138 = addcarryx_u64(0x0, x101, x116);
uint64_t x140, uint8_t x141 = addcarryx_u64(x138, x104, x125);
uint64_t x143, uint8_t x144 = addcarryx_u64(x141, x107, x128);
uint64_t x146, uint8_t x147 = addcarryx_u64(x144, x110, x131);
uint64_t x149, uint8_t x150 = addcarryx_u64(x147, x113, x134);
uint8_t x151 = (x150 + x114);
uint64_t x125, bool x126 = addcarryx_u64(0x0, x117, x119);
uint64_t x128, bool x129 = addcarryx_u64(x126, x120, 0x0);
uint64_t x131, bool x132 = addcarryx_u64(x129, 0x0, x122);
uint64_t x134, bool _ = addcarryx_u64(0x0, x132, x123);
uint64_t _, bool x138 = addcarryx_u64(0x0, x101, x116);
uint64_t x140, bool x141 = addcarryx_u64(x138, x104, x125);
uint64_t x143, bool x144 = addcarryx_u64(x141, x107, x128);
uint64_t x146, bool x147 = addcarryx_u64(x144, x110, x131);
uint64_t x149, bool x150 = addcarryx_u64(x147, x113, x134);
uint8_t x151 = ((uint8_t)x150 + x114);
uint64_t x153, uint64_t x154 = mulx_u64(x9, x11);
uint64_t x156, uint64_t x157 = mulx_u64(x9, x13);
uint64_t x159, uint64_t x160 = mulx_u64(x9, x15);
uint64_t x162, uint64_t x163 = mulx_u64(x9, x14);
uint64_t x165, uint8_t x166 = addcarryx_u64(0x0, x154, x156);
uint64_t x168, uint8_t x169 = addcarryx_u64(x166, x157, x159);
uint64_t x171, uint8_t x172 = addcarryx_u64(x169, x160, x162);
uint64_t x174, uint8_t _ = addcarryx_u64(0x0, x172, x163);
uint64_t x177, uint8_t x178 = addcarryx_u64(0x0, x140, x153);
uint64_t x180, uint8_t x181 = addcarryx_u64(x178, x143, x165);
uint64_t x183, uint8_t x184 = addcarryx_u64(x181, x146, x168);
uint64_t x186, uint8_t x187 = addcarryx_u64(x184, x149, x171);
uint64_t x189, uint8_t x190 = addcarryx_u64(x187, x151, x174);
uint64_t x165, bool x166 = addcarryx_u64(0x0, x154, x156);
uint64_t x168, bool x169 = addcarryx_u64(x166, x157, x159);
uint64_t x171, bool x172 = addcarryx_u64(x169, x160, x162);
uint64_t x174, bool _ = addcarryx_u64(0x0, x172, x163);
uint64_t x177, bool x178 = addcarryx_u64(0x0, x140, x153);
uint64_t x180, bool x181 = addcarryx_u64(x178, x143, x165);
uint64_t x183, bool x184 = addcarryx_u64(x181, x146, x168);
uint64_t x186, bool x187 = addcarryx_u64(x184, x149, x171);
uint64_t x189, bool x190 = Op (Syntax.AddWithGetCarry 64 (Syntax.TWord 0) (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 0)) (Return x187, Return x151, Return x174);
uint64_t x192, uint64_t x193 = mulx_u64(x177, 0xffffffffffffffffL);
uint64_t x195, uint64_t x196 = mulx_u64(x177, 0xffffffff);
uint64_t x198, uint64_t x199 = mulx_u64(x177, 0xffffffff00000001L);
uint64_t x201, uint8_t x202 = addcarryx_u64(0x0, x193, x195);
uint64_t x204, uint8_t x205 = addcarryx_u64(x202, x196, 0x0);
uint64_t x207, uint8_t x208 = addcarryx_u64(x205, 0x0, x198);
uint64_t x210, uint8_t _ = addcarryx_u64(0x0, x208, x199);
uint64_t _, uint8_t x214 = addcarryx_u64(0x0, x177, x192);
uint64_t x216, uint8_t x217 = addcarryx_u64(x214, x180, x201);
uint64_t x219, uint8_t x220 = addcarryx_u64(x217, x183, x204);
uint64_t x222, uint8_t x223 = addcarryx_u64(x220, x186, x207);
uint64_t x225, uint8_t x226 = addcarryx_u64(x223, x189, x210);
uint8_t x227 = (x226 + x190);
uint64_t x201, bool x202 = addcarryx_u64(0x0, x193, x195);
uint64_t x204, bool x205 = addcarryx_u64(x202, x196, 0x0);
uint64_t x207, bool x208 = addcarryx_u64(x205, 0x0, x198);
uint64_t x210, bool _ = addcarryx_u64(0x0, x208, x199);
uint64_t _, bool x214 = addcarryx_u64(0x0, x177, x192);
uint64_t x216, bool x217 = addcarryx_u64(x214, x180, x201);
uint64_t x219, bool x220 = addcarryx_u64(x217, x183, x204);
uint64_t x222, bool x223 = addcarryx_u64(x220, x186, x207);
uint64_t x225, bool x226 = addcarryx_u64(x223, x189, x210);
uint8_t x227 = ((uint8_t)x226 + x190);
uint64_t x229, uint64_t x230 = mulx_u64(x8, x11);
uint64_t x232, uint64_t x233 = mulx_u64(x8, x13);
uint64_t x235, uint64_t x236 = mulx_u64(x8, x15);
uint64_t x238, uint64_t x239 = mulx_u64(x8, x14);
uint64_t x241, uint8_t x242 = addcarryx_u64(0x0, x230, x232);
uint64_t x244, uint8_t x245 = addcarryx_u64(x242, x233, x235);
uint64_t x247, uint8_t x248 = addcarryx_u64(x245, x236, x238);
uint64_t x250, uint8_t _ = addcarryx_u64(0x0, x248, x239);
uint64_t x253, uint8_t x254 = addcarryx_u64(0x0, x216, x229);
uint64_t x256, uint8_t x257 = addcarryx_u64(x254, x219, x241);
uint64_t x259, uint8_t x260 = addcarryx_u64(x257, x222, x244);
uint64_t x262, uint8_t x263 = addcarryx_u64(x260, x225, x247);
uint64_t x265, uint8_t x266 = addcarryx_u64(x263, x227, x250);
uint64_t x241, bool x242 = addcarryx_u64(0x0, x230, x232);
uint64_t x244, bool x245 = addcarryx_u64(x242, x233, x235);
uint64_t x247, bool x248 = addcarryx_u64(x245, x236, x238);
uint64_t x250, bool _ = addcarryx_u64(0x0, x248, x239);
uint64_t x253, bool x254 = addcarryx_u64(0x0, x216, x229);
uint64_t x256, bool x257 = addcarryx_u64(x254, x219, x241);
uint64_t x259, bool x260 = addcarryx_u64(x257, x222, x244);
uint64_t x262, bool x263 = addcarryx_u64(x260, x225, x247);
uint64_t x265, bool x266 = Op (Syntax.AddWithGetCarry 64 (Syntax.TWord 0) (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 0)) (Return x263, Return x227, Return x250);
uint64_t x268, uint64_t x269 = mulx_u64(x253, 0xffffffffffffffffL);
uint64_t x271, uint64_t x272 = mulx_u64(x253, 0xffffffff);
uint64_t x274, uint64_t x275 = mulx_u64(x253, 0xffffffff00000001L);
uint64_t x277, uint8_t x278 = addcarryx_u64(0x0, x269, x271);
uint64_t x280, uint8_t x281 = addcarryx_u64(x278, x272, 0x0);
uint64_t x283, uint8_t x284 = addcarryx_u64(x281, 0x0, x274);
uint64_t x286, uint8_t _ = addcarryx_u64(0x0, x284, x275);
uint64_t _, uint8_t x290 = addcarryx_u64(0x0, x253, x268);
uint64_t x292, uint8_t x293 = addcarryx_u64(x290, x256, x277);
uint64_t x295, uint8_t x296 = addcarryx_u64(x293, x259, x280);
uint64_t x298, uint8_t x299 = addcarryx_u64(x296, x262, x283);
uint64_t x301, uint8_t x302 = addcarryx_u64(x299, x265, x286);
uint8_t x303 = (x302 + x266);
uint64_t x305, uint8_t x306 = subborrow_u64(0x0, x292, 0xffffffffffffffffL);
uint64_t x308, uint8_t x309 = subborrow_u64(x306, x295, 0xffffffff);
uint64_t x311, uint8_t x312 = subborrow_u64(x309, x298, 0x0);
uint64_t x314, uint8_t x315 = subborrow_u64(x312, x301, 0xffffffff00000001L);
uint64_t _, uint8_t x318 = subborrow_u64(x315, x303, 0x0);
uint64_t x277, bool x278 = addcarryx_u64(0x0, x269, x271);
uint64_t x280, bool x281 = addcarryx_u64(x278, x272, 0x0);
uint64_t x283, bool x284 = addcarryx_u64(x281, 0x0, x274);
uint64_t x286, bool _ = addcarryx_u64(0x0, x284, x275);
uint64_t _, bool x290 = addcarryx_u64(0x0, x253, x268);
uint64_t x292, bool x293 = addcarryx_u64(x290, x256, x277);
uint64_t x295, bool x296 = addcarryx_u64(x293, x259, x280);
uint64_t x298, bool x299 = addcarryx_u64(x296, x262, x283);
uint64_t x301, bool x302 = addcarryx_u64(x299, x265, x286);
uint8_t x303 = ((uint8_t)x302 + x266);
uint64_t x305, bool x306 = subborrow_u64(0x0, x292, 0xffffffffffffffffL);
uint64_t x308, bool x309 = subborrow_u64(x306, x295, 0xffffffff);
uint64_t x311, bool x312 = subborrow_u64(x309, x298, 0x0);
uint64_t x314, bool x315 = subborrow_u64(x312, x301, 0xffffffff00000001L);
uint64_t _, bool x318 = Op (Syntax.SubWithGetBorrow 64 (Syntax.TWord 0) (Syntax.TWord 3) (Syntax.TWord 0) (Syntax.TWord 6) (Syntax.TWord 0)) (Return x315, Return x303, 0x0);
uint64_t x319 = cmovznz64(x318, x314, x301);
uint64_t x320 = cmovznz64(x318, x311, x298);
uint64_t x321 = cmovznz64(x318, x308, x295);
Expand Down
16 changes: 8 additions & 8 deletions src/Specific/NISTP256/AMD64/feoppDisplay.log
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
Interp-η
(λ var : Syntax.base_type → Type,
λ '(x5, x6, x4, x2)%core,
uint64_t x8, uint8_t x9 = subborrow_u64(0x0, 0x0, x2);
uint64_t x11, uint8_t x12 = subborrow_u64(x9, 0x0, x4);
uint64_t x14, uint8_t x15 = subborrow_u64(x12, 0x0, x6);
uint64_t x17, uint8_t x18 = subborrow_u64(x15, 0x0, x5);
uint64_t x8, bool x9 = subborrow_u64(0x0, 0x0, x2);
uint64_t x11, bool x12 = subborrow_u64(x9, 0x0, x4);
uint64_t x14, bool x15 = subborrow_u64(x12, 0x0, x6);
uint64_t x17, bool x18 = subborrow_u64(x15, 0x0, x5);
uint64_t x19 = cmovznz64(x18, 0x0, 0xffffffffffffffffL);
uint64_t x20 = (x19 & 0xffffffffffffffffL);
uint64_t x22, uint8_t x23 = addcarryx_u64(0x0, x8, x20);
uint64_t x22, bool x23 = addcarryx_u64(0x0, x8, x20);
uint64_t x24 = (x19 & 0xffffffff);
uint64_t x26, uint8_t x27 = addcarryx_u64(x23, x11, x24);
uint64_t x29, uint8_t x30 = addcarryx_u64(x27, x14, 0x0);
uint64_t x26, bool x27 = addcarryx_u64(x23, x11, x24);
uint64_t x29, bool x30 = addcarryx_u64(x27, x14, 0x0);
uint64_t x31 = (x19 & 0xffffffff00000001L);
uint64_t x33, uint8_t _ = addcarryx_u64(x30, x17, x31);
uint64_t x33, bool _ = addcarryx_u64(x30, x17, x31);
(Return x33, Return x29, Return x26, Return x22))
x
: word64 * word64 * word64 * word64 → ReturnType (uint64_t * uint64_t * uint64_t * uint64_t)
16 changes: 8 additions & 8 deletions src/Specific/NISTP256/AMD64/fesubDisplay.log
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
Interp-η
(λ var : Syntax.base_type → Type,
λ '(x8, x9, x7, x5, (x14, x15, x13, x11))%core,
uint64_t x17, uint8_t x18 = subborrow_u64(0x0, x5, x11);
uint64_t x20, uint8_t x21 = subborrow_u64(x18, x7, x13);
uint64_t x23, uint8_t x24 = subborrow_u64(x21, x9, x15);
uint64_t x26, uint8_t x27 = subborrow_u64(x24, x8, x14);
uint64_t x17, bool x18 = subborrow_u64(0x0, x5, x11);
uint64_t x20, bool x21 = subborrow_u64(x18, x7, x13);
uint64_t x23, bool x24 = subborrow_u64(x21, x9, x15);
uint64_t x26, bool x27 = subborrow_u64(x24, x8, x14);
uint64_t x28 = cmovznz64(x27, 0x0, 0xffffffffffffffffL);
uint64_t x29 = (x28 & 0xffffffffffffffffL);
uint64_t x31, uint8_t x32 = addcarryx_u64(0x0, x17, x29);
uint64_t x31, bool x32 = addcarryx_u64(0x0, x17, x29);
uint64_t x33 = (x28 & 0xffffffff);
uint64_t x35, uint8_t x36 = addcarryx_u64(x32, x20, x33);
uint64_t x38, uint8_t x39 = addcarryx_u64(x36, x23, 0x0);
uint64_t x35, bool x36 = addcarryx_u64(x32, x20, x33);
uint64_t x38, bool x39 = addcarryx_u64(x36, x23, 0x0);
uint64_t x40 = (x28 & 0xffffffff00000001L);
uint64_t x42, uint8_t _ = addcarryx_u64(x39, x26, x40);
uint64_t x42, bool _ = addcarryx_u64(x39, x26, x40);
(Return x42, Return x38, Return x35, Return x31))
(x, x0)%core
: word64 * word64 * word64 * word64 → word64 * word64 * word64 * word64 → ReturnType (uint64_t * uint64_t * uint64_t * uint64_t)
Loading

0 comments on commit 595a5d7

Please sign in to comment.