/* Autogenerated: 'src/ExtractionOCaml/bedrock2_unsaturated_solinas' --lang bedrock2 --static --no-wide-int --widen-carry --widen-bytes --split-multiret --no-select --no-field-element-typedefs 25519 32 '(auto)' '2^255 - 19' carry_mul carry_square carry add sub opp selectznz to_bytes from_bytes relax carry_scmul121666 */ /* curve description: 25519 */ /* machine_wordsize = 32 (from "32") */ /* requested operations: carry_mul, carry_square, carry, add, sub, opp, selectznz, to_bytes, from_bytes, relax, carry_scmul121666 */ /* n = 10 (from "(auto)") */ /* s-c = 2^255 - [(1, 19)] (from "2^255 - 19") */ /* tight_bounds_multiplier = 1 (from "") */ /* */ /* Computed values: */ /* carry_chain = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1] */ /* eval z = z[0] + (z[1] << 26) + (z[2] << 51) + (z[3] << 77) + (z[4] << 102) + (z[5] << 128) + (z[6] << 153) + (z[7] << 179) + (z[8] << 204) + (z[9] << 230) */ /* bytes_eval z = z[0] + (z[1] << 8) + (z[2] << 16) + (z[3] << 24) + (z[4] << 32) + (z[5] << 40) + (z[6] << 48) + (z[7] << 56) + (z[8] << 64) + (z[9] << 72) + (z[10] << 80) + (z[11] << 88) + (z[12] << 96) + (z[13] << 104) + (z[14] << 112) + (z[15] << 120) + (z[16] << 128) + (z[17] << 136) + (z[18] << 144) + (z[19] << 152) + (z[20] << 160) + (z[21] << 168) + (z[22] << 176) + (z[23] << 184) + (z[24] << 192) + (z[25] << 200) + (z[26] << 208) + (z[27] << 216) + (z[28] << 224) + (z[29] << 232) + (z[30] << 240) + (z[31] << 248) */ /* balance = [0x7ffffda, 0x3fffffe, 0x7fffffe, 0x3fffffe, 0x7fffffe, 0x3fffffe, 0x7fffffe, 0x3fffffe, 0x7fffffe, 0x3fffffe] */ // 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 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000]] * in1: [[0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000]] * Output Bounds: * out0: [[0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000]] */ static void internal_fiat_25519_carry_mul(br_word_t out0, br_word_t in0, br_word_t in1) { br_word_t x9, x8, x7, x6, x5, x4, x3, x2, x1, x19, x18, x17, x16, x15, x14, x13, x12, x11, x0, x10, x36, x52, x221, x53, x222, x37, x220, x66, x225, x67, x226, x223, x224, x78, x229, x79, x230, x227, x228, x88, x233, x89, x234, x231, x232, x96, x237, x97, x238, x235, x236, x102, x241, x103, x242, x239, x240, x106, x245, x107, x246, x243, x244, x108, x249, x109, x250, x247, x248, x218, x253, x219, x254, x251, x255, x252, x110, x112, x260, x113, x261, x111, x259, x116, x264, x117, x265, x262, x263, x122, x268, x123, x269, x266, x267, x130, x272, x131, x273, x270, x271, x140, x276, x141, x277, x274, x275, x152, x280, x153, x281, x278, x279, x166, x284, x167, x285, x282, x283, x182, x288, x183, x289, x286, x287, x200, x292, x201, x293, x290, x20, x114, x296, x115, x297, x21, x295, x118, x300, x119, x301, x298, x299, x124, x304, x125, x305, x302, x303, x132, x308, x133, x309, x306, x307, x142, x312, x143, x313, x310, x311, x154, x316, x155, x317, x314, x315, x168, x320, x169, x321, x318, x319, x184, x324, x185, x325, x322, x323, x202, x328, x203, x329, x326, x22, x38, x332, x39, x333, x23, x331, x120, x336, x121, x337, x334, x335, x126, x340, x127, x341, x338, x339, x134, x344, x135, x345, x342, x343, x144, x348, x145, x349, x346, x347, x156, x352, x157, x353, x350, x351, x170, x356, x171, x357, x354, x355, x186, x360, x187, x361, x358, x359, x204, x364, x205, x365, x362, x24, x40, x368, x41, x369, x25, x367, x54, x372, x55, x373, x370, x371, x128, x376, x129, x377, x374, x375, x136, x380, x137, x381, x378, x379, x146, x384, x147, x385, x382, x383, x158, x388, x159, x389, x386, x387, x172, x392, x173, x393, x390, x391, x188, x396, x189, x397, x394, x395, x206, x400, x207, x401, x398, x26, x42, x404, x43, x405, x27, x403, x56, x408, x57, x409, x406, x407, x68, x412, x69, x413, x410, x411, x138, x416, x139, x417, x414, x415, x148, x420, x149, x421, x418, x419, x160, x424, x161, x425, x422, x423, x174, x428, x175, x429, x426, x427, x190, x432, x191, x433, x430, x431, x208, x436, x209, x437, x434, x28, x44, x440, x45, x441, x29, x439, x58, x444, x59, x445, x442, x443, x70, x448, x71, x449, x446, x447, x80, x452, x81, x453, x450, x451, x150, x456, x151, x457, x454, x455, x162, x460, x163, x461, x458, x459, x176, x464, x177, x465, x462, x463, x192, x468, x193, x469, x466, x467, x210, x472, x211, x473, x470, x30, x46, x476, x47, x477, x31, x475, x60, x480, x61, x481, x478, x479, x72, x484, x73, x485, x482, x483, x82, x488, x83, x489, x486, x487, x90, x492, x91, x493, x490, x491, x164, x496, x165, x497, x494, x495, x178, x500, x179, x501, x498, x499, x194, x504, x195, x505, x502, x503, x212, x508, x213, x509, x506, x32, x48, x512, x49, x513, x33, x511, x62, x516, x63, x517, x514, x515, x74, x520, x75, x521, x518, x519, x84, x524, x85, x525, x522, x523, x92, x528, x93, x529, x526, x527, x98, x532, x99, x533, x530, x531, x180, x536, x181, x537, x534, x535, x196, x540, x197, x541, x538, x539, x214, x544, x215, x545, x542, x34, x50, x548, x51, x549, x35, x547, x64, x552, x65, x553, x550, x551, x76, x556, x77, x557, x554, x555, x86, x560, x87, x561, x558, x559, x94, x564, x95, x565, x562, x563, x100, x568, x101, x569, x566, x567, x104, x572, x105, x573, x570, x571, x198, x576, x199, x577, x574, x575, x216, x580, x217, x581, x578, x579, x256, x584, x257, x585, x582, x586, x583, x543, x587, x591, x588, x592, x546, x593, x590, x507, x594, x598, x595, x599, x510, x600, x597, x471, x601, x605, x602, x606, x474, x607, x604, x435, x608, x612, x609, x613, x438, x614, x611, x399, x615, x619, x616, x620, x402, x621, x618, x363, x622, x626, x623, x627, x366, x628, x625, x327, x629, x633, x630, x634, x330, x635, x632, x291, x636, x640, x637, x641, x294, x642, x639, x643, x644, x647, x648, x646, x258, x651, x649, x652, x650, x653, x589, x655, x656, x596, x654, x657, x658, x603, x610, x617, x624, x631, x638, x645, x659, x660, x661, x662, x663, x664, x665, x666, x667, x668; 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*(x19*38); x21 = _br_mulhuu(x9, (x19*38)); x22 = x9*(x18*19); x23 = _br_mulhuu(x9, (x18*19)); x24 = x9*(x17*38); x25 = _br_mulhuu(x9, (x17*38)); x26 = x9*(x16*19); x27 = _br_mulhuu(x9, (x16*19)); x28 = x9*(x15*38); x29 = _br_mulhuu(x9, (x15*38)); x30 = x9*(x14*19); x31 = _br_mulhuu(x9, (x14*19)); x32 = x9*(x13*38); x33 = _br_mulhuu(x9, (x13*38)); x34 = x9*(x12*19); x35 = _br_mulhuu(x9, (x12*19)); x36 = x9*(x11*38); x37 = _br_mulhuu(x9, (x11*38)); x38 = x8*(x19*19); x39 = _br_mulhuu(x8, (x19*19)); x40 = x8*(x18*19); x41 = _br_mulhuu(x8, (x18*19)); x42 = x8*(x17*19); x43 = _br_mulhuu(x8, (x17*19)); x44 = x8*(x16*19); x45 = _br_mulhuu(x8, (x16*19)); x46 = x8*(x15*19); x47 = _br_mulhuu(x8, (x15*19)); x48 = x8*(x14*19); x49 = _br_mulhuu(x8, (x14*19)); x50 = x8*(x13*19); x51 = _br_mulhuu(x8, (x13*19)); x52 = x8*(x12*19); x53 = _br_mulhuu(x8, (x12*19)); x54 = x7*(x19*38); x55 = _br_mulhuu(x7, (x19*38)); x56 = x7*(x18*19); x57 = _br_mulhuu(x7, (x18*19)); x58 = x7*(x17*38); x59 = _br_mulhuu(x7, (x17*38)); x60 = x7*(x16*19); x61 = _br_mulhuu(x7, (x16*19)); x62 = x7*(x15*38); x63 = _br_mulhuu(x7, (x15*38)); x64 = x7*(x14*19); x65 = _br_mulhuu(x7, (x14*19)); x66 = x7*(x13*38); x67 = _br_mulhuu(x7, (x13*38)); x68 = x6*(x19*19); x69 = _br_mulhuu(x6, (x19*19)); x70 = x6*(x18*19); x71 = _br_mulhuu(x6, (x18*19)); x72 = x6*(x17*19); x73 = _br_mulhuu(x6, (x17*19)); x74 = x6*(x16*19); x75 = _br_mulhuu(x6, (x16*19)); x76 = x6*(x15*19); x77 = _br_mulhuu(x6, (x15*19)); x78 = x6*(x14*19); x79 = _br_mulhuu(x6, (x14*19)); x80 = x5*(x19*38); x81 = _br_mulhuu(x5, (x19*38)); x82 = x5*(x18*19); x83 = _br_mulhuu(x5, (x18*19)); x84 = x5*(x17*38); x85 = _br_mulhuu(x5, (x17*38)); x86 = x5*(x16*19); x87 = _br_mulhuu(x5, (x16*19)); x88 = x5*(x15*38); x89 = _br_mulhuu(x5, (x15*38)); x90 = x4*(x19*19); x91 = _br_mulhuu(x4, (x19*19)); x92 = x4*(x18*19); x93 = _br_mulhuu(x4, (x18*19)); x94 = x4*(x17*19); x95 = _br_mulhuu(x4, (x17*19)); x96 = x4*(x16*19); x97 = _br_mulhuu(x4, (x16*19)); x98 = x3*(x19*38); x99 = _br_mulhuu(x3, (x19*38)); x100 = x3*(x18*19); x101 = _br_mulhuu(x3, (x18*19)); x102 = x3*(x17*38); x103 = _br_mulhuu(x3, (x17*38)); x104 = x2*(x19*19); x105 = _br_mulhuu(x2, (x19*19)); x106 = x2*(x18*19); x107 = _br_mulhuu(x2, (x18*19)); x108 = x1*(x19*38); x109 = _br_mulhuu(x1, (x19*38)); x110 = x9*x10; x111 = _br_mulhuu(x9, x10); x112 = x8*x11; x113 = _br_mulhuu(x8, x11); x114 = x8*x10; x115 = _br_mulhuu(x8, x10); x116 = x7*x12; x117 = _br_mulhuu(x7, x12); x118 = x7*(x11*2); x119 = _br_mulhuu(x7, (x11*2)); x120 = x7*x10; x121 = _br_mulhuu(x7, x10); x122 = x6*x13; x123 = _br_mulhuu(x6, x13); x124 = x6*x12; x125 = _br_mulhuu(x6, x12); x126 = x6*x11; x127 = _br_mulhuu(x6, x11); x128 = x6*x10; x129 = _br_mulhuu(x6, x10); x130 = x5*x14; x131 = _br_mulhuu(x5, x14); x132 = x5*(x13*2); x133 = _br_mulhuu(x5, (x13*2)); x134 = x5*x12; x135 = _br_mulhuu(x5, x12); x136 = x5*(x11*2); x137 = _br_mulhuu(x5, (x11*2)); x138 = x5*x10; x139 = _br_mulhuu(x5, x10); x140 = x4*x15; x141 = _br_mulhuu(x4, x15); x142 = x4*x14; x143 = _br_mulhuu(x4, x14); x144 = x4*x13; x145 = _br_mulhuu(x4, x13); x146 = x4*x12; x147 = _br_mulhuu(x4, x12); x148 = x4*x11; x149 = _br_mulhuu(x4, x11); x150 = x4*x10; x151 = _br_mulhuu(x4, x10); x152 = x3*x16; x153 = _br_mulhuu(x3, x16); x154 = x3*(x15*2); x155 = _br_mulhuu(x3, (x15*2)); x156 = x3*x14; x157 = _br_mulhuu(x3, x14); x158 = x3*(x13*2); x159 = _br_mulhuu(x3, (x13*2)); x160 = x3*x12; x161 = _br_mulhuu(x3, x12); x162 = x3*(x11*2); x163 = _br_mulhuu(x3, (x11*2)); x164 = x3*x10; x165 = _br_mulhuu(x3, x10); x166 = x2*x17; x167 = _br_mulhuu(x2, x17); x168 = x2*x16; x169 = _br_mulhuu(x2, x16); x170 = x2*x15; x171 = _br_mulhuu(x2, x15); x172 = x2*x14; x173 = _br_mulhuu(x2, x14); x174 = x2*x13; x175 = _br_mulhuu(x2, x13); x176 = x2*x12; x177 = _br_mulhuu(x2, x12); x178 = x2*x11; x179 = _br_mulhuu(x2, x11); x180 = x2*x10; x181 = _br_mulhuu(x2, x10); x182 = x1*x18; x183 = _br_mulhuu(x1, x18); x184 = x1*(x17*2); x185 = _br_mulhuu(x1, (x17*2)); x186 = x1*x16; x187 = _br_mulhuu(x1, x16); x188 = x1*(x15*2); x189 = _br_mulhuu(x1, (x15*2)); x190 = x1*x14; x191 = _br_mulhuu(x1, x14); x192 = x1*(x13*2); x193 = _br_mulhuu(x1, (x13*2)); x194 = x1*x12; x195 = _br_mulhuu(x1, x12); x196 = x1*(x11*2); x197 = _br_mulhuu(x1, (x11*2)); x198 = x1*x10; x199 = _br_mulhuu(x1, x10); x200 = x0*x19; x201 = _br_mulhuu(x0, x19); x202 = x0*x18; x203 = _br_mulhuu(x0, x18); x204 = x0*x17; x205 = _br_mulhuu(x0, x17); x206 = x0*x16; x207 = _br_mulhuu(x0, x16); x208 = x0*x15; x209 = _br_mulhuu(x0, x15); x210 = x0*x14; x211 = _br_mulhuu(x0, x14); x212 = x0*x13; x213 = _br_mulhuu(x0, x13); x214 = x0*x12; x215 = _br_mulhuu(x0, x12); x216 = x0*x11; x217 = _br_mulhuu(x0, x11); x218 = x0*x10; x219 = _br_mulhuu(x0, x10); x220 = x52+x36; x221 = (br_word_t)(x220>26)|(x255<<6); x257 = x255>>26; x258 = x252&0x3ffffff; x259 = x112+x110; x260 = (br_word_t)(x259>25)|(x586<<7); x588 = x586>>25; x589 = x583&0x1ffffff; x590 = x587+x543; x591 = (br_word_t)(x590>26)|(x593<<6); x595 = x593>>26; x596 = x590&0x3ffffff; x597 = x594+x507; x598 = (br_word_t)(x597>25)|(x600<<7); x602 = x600>>25; x603 = x597&0x1ffffff; x604 = x601+x471; x605 = (br_word_t)(x604>26)|(x607<<6); x609 = x607>>26; x610 = x604&0x3ffffff; x611 = x608+x435; x612 = (br_word_t)(x611>25)|(x614<<7); x616 = x614>>25; x617 = x611&0x1ffffff; x618 = x615+x399; x619 = (br_word_t)(x618>26)|(x621<<6); x623 = x621>>26; x624 = x618&0x3ffffff; x625 = x622+x363; x626 = (br_word_t)(x625>25)|(x628<<7); x630 = x628>>25; x631 = x625&0x1ffffff; x632 = x629+x327; x633 = (br_word_t)(x632>26)|(x635<<6); x637 = x635>>26; x638 = x632&0x3ffffff; x639 = x636+x291; x640 = (br_word_t)(x639>25)|(x642<<7); x644 = x642>>25; x645 = x639&0x1ffffff; x646 = x643*19; x647 = _br_mulhuu(x643, (br_word_t)19); x648 = x644*19; x649 = x647+x648; x650 = x258+x646; x651 = (br_word_t)(x650>26)|(x652<<6); x654 = x650&0x3ffffff; x655 = x653+x589; x656 = x655>>25; x657 = x655&0x1ffffff; x658 = x656+x596; x659 = x654; x660 = x657; x661 = x658; x662 = x603; x663 = x610; x664 = x617; x665 = x624; x666 = x631; x667 = x638; x668 = x645; /*skip*/ _br_store(out0+0, x659); _br_store(out0+4, x660); _br_store(out0+8, x661); _br_store(out0+12, x662); _br_store(out0+16, x663); _br_store(out0+20, x664); _br_store(out0+24, x665); _br_store(out0+28, x666); _br_store(out0+32, x667); _br_store(out0+36, x668); /*skip*/ } /* NOTE: The following wrapper function is not covered by Coq proofs */ static void fiat_25519_carry_mul(uint32_t out1[10], const uint32_t arg1[10], const uint32_t arg2[10]) { internal_fiat_25519_carry_mul((uintptr_t)out1, (uintptr_t)arg1, (uintptr_t)arg2); } /* * Input Bounds: * in0: [[0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000]] * Output Bounds: * out0: [[0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000]] */ static void internal_fiat_25519_carry_square(br_word_t out0, br_word_t in0) { br_word_t x9, x10, x8, x13, x36, x37, x39, x40, x43, x44, x7, x17, x51, x52, x6, x20, x58, x59, x61, x62, x65, x66, x68, x69, x71, x72, x75, x76, x5, x24, x83, x84, x21, x22, x89, x90, x4, x96, x97, x99, x100, x103, x104, x18, x106, x107, x109, x110, x3, x14, x15, x123, x124, x2, x11, x138, x139, x141, x142, x1, x12, x16, x19, x23, x25, x26, x27, x28, x29, x0, x78, x88, x181, x91, x182, x79, x180, x108, x185, x111, x186, x183, x184, x122, x189, x125, x190, x187, x188, x140, x193, x143, x194, x191, x192, x178, x197, x179, x198, x195, x199, x196, x92, x112, x204, x113, x205, x93, x203, x126, x208, x127, x209, x206, x207, x144, x212, x145, x213, x210, x211, x160, x216, x161, x217, x214, x30, x94, x220, x95, x221, x31, x219, x114, x224, x115, x225, x222, x223, x128, x228, x129, x229, x226, x227, x146, x232, x147, x233, x230, x231, x162, x236, x163, x237, x234, x32, x116, x240, x117, x241, x33, x239, x130, x244, x131, x245, x242, x243, x148, x248, x149, x249, x246, x247, x164, x252, x165, x253, x250, x34, x38, x256, x41, x257, x35, x255, x118, x260, x119, x261, x258, x259, x132, x264, x133, x265, x262, x263, x150, x268, x151, x269, x266, x267, x166, x272, x167, x273, x270, x42, x48, x276, x49, x277, x45, x275, x134, x280, x135, x281, x278, x279, x152, x284, x153, x285, x282, x283, x168, x288, x169, x289, x286, x46, x50, x292, x53, x293, x47, x291, x60, x296, x63, x297, x294, x295, x136, x300, x137, x301, x298, x299, x154, x304, x155, x305, x302, x303, x170, x308, x171, x309, x306, x54, x64, x312, x67, x313, x55, x311, x80, x316, x81, x317, x314, x315, x156, x320, x157, x321, x318, x319, x172, x324, x173, x325, x322, x56, x70, x328, x73, x329, x57, x327, x82, x332, x85, x333, x330, x331, x98, x336, x101, x337, x334, x335, x158, x340, x159, x341, x338, x339, x174, x344, x175, x345, x342, x74, x86, x348, x87, x349, x77, x347, x102, x352, x105, x353, x350, x351, x120, x356, x121, x357, x354, x355, x176, x360, x177, x361, x358, x359, x200, x364, x201, x365, x362, x366, x363, x343, x367, x371, x368, x372, x346, x373, x370, x323, x374, x378, x375, x379, x326, x380, x377, x307, x381, x385, x382, x386, x310, x387, x384, x287, x388, x392, x389, x393, x290, x394, x391, x271, x395, x399, x396, x400, x274, x401, x398, x251, x402, x406, x403, x407, x254, x408, x405, x235, x409, x413, x410, x414, x238, x415, x412, x215, x416, x420, x417, x421, x218, x422, x419, x423, x424, x427, x428, x426, x202, x431, x429, x432, x430, x433, x369, x435, x436, x376, x434, x437, x438, x383, x390, x397, x404, x411, x418, x425, x439, x440, x441, x442, x443, x444, x445, x446, x447, x448; 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 = x9*19; x11 = x10*2; x12 = x9*2; x13 = x8*19; x14 = x13*2; x15 = _br_mulhuu(x13, (br_word_t)2); x16 = x8*2; x17 = x7*19; x18 = x17*2; x19 = x7*2; x20 = x6*19; x21 = x20*2; x22 = _br_mulhuu(x20, (br_word_t)2); x23 = x6*2; x24 = x5*19; x25 = x5*2; x26 = x4*2; x27 = x3*2; x28 = x2*2; x29 = x1*2; x30 = x9*(x10*2); x31 = _br_mulhuu(x9, (x10*2)); x32 = x8*x11; x33 = _br_mulhuu(x8, x11); x34 = x8*x13; x35 = _br_mulhuu(x8, x13); x36 = x11*2; x37 = _br_mulhuu(x11, (br_word_t)2); x38 = x7*x36; x39 = _br_mulhuu(x7, x36); x40 = x7*x37; x41 = x39+x40; x42 = x7*x14; x43 = _br_mulhuu(x7, x14); x44 = x7*x15; x45 = x43+x44; x46 = x7*(x17*2); x47 = _br_mulhuu(x7, (x17*2)); x48 = x6*x11; x49 = _br_mulhuu(x6, x11); x50 = x6*x14; x51 = _br_mulhuu(x6, x14); x52 = x6*x15; x53 = x51+x52; x54 = x6*x18; x55 = _br_mulhuu(x6, x18); x56 = x6*x20; x57 = _br_mulhuu(x6, x20); x58 = x11*2; x59 = _br_mulhuu(x11, (br_word_t)2); x60 = x5*x58; x61 = _br_mulhuu(x5, x58); x62 = x5*x59; x63 = x61+x62; x64 = x5*x14; x65 = _br_mulhuu(x5, x14); x66 = x5*x15; x67 = x65+x66; x68 = x18*2; x69 = _br_mulhuu(x18, (br_word_t)2); x70 = x5*x68; x71 = _br_mulhuu(x5, x68); x72 = x5*x69; x73 = x71+x72; x74 = x5*x21; x75 = _br_mulhuu(x5, x21); x76 = x5*x22; x77 = x75+x76; x78 = x5*(x24*2); x79 = _br_mulhuu(x5, (x24*2)); x80 = x4*x11; x81 = _br_mulhuu(x4, x11); x82 = x4*x14; x83 = _br_mulhuu(x4, x14); x84 = x4*x15; x85 = x83+x84; x86 = x4*x18; x87 = _br_mulhuu(x4, x18); x88 = x4*x21; x89 = _br_mulhuu(x4, x21); x90 = x4*x22; x91 = x89+x90; x92 = x4*x25; x93 = _br_mulhuu(x4, x25); x94 = x4*x4; x95 = _br_mulhuu(x4, x4); x96 = x11*2; x97 = _br_mulhuu(x11, (br_word_t)2); x98 = x3*x96; x99 = _br_mulhuu(x3, x96); x100 = x3*x97; x101 = x99+x100; x102 = x3*x14; x103 = _br_mulhuu(x3, x14); x104 = x3*x15; x105 = x103+x104; x106 = x18*2; x107 = _br_mulhuu(x18, (br_word_t)2); x108 = x3*x106; x109 = _br_mulhuu(x3, x106); x110 = x3*x107; x111 = x109+x110; x112 = x3*x23; x113 = _br_mulhuu(x3, x23); x114 = x3*(x25*2); x115 = _br_mulhuu(x3, (x25*2)); x116 = x3*x26; x117 = _br_mulhuu(x3, x26); x118 = x3*(x3*2); x119 = _br_mulhuu(x3, (x3*2)); x120 = x2*x11; x121 = _br_mulhuu(x2, x11); x122 = x2*x14; x123 = _br_mulhuu(x2, x14); x124 = x2*x15; x125 = x123+x124; x126 = x2*x19; x127 = _br_mulhuu(x2, x19); x128 = x2*x23; x129 = _br_mulhuu(x2, x23); x130 = x2*x25; x131 = _br_mulhuu(x2, x25); x132 = x2*x26; x133 = _br_mulhuu(x2, x26); x134 = x2*x27; x135 = _br_mulhuu(x2, x27); x136 = x2*x2; x137 = _br_mulhuu(x2, x2); x138 = x11*2; x139 = _br_mulhuu(x11, (br_word_t)2); x140 = x1*x138; x141 = _br_mulhuu(x1, x138); x142 = x1*x139; x143 = x141+x142; x144 = x1*x16; x145 = _br_mulhuu(x1, x16); x146 = x1*(x19*2); x147 = _br_mulhuu(x1, (x19*2)); x148 = x1*x23; x149 = _br_mulhuu(x1, x23); x150 = x1*(x25*2); x151 = _br_mulhuu(x1, (x25*2)); x152 = x1*x26; x153 = _br_mulhuu(x1, x26); x154 = x1*(x27*2); x155 = _br_mulhuu(x1, (x27*2)); x156 = x1*x28; x157 = _br_mulhuu(x1, x28); x158 = x1*(x1*2); x159 = _br_mulhuu(x1, (x1*2)); x160 = x0*x12; x161 = _br_mulhuu(x0, x12); x162 = x0*x16; x163 = _br_mulhuu(x0, x16); x164 = x0*x19; x165 = _br_mulhuu(x0, x19); x166 = x0*x23; x167 = _br_mulhuu(x0, x23); x168 = x0*x25; x169 = _br_mulhuu(x0, x25); x170 = x0*x26; x171 = _br_mulhuu(x0, x26); x172 = x0*x27; x173 = _br_mulhuu(x0, x27); x174 = x0*x28; x175 = _br_mulhuu(x0, x28); x176 = x0*x29; x177 = _br_mulhuu(x0, x29); x178 = x0*x0; x179 = _br_mulhuu(x0, x0); x180 = x88+x78; x181 = (br_word_t)(x180>26)|(x199<<6); x201 = x199>>26; x202 = x196&0x3ffffff; x203 = x112+x92; x204 = (br_word_t)(x203>25)|(x366<<7); x368 = x366>>25; x369 = x363&0x1ffffff; x370 = x367+x343; x371 = (br_word_t)(x370>26)|(x373<<6); x375 = x373>>26; x376 = x370&0x3ffffff; x377 = x374+x323; x378 = (br_word_t)(x377>25)|(x380<<7); x382 = x380>>25; x383 = x377&0x1ffffff; x384 = x381+x307; x385 = (br_word_t)(x384>26)|(x387<<6); x389 = x387>>26; x390 = x384&0x3ffffff; x391 = x388+x287; x392 = (br_word_t)(x391>25)|(x394<<7); x396 = x394>>25; x397 = x391&0x1ffffff; x398 = x395+x271; x399 = (br_word_t)(x398>26)|(x401<<6); x403 = x401>>26; x404 = x398&0x3ffffff; x405 = x402+x251; x406 = (br_word_t)(x405>25)|(x408<<7); x410 = x408>>25; x411 = x405&0x1ffffff; x412 = x409+x235; x413 = (br_word_t)(x412>26)|(x415<<6); x417 = x415>>26; x418 = x412&0x3ffffff; x419 = x416+x215; x420 = (br_word_t)(x419>25)|(x422<<7); x424 = x422>>25; x425 = x419&0x1ffffff; x426 = x423*19; x427 = _br_mulhuu(x423, (br_word_t)19); x428 = x424*19; x429 = x427+x428; x430 = x202+x426; x431 = (br_word_t)(x430>26)|(x432<<6); x434 = x430&0x3ffffff; x435 = x433+x369; x436 = x435>>25; x437 = x435&0x1ffffff; x438 = x436+x376; x439 = x434; x440 = x437; x441 = x438; x442 = x383; x443 = x390; x444 = x397; x445 = x404; x446 = x411; x447 = x418; x448 = x425; /*skip*/ _br_store(out0+0, x439); _br_store(out0+4, x440); _br_store(out0+8, x441); _br_store(out0+12, x442); _br_store(out0+16, x443); _br_store(out0+20, x444); _br_store(out0+24, x445); _br_store(out0+28, x446); _br_store(out0+32, x447); _br_store(out0+36, x448); /*skip*/ } /* NOTE: The following wrapper function is not covered by Coq proofs */ static void fiat_25519_carry_square(uint32_t out1[10], const uint32_t arg1[10]) { internal_fiat_25519_carry_square((uintptr_t)out1, (uintptr_t)arg1); } /* * Input Bounds: * in0: [[0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000]] * Output Bounds: * out0: [[0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000]] */ static void internal_fiat_25519_carry(br_word_t out0, br_word_t in0) { br_word_t x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x20, x21, x12, x13, x14, x15, x16, x17, x18, x19, x22, x23, x24, x25, x26, x27, x28, x29, x30, x31, x32, x33, x34, x35, x36, x37, x38, x39, x40, x41; 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 = x0; x11 = (x10>>26)+x1; x12 = (x11>>25)+x2; x13 = (x12>>26)+x3; x14 = (x13>>25)+x4; x15 = (x14>>26)+x5; x16 = (x15>>25)+x6; x17 = (x16>>26)+x7; x18 = (x17>>25)+x8; x19 = (x18>>26)+x9; x20 = (x10&0x3ffffff)+((x19>>25)*19); x21 = (x20>>26)+(x11&0x1ffffff); x22 = x20&0x3ffffff; x23 = x21&0x1ffffff; x24 = (x21>>25)+(x12&0x3ffffff); x25 = x13&0x1ffffff; x26 = x14&0x3ffffff; x27 = x15&0x1ffffff; x28 = x16&0x3ffffff; x29 = x17&0x1ffffff; x30 = x18&0x3ffffff; x31 = x19&0x1ffffff; x32 = x22; x33 = x23; x34 = x24; x35 = x25; x36 = x26; x37 = x27; x38 = x28; x39 = x29; x40 = x30; x41 = x31; /*skip*/ _br_store(out0+0, x32); _br_store(out0+4, x33); _br_store(out0+8, x34); _br_store(out0+12, x35); _br_store(out0+16, x36); _br_store(out0+20, x37); _br_store(out0+24, x38); _br_store(out0+28, x39); _br_store(out0+32, x40); _br_store(out0+36, x41); /*skip*/ } /* NOTE: The following wrapper function is not covered by Coq proofs */ static void fiat_25519_carry(uint32_t out1[10], const uint32_t arg1[10]) { internal_fiat_25519_carry((uintptr_t)out1, (uintptr_t)arg1); } /* * Input Bounds: * in0: [[0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000]] * in1: [[0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000]] * Output Bounds: * out0: [[0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000]] */ static void internal_fiat_25519_add(br_word_t out0, br_word_t in0, br_word_t in1) { br_word_t x0, x10, x1, x11, x2, x12, x3, x13, x4, x14, x5, x15, x6, x16, x7, x17, x8, x18, x9, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x30, x31, x32, x33, x34, x35, x36, x37, x38, x39; 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 = x0+x10; x21 = x1+x11; x22 = x2+x12; x23 = x3+x13; x24 = x4+x14; x25 = x5+x15; x26 = x6+x16; x27 = x7+x17; x28 = x8+x18; x29 = x9+x19; x30 = x20; x31 = x21; x32 = x22; x33 = x23; x34 = x24; x35 = x25; x36 = x26; x37 = x27; x38 = x28; x39 = x29; /*skip*/ _br_store(out0+0, x30); _br_store(out0+4, x31); _br_store(out0+8, x32); _br_store(out0+12, x33); _br_store(out0+16, x34); _br_store(out0+20, x35); _br_store(out0+24, x36); _br_store(out0+28, x37); _br_store(out0+32, x38); _br_store(out0+36, x39); /*skip*/ } /* NOTE: The following wrapper function is not covered by Coq proofs */ static void fiat_25519_add(uint32_t out1[10], const uint32_t arg1[10], const uint32_t arg2[10]) { internal_fiat_25519_add((uintptr_t)out1, (uintptr_t)arg1, (uintptr_t)arg2); } /* * Input Bounds: * in0: [[0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000]] * in1: [[0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000]] * Output Bounds: * out0: [[0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000]] */ static void internal_fiat_25519_sub(br_word_t out0, br_word_t in0, br_word_t in1) { br_word_t x0, x10, x1, x11, x2, x12, x3, x13, x4, x14, x5, x15, x6, x16, x7, x17, x8, x18, x9, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x30, x31, x32, x33, x34, x35, x36, x37, x38, x39; 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 = ((br_word_t)0x7ffffda+x0)-x10; x21 = ((br_word_t)0x3fffffe +x1)-x11; x22 = ((br_word_t)0x7fffffe +x2)-x12; x23 = ((br_word_t)0x3fffffe +x3)-x13; x24 = ((br_word_t)0x7fffffe +x4)-x14; x25 = ((br_word_t)0x3fffffe +x5)-x15; x26 = ((br_word_t)0x7fffffe +x6)-x16; x27 = ((br_word_t)0x3fffffe +x7)-x17; x28 = ((br_word_t)0x7fffffe +x8)-x18; x29 = ((br_word_t)0x3fffffe +x9)-x19; x30 = x20; x31 = x21; x32 = x22; x33 = x23; x34 = x24; x35 = x25; x36 = x26; x37 = x27; x38 = x28; x39 = x29; /*skip*/ _br_store(out0+0, x30); _br_store(out0+4, x31); _br_store(out0+8, x32); _br_store(out0+12, x33); _br_store(out0+16, x34); _br_store(out0+20, x35); _br_store(out0+24, x36); _br_store(out0+28, x37); _br_store(out0+32, x38); _br_store(out0+36, x39); /*skip*/ } /* NOTE: The following wrapper function is not covered by Coq proofs */ static void fiat_25519_sub(uint32_t out1[10], const uint32_t arg1[10], const uint32_t arg2[10]) { internal_fiat_25519_sub((uintptr_t)out1, (uintptr_t)arg1, (uintptr_t)arg2); } /* * Input Bounds: * in0: [[0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000]] * Output Bounds: * out0: [[0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000]] */ static void internal_fiat_25519_opp(br_word_t out0, br_word_t in0) { br_word_t x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29; 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 = (br_word_t)0x7ffffda-x0; x11 = (br_word_t)0x3fffffe -x1; x12 = (br_word_t)0x7fffffe -x2; x13 = (br_word_t)0x3fffffe -x3; x14 = (br_word_t)0x7fffffe -x4; x15 = (br_word_t)0x3fffffe -x5; x16 = (br_word_t)0x7fffffe -x6; x17 = (br_word_t)0x3fffffe -x7; x18 = (br_word_t)0x7fffffe -x8; x19 = (br_word_t)0x3fffffe -x9; x20 = x10; x21 = x11; x22 = x12; x23 = x13; x24 = x14; x25 = x15; x26 = x16; x27 = x17; x28 = x18; x29 = x19; /*skip*/ _br_store(out0+0, x20); _br_store(out0+4, x21); _br_store(out0+8, x22); _br_store(out0+12, x23); _br_store(out0+16, x24); _br_store(out0+20, x25); _br_store(out0+24, x26); _br_store(out0+28, x27); _br_store(out0+32, x28); _br_store(out0+36, x29); /*skip*/ } /* NOTE: The following wrapper function is not covered by Coq proofs */ static void fiat_25519_opp(uint32_t out1[10], const uint32_t arg1[10]) { internal_fiat_25519_opp((uintptr_t)out1, (uintptr_t)arg1); } /* * Input Bounds: * in0: [0x0 ~> 0x1] * in1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] * in2: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] * Output Bounds: * out0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] */ static void internal_fiat_25519_selectznz(br_word_t out0, br_word_t in0, br_word_t in1, br_word_t in2) { br_word_t x10, x20, x0, x21, x11, x23, x1, x24, x12, x26, x2, x27, x13, x29, x3, x30, x14, x32, x4, x33, x15, x35, x5, x36, x16, x38, x6, x39, x17, x41, x7, x42, x18, x44, x8, x45, x19, x47, x9, x48, x22, x25, x28, x31, x34, x37, x40, x43, x46, x49, x50, x51, x52, x53, x54, x55, x56, x57, x58, x59; /*skip*/ x0 = _br_load(in1+0); x1 = _br_load(in1+4); x2 = _br_load(in1+8); x3 = _br_load(in1+12); x4 = _br_load(in1+16); x5 = _br_load(in1+20); x6 = _br_load(in1+24); x7 = _br_load(in1+28); x8 = _br_load(in1+32); x9 = _br_load(in1+36); /*skip*/ x10 = _br_load(in2+0); x11 = _br_load(in2+4); x12 = _br_load(in2+8); x13 = _br_load(in2+12); x14 = _br_load(in2+16); x15 = _br_load(in2+20); x16 = _br_load(in2+24); x17 = _br_load(in2+28); x18 = _br_load(in2+32); x19 = _br_load(in2+36); /*skip*/ /*skip*/ x20 = (0u-(br_word_t)1)+((br_word_t)(in0==(br_word_t)0)); x21 = x20^0xffffffff; x22 = (x10&x20)|(x0&x21); x23 = (0u-(br_word_t)1)+((br_word_t)(in0==(br_word_t)0)); x24 = x23^0xffffffff; x25 = (x11&x23)|(x1&x24); x26 = (0u-(br_word_t)1)+((br_word_t)(in0==(br_word_t)0)); x27 = x26^0xffffffff; x28 = (x12&x26)|(x2&x27); x29 = (0u-(br_word_t)1)+((br_word_t)(in0==(br_word_t)0)); x30 = x29^0xffffffff; x31 = (x13&x29)|(x3&x30); x32 = (0u-(br_word_t)1)+((br_word_t)(in0==(br_word_t)0)); x33 = x32^0xffffffff; x34 = (x14&x32)|(x4&x33); x35 = (0u-(br_word_t)1)+((br_word_t)(in0==(br_word_t)0)); x36 = x35^0xffffffff; x37 = (x15&x35)|(x5&x36); x38 = (0u-(br_word_t)1)+((br_word_t)(in0==(br_word_t)0)); x39 = x38^0xffffffff; x40 = (x16&x38)|(x6&x39); x41 = (0u-(br_word_t)1)+((br_word_t)(in0==(br_word_t)0)); x42 = x41^0xffffffff; x43 = (x17&x41)|(x7&x42); x44 = (0u-(br_word_t)1)+((br_word_t)(in0==(br_word_t)0)); x45 = x44^0xffffffff; x46 = (x18&x44)|(x8&x45); x47 = (0u-(br_word_t)1)+((br_word_t)(in0==(br_word_t)0)); x48 = x47^0xffffffff; x49 = (x19&x47)|(x9&x48); x50 = x22; x51 = x25; x52 = x28; x53 = x31; x54 = x34; x55 = x37; x56 = x40; x57 = x43; x58 = x46; x59 = x49; /*skip*/ _br_store(out0+0, x50); _br_store(out0+4, x51); _br_store(out0+8, x52); _br_store(out0+12, x53); _br_store(out0+16, x54); _br_store(out0+20, x55); _br_store(out0+24, x56); _br_store(out0+28, x57); _br_store(out0+32, x58); _br_store(out0+36, x59); /*skip*/ } /* NOTE: The following wrapper function is not covered by Coq proofs */ static void fiat_25519_selectznz(uint32_t out1[10], uint8_t arg1, const uint32_t arg2[10], const uint32_t arg3[10]) { internal_fiat_25519_selectznz((uintptr_t)out1, (uintptr_t)arg1, (uintptr_t)arg2, (uintptr_t)arg3); } /* * Input Bounds: * in0: [[0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000]] * Output Bounds: * out0: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0x7f]] */ static void internal_fiat_25519_to_bytes(br_word_t out0, br_word_t in0) { br_word_t x0, x11, x10, x1, x13, x14, x15, x17, x18, x16, x2, x20, x21, x22, x24, x25, x23, x3, x27, x28, x29, x31, x32, x30, x4, x34, x35, x36, x38, x39, x37, x5, x41, x42, x43, x45, x46, x44, x6, x48, x49, x50, x52, x53, x51, x7, x55, x56, x57, x59, x60, x58, x8, x62, x63, x64, x66, x67, x65, x9, x69, x70, x71, x73, x74, x72, x76, x12, x78, x79, x81, x19, x82, x83, x85, x84, x86, x88, x26, x89, x90, x92, x91, x93, x95, x33, x96, x97, x99, x98, x100, x102, x40, x103, x104, x106, x105, x107, x109, x47, x110, x111, x113, x112, x114, x116, x54, x117, x118, x120, x119, x121, x123, x61, x124, x125, x127, x126, x128, x130, x68, x131, x132, x134, x133, x135, x137, x75, x138, x77, x139, x140, x136, x129, x122, x108, x101, x94, x87, x80, x150, x152, x148, x154, x155, x157, x159, x147, x161, x162, x164, x166, x146, x168, x169, x171, x173, x145, x175, x176, x178, x180, x115, x184, x186, x144, x188, x189, x191, x193, x143, x195, x196, x198, x200, x142, x202, x203, x205, x207, x141, x209, x210, x212, x214, x149, x151, x153, x156, x158, x160, x163, x165, x167, x170, x172, x174, x177, x179, x181, x182, x183, x185, x187, x190, x192, x194, x197, x199, x201, x204, x206, x208, x211, x213, x215, x216, x217, x218, x219, x220, x221, x222, x223, x224, x225, x226, x227, x228, x229, x230, x231, x232, x233, x234, x235, x236, x237, x238, x239, x240, x241, x242, x243, x244, x245, x246, x247, x248; 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 = x0-0x3ffffed; x11 = (br_word_t)(x0>26); x14 = x1-0x1ffffff; x15 = (br_word_t)(x1>25); x21 = x2-0x3ffffff; x22 = (br_word_t)(x2>26); x28 = x3-0x1ffffff; x29 = (br_word_t)(x3>25); x35 = x4-0x3ffffff; x36 = (br_word_t)(x4>26); x42 = x5-0x1ffffff; x43 = (br_word_t)(x5>25); x49 = x6-0x3ffffff; x50 = (br_word_t)(x6>26); x56 = x7-0x1ffffff; x57 = (br_word_t)(x7>25); x63 = x8-0x3ffffff; x64 = (br_word_t)(x8>26); x70 = x9-0x1ffffff; x71 = (br_word_t)(x9>25); x77 = (0u-(br_word_t)1)+((br_word_t)(x76==(br_word_t)0)); x78 = x12+(x77&0x3ffffed); x79 = (br_word_t)(x78>26)+(x79<<6); x82 = x81+x19; x83 = (br_word_t)(x82>25)+(x86<<7); x89 = x88+x26; x90 = (br_word_t)(x89>26)+(x93<<6); x96 = x95+x33; x97 = (br_word_t)(x96>25)+(x100<<7); x103 = x102+x40; x104 = (br_word_t)(x103>26)+(x107<<6); x110 = x109+x47; x111 = (br_word_t)(x110>25)+(x114<<7); x117 = x116+x54; x118 = (br_word_t)(x117>26)+(x121<<6); x124 = x123+x61; x125 = (br_word_t)(x124>25)+(x128<<7); x131 = x130+x68; x132 = (br_word_t)(x131>26)+(x135<<6); x138 = x137+x75; x139 = x138+(x77&0x1ffffff); x140 = x139&0x1ffffff; x141 = x140<<6; x142 = x136<<4; x143 = x129<<3; x144 = x122*2; x145 = x108<<6; x146 = x101<<5; x147 = x94<<3; x148 = x87<<2; x149 = x80&0xff; x150 = x80>>8; x151 = x150&0xff; x152 = x150>>8; x153 = x152&0xff; x154 = x152>>8; x155 = x148+x154; x156 = x155&0xff; x157 = x155>>8; x158 = x157&0xff; x159 = x157>>8; x160 = x159&0xff; x161 = x159>>8; x162 = x147+x161; x163 = x162&0xff; x164 = x162>>8; x165 = x164&0xff; x166 = x164>>8; x167 = x166&0xff; x168 = x166>>8; x169 = x146+x168; x170 = x169&0xff; x171 = x169>>8; x172 = x171&0xff; x173 = x171>>8; x174 = x173&0xff; x175 = x173>>8; x176 = x145+x175; x177 = x176&0xff; x178 = x176>>8; x179 = x178&0xff; x180 = x178>>8; x181 = x180&0xff; x182 = x180>>8; x183 = x115&0xff; x184 = x115>>8; x185 = x184&0xff; x186 = x184>>8; x187 = x186&0xff; x188 = x186>>8; x189 = x144+x188; x190 = x189&0xff; x191 = x189>>8; x192 = x191&0xff; x193 = x191>>8; x194 = x193&0xff; x195 = x193>>8; x196 = x143+x195; x197 = x196&0xff; x198 = x196>>8; x199 = x198&0xff; x200 = x198>>8; x201 = x200&0xff; x202 = x200>>8; x203 = x142+x202; x204 = x203&0xff; x205 = x203>>8; x206 = x205&0xff; x207 = x205>>8; x208 = x207&0xff; x209 = x207>>8; x210 = x141+x209; x211 = x210&0xff; x212 = x210>>8; x213 = x212&0xff; x214 = x212>>8; x215 = x214&0xff; x216 = x214>>8; x217 = x149; x218 = x151; x219 = x153; x220 = x156; x221 = x158; x222 = x160; x223 = x163; x224 = x165; x225 = x167; x226 = x170; x227 = x172; x228 = x174; x229 = x177; x230 = x179; x231 = x181; x232 = x182; x233 = x183; x234 = x185; x235 = x187; x236 = x190; x237 = x192; x238 = x194; x239 = x197; x240 = x199; x241 = x201; x242 = x204; x243 = x206; x244 = x208; x245 = x211; x246 = x213; x247 = x215; x248 = x216; /*skip*/ _br_store1(out0+0, x217); _br_store1(out0+1, x218); _br_store1(out0+2, x219); _br_store1(out0+3, x220); _br_store1(out0+4, x221); _br_store1(out0+5, x222); _br_store1(out0+6, x223); _br_store1(out0+7, x224); _br_store1(out0+8, x225); _br_store1(out0+9, x226); _br_store1(out0+10, x227); _br_store1(out0+11, x228); _br_store1(out0+12, x229); _br_store1(out0+13, x230); _br_store1(out0+14, x231); _br_store1(out0+15, x232); _br_store1(out0+16, x233); _br_store1(out0+17, x234); _br_store1(out0+18, x235); _br_store1(out0+19, x236); _br_store1(out0+20, x237); _br_store1(out0+21, x238); _br_store1(out0+22, x239); _br_store1(out0+23, x240); _br_store1(out0+24, x241); _br_store1(out0+25, x242); _br_store1(out0+26, x243); _br_store1(out0+27, x244); _br_store1(out0+28, x245); _br_store1(out0+29, x246); _br_store1(out0+30, x247); _br_store1(out0+31, x248); /*skip*/ } /* NOTE: The following wrapper function is not covered by Coq proofs */ static void fiat_25519_to_bytes(uint8_t out1[32], const uint32_t arg1[10]) { internal_fiat_25519_to_bytes((uintptr_t)out1, (uintptr_t)arg1); } /* * Input Bounds: * in0: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0x7f]] * Output Bounds: * out0: [[0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000]] */ static void internal_fiat_25519_from_bytes(br_word_t out0, br_word_t in0) { br_word_t x31, x30, x29, x28, x27, x26, x25, x24, x23, x22, x21, x20, x19, x18, x17, x16, x15, x14, x13, x12, x11, x10, x9, x8, x7, x6, x5, x4, x3, x2, x1, x0, x62, x63, x61, x64, x60, x65, x66, x59, x68, x58, x69, x57, x70, x71, x56, x73, x55, x74, x54, x75, x76, x53, x78, x52, x79, x51, x80, x81, x50, x83, x49, x84, x48, x85, x46, x47, x45, x87, x44, x88, x89, x43, x91, x42, x92, x41, x93, x94, x40, x96, x39, x97, x38, x98, x99, x37, x101, x36, x102, x35, x103, x104, x34, x106, x33, x107, x32, x108, x67, x72, x77, x82, x86, x90, x95, x100, x105, x109, x110, x111, x112, x113, x114, x115, x116, x117, x118, x119; x0 = _br_load1(in0+0); x1 = _br_load1(in0+1); x2 = _br_load1(in0+2); x3 = _br_load1(in0+3); x4 = _br_load1(in0+4); x5 = _br_load1(in0+5); x6 = _br_load1(in0+6); x7 = _br_load1(in0+7); x8 = _br_load1(in0+8); x9 = _br_load1(in0+9); x10 = _br_load1(in0+10); x11 = _br_load1(in0+11); x12 = _br_load1(in0+12); x13 = _br_load1(in0+13); x14 = _br_load1(in0+14); x15 = _br_load1(in0+15); x16 = _br_load1(in0+16); x17 = _br_load1(in0+17); x18 = _br_load1(in0+18); x19 = _br_load1(in0+19); x20 = _br_load1(in0+20); x21 = _br_load1(in0+21); x22 = _br_load1(in0+22); x23 = _br_load1(in0+23); x24 = _br_load1(in0+24); x25 = _br_load1(in0+25); x26 = _br_load1(in0+26); x27 = _br_load1(in0+27); x28 = _br_load1(in0+28); x29 = _br_load1(in0+29); x30 = _br_load1(in0+30); x31 = _br_load1(in0+31); /*skip*/ /*skip*/ x32 = x31<<18; x33 = x30<<10; x34 = x29<<2; x35 = x28<<20; x36 = x27<<12; x37 = x26<<4; x38 = x25<<21; x39 = x24<<13; x40 = x23<<5; x41 = x22<<23; x42 = x21<<15; x43 = x20<<7; x44 = x19<<24; x45 = x18<<16; x46 = x17<<8; x47 = x16; x48 = x15<<18; x49 = x14<<10; x50 = x13<<2; x51 = x12<<19; x52 = x11<<11; x53 = x10<<3; x54 = x9<<21; x55 = x8<<13; x56 = x7<<5; x57 = x6<<22; x58 = x5<<14; x59 = x4<<6; x60 = x3<<24; x61 = x2<<16; x62 = x1<<8; x63 = x0; x64 = x62+x63; x65 = x61+x64; x66 = x60+x65; x67 = x66&0x3ffffff; x68 = x66>>26; x69 = x59+x68; x70 = x58+x69; x71 = x57+x70; x72 = x71&0x1ffffff; x73 = x71>>25; x74 = x56+x73; x75 = x55+x74; x76 = x54+x75; x77 = x76&0x3ffffff; x78 = x76>>26; x79 = x53+x78; x80 = x52+x79; x81 = x51+x80; x82 = x81&0x1ffffff; x83 = x81>>25; x84 = x50+x83; x85 = x49+x84; x86 = x48+x85; x87 = x46+x47; x88 = x45+x87; x89 = x44+x88; x90 = x89&0x1ffffff; x91 = x89>>25; x92 = x43+x91; x93 = x42+x92; x94 = x41+x93; x95 = x94&0x3ffffff; x96 = x94>>26; x97 = x40+x96; x98 = x39+x97; x99 = x38+x98; x100 = x99&0x1ffffff; x101 = x99>>25; x102 = x37+x101; x103 = x36+x102; x104 = x35+x103; x105 = x104&0x3ffffff; x106 = x104>>26; x107 = x34+x106; x108 = x33+x107; x109 = x32+x108; x110 = x67; x111 = x72; x112 = x77; x113 = x82; x114 = x86; x115 = x90; x116 = x95; x117 = x100; x118 = x105; x119 = x109; /*skip*/ _br_store(out0+0, x110); _br_store(out0+4, x111); _br_store(out0+8, x112); _br_store(out0+12, x113); _br_store(out0+16, x114); _br_store(out0+20, x115); _br_store(out0+24, x116); _br_store(out0+28, x117); _br_store(out0+32, x118); _br_store(out0+36, x119); /*skip*/ } /* NOTE: The following wrapper function is not covered by Coq proofs */ static void fiat_25519_from_bytes(uint32_t out1[10], const uint8_t arg1[32]) { internal_fiat_25519_from_bytes((uintptr_t)out1, (uintptr_t)arg1); } /* * Input Bounds: * in0: [[0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000]] * Output Bounds: * out0: [[0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000]] */ static void internal_fiat_25519_relax(br_word_t out0, br_word_t in0) { br_word_t x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29; 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 = x0; x11 = x1; x12 = x2; x13 = x3; x14 = x4; x15 = x5; x16 = x6; x17 = x7; x18 = x8; x19 = x9; x20 = x10; x21 = x11; x22 = x12; x23 = x13; x24 = x14; x25 = x15; x26 = x16; x27 = x17; x28 = x18; x29 = x19; /*skip*/ _br_store(out0+0, x20); _br_store(out0+4, x21); _br_store(out0+8, x22); _br_store(out0+12, x23); _br_store(out0+16, x24); _br_store(out0+20, x25); _br_store(out0+24, x26); _br_store(out0+28, x27); _br_store(out0+32, x28); _br_store(out0+36, x29); /*skip*/ } /* NOTE: The following wrapper function is not covered by Coq proofs */ static void fiat_25519_relax(uint32_t out1[10], const uint32_t arg1[10]) { internal_fiat_25519_relax((uintptr_t)out1, (uintptr_t)arg1); } /* * Input Bounds: * in0: [[0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000], [0x0 ~> 0xc000000], [0x0 ~> 0x6000000]] * Output Bounds: * out0: [[0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000], [0x0 ~> 0x4000000], [0x0 ~> 0x2000000]] */ static void internal_fiat_25519_carry_scmul_121666(br_word_t out0, br_word_t in0) { br_word_t x9, x8, x7, x6, x5, x4, x3, x2, x1, x0, x29, x28, x26, x30, x33, x27, x34, x32, x24, x35, x38, x25, x39, x37, x22, x40, x43, x23, x44, x42, x20, x45, x48, x21, x49, x47, x18, x50, x53, x19, x54, x52, x16, x55, x58, x17, x59, x57, x14, x60, x63, x15, x64, x62, x12, x65, x68, x13, x69, x67, x10, x70, x73, x11, x74, x72, x75, x31, x77, x78, x79, x36, x81, x82, x41, x80, x83, x84, x46, x51, x56, x61, x66, x71, x76, x85, x86, x87, x88, x89, x90, x91, x92, x93, x94; 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 = (br_word_t)0x1db42*x9; x11 = _br_mulhuu((br_word_t)0x1db42, x9); x12 = (br_word_t)0x1db42*x8; x13 = _br_mulhuu((br_word_t)0x1db42, x8); x14 = (br_word_t)0x1db42*x7; x15 = _br_mulhuu((br_word_t)0x1db42, x7); x16 = (br_word_t)0x1db42*x6; x17 = _br_mulhuu((br_word_t)0x1db42, x6); x18 = (br_word_t)0x1db42*x5; x19 = _br_mulhuu((br_word_t)0x1db42, x5); x20 = (br_word_t)0x1db42*x4; x21 = _br_mulhuu((br_word_t)0x1db42, x4); x22 = (br_word_t)0x1db42*x3; x23 = _br_mulhuu((br_word_t)0x1db42, x3); x24 = (br_word_t)0x1db42*x2; x25 = _br_mulhuu((br_word_t)0x1db42, x2); x26 = (br_word_t)0x1db42*x1; x27 = _br_mulhuu((br_word_t)0x1db42, x1); x28 = (br_word_t)0x1db42*x0; x29 = _br_mulhuu((br_word_t)0x1db42, x0); x30 = (x28>>26)|(x29<<6); x31 = x28&0x3ffffff; x32 = x30+x26; x33 = (br_word_t)(x32>25)|(x34<<7); x36 = x32&0x1ffffff; x37 = x35+x24; x38 = (br_word_t)(x37>26)|(x39<<6); x41 = x37&0x3ffffff; x42 = x40+x22; x43 = (br_word_t)(x42>25)|(x44<<7); x46 = x42&0x1ffffff; x47 = x45+x20; x48 = (br_word_t)(x47>26)|(x49<<6); x51 = x47&0x3ffffff; x52 = x50+x18; x53 = (br_word_t)(x52>25)|(x54<<7); x56 = x52&0x1ffffff; x57 = x55+x16; x58 = (br_word_t)(x57>26)|(x59<<6); x61 = x57&0x3ffffff; x62 = x60+x14; x63 = (br_word_t)(x62>25)|(x64<<7); x66 = x62&0x1ffffff; x67 = x65+x12; x68 = (br_word_t)(x67>26)|(x69<<6); x71 = x67&0x3ffffff; x72 = x70+x10; x73 = (br_word_t)(x72>25)|(x74<<7); x76 = x72&0x1ffffff; x77 = x75*19; x78 = x31+x77; x79 = x78>>26; x80 = x78&0x3ffffff; x81 = x79+x36; x82 = x81>>25; x83 = x81&0x1ffffff; x84 = x82+x41; x85 = x80; x86 = x83; x87 = x84; x88 = x46; x89 = x51; x90 = x56; x91 = x61; x92 = x66; x93 = x71; x94 = x76; /*skip*/ _br_store(out0+0, x85); _br_store(out0+4, x86); _br_store(out0+8, x87); _br_store(out0+12, x88); _br_store(out0+16, x89); _br_store(out0+20, x90); _br_store(out0+24, x91); _br_store(out0+28, x92); _br_store(out0+32, x93); _br_store(out0+36, x94); /*skip*/ } /* NOTE: The following wrapper function is not covered by Coq proofs */ static void fiat_25519_carry_scmul_121666(uint32_t out1[10], const uint32_t arg1[10]) { internal_fiat_25519_carry_scmul_121666((uintptr_t)out1, (uintptr_t)arg1); }