28 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_1_) +
29 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_1_);
30 const auto bitwise_IC_BYTE_2 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_2_) +
31 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_2_) +
32 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_2_);
33 const auto bitwise_IC_BYTE_3 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_3_) +
34 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_3_) +
35 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_3_);
36 const auto bitwise_IC_BYTE_4 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_4_) +
37 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_4_) +
38 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_4_);
39 const auto bitwise_IC_BYTE_5 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_5_) +
40 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_5_) +
41 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_5_);
42 const auto bitwise_IC_BYTE_6 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_6_) +
43 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_6_) +
44 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_6_);
45 const auto bitwise_IC_BYTE_7 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_7_) +
46 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_7_) +
47 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_7_);
48 const auto bitwise_IC_BYTE_8 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_8_) +
49 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_8_) +
50 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_8_);
51 const auto bitwise_IC_BYTE_9 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_9_) +
52 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_9_) +
53 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_9_);
54 const auto bitwise_IC_BYTE_10 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_10_) +
55 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_10_) +
56 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_10_);
57 const auto bitwise_IC_BYTE_11 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_11_) +
58 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_11_) +
59 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_11_);
60 const auto bitwise_IC_BYTE_12 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_12_) +
61 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_12_) +
62 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_12_);
63 const auto bitwise_IC_BYTE_13 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_13_) +
64 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_13_) +
65 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_13_);
66 const auto bitwise_IC_BYTE_14 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_14_) +
67 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_14_) +
68 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_14_);
69 const auto bitwise_IC_BYTE_15 = in.get(C::bitwise_sel_and) * in.get(C::bitwise_output_and_15_) +
70 in.get(C::bitwise_sel_or) * in.get(C::bitwise_output_or_15_) +
71 in.get(C::bitwise_sel_xor) * in.get(C::bitwise_output_xor_15_);
74 using View =
typename std::tuple_element_t<0, ContainerOverSubrelations>::View;
75 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel)) * (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel)));
79 using View =
typename std::tuple_element_t<1, ContainerOverSubrelations>::View;
80 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel_keccak)) *
81 (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_keccak)));
85 using View =
typename std::tuple_element_t<2, ContainerOverSubrelations>::View;
86 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel_sha256)) *
87 (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_sha256)));
91 using View =
typename std::tuple_element_t<3, ContainerOverSubrelations>::View;
92 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel_simd_64)) *
93 (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_simd_64)));
97 using View =
typename std::tuple_element_t<4, ContainerOverSubrelations>::View;
98 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel_bitwise_opcode)) *
99 (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_bitwise_opcode)));
103 using View =
typename std::tuple_element_t<5, ContainerOverSubrelations>::View;
105 (
static_cast<View
>(in.get(C::bitwise_sel_keccak)) +
static_cast<View
>(in.get(C::bitwise_sel_sha256)) +
106 static_cast<View
>(in.get(C::bitwise_sel_simd_64)) +
107 static_cast<View
>(in.get(C::bitwise_sel_bitwise_opcode))) *
108 (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel)));
112 using View =
typename std::tuple_element_t<6, ContainerOverSubrelations>::View;
113 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel_tag_ff_err)) *
114 (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_tag_ff_err)));
118 using View =
typename std::tuple_element_t<7, ContainerOverSubrelations>::View;
119 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel_tag_mismatch_err)) *
120 (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_tag_mismatch_err)));
124 using View =
typename std::tuple_element_t<8, ContainerOverSubrelations>::View;
125 auto tmp = (
static_cast<View
>(in.get(C::bitwise_err)) -
126 (
FF(1) - (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_tag_mismatch_err))) *
127 (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_tag_ff_err)))));
131 using View =
typename std::tuple_element_t<9, ContainerOverSubrelations>::View;
132 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel)) *
133 ((
CView(bitwise_TAG_A_DIFF) * (
static_cast<View
>(in.get(C::bitwise_sel_tag_ff_err)) *
134 (
FF(1) -
static_cast<View
>(in.get(C::bitwise_tag_a_inv))) +
135 static_cast<View
>(in.get(C::bitwise_tag_a_inv))) -
137 static_cast<View
>(in.get(C::bitwise_sel_tag_ff_err)));
141 using View =
typename std::tuple_element_t<10, ContainerOverSubrelations>::View;
142 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel)) *
143 (
CView(bitwise_TAG_AB_DIFF) * ((
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_tag_mismatch_err))) *
144 (
FF(1) -
static_cast<View
>(in.get(C::bitwise_tag_ab_diff_inv))) +
145 static_cast<View
>(in.get(C::bitwise_tag_ab_diff_inv))) -
146 static_cast<View
>(in.get(C::bitwise_sel_tag_mismatch_err)));
150 using View =
typename std::tuple_element_t<11, ContainerOverSubrelations>::View;
151 auto tmp = (
static_cast<View
>(in.get(C::bitwise_sel_compute)) -
152 static_cast<View
>(in.get(C::bitwise_sel)) * (
FF(1) -
static_cast<View
>(in.get(C::bitwise_err))));
156 using View =
typename std::tuple_element_t<12, ContainerOverSubrelations>::View;
157 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel_compute)) *
158 (
static_cast<View
>(in.get(C::bitwise_tag_c)) -
static_cast<View
>(in.get(C::bitwise_tag_a)));
162 using View =
typename std::tuple_element_t<13, ContainerOverSubrelations>::View;
164 (
static_cast<View
>(in.get(C::bitwise_sel_keccak)) +
static_cast<View
>(in.get(C::bitwise_sel_sha256)) +
165 static_cast<View
>(in.get(C::bitwise_sel_simd_64))) *
166 static_cast<View
>(in.get(C::bitwise_err));
170 using View =
typename std::tuple_element_t<14, ContainerOverSubrelations>::View;
172 static_cast<View
>(in.get(C::bitwise_sel_u16)) * (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_u16)));
176 using View =
typename std::tuple_element_t<15, ContainerOverSubrelations>::View;
178 static_cast<View
>(in.get(C::bitwise_sel_u32)) * (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_u32)));
182 using View =
typename std::tuple_element_t<16, ContainerOverSubrelations>::View;
184 static_cast<View
>(in.get(C::bitwise_sel_u64)) * (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_u64)));
188 using View =
typename std::tuple_element_t<17, ContainerOverSubrelations>::View;
190 static_cast<View
>(in.get(C::bitwise_sel_u128)) * (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_u128)));
194 using View =
typename std::tuple_element_t<18, ContainerOverSubrelations>::View;
195 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel_simd_64)) *
196 (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_u128)));
200 using View =
typename std::tuple_element_t<19, ContainerOverSubrelations>::View;
201 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel_compute)) *
202 (((((
static_cast<View
>(in.get(C::bitwise_tag_byte_len)) -
FF(1)) -
203 static_cast<View
>(in.get(C::bitwise_sel_u16))) -
204 static_cast<View
>(in.get(C::bitwise_sel_u32)) *
FF(2)) -
205 static_cast<View
>(in.get(C::bitwise_sel_u64)) *
FF(4)) -
206 static_cast<View
>(in.get(C::bitwise_sel_u128)) *
FF(8));
210 using View =
typename std::tuple_element_t<20, ContainerOverSubrelations>::View;
212 static_cast<View
>(in.get(C::bitwise_sel_and)) * (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_and)));
216 using View =
typename std::tuple_element_t<21, ContainerOverSubrelations>::View;
218 static_cast<View
>(in.get(C::bitwise_sel_or)) * (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_or)));
222 using View =
typename std::tuple_element_t<22, ContainerOverSubrelations>::View;
224 static_cast<View
>(in.get(C::bitwise_sel_xor)) * (
FF(1) -
static_cast<View
>(in.get(C::bitwise_sel_xor)));
228 using View =
typename std::tuple_element_t<23, ContainerOverSubrelations>::View;
229 auto tmp = (
static_cast<View
>(in.get(C::bitwise_sel_compute)) *
static_cast<View
>(in.get(C::bitwise_op_id)) -
230 (
static_cast<View
>(in.get(C::bitwise_sel_and)) *
CView(constants_AVM_BITWISE_AND_OP_ID) +
231 static_cast<View
>(in.get(C::bitwise_sel_or)) *
CView(constants_AVM_BITWISE_OR_OP_ID) +
232 static_cast<View
>(in.get(C::bitwise_sel_xor)) *
CView(constants_AVM_BITWISE_XOR_OP_ID)));
236 using View =
typename std::tuple_element_t<24, ContainerOverSubrelations>::View;
238 static_cast<View
>(in.get(C::bitwise_sel_compute)) *
239 (((((
static_cast<View
>(in.get(C::bitwise_ia)) -
static_cast<View
>(in.get(C::bitwise_ia_byte_0_))) -
240 static_cast<View
>(in.get(C::bitwise_sel_u16)) *
static_cast<View
>(in.get(C::bitwise_ia_byte_1_)) *
242 static_cast<View
>(in.get(C::bitwise_sel_u32)) *
243 (
static_cast<View
>(in.get(C::bitwise_ia_byte_2_)) *
FF(65536) +
244 static_cast<View
>(in.get(C::bitwise_ia_byte_3_)) *
FF(16777216))) -
245 static_cast<View
>(in.get(C::bitwise_sel_u64)) *
246 (
static_cast<View
>(in.get(C::bitwise_ia_byte_4_)) *
FF(4294967296UL) +
247 static_cast<View
>(in.get(C::bitwise_ia_byte_5_)) *
FF(1099511627776UL) +
248 static_cast<View
>(in.get(C::bitwise_ia_byte_6_)) *
FF(281474976710656UL) +
249 static_cast<View
>(in.get(C::bitwise_ia_byte_7_)) *
FF(72057594037927936UL))) -
250 (
static_cast<View
>(in.get(C::bitwise_sel_u128)) -
static_cast<View
>(in.get(C::bitwise_sel_simd_64))) *
251 (
static_cast<View
>(in.get(C::bitwise_ia_byte_8_)) *
FF(
uint256_t{ 0UL, 1UL, 0UL, 0UL }) +
252 static_cast<View
>(in.get(C::bitwise_ia_byte_9_)) *
FF(
uint256_t{ 0UL, 256UL, 0UL, 0UL }) +
253 static_cast<View
>(in.get(C::bitwise_ia_byte_10_)) *
FF(
uint256_t{ 0UL, 65536UL, 0UL, 0UL }) +
254 static_cast<View
>(in.get(C::bitwise_ia_byte_11_)) *
FF(
uint256_t{ 0UL, 16777216UL, 0UL, 0UL }) +
255 static_cast<View
>(in.get(C::bitwise_ia_byte_12_)) *
FF(
uint256_t{ 0UL, 4294967296UL, 0UL, 0UL }) +
256 static_cast<View
>(in.get(C::bitwise_ia_byte_13_)) *
FF(
uint256_t{ 0UL, 1099511627776UL, 0UL, 0UL }) +
257 static_cast<View
>(in.get(C::bitwise_ia_byte_14_)) *
258 FF(
uint256_t{ 0UL, 281474976710656UL, 0UL, 0UL }) +
259 static_cast<View
>(in.get(C::bitwise_ia_byte_15_)) *
260 FF(
uint256_t{ 0UL, 72057594037927936UL, 0UL, 0UL })));
264 using View =
typename std::tuple_element_t<25, ContainerOverSubrelations>::View;
266 static_cast<View
>(in.get(C::bitwise_sel_compute)) *
267 (((((
static_cast<View
>(in.get(C::bitwise_ib)) -
static_cast<View
>(in.get(C::bitwise_ib_byte_0_))) -
268 static_cast<View
>(in.get(C::bitwise_sel_u16)) *
static_cast<View
>(in.get(C::bitwise_ib_byte_1_)) *
270 static_cast<View
>(in.get(C::bitwise_sel_u32)) *
271 (
static_cast<View
>(in.get(C::bitwise_ib_byte_2_)) *
FF(65536) +
272 static_cast<View
>(in.get(C::bitwise_ib_byte_3_)) *
FF(16777216))) -
273 static_cast<View
>(in.get(C::bitwise_sel_u64)) *
274 (
static_cast<View
>(in.get(C::bitwise_ib_byte_4_)) *
FF(4294967296UL) +
275 static_cast<View
>(in.get(C::bitwise_ib_byte_5_)) *
FF(1099511627776UL) +
276 static_cast<View
>(in.get(C::bitwise_ib_byte_6_)) *
FF(281474976710656UL) +
277 static_cast<View
>(in.get(C::bitwise_ib_byte_7_)) *
FF(72057594037927936UL))) -
278 (
static_cast<View
>(in.get(C::bitwise_sel_u128)) -
static_cast<View
>(in.get(C::bitwise_sel_simd_64))) *
279 (
static_cast<View
>(in.get(C::bitwise_ib_byte_8_)) *
FF(
uint256_t{ 0UL, 1UL, 0UL, 0UL }) +
280 static_cast<View
>(in.get(C::bitwise_ib_byte_9_)) *
FF(
uint256_t{ 0UL, 256UL, 0UL, 0UL }) +
281 static_cast<View
>(in.get(C::bitwise_ib_byte_10_)) *
FF(
uint256_t{ 0UL, 65536UL, 0UL, 0UL }) +
282 static_cast<View
>(in.get(C::bitwise_ib_byte_11_)) *
FF(
uint256_t{ 0UL, 16777216UL, 0UL, 0UL }) +
283 static_cast<View
>(in.get(C::bitwise_ib_byte_12_)) *
FF(
uint256_t{ 0UL, 4294967296UL, 0UL, 0UL }) +
284 static_cast<View
>(in.get(C::bitwise_ib_byte_13_)) *
FF(
uint256_t{ 0UL, 1099511627776UL, 0UL, 0UL }) +
285 static_cast<View
>(in.get(C::bitwise_ib_byte_14_)) *
286 FF(
uint256_t{ 0UL, 281474976710656UL, 0UL, 0UL }) +
287 static_cast<View
>(in.get(C::bitwise_ib_byte_15_)) *
288 FF(
uint256_t{ 0UL, 72057594037927936UL, 0UL, 0UL })));
292 using View =
typename std::tuple_element_t<26, ContainerOverSubrelations>::View;
294 static_cast<View
>(in.get(C::bitwise_sel_compute)) *
295 (((((
static_cast<View
>(in.get(C::bitwise_ic)) -
CView(bitwise_IC_BYTE_0)) -
296 static_cast<View
>(in.get(C::bitwise_sel_u16)) *
CView(bitwise_IC_BYTE_1) *
FF(256)) -
297 static_cast<View
>(in.get(C::bitwise_sel_u32)) *
298 (
CView(bitwise_IC_BYTE_2) *
FF(65536) +
CView(bitwise_IC_BYTE_3) *
FF(16777216))) -
299 static_cast<View
>(in.get(C::bitwise_sel_u64)) *
300 (
CView(bitwise_IC_BYTE_4) *
FF(4294967296UL) +
CView(bitwise_IC_BYTE_5) *
FF(1099511627776UL) +
301 CView(bitwise_IC_BYTE_6) *
FF(281474976710656UL) +
302 CView(bitwise_IC_BYTE_7) *
FF(72057594037927936UL))) -
303 (
static_cast<View
>(in.get(C::bitwise_sel_u128)) -
static_cast<View
>(in.get(C::bitwise_sel_simd_64))) *
309 CView(bitwise_IC_BYTE_13) *
FF(
uint256_t{ 0UL, 1099511627776UL, 0UL, 0UL }) +
310 CView(bitwise_IC_BYTE_14) *
FF(
uint256_t{ 0UL, 281474976710656UL, 0UL, 0UL }) +
311 CView(bitwise_IC_BYTE_15) *
FF(
uint256_t{ 0UL, 72057594037927936UL, 0UL, 0UL })));
315 using View =
typename std::tuple_element_t<27, ContainerOverSubrelations>::View;
316 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel_compute)) *
317 (
static_cast<View
>(in.get(C::bitwise_ia_simd)) -
318 static_cast<View
>(in.get(C::bitwise_sel_simd_64)) *
319 (
static_cast<View
>(in.get(C::bitwise_ia_byte_8_)) +
320 static_cast<View
>(in.get(C::bitwise_ia_byte_9_)) *
FF(256) +
321 static_cast<View
>(in.get(C::bitwise_ia_byte_10_)) *
FF(65536) +
322 static_cast<View
>(in.get(C::bitwise_ia_byte_11_)) *
FF(16777216) +
323 static_cast<View
>(in.get(C::bitwise_ia_byte_12_)) *
FF(4294967296UL) +
324 static_cast<View
>(in.get(C::bitwise_ia_byte_13_)) *
FF(1099511627776UL) +
325 static_cast<View
>(in.get(C::bitwise_ia_byte_14_)) *
FF(281474976710656UL) +
326 static_cast<View
>(in.get(C::bitwise_ia_byte_15_)) *
FF(72057594037927936UL)));
330 using View =
typename std::tuple_element_t<28, ContainerOverSubrelations>::View;
331 auto tmp =
static_cast<View
>(in.get(C::bitwise_sel_compute)) *
332 (
static_cast<View
>(in.get(C::bitwise_ib_simd)) -
333 static_cast<View
>(in.get(C::bitwise_sel_simd_64)) *
334 (
static_cast<View
>(in.get(C::bitwise_ib_byte_8_)) +
335 static_cast<View
>(in.get(C::bitwise_ib_byte_9_)) *
FF(256) +
336 static_cast<View
>(in.get(C::bitwise_ib_byte_10_)) *
FF(65536) +
337 static_cast<View
>(in.get(C::bitwise_ib_byte_11_)) *
FF(16777216) +
338 static_cast<View
>(in.get(C::bitwise_ib_byte_12_)) *
FF(4294967296UL) +
339 static_cast<View
>(in.get(C::bitwise_ib_byte_13_)) *
FF(1099511627776UL) +
340 static_cast<View
>(in.get(C::bitwise_ib_byte_14_)) *
FF(281474976710656UL) +
341 static_cast<View
>(in.get(C::bitwise_ib_byte_15_)) *
FF(72057594037927936UL)));
345 using View =
typename std::tuple_element_t<29, ContainerOverSubrelations>::View;
347 static_cast<View
>(in.get(C::bitwise_sel_compute)) *
348 (
static_cast<View
>(in.get(C::bitwise_ic_simd)) -
349 static_cast<View
>(in.get(C::bitwise_sel_simd_64)) *
350 (
CView(bitwise_IC_BYTE_8) +
CView(bitwise_IC_BYTE_9) *
FF(256) +
351 CView(bitwise_IC_BYTE_10) *
FF(65536) +
CView(bitwise_IC_BYTE_11) *
FF(16777216) +
352 CView(bitwise_IC_BYTE_12) *
FF(4294967296UL) +
CView(bitwise_IC_BYTE_13) *
FF(1099511627776UL) +
353 CView(bitwise_IC_BYTE_14) *
FF(281474976710656UL) +
354 CView(bitwise_IC_BYTE_15) *
FF(72057594037927936UL)));