55 for (
const auto&
event : events) {
70 const FF& cmp_rng_ctr_inv = precomputed_ctr_inverses.at(
static_cast<size_t>(cmp_rng_ctr));
72 { { { C::ff_gt_sel, 1 },
73 { C::ff_gt_a,
event.a },
74 { C::ff_gt_b,
event.b },
75 { C::ff_gt_result,
event.gt_result },
76 { C::ff_gt_sel_dec, sel_dec ? 1 : 0 },
77 { C::ff_gt_sel_gt, sel_gt ? 1 : 0 },
78 { C::ff_gt_constant_128, 128 },
79 { C::ff_gt_a_lo, a_limbs.
lo },
80 { C::ff_gt_a_hi, a_limbs.
hi },
81 { C::ff_gt_p_a_borrow, p_sub_a_witness.
borrow ? 1 : 0 },
82 { C::ff_gt_p_sub_a_lo, p_sub_a_witness.
lo },
83 { C::ff_gt_p_sub_a_hi, p_sub_a_witness.
hi },
84 { C::ff_gt_b_lo, b_limbs.
lo },
85 { C::ff_gt_b_hi, b_limbs.
hi },
86 { C::ff_gt_p_b_borrow, p_sub_b_witness.
borrow ? 1 : 0 },
87 { C::ff_gt_p_sub_b_lo, p_sub_b_witness.
lo },
88 { C::ff_gt_p_sub_b_hi, p_sub_b_witness.
hi },
89 { C::ff_gt_borrow, res_witness.
borrow ? 1 : 0 },
90 { C::ff_gt_res_lo, res_witness.
lo },
91 { C::ff_gt_res_hi, res_witness.
hi },
92 { C::ff_gt_cmp_rng_ctr, cmp_rng_ctr },
93 { C::ff_gt_sel_shift_rng, cmp_rng_ctr > 0 ? 1 : 0 },
94 { C::ff_gt_cmp_rng_ctr_inv, cmp_rng_ctr_inv } } });
110 a_limbs.
lo = p_sub_a_witness.
lo;
111 a_limbs.
hi = p_sub_a_witness.
hi;
112 p_sub_a_witness.
lo = b_limbs.
lo;
113 p_sub_a_witness.
hi = b_limbs.
hi;
114 b_limbs.
lo = p_sub_b_witness.
lo;
115 b_limbs.
hi = p_sub_b_witness.
hi;
116 p_sub_b_witness.
lo = res_witness.
lo;
117 p_sub_b_witness.
hi = res_witness.
hi;