22 for (
const auto&
event : events) {
35 auto write_row = [&]() {
36 FF cmp_rng_ctr_inv = cmp_rng_ctr > 0 ?
FF(cmp_rng_ctr).invert() :
FF::zero();
38 { { { C::ff_gt_sel, 1 },
39 { C::ff_gt_a,
event.a },
40 { C::ff_gt_b,
event.b },
41 { C::ff_gt_result,
event.gt_result },
42 { C::ff_gt_sel_dec, sel_dec },
43 { C::ff_gt_sel_gt, sel_gt },
44 { C::ff_gt_constant_128, 128 },
48 { C::ff_gt_p_a_borrow, p_sub_a_witness.
borrow },
53 { C::ff_gt_p_b_borrow, p_sub_b_witness.
borrow },
56 { C::ff_gt_borrow, res_witness.
borrow },
59 { C::ff_gt_cmp_rng_ctr, cmp_rng_ctr },
60 { C::ff_gt_sel_shift_rng, cmp_rng_ctr > 0 },
61 { C::ff_gt_cmp_rng_ctr_inv, cmp_rng_ctr_inv } } });
64 while (cmp_rng_ctr >= 0) {
72 a_limbs.
lo = p_sub_a_witness.
lo;
73 a_limbs.
hi = p_sub_a_witness.
hi;
74 p_sub_a_witness.
lo = b_limbs.
lo;
75 p_sub_a_witness.
hi = b_limbs.
hi;
76 b_limbs.
lo = p_sub_b_witness.
lo;
77 b_limbs.
hi = p_sub_b_witness.
hi;
78 p_sub_b_witness.
lo = res_witness.
lo;
79 p_sub_b_witness.
hi = res_witness.
hi;