@@ -185,16 +185,16 @@ a_lo_bits - sel_mul_div_u128 * constant_64 - sel_shift_ops * shift_lo_bits = 0;
185185a_hi_bits - sel_mul_div_u128 * constant_64 - sel_shift_ops * SHIFT_HI_BITS = 0;
186186
187187#[RANGE_CHECK_DECOMPOSITION_A_LO]
188- sel_decompose_a { a_lo, a_lo_bits } in range_check.sel { range_check.value, range_check.rng_chk_bits };
188+ sel_decompose_a { a_lo, a_lo_bits } in range_check.sel_alu { range_check.value, range_check.rng_chk_bits };
189189
190190#[RANGE_CHECK_DECOMPOSITION_A_HI]
191- sel_decompose_a { a_hi, a_hi_bits } in range_check.sel { range_check.value, range_check.rng_chk_bits };
191+ sel_decompose_a { a_hi, a_hi_bits } in range_check.sel_alu { range_check.value, range_check.rng_chk_bits };
192192
193193#[RANGE_CHECK_DECOMPOSITION_B_LO]
194- sel_mul_div_u128 { b_lo, constant_64 } in range_check.sel { range_check.value, range_check.rng_chk_bits };
194+ sel_mul_div_u128 { b_lo, constant_64 } in range_check.sel_alu { range_check.value, range_check.rng_chk_bits };
195195
196196#[RANGE_CHECK_DECOMPOSITION_B_HI]
197- sel_mul_div_u128 { b_hi, constant_64 } in range_check.sel { range_check.value, range_check.rng_chk_bits };
197+ sel_mul_div_u128 { b_hi, constant_64 } in range_check.sel_alu { range_check.value, range_check.rng_chk_bits };
198198
199199
200200// ADD
@@ -252,7 +252,7 @@ sel_mul_u128 * (1 - sel_tag_err)
252252// up max_value. i.e. we cannot provide a malicious c, c_hi such that a + b - c_hi * 2^n = c passes for n < 128.
253253// No need to range_check c_lo = ic because the memory write will ensure ic <= max_value.
254254#[RANGE_CHECK_MUL_U128_C_HI]
255- sel_mul_u128 { c_hi, constant_64 } in range_check.sel { range_check.value, range_check.rng_chk_bits };
255+ sel_mul_u128 { c_hi, constant_64 } in range_check.sel_alu { range_check.value, range_check.rng_chk_bits };
256256
257257// DIV
258258
@@ -264,7 +264,7 @@ sel_op_div * (1 - sel_op_div) = 0;
264264pol commit sel_div_no_0_err;
265265sel_div_no_0_err = sel_op_div * (1 - sel_div_0_err);
266266#[GT_DIV_REMAINDER]
267- sel_div_no_0_err { ib, helper1, sel_op_div } in gt.sel { gt.input_a, gt.input_b, gt.res };
267+ sel_div_no_0_err { ib, helper1, sel_op_div } in gt.sel_alu { gt.input_a, gt.input_b, gt.res };
268268
269269// DIV - u128
270270
@@ -395,7 +395,7 @@ in ff_gt.sel_gt { ff_gt.a, ff_gt.b, ff_gt.result };
395395
396396#[INT_GT]
397397sel_int_lt_ops { lt_ops_input_a, lt_ops_input_b, lt_ops_result_c }
398- in gt.sel { gt.input_a, gt.input_b, gt.res };
398+ in gt.sel_alu { gt.input_a, gt.input_b, gt.res };
399399
400400// NOT
401401// Input is sent to ia, ia_tag and output is sent to ib, ib_tag.
@@ -598,4 +598,4 @@ mid_bits = sel_trunc_non_trivial * (128 - max_bits);
598598// is supported by our range_check gadget.
599599// No need to range_check ic because the memory write will ensure ic <= max_value.
600600#[RANGE_CHECK_TRUNC_MID]
601- sel_trunc_non_trivial { mid, mid_bits } in range_check.sel { range_check.value, range_check.rng_chk_bits };
601+ sel_trunc_non_trivial { mid, mid_bits } in range_check.sel_alu { range_check.value, range_check.rng_chk_bits };
0 commit comments