51 for (
const auto&
event : events) {
62 int init_ctr = sel_gt ? 4 : 1;
64 for (
int cmp_rng_ctr = init_ctr; cmp_rng_ctr >= 0; cmp_rng_ctr--) {
66 bool is_end = (cmp_rng_ctr == 0);
68 { { { C::ff_gt_sel, 1 },
69 { C::ff_gt_a,
event.a },
70 { C::ff_gt_b,
event.b },
71 { C::ff_gt_result,
event.gt_result },
72 { C::ff_gt_sel_dec, sel_dec ? 1 : 0 },
73 { C::ff_gt_sel_gt, sel_gt ? 1 : 0 },
74 { C::ff_gt_end, is_end ? 1 : 0 },
75 { C::ff_gt_constant_128, 128 },
76 { C::ff_gt_a_lo, a_limbs.
lo },
77 { C::ff_gt_a_hi, a_limbs.
hi },
78 { C::ff_gt_p_a_borrow, p_sub_a_witness.
borrow ? 1 : 0 },
79 { C::ff_gt_p_sub_a_lo, p_sub_a_witness.
lo },
80 { C::ff_gt_p_sub_a_hi, p_sub_a_witness.
hi },
81 { C::ff_gt_b_lo, b_limbs.
lo },
82 { C::ff_gt_b_hi, b_limbs.
hi },
83 { C::ff_gt_p_b_borrow, p_sub_b_witness.
borrow ? 1 : 0 },
84 { C::ff_gt_p_sub_b_lo, p_sub_b_witness.
lo },
85 { C::ff_gt_p_sub_b_hi, p_sub_b_witness.
hi },
86 { C::ff_gt_borrow, res_witness.
borrow ? 1 : 0 },
87 { C::ff_gt_res_lo, res_witness.
lo },
88 { C::ff_gt_res_hi, res_witness.
hi },
89 { C::ff_gt_cmp_rng_ctr, cmp_rng_ctr } } });
105 a_limbs.
lo = p_sub_a_witness.
lo;
106 a_limbs.
hi = p_sub_a_witness.
hi;
107 p_sub_a_witness.
lo = b_limbs.
lo;
108 p_sub_a_witness.
hi = b_limbs.
hi;
109 b_limbs.
lo = p_sub_b_witness.
lo;
110 b_limbs.
hi = p_sub_b_witness.
hi;
111 p_sub_b_witness.
lo = res_witness.
lo;
112 p_sub_b_witness.
hi = res_witness.
hi;