/* Autogenerated: 'src/ExtractionOCaml/bedrock2_dettman_multiplication' --lang bedrock2 --static --no-wide-int --widen-carry --widen-bytes --split-multiret --no-select --no-field-element-typedefs secp256k1_dettman 32 10 22 6 '2^256 - 4294968273' mul square */ /* curve description: secp256k1_dettman */ /* machine_wordsize = 32 (from "32") */ /* requested operations: mul, square */ /* n = 10 (from "10") */ /* last_limb_width = 22 (from "22") */ /* last_reduction = 6 (from "6") */ /* s-c = 2^256 - [(1, 4294968273)] (from "2^256 - 4294968273") */ /* inbounds_multiplier: None (from "") */ /* */ /* Computed values: */ /* */ /* */ // Generated from Bedrock code. Avoid editing directly. #include #include #include #define BR_WORD_MAX UINTPTR_MAX typedef uintptr_t br_word_t; typedef intptr_t br_signed_t; static_assert(sizeof(br_word_t) == sizeof(br_signed_t), "signed size"); static_assert(UINTPTR_MAX <= BR_WORD_MAX, "pointer fits in int"); static_assert(~(br_signed_t)0 == -(br_signed_t)1, "two's complement"); #if __STDC_VERSION__ >= 202311L && __has_include() #include static_assert(__STDC_ENDIAN_NATIVE__ == __STDC_ENDIAN_LITTLE__, "little-endian"); #elif defined(__GNUC__) && defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) static_assert(__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__, "little-endian"); #elif defined(_MSC_VER) && !defined(__clang__) && \ (defined(_M_IX86) || defined(_M_X64) || defined(_M_ARM) || defined(_M_ARM64)) // these MSVC targets are little-endian #else #error "failed to confirm that target is little-endian" #endif // "An object shall have its stored value accessed only ... a character type." static inline br_word_t _br_load1(br_word_t a) { return *((uint8_t *)a); } static inline br_word_t _br_load2(br_word_t a) { uint16_t r = 0; memcpy(&r, (void *)a, sizeof(r)); return r; } static inline br_word_t _br_load4(br_word_t a) { uint32_t r = 0; memcpy(&r, (void *)a, sizeof(r)); return r; } static inline br_word_t _br_load(br_word_t a) { br_word_t r = 0; memcpy(&r, (void *)a, sizeof(r)); return r; } static inline void _br_store1(br_word_t a, uint8_t v) { *((uint8_t *)a) = v; } static inline void _br_store2(br_word_t a, uint16_t v) { memcpy((void *)a, &v, sizeof(v)); } static inline void _br_store4(br_word_t a, uint32_t v) { memcpy((void *)a, &v, sizeof(v)); } static inline void _br_store(br_word_t a, br_word_t v) { memcpy((void *)a, &v, sizeof(v)); } static inline br_word_t _br_mulhuu(br_word_t a, br_word_t b) { #if BR_WORD_MAX == UINT32_MAX return ((uint64_t)a * b) >> 32; #elif BR_WORD_MAX == UINT64_MAX && (defined(__GNUC__) || defined(__clang__)) return ((unsigned __int128)a * b) >> 64; #elif defined(_M_X64) uint64_t hi; _umul128(a, b, &hi); return hi; #elif defined(_M_ARM64) return __umulh(a, b); #else // See full_mul.v br_word_t hh, lh, hl, low, second_halfword_w_oflow, n, ll, M; n = ((((0u-(br_word_t)0x1)>>27)&0x3f)+0x1)>>1; M = ((br_word_t)0x1<>n); hl = (a>>n)*(b&M); hh = (a>>n)*(b>>n); second_halfword_w_oflow = ((ll>>n)+(lh&M))+(hl&M); return ((hh+(lh>>n))+(hl>>n))+(second_halfword_w_oflow>>n); #endif } static inline br_word_t _br_divu(br_word_t a, br_word_t b) { if (!b) return -1; return a/b; } static inline br_word_t _br_remu(br_word_t a, br_word_t b) { if (!b) return a; return a%b; } /* * Input Bounds: * in0: [[0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7ffffe]] * in1: [[0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7ffffe]] * Output Bounds: * out0: [[0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x5fffff]] */ static void internal_fiat_secp256k1_dettman_mul(br_word_t out0, br_word_t in0, br_word_t in1) { br_word_t x20, x22, x25, x23, x26, x21, x27, x24, x32, x34, x37, x35, x38, x33, x36, x40, x43, x41, x44, x39, x42, x46, x49, x47, x50, x45, x48, x52, x55, x53, x56, x51, x54, x58, x61, x59, x62, x57, x60, x64, x67, x65, x68, x63, x66, x70, x73, x71, x74, x69, x30, x72, x77, x75, x78, x31, x79, x76, x82, x28, x85, x83, x29, x91, x93, x96, x94, x97, x92, x95, x99, x102, x100, x103, x98, x101, x105, x108, x106, x109, x104, x107, x111, x114, x112, x115, x110, x113, x117, x120, x118, x121, x116, x119, x123, x126, x124, x127, x122, x125, x129, x132, x130, x133, x128, x131, x135, x138, x136, x139, x134, x89, x137, x142, x140, x143, x90, x141, x80, x146, x144, x87, x145, x149, x147, x150, x88, x151, x148, x84, x158, x160, x163, x161, x164, x159, x162, x166, x169, x167, x170, x165, x168, x172, x175, x173, x176, x171, x174, x178, x181, x179, x182, x177, x180, x184, x187, x185, x188, x183, x186, x190, x193, x191, x194, x189, x192, x196, x199, x197, x200, x195, x198, x202, x205, x203, x206, x201, x204, x208, x211, x209, x212, x207, x156, x210, x215, x213, x216, x157, x214, x152, x219, x217, x154, x218, x222, x220, x223, x155, x224, x221, x227, x229, x232, x230, x233, x228, x231, x235, x238, x236, x239, x234, x237, x241, x244, x242, x245, x240, x243, x247, x250, x248, x251, x246, x249, x253, x256, x254, x257, x252, x255, x259, x262, x260, x263, x258, x261, x265, x268, x266, x269, x264, x267, x271, x274, x272, x275, x270, x86, x273, x278, x276, x277, x225, x281, x279, x282, x280, x226, x287, x289, x292, x290, x293, x288, x294, x291, x297, x299, x302, x300, x303, x298, x301, x305, x308, x306, x309, x304, x307, x311, x314, x312, x315, x310, x313, x317, x320, x318, x321, x316, x319, x323, x326, x324, x327, x322, x325, x329, x332, x330, x333, x328, x331, x335, x338, x336, x339, x334, x337, x283, x342, x340, x343, x341, x285, x284, x350, x352, x355, x353, x356, x351, x348, x354, x359, x357, x360, x349, x358, x295, x363, x361, x346, x362, x366, x364, x367, x347, x368, x365, x371, x373, x376, x374, x377, x372, x375, x379, x382, x380, x383, x378, x381, x385, x388, x386, x389, x384, x387, x391, x394, x392, x395, x390, x393, x397, x400, x398, x401, x396, x399, x403, x406, x404, x407, x402, x405, x344, x410, x408, x411, x409, x345, x418, x420, x423, x421, x424, x419, x422, x426, x429, x427, x430, x425, x416, x428, x433, x431, x434, x417, x432, x369, x437, x435, x414, x436, x440, x438, x441, x415, x442, x439, x445, x447, x450, x448, x451, x446, x449, x453, x456, x454, x457, x452, x455, x459, x462, x460, x463, x458, x461, x465, x468, x466, x469, x464, x467, x471, x474, x472, x475, x470, x473, x412, x478, x476, x479, x477, x413, x486, x488, x491, x489, x492, x487, x490, x494, x497, x495, x498, x493, x496, x500, x503, x501, x504, x499, x484, x502, x507, x505, x508, x485, x506, x443, x511, x509, x482, x510, x514, x512, x515, x483, x516, x513, x519, x521, x524, x522, x525, x520, x523, x527, x530, x528, x531, x526, x529, x533, x536, x534, x537, x532, x535, x539, x542, x540, x543, x538, x541, x480, x546, x544, x547, x545, x481, x554, x556, x559, x557, x560, x555, x558, x562, x565, x563, x566, x561, x564, x568, x571, x569, x572, x567, x570, x574, x577, x575, x578, x573, x552, x576, x581, x579, x582, x553, x580, x517, x585, x583, x550, x584, x588, x586, x589, x551, x590, x587, x593, x595, x598, x596, x599, x594, x597, x601, x604, x602, x605, x600, x603, x607, x610, x608, x611, x606, x609, x548, x614, x612, x615, x613, x549, x622, x624, x627, x625, x628, x623, x626, x630, x633, x631, x634, x629, x632, x636, x639, x637, x640, x635, x638, x642, x645, x643, x646, x641, x644, x648, x651, x649, x652, x647, x620, x650, x655, x653, x656, x621, x654, x591, x659, x657, x618, x658, x662, x660, x663, x619, x664, x661, x9, x17, x8, x18, x667, x669, x672, x670, x673, x668, x7, x19, x671, x675, x678, x676, x679, x674, x677, x616, x682, x680, x617, x6, x10, x5, x11, x688, x690, x693, x691, x694, x689, x4, x12, x692, x696, x699, x697, x700, x695, x3, x13, x698, x702, x705, x703, x706, x701, x2, x14, x704, x708, x711, x709, x712, x707, x1, x15, x710, x714, x717, x715, x718, x713, x0, x16, x716, x720, x723, x721, x724, x719, x686, x722, x727, x725, x728, x687, x726, x665, x731, x729, x684, x730, x734, x732, x735, x685, x736, x733, x681, x741, x81, x744, x742, x743, x737, x747, x745, x739, x746, x750, x748, x751, x740, x752, x749, x683, x755, x153, x758, x756, x757, x753, x761, x759, x762, x760, x763, x286, x296, x370, x444, x518, x592, x666, x738, x754, x764, x765, x766, x767, x768, x769, x770, x771, x772, x773, x774, x775; x0 = _br_load(in0+0); x1 = _br_load(in0+4); x2 = _br_load(in0+8); x3 = _br_load(in0+12); x4 = _br_load(in0+16); x5 = _br_load(in0+20); x6 = _br_load(in0+24); x7 = _br_load(in0+28); x8 = _br_load(in0+32); x9 = _br_load(in0+36); /*skip*/ x10 = _br_load(in1+0); x11 = _br_load(in1+4); x12 = _br_load(in1+8); x13 = _br_load(in1+12); x14 = _br_load(in1+16); x15 = _br_load(in1+20); x16 = _br_load(in1+24); x17 = _br_load(in1+28); x18 = _br_load(in1+32); x19 = _br_load(in1+36); /*skip*/ /*skip*/ x20 = x9*x18; x21 = _br_mulhuu(x9, x18); x22 = x8*x19; x23 = _br_mulhuu(x8, x19); x24 = x22+x20; x25 = (br_word_t)(x24>26)|(x27<<6); x29 = x24&0x3ffffff; x30 = x29*0x3d10; x31 = _br_mulhuu(x29, (br_word_t)0x3d10); x32 = x7*x10; x33 = _br_mulhuu(x7, x10); x34 = x6*x11; x35 = _br_mulhuu(x6, x11); x36 = x34+x32; x37 = (br_word_t)(x36>26)|(x79<<6); x81 = x76&0x3ffffff; x82 = x9*x19; x83 = _br_mulhuu(x9, x19); x84 = x28+x82; x85 = (br_word_t)(x84>22; x91 = x8*x10; x92 = _br_mulhuu(x8, x10); x93 = x7*x11; x94 = _br_mulhuu(x7, x11); x95 = x93+x91; x96 = (br_word_t)(x95>26)|(x151<<6); x153 = x148&0x3ffffff; x154 = x86*0xf4400; x155 = _br_mulhuu(x86, (br_word_t)0xf4400); x156 = x84<<10; x157 = x84>>22; x158 = x9*x10; x159 = _br_mulhuu(x9, x10); x160 = x8*x11; x161 = _br_mulhuu(x8, x11); x162 = x160+x158; x163 = (br_word_t)(x162>26)|(x224<<6); x226 = x221&0x3ffffff; x227 = x9*x11; x228 = _br_mulhuu(x9, x11); x229 = x8*x12; x230 = _br_mulhuu(x8, x12); x231 = x229+x227; x232 = (br_word_t)(x231>26)|(x282<<6); x284 = x280&0x3ffffff; x285 = x226>>22; x286 = x226&0x3fffff; x287 = (x285+(x284<<4))*0x3d1; x288 = _br_mulhuu((x285+(x284<<4)), (br_word_t)0x3d1); x289 = x0*x10; x290 = _br_mulhuu(x0, x10); x291 = x289+x287; x292 = (br_word_t)(x291>26)|(x294<<6); x296 = x291&0x3ffffff; x297 = x9*x12; x298 = _br_mulhuu(x9, x12); x299 = x8*x13; x300 = _br_mulhuu(x8, x13); x301 = x299+x297; x302 = (br_word_t)(x301>26)|(x343<<6); x345 = x341&0x3ffffff; x346 = x345*0x3d10; x347 = _br_mulhuu(x345, (br_word_t)0x3d10); x348 = (x285+(x284<<4))<<6; x349 = (x285+(x284<<4))>>26; x350 = x1*x10; x351 = _br_mulhuu(x1, x10); x352 = x0*x11; x353 = _br_mulhuu(x0, x11); x354 = x352+x350; x355 = (br_word_t)(x354>26)|(x368<<6); x370 = x365&0x3ffffff; x371 = x9*x13; x372 = _br_mulhuu(x9, x13); x373 = x8*x14; x374 = _br_mulhuu(x8, x14); x375 = x373+x371; x376 = (br_word_t)(x375>26)|(x411<<6); x413 = x409&0x3ffffff; x414 = x413*0x3d10; x415 = _br_mulhuu(x413, (br_word_t)0x3d10); x416 = x345<<10; x417 = x345>>22; x418 = x2*x10; x419 = _br_mulhuu(x2, x10); x420 = x1*x11; x421 = _br_mulhuu(x1, x11); x422 = x420+x418; x423 = (br_word_t)(x422>26)|(x442<<6); x444 = x439&0x3ffffff; x445 = x9*x14; x446 = _br_mulhuu(x9, x14); x447 = x8*x15; x448 = _br_mulhuu(x8, x15); x449 = x447+x445; x450 = (br_word_t)(x449>26)|(x479<<6); x481 = x477&0x3ffffff; x482 = x481*0x3d10; x483 = _br_mulhuu(x481, (br_word_t)0x3d10); x484 = x413<<10; x485 = x413>>22; x486 = x3*x10; x487 = _br_mulhuu(x3, x10); x488 = x2*x11; x489 = _br_mulhuu(x2, x11); x490 = x488+x486; x491 = (br_word_t)(x490>26)|(x516<<6); x518 = x513&0x3ffffff; x519 = x9*x15; x520 = _br_mulhuu(x9, x15); x521 = x8*x16; x522 = _br_mulhuu(x8, x16); x523 = x521+x519; x524 = (br_word_t)(x523>26)|(x547<<6); x549 = x545&0x3ffffff; x550 = x549*0x3d10; x551 = _br_mulhuu(x549, (br_word_t)0x3d10); x552 = x481<<10; x553 = x481>>22; x554 = x4*x10; x555 = _br_mulhuu(x4, x10); x556 = x3*x11; x557 = _br_mulhuu(x3, x11); x558 = x556+x554; x559 = (br_word_t)(x558>26)|(x590<<6); x592 = x587&0x3ffffff; x593 = x9*x16; x594 = _br_mulhuu(x9, x16); x595 = x8*x17; x596 = _br_mulhuu(x8, x17); x597 = x595+x593; x598 = (br_word_t)(x597>26)|(x615<<6); x617 = x613&0x3ffffff; x618 = x617*0x3d10; x619 = _br_mulhuu(x617, (br_word_t)0x3d10); x620 = x549<<10; x621 = x549>>22; x622 = x5*x10; x623 = _br_mulhuu(x5, x10); x624 = x4*x11; x625 = _br_mulhuu(x4, x11); x626 = x624+x622; x627 = (br_word_t)(x626>26)|(x664<<6); x666 = x661&0x3ffffff; x667 = x9*x17; x668 = _br_mulhuu(x9, x17); x669 = x8*x18; x670 = _br_mulhuu(x8, x18); x671 = x669+x667; x672 = (br_word_t)(x671>22; x688 = x6*x10; x689 = _br_mulhuu(x6, x10); x690 = x5*x11; x691 = _br_mulhuu(x5, x11); x692 = x690+x688; x693 = (br_word_t)(x692>26)|(x736<<6); x738 = x733&0x3ffffff; x739 = x683*0xf4400; x740 = _br_mulhuu(x683, (br_word_t)0xf4400); x741 = x681<<10; x742 = x681>>22; x743 = x81+x741; x744 = (br_word_t)(x743>26)|(x752<<6); x754 = x749&0x3ffffff; x755 = x683<<16; x756 = x683>>16; x757 = x153+x755; x758 = (br_word_t)(x757>26)|(x762<<6); x764 = x760&0x3ffffff; x765 = x763+x286; x766 = x296; x767 = x370; x768 = x444; x769 = x518; x770 = x592; x771 = x666; x772 = x738; x773 = x754; x774 = x764; x775 = x765; /*skip*/ _br_store(out0+0, x766); _br_store(out0+4, x767); _br_store(out0+8, x768); _br_store(out0+12, x769); _br_store(out0+16, x770); _br_store(out0+20, x771); _br_store(out0+24, x772); _br_store(out0+28, x773); _br_store(out0+32, x774); _br_store(out0+36, x775); /*skip*/ } /* NOTE: The following wrapper function is not covered by Coq proofs */ static void fiat_secp256k1_dettman_mul(uint32_t out1[10], const uint32_t arg1[10], const uint32_t arg2[10]) { internal_fiat_secp256k1_dettman_mul((uintptr_t)out1, (uintptr_t)arg1, (uintptr_t)arg2); } /* * Input Bounds: * in0: [[0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7ffffe]] * Output Bounds: * out0: [[0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x5fffff]] */ static void internal_fiat_secp256k1_dettman_square(br_word_t out0, br_word_t in0) { br_word_t x10, x20, x19, x25, x27, x30, x28, x31, x26, x29, x33, x36, x34, x37, x32, x35, x39, x42, x40, x43, x38, x23, x41, x46, x44, x47, x24, x48, x45, x51, x21, x54, x52, x22, x60, x62, x65, x63, x66, x61, x64, x68, x71, x69, x72, x67, x70, x74, x77, x75, x78, x73, x76, x80, x83, x81, x84, x79, x58, x82, x87, x85, x88, x59, x86, x49, x91, x89, x56, x90, x94, x92, x95, x57, x96, x93, x53, x103, x105, x108, x106, x109, x104, x107, x111, x114, x112, x115, x110, x113, x117, x120, x118, x121, x116, x119, x123, x126, x124, x127, x122, x101, x125, x130, x128, x131, x102, x129, x97, x134, x132, x99, x133, x137, x135, x138, x100, x139, x136, x142, x144, x147, x145, x148, x143, x146, x150, x153, x151, x154, x149, x152, x156, x159, x157, x160, x155, x158, x162, x165, x163, x166, x161, x55, x164, x169, x167, x168, x140, x172, x170, x173, x171, x141, x0, x178, x180, x183, x181, x184, x179, x185, x182, x188, x190, x193, x191, x194, x189, x192, x196, x199, x197, x200, x195, x198, x202, x205, x203, x206, x201, x204, x174, x209, x207, x210, x208, x176, x175, x215, x217, x220, x218, x221, x216, x219, x186, x224, x222, x213, x223, x227, x225, x228, x214, x229, x226, x232, x234, x237, x235, x238, x233, x236, x240, x243, x241, x244, x239, x15, x242, x246, x249, x247, x250, x245, x248, x211, x253, x251, x254, x252, x212, x1, x261, x263, x266, x264, x267, x262, x259, x265, x270, x268, x271, x260, x269, x230, x274, x272, x257, x273, x277, x275, x278, x258, x279, x276, x282, x284, x287, x285, x288, x283, x14, x286, x290, x293, x291, x294, x289, x292, x255, x297, x295, x298, x296, x256, x305, x307, x310, x308, x311, x306, x303, x309, x314, x312, x315, x304, x313, x280, x318, x316, x301, x317, x321, x319, x322, x302, x323, x320, x7, x326, x328, x331, x329, x332, x327, x13, x330, x334, x337, x335, x338, x333, x336, x299, x341, x339, x342, x340, x300, x2, x349, x351, x354, x352, x355, x350, x353, x357, x360, x358, x361, x356, x347, x359, x364, x362, x365, x348, x363, x324, x368, x366, x345, x367, x371, x369, x372, x346, x373, x370, x12, x376, x378, x381, x379, x382, x377, x380, x343, x385, x383, x386, x384, x344, x393, x395, x398, x396, x399, x394, x397, x401, x404, x402, x405, x400, x391, x403, x408, x406, x409, x392, x407, x374, x412, x410, x389, x411, x415, x413, x416, x390, x417, x414, x8, x11, x9, x420, x422, x425, x423, x426, x421, x424, x387, x429, x427, x388, x3, x16, x4, x435, x437, x440, x438, x441, x436, x17, x5, x439, x443, x446, x444, x447, x442, x18, x6, x445, x449, x452, x450, x453, x448, x433, x451, x456, x454, x457, x434, x455, x418, x460, x458, x431, x459, x463, x461, x464, x432, x465, x462, x428, x470, x50, x473, x471, x472, x466, x476, x474, x468, x475, x479, x477, x480, x469, x481, x478, x430, x484, x98, x487, x485, x486, x482, x490, x488, x491, x489, x492, x177, x187, x231, x281, x325, x375, x419, x467, x483, x493, x494, x495, x496, x497, x498, x499, x500, x501, x502, x503, x504; x0 = _br_load(in0+0); x1 = _br_load(in0+4); x2 = _br_load(in0+8); x3 = _br_load(in0+12); x4 = _br_load(in0+16); x5 = _br_load(in0+20); x6 = _br_load(in0+24); x7 = _br_load(in0+28); x8 = _br_load(in0+32); x9 = _br_load(in0+36); /*skip*/ /*skip*/ x10 = x8*2; x11 = x7*2; x12 = x6*2; x13 = x5*2; x14 = x4*2; x15 = x3*2; x16 = x2*2; x17 = x1*2; x18 = x0*2; x19 = x10*x9; x20 = _br_mulhuu(x10, x9); x21 = (x19>>26)|(x20<<6); x22 = x19&0x3ffffff; x23 = x22*0x3d10; x24 = _br_mulhuu(x22, (br_word_t)0x3d10); x25 = x15*x4; x26 = _br_mulhuu(x15, x4); x27 = x16*x5; x28 = _br_mulhuu(x16, x5); x29 = x27+x25; x30 = (br_word_t)(x29>26)|(x48<<6); x50 = x45&0x3ffffff; x51 = x9*x9; x52 = _br_mulhuu(x9, x9); x53 = x21+x51; x54 = (br_word_t)(x53>22; x60 = x4*x4; x61 = _br_mulhuu(x4, x4); x62 = x15*x5; x63 = _br_mulhuu(x15, x5); x64 = x62+x60; x65 = (br_word_t)(x64>26)|(x96<<6); x98 = x93&0x3ffffff; x99 = x55*0xf4400; x100 = _br_mulhuu(x55, (br_word_t)0xf4400); x101 = x53<<10; x102 = x53>>22; x103 = x14*x5; x104 = _br_mulhuu(x14, x5); x105 = x15*x6; x106 = _br_mulhuu(x15, x6); x107 = x105+x103; x108 = (br_word_t)(x107>26)|(x139<<6); x141 = x136&0x3ffffff; x142 = x5*x5; x143 = _br_mulhuu(x5, x5); x144 = x14*x6; x145 = _br_mulhuu(x14, x6); x146 = x144+x142; x147 = (br_word_t)(x146>26)|(x173<<6); x175 = x171&0x3ffffff; x176 = x141>>22; x177 = x141&0x3fffff; x178 = (x176+(x175<<4))*0x3d1; x179 = _br_mulhuu((x176+(x175<<4)), (br_word_t)0x3d1); x180 = x0*x0; x181 = _br_mulhuu(x0, x0); x182 = x180+x178; x183 = (br_word_t)(x182>26)|(x185<<6); x187 = x182&0x3ffffff; x188 = x13*x6; x189 = _br_mulhuu(x13, x6); x190 = x14*x7; x191 = _br_mulhuu(x14, x7); x192 = x190+x188; x193 = (br_word_t)(x192>26)|(x210<<6); x212 = x208&0x3ffffff; x213 = x212*0x3d10; x214 = _br_mulhuu(x212, (br_word_t)0x3d10); x215 = (x176+(x175<<4))<<6; x216 = (x176+(x175<<4))>>26; x217 = x18*x1; x218 = _br_mulhuu(x18, x1); x219 = x217+x215; x220 = (br_word_t)(x219>26)|(x229<<6); x231 = x226&0x3ffffff; x232 = x6*x6; x233 = _br_mulhuu(x6, x6); x234 = x13*x7; x235 = _br_mulhuu(x13, x7); x236 = x234+x232; x237 = (br_word_t)(x236>26)|(x254<<6); x256 = x252&0x3ffffff; x257 = x256*0x3d10; x258 = _br_mulhuu(x256, (br_word_t)0x3d10); x259 = x212<<10; x260 = x212>>22; x261 = x1*x1; x262 = _br_mulhuu(x1, x1); x263 = x18*x2; x264 = _br_mulhuu(x18, x2); x265 = x263+x261; x266 = (br_word_t)(x265>26)|(x279<<6); x281 = x276&0x3ffffff; x282 = x12*x7; x283 = _br_mulhuu(x12, x7); x284 = x13*x8; x285 = _br_mulhuu(x13, x8); x286 = x284+x282; x287 = (br_word_t)(x286>26)|(x298<<6); x300 = x296&0x3ffffff; x301 = x300*0x3d10; x302 = _br_mulhuu(x300, (br_word_t)0x3d10); x303 = x256<<10; x304 = x256>>22; x305 = x17*x2; x306 = _br_mulhuu(x17, x2); x307 = x18*x3; x308 = _br_mulhuu(x18, x3); x309 = x307+x305; x310 = (br_word_t)(x309>26)|(x323<<6); x325 = x320&0x3ffffff; x326 = x7*x7; x327 = _br_mulhuu(x7, x7); x328 = x12*x8; x329 = _br_mulhuu(x12, x8); x330 = x328+x326; x331 = (br_word_t)(x330>26)|(x342<<6); x344 = x340&0x3ffffff; x345 = x344*0x3d10; x346 = _br_mulhuu(x344, (br_word_t)0x3d10); x347 = x300<<10; x348 = x300>>22; x349 = x2*x2; x350 = _br_mulhuu(x2, x2); x351 = x17*x3; x352 = _br_mulhuu(x17, x3); x353 = x351+x349; x354 = (br_word_t)(x353>26)|(x373<<6); x375 = x370&0x3ffffff; x376 = x11*x8; x377 = _br_mulhuu(x11, x8); x378 = x12*x9; x379 = _br_mulhuu(x12, x9); x380 = x378+x376; x381 = (br_word_t)(x380>26)|(x386<<6); x388 = x384&0x3ffffff; x389 = x388*0x3d10; x390 = _br_mulhuu(x388, (br_word_t)0x3d10); x391 = x344<<10; x392 = x344>>22; x393 = x16*x3; x394 = _br_mulhuu(x16, x3); x395 = x17*x4; x396 = _br_mulhuu(x17, x4); x397 = x395+x393; x398 = (br_word_t)(x397>26)|(x417<<6); x419 = x414&0x3ffffff; x420 = x8*x8; x421 = _br_mulhuu(x8, x8); x422 = x11*x9; x423 = _br_mulhuu(x11, x9); x424 = x422+x420; x425 = (br_word_t)(x424>22; x435 = x3*x3; x436 = _br_mulhuu(x3, x3); x437 = x16*x4; x438 = _br_mulhuu(x16, x4); x439 = x437+x435; x440 = (br_word_t)(x439>26)|(x465<<6); x467 = x462&0x3ffffff; x468 = x430*0xf4400; x469 = _br_mulhuu(x430, (br_word_t)0xf4400); x470 = x428<<10; x471 = x428>>22; x472 = x50+x470; x473 = (br_word_t)(x472>26)|(x481<<6); x483 = x478&0x3ffffff; x484 = x430<<16; x485 = x430>>16; x486 = x98+x484; x487 = (br_word_t)(x486>26)|(x491<<6); x493 = x489&0x3ffffff; x494 = x492+x177; x495 = x187; x496 = x231; x497 = x281; x498 = x325; x499 = x375; x500 = x419; x501 = x467; x502 = x483; x503 = x493; x504 = x494; /*skip*/ _br_store(out0+0, x495); _br_store(out0+4, x496); _br_store(out0+8, x497); _br_store(out0+12, x498); _br_store(out0+16, x499); _br_store(out0+20, x500); _br_store(out0+24, x501); _br_store(out0+28, x502); _br_store(out0+32, x503); _br_store(out0+36, x504); /*skip*/ } /* NOTE: The following wrapper function is not covered by Coq proofs */ static void fiat_secp256k1_dettman_square(uint32_t out1[10], const uint32_t arg1[10]) { internal_fiat_secp256k1_dettman_square((uintptr_t)out1, (uintptr_t)arg1); }