26 for (
const auto&
event : events) {
39 auto write_row = [&]() {
40 FF cmp_rng_ctr_inv = precomputed_inverses.at(
static_cast<size_t>(cmp_rng_ctr));
42 { { { C::ff_gt_sel, 1 },
43 { C::ff_gt_a,
event.a },
44 { C::ff_gt_b,
event.b },
45 { C::ff_gt_result,
event.gt_result },
46 { C::ff_gt_sel_dec, sel_dec },
47 { C::ff_gt_sel_gt, sel_gt },
48 { C::ff_gt_constant_128, 128 },
52 { C::ff_gt_p_a_borrow, p_sub_a_witness.
borrow },
57 { C::ff_gt_p_b_borrow, p_sub_b_witness.
borrow },
60 { C::ff_gt_borrow, res_witness.
borrow },
63 { C::ff_gt_cmp_rng_ctr, cmp_rng_ctr },
64 { C::ff_gt_sel_shift_rng, cmp_rng_ctr > 0 },
65 { C::ff_gt_cmp_rng_ctr_inv, cmp_rng_ctr_inv } } });
68 while (cmp_rng_ctr >= 0) {
76 a_limbs.
lo = p_sub_a_witness.
lo;
77 a_limbs.
hi = p_sub_a_witness.
hi;
78 p_sub_a_witness.
lo = b_limbs.
lo;
79 p_sub_a_witness.
hi = b_limbs.
hi;
80 b_limbs.
lo = p_sub_b_witness.
lo;
81 b_limbs.
hi = p_sub_b_witness.
hi;
82 p_sub_b_witness.
lo = res_witness.
lo;
83 p_sub_b_witness.
hi = res_witness.
hi;