// This file was created by the AIR team.

use crate::components::prelude::*;
use crate::components::subroutines::read_positive_known_id_num_bits_252::ReadPositiveKnownIdNumBits252;
use crate::components::subroutines::verify_reduced_252::VerifyReduced252;

pub const N_TRACE_COLUMNS: usize = 234;
pub const RELATION_USES_PER_ROW: [RelationUse; 3] = [
    RelationUse {
        relation_id: "MemoryIdToBig",
        uses: 3,
    },
    RelationUse {
        relation_id: "PartialEcMulWindowBits9",
        uses: 2,
    },
    RelationUse {
        relation_id: "RangeCheck_8",
        uses: 4,
    },
];

pub struct Eval {
    pub claim: Claim,
    pub common_lookup_elements: relations::CommonLookupElements,
}

#[derive(Copy, Clone, Serialize, Deserialize, CairoSerialize, CairoDeserialize)]
pub struct Claim {
    pub log_size: u32,
}
impl Claim {
    pub fn log_sizes(&self) -> TreeVec<Vec<u32>> {
        let trace_log_sizes = vec![self.log_size; N_TRACE_COLUMNS];
        let interaction_log_sizes = vec![self.log_size; SECURE_EXTENSION_DEGREE * 6];
        TreeVec::new(vec![vec![], trace_log_sizes, interaction_log_sizes])
    }
}

#[derive(Copy, Clone, Serialize, Deserialize, CairoSerialize, CairoDeserialize)]
pub struct InteractionClaim {
    pub claimed_sum: SecureField,
}

pub type Component = FrameworkComponent<Eval>;

impl FrameworkEval for Eval {
    fn log_size(&self) -> u32 {
        self.claim.log_size
    }

    fn max_constraint_log_degree_bound(&self) -> u32 {
        self.log_size() + 1
    }

    #[allow(unused_parens)]
    #[allow(clippy::double_parens)]
    #[allow(non_snake_case)]
    fn evaluate<E: EvalAtRow>(&self, mut eval: E) -> E {
        let M31_0 = E::F::from(M31::from(0));
        let M31_1 = E::F::from(M31::from(1));
        let M31_126 = E::F::from(M31::from(126));
        let M31_131 = E::F::from(M31::from(131));
        let M31_134 = E::F::from(M31::from(134));
        let M31_148 = E::F::from(M31::from(148));
        let M31_160 = E::F::from(M31::from(160));
        let M31_161 = E::F::from(M31::from(161));
        let M31_1662111297 = E::F::from(M31::from(1662111297));
        let M31_167 = E::F::from(M31::from(167));
        let M31_18 = E::F::from(M31::from(18));
        let M31_181 = E::F::from(M31::from(181));
        let M31_184 = E::F::from(M31::from(184));
        let M31_19 = E::F::from(M31::from(19));
        let M31_194336987 = E::F::from(M31::from(194336987));
        let M31_199 = E::F::from(M31::from(199));
        let M31_2 = E::F::from(M31::from(2));
        let M31_2038149019 = E::F::from(M31::from(2038149019));
        let M31_206 = E::F::from(M31::from(206));
        let M31_21 = E::F::from(M31::from(21));
        let M31_211 = E::F::from(M31::from(211));
        let M31_220 = E::F::from(M31::from(220));
        let M31_233 = E::F::from(M31::from(233));
        let M31_260 = E::F::from(M31::from(260));
        let M31_261 = E::F::from(M31::from(261));
        let M31_264 = E::F::from(M31::from(264));
        let M31_278 = E::F::from(M31::from(278));
        let M31_28 = E::F::from(M31::from(28));
        let M31_280 = E::F::from(M31::from(280));
        let M31_283 = E::F::from(M31::from(283));
        let M31_29 = E::F::from(M31::from(29));
        let M31_301 = E::F::from(M31::from(301));
        let M31_306 = E::F::from(M31::from(306));
        let M31_309 = E::F::from(M31::from(309));
        let M31_319 = E::F::from(M31::from(319));
        let M31_320 = E::F::from(M31::from(320));
        let M31_322 = E::F::from(M31::from(322));
        let M31_326 = E::F::from(M31::from(326));
        let M31_342 = E::F::from(M31::from(342));
        let M31_346 = E::F::from(M31::from(346));
        let M31_374 = E::F::from(M31::from(374));
        let M31_378 = E::F::from(M31::from(378));
        let M31_381 = E::F::from(M31::from(381));
        let M31_396 = E::F::from(M31::from(396));
        let M31_411 = E::F::from(M31::from(411));
        let M31_412 = E::F::from(M31::from(412));
        let M31_420 = E::F::from(M31::from(420));
        let M31_427 = E::F::from(M31::from(427));
        let M31_429 = E::F::from(M31::from(429));
        let M31_448 = E::F::from(M31::from(448));
        let M31_450 = E::F::from(M31::from(450));
        let M31_46 = E::F::from(M31::from(46));
        let M31_478 = E::F::from(M31::from(478));
        let M31_484 = E::F::from(M31::from(484));
        let M31_508 = E::F::from(M31::from(508));
        let M31_52 = E::F::from(M31::from(52));
        let M31_56 = E::F::from(M31::from(56));
        let M31_59 = E::F::from(M31::from(59));
        let M31_86 = E::F::from(M31::from(86));
        let M31_88 = E::F::from(M31::from(88));
        let seq = eval.get_preprocessed_column(Seq::new(self.log_size()).id());
        let input_limb_0_col0 = eval.next_trace_mask();
        let input_limb_1_col1 = eval.next_trace_mask();
        let input_limb_2_col2 = eval.next_trace_mask();
        let value_limb_0_col3 = eval.next_trace_mask();
        let value_limb_1_col4 = eval.next_trace_mask();
        let value_limb_2_col5 = eval.next_trace_mask();
        let value_limb_3_col6 = eval.next_trace_mask();
        let value_limb_4_col7 = eval.next_trace_mask();
        let value_limb_5_col8 = eval.next_trace_mask();
        let value_limb_6_col9 = eval.next_trace_mask();
        let value_limb_7_col10 = eval.next_trace_mask();
        let value_limb_8_col11 = eval.next_trace_mask();
        let value_limb_9_col12 = eval.next_trace_mask();
        let value_limb_10_col13 = eval.next_trace_mask();
        let value_limb_11_col14 = eval.next_trace_mask();
        let value_limb_12_col15 = eval.next_trace_mask();
        let value_limb_13_col16 = eval.next_trace_mask();
        let value_limb_14_col17 = eval.next_trace_mask();
        let value_limb_15_col18 = eval.next_trace_mask();
        let value_limb_16_col19 = eval.next_trace_mask();
        let value_limb_17_col20 = eval.next_trace_mask();
        let value_limb_18_col21 = eval.next_trace_mask();
        let value_limb_19_col22 = eval.next_trace_mask();
        let value_limb_20_col23 = eval.next_trace_mask();
        let value_limb_21_col24 = eval.next_trace_mask();
        let value_limb_22_col25 = eval.next_trace_mask();
        let value_limb_23_col26 = eval.next_trace_mask();
        let value_limb_24_col27 = eval.next_trace_mask();
        let value_limb_25_col28 = eval.next_trace_mask();
        let value_limb_26_col29 = eval.next_trace_mask();
        let value_limb_27_col30 = eval.next_trace_mask();
        let value_limb_0_col31 = eval.next_trace_mask();
        let value_limb_1_col32 = eval.next_trace_mask();
        let value_limb_2_col33 = eval.next_trace_mask();
        let value_limb_3_col34 = eval.next_trace_mask();
        let value_limb_4_col35 = eval.next_trace_mask();
        let value_limb_5_col36 = eval.next_trace_mask();
        let value_limb_6_col37 = eval.next_trace_mask();
        let value_limb_7_col38 = eval.next_trace_mask();
        let value_limb_8_col39 = eval.next_trace_mask();
        let value_limb_9_col40 = eval.next_trace_mask();
        let value_limb_10_col41 = eval.next_trace_mask();
        let value_limb_11_col42 = eval.next_trace_mask();
        let value_limb_12_col43 = eval.next_trace_mask();
        let value_limb_13_col44 = eval.next_trace_mask();
        let value_limb_14_col45 = eval.next_trace_mask();
        let value_limb_15_col46 = eval.next_trace_mask();
        let value_limb_16_col47 = eval.next_trace_mask();
        let value_limb_17_col48 = eval.next_trace_mask();
        let value_limb_18_col49 = eval.next_trace_mask();
        let value_limb_19_col50 = eval.next_trace_mask();
        let value_limb_20_col51 = eval.next_trace_mask();
        let value_limb_21_col52 = eval.next_trace_mask();
        let value_limb_22_col53 = eval.next_trace_mask();
        let value_limb_23_col54 = eval.next_trace_mask();
        let value_limb_24_col55 = eval.next_trace_mask();
        let value_limb_25_col56 = eval.next_trace_mask();
        let value_limb_26_col57 = eval.next_trace_mask();
        let value_limb_27_col58 = eval.next_trace_mask();
        let ms_limb_is_max_col59 = eval.next_trace_mask();
        let ms_and_mid_limbs_are_max_col60 = eval.next_trace_mask();
        let rc_input_col61 = eval.next_trace_mask();
        let ms_limb_is_max_col62 = eval.next_trace_mask();
        let ms_and_mid_limbs_are_max_col63 = eval.next_trace_mask();
        let rc_input_col64 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_0_col65 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_1_col66 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_2_col67 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_3_col68 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_4_col69 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_5_col70 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_6_col71 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_7_col72 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_8_col73 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_9_col74 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_10_col75 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_11_col76 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_12_col77 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_13_col78 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_14_col79 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_15_col80 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_16_col81 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_17_col82 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_18_col83 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_19_col84 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_20_col85 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_21_col86 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_22_col87 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_23_col88 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_24_col89 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_25_col90 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_26_col91 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_27_col92 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_28_col93 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_29_col94 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_30_col95 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_31_col96 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_32_col97 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_33_col98 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_34_col99 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_35_col100 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_36_col101 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_37_col102 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_38_col103 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_39_col104 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_40_col105 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_41_col106 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_42_col107 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_43_col108 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_44_col109 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_45_col110 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_46_col111 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_47_col112 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_48_col113 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_49_col114 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_50_col115 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_51_col116 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_52_col117 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_53_col118 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_54_col119 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_55_col120 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_56_col121 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_57_col122 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_58_col123 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_59_col124 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_60_col125 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_61_col126 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_62_col127 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_63_col128 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_64_col129 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_65_col130 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_66_col131 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_67_col132 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_68_col133 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_69_col134 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_70_col135 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_71_col136 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_72_col137 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_73_col138 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_74_col139 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_75_col140 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_76_col141 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_77_col142 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_78_col143 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_79_col144 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_80_col145 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_81_col146 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_82_col147 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_83_col148 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_0_col149 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_1_col150 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_2_col151 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_3_col152 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_4_col153 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_5_col154 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_6_col155 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_7_col156 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_8_col157 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_9_col158 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_10_col159 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_11_col160 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_12_col161 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_13_col162 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_14_col163 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_15_col164 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_16_col165 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_17_col166 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_18_col167 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_19_col168 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_20_col169 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_21_col170 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_22_col171 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_23_col172 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_24_col173 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_25_col174 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_26_col175 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_27_col176 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_28_col177 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_29_col178 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_30_col179 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_31_col180 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_32_col181 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_33_col182 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_34_col183 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_35_col184 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_36_col185 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_37_col186 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_38_col187 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_39_col188 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_40_col189 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_41_col190 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_42_col191 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_43_col192 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_44_col193 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_45_col194 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_46_col195 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_47_col196 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_48_col197 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_49_col198 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_50_col199 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_51_col200 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_52_col201 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_53_col202 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_54_col203 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_55_col204 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_56_col205 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_57_col206 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_58_col207 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_59_col208 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_60_col209 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_61_col210 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_62_col211 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_63_col212 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_64_col213 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_65_col214 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_66_col215 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_67_col216 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_68_col217 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_69_col218 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_70_col219 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_71_col220 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_72_col221 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_73_col222 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_74_col223 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_75_col224 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_76_col225 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_77_col226 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_78_col227 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_79_col228 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_80_col229 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_81_col230 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_82_col231 = eval.next_trace_mask();
        let partial_ec_mul_window_bits_9_output_limb_83_col232 = eval.next_trace_mask();
        let multiplicity_0_col233 = eval.next_trace_mask();

        ReadPositiveKnownIdNumBits252::evaluate(
            [input_limb_0_col0.clone()],
            value_limb_0_col3.clone(),
            value_limb_1_col4.clone(),
            value_limb_2_col5.clone(),
            value_limb_3_col6.clone(),
            value_limb_4_col7.clone(),
            value_limb_5_col8.clone(),
            value_limb_6_col9.clone(),
            value_limb_7_col10.clone(),
            value_limb_8_col11.clone(),
            value_limb_9_col12.clone(),
            value_limb_10_col13.clone(),
            value_limb_11_col14.clone(),
            value_limb_12_col15.clone(),
            value_limb_13_col16.clone(),
            value_limb_14_col17.clone(),
            value_limb_15_col18.clone(),
            value_limb_16_col19.clone(),
            value_limb_17_col20.clone(),
            value_limb_18_col21.clone(),
            value_limb_19_col22.clone(),
            value_limb_20_col23.clone(),
            value_limb_21_col24.clone(),
            value_limb_22_col25.clone(),
            value_limb_23_col26.clone(),
            value_limb_24_col27.clone(),
            value_limb_25_col28.clone(),
            value_limb_26_col29.clone(),
            value_limb_27_col30.clone(),
            &self.common_lookup_elements,
            &mut eval,
        );
        ReadPositiveKnownIdNumBits252::evaluate(
            [input_limb_1_col1.clone()],
            value_limb_0_col31.clone(),
            value_limb_1_col32.clone(),
            value_limb_2_col33.clone(),
            value_limb_3_col34.clone(),
            value_limb_4_col35.clone(),
            value_limb_5_col36.clone(),
            value_limb_6_col37.clone(),
            value_limb_7_col38.clone(),
            value_limb_8_col39.clone(),
            value_limb_9_col40.clone(),
            value_limb_10_col41.clone(),
            value_limb_11_col42.clone(),
            value_limb_12_col43.clone(),
            value_limb_13_col44.clone(),
            value_limb_14_col45.clone(),
            value_limb_15_col46.clone(),
            value_limb_16_col47.clone(),
            value_limb_17_col48.clone(),
            value_limb_18_col49.clone(),
            value_limb_19_col50.clone(),
            value_limb_20_col51.clone(),
            value_limb_21_col52.clone(),
            value_limb_22_col53.clone(),
            value_limb_23_col54.clone(),
            value_limb_24_col55.clone(),
            value_limb_25_col56.clone(),
            value_limb_26_col57.clone(),
            value_limb_27_col58.clone(),
            &self.common_lookup_elements,
            &mut eval,
        );
        VerifyReduced252::evaluate(
            [
                value_limb_0_col3.clone(),
                value_limb_1_col4.clone(),
                value_limb_2_col5.clone(),
                value_limb_3_col6.clone(),
                value_limb_4_col7.clone(),
                value_limb_5_col8.clone(),
                value_limb_6_col9.clone(),
                value_limb_7_col10.clone(),
                value_limb_8_col11.clone(),
                value_limb_9_col12.clone(),
                value_limb_10_col13.clone(),
                value_limb_11_col14.clone(),
                value_limb_12_col15.clone(),
                value_limb_13_col16.clone(),
                value_limb_14_col17.clone(),
                value_limb_15_col18.clone(),
                value_limb_16_col19.clone(),
                value_limb_17_col20.clone(),
                value_limb_18_col21.clone(),
                value_limb_19_col22.clone(),
                value_limb_20_col23.clone(),
                value_limb_21_col24.clone(),
                value_limb_22_col25.clone(),
                value_limb_23_col26.clone(),
                value_limb_24_col27.clone(),
                value_limb_25_col28.clone(),
                value_limb_26_col29.clone(),
                value_limb_27_col30.clone(),
            ],
            ms_limb_is_max_col59.clone(),
            ms_and_mid_limbs_are_max_col60.clone(),
            rc_input_col61.clone(),
            &self.common_lookup_elements,
            &mut eval,
        );
        VerifyReduced252::evaluate(
            [
                value_limb_0_col31.clone(),
                value_limb_1_col32.clone(),
                value_limb_2_col33.clone(),
                value_limb_3_col34.clone(),
                value_limb_4_col35.clone(),
                value_limb_5_col36.clone(),
                value_limb_6_col37.clone(),
                value_limb_7_col38.clone(),
                value_limb_8_col39.clone(),
                value_limb_9_col40.clone(),
                value_limb_10_col41.clone(),
                value_limb_11_col42.clone(),
                value_limb_12_col43.clone(),
                value_limb_13_col44.clone(),
                value_limb_14_col45.clone(),
                value_limb_15_col46.clone(),
                value_limb_16_col47.clone(),
                value_limb_17_col48.clone(),
                value_limb_18_col49.clone(),
                value_limb_19_col50.clone(),
                value_limb_20_col51.clone(),
                value_limb_21_col52.clone(),
                value_limb_22_col53.clone(),
                value_limb_23_col54.clone(),
                value_limb_24_col55.clone(),
                value_limb_25_col56.clone(),
                value_limb_26_col57.clone(),
                value_limb_27_col58.clone(),
            ],
            ms_limb_is_max_col62.clone(),
            ms_and_mid_limbs_are_max_col63.clone(),
            rc_input_col64.clone(),
            &self.common_lookup_elements,
            &mut eval,
        );
        let partial_ec_mul_window_bits_9_chain_tmp_tmp_344c0_8 =
            eval.add_intermediate((seq.clone() * M31_2.clone()));
        eval.add_to_relation(RelationEntry::new(
            &self.common_lookup_elements,
            -E::EF::from(M31_1.clone()),
            &[
                M31_2038149019.clone(),
                partial_ec_mul_window_bits_9_chain_tmp_tmp_344c0_8.clone(),
                M31_0.clone(),
                value_limb_0_col3.clone(),
                value_limb_1_col4.clone(),
                value_limb_2_col5.clone(),
                value_limb_3_col6.clone(),
                value_limb_4_col7.clone(),
                value_limb_5_col8.clone(),
                value_limb_6_col9.clone(),
                value_limb_7_col10.clone(),
                value_limb_8_col11.clone(),
                value_limb_9_col12.clone(),
                value_limb_10_col13.clone(),
                value_limb_11_col14.clone(),
                value_limb_12_col15.clone(),
                value_limb_13_col16.clone(),
                value_limb_14_col17.clone(),
                value_limb_15_col18.clone(),
                value_limb_16_col19.clone(),
                value_limb_17_col20.clone(),
                value_limb_18_col21.clone(),
                value_limb_19_col22.clone(),
                value_limb_20_col23.clone(),
                value_limb_21_col24.clone(),
                value_limb_22_col25.clone(),
                value_limb_23_col26.clone(),
                value_limb_24_col27.clone(),
                value_limb_25_col28.clone(),
                value_limb_26_col29.clone(),
                value_limb_27_col30.clone(),
                M31_427.clone(),
                M31_381.clone(),
                M31_378.clone(),
                M31_484.clone(),
                M31_320.clone(),
                M31_88.clone(),
                M31_319.clone(),
                M31_396.clone(),
                M31_429.clone(),
                M31_59.clone(),
                M31_52.clone(),
                M31_478.clone(),
                M31_148.clone(),
                M31_181.clone(),
                M31_18.clone(),
                M31_309.clone(),
                M31_412.clone(),
                M31_88.clone(),
                M31_2.clone(),
                M31_184.clone(),
                M31_126.clone(),
                M31_46.clone(),
                M31_29.clone(),
                M31_206.clone(),
                M31_134.clone(),
                M31_233.clone(),
                M31_448.clone(),
                M31_211.clone(),
                M31_508.clone(),
                M31_420.clone(),
                M31_374.clone(),
                M31_283.clone(),
                M31_306.clone(),
                M31_450.clone(),
                M31_278.clone(),
                M31_86.clone(),
                M31_131.clone(),
                M31_160.clone(),
                M31_411.clone(),
                M31_301.clone(),
                M31_264.clone(),
                M31_322.clone(),
                M31_161.clone(),
                M31_346.clone(),
                M31_320.clone(),
                M31_342.clone(),
                M31_261.clone(),
                M31_184.clone(),
                M31_280.clone(),
                M31_326.clone(),
                M31_220.clone(),
                M31_167.clone(),
                M31_21.clone(),
                M31_260.clone(),
                M31_19.clone(),
                M31_199.clone(),
            ],
        ));

        eval.add_to_relation(RelationEntry::new(
            &self.common_lookup_elements,
            E::EF::from(M31_1.clone()),
            &[
                M31_2038149019.clone(),
                partial_ec_mul_window_bits_9_chain_tmp_tmp_344c0_8.clone(),
                M31_28.clone(),
                partial_ec_mul_window_bits_9_output_limb_0_col65.clone(),
                partial_ec_mul_window_bits_9_output_limb_1_col66.clone(),
                partial_ec_mul_window_bits_9_output_limb_2_col67.clone(),
                partial_ec_mul_window_bits_9_output_limb_3_col68.clone(),
                partial_ec_mul_window_bits_9_output_limb_4_col69.clone(),
                partial_ec_mul_window_bits_9_output_limb_5_col70.clone(),
                partial_ec_mul_window_bits_9_output_limb_6_col71.clone(),
                partial_ec_mul_window_bits_9_output_limb_7_col72.clone(),
                partial_ec_mul_window_bits_9_output_limb_8_col73.clone(),
                partial_ec_mul_window_bits_9_output_limb_9_col74.clone(),
                partial_ec_mul_window_bits_9_output_limb_10_col75.clone(),
                partial_ec_mul_window_bits_9_output_limb_11_col76.clone(),
                partial_ec_mul_window_bits_9_output_limb_12_col77.clone(),
                partial_ec_mul_window_bits_9_output_limb_13_col78.clone(),
                partial_ec_mul_window_bits_9_output_limb_14_col79.clone(),
                partial_ec_mul_window_bits_9_output_limb_15_col80.clone(),
                partial_ec_mul_window_bits_9_output_limb_16_col81.clone(),
                partial_ec_mul_window_bits_9_output_limb_17_col82.clone(),
                partial_ec_mul_window_bits_9_output_limb_18_col83.clone(),
                partial_ec_mul_window_bits_9_output_limb_19_col84.clone(),
                partial_ec_mul_window_bits_9_output_limb_20_col85.clone(),
                partial_ec_mul_window_bits_9_output_limb_21_col86.clone(),
                partial_ec_mul_window_bits_9_output_limb_22_col87.clone(),
                partial_ec_mul_window_bits_9_output_limb_23_col88.clone(),
                partial_ec_mul_window_bits_9_output_limb_24_col89.clone(),
                partial_ec_mul_window_bits_9_output_limb_25_col90.clone(),
                partial_ec_mul_window_bits_9_output_limb_26_col91.clone(),
                partial_ec_mul_window_bits_9_output_limb_27_col92.clone(),
                partial_ec_mul_window_bits_9_output_limb_28_col93.clone(),
                partial_ec_mul_window_bits_9_output_limb_29_col94.clone(),
                partial_ec_mul_window_bits_9_output_limb_30_col95.clone(),
                partial_ec_mul_window_bits_9_output_limb_31_col96.clone(),
                partial_ec_mul_window_bits_9_output_limb_32_col97.clone(),
                partial_ec_mul_window_bits_9_output_limb_33_col98.clone(),
                partial_ec_mul_window_bits_9_output_limb_34_col99.clone(),
                partial_ec_mul_window_bits_9_output_limb_35_col100.clone(),
                partial_ec_mul_window_bits_9_output_limb_36_col101.clone(),
                partial_ec_mul_window_bits_9_output_limb_37_col102.clone(),
                partial_ec_mul_window_bits_9_output_limb_38_col103.clone(),
                partial_ec_mul_window_bits_9_output_limb_39_col104.clone(),
                partial_ec_mul_window_bits_9_output_limb_40_col105.clone(),
                partial_ec_mul_window_bits_9_output_limb_41_col106.clone(),
                partial_ec_mul_window_bits_9_output_limb_42_col107.clone(),
                partial_ec_mul_window_bits_9_output_limb_43_col108.clone(),
                partial_ec_mul_window_bits_9_output_limb_44_col109.clone(),
                partial_ec_mul_window_bits_9_output_limb_45_col110.clone(),
                partial_ec_mul_window_bits_9_output_limb_46_col111.clone(),
                partial_ec_mul_window_bits_9_output_limb_47_col112.clone(),
                partial_ec_mul_window_bits_9_output_limb_48_col113.clone(),
                partial_ec_mul_window_bits_9_output_limb_49_col114.clone(),
                partial_ec_mul_window_bits_9_output_limb_50_col115.clone(),
                partial_ec_mul_window_bits_9_output_limb_51_col116.clone(),
                partial_ec_mul_window_bits_9_output_limb_52_col117.clone(),
                partial_ec_mul_window_bits_9_output_limb_53_col118.clone(),
                partial_ec_mul_window_bits_9_output_limb_54_col119.clone(),
                partial_ec_mul_window_bits_9_output_limb_55_col120.clone(),
                partial_ec_mul_window_bits_9_output_limb_56_col121.clone(),
                partial_ec_mul_window_bits_9_output_limb_57_col122.clone(),
                partial_ec_mul_window_bits_9_output_limb_58_col123.clone(),
                partial_ec_mul_window_bits_9_output_limb_59_col124.clone(),
                partial_ec_mul_window_bits_9_output_limb_60_col125.clone(),
                partial_ec_mul_window_bits_9_output_limb_61_col126.clone(),
                partial_ec_mul_window_bits_9_output_limb_62_col127.clone(),
                partial_ec_mul_window_bits_9_output_limb_63_col128.clone(),
                partial_ec_mul_window_bits_9_output_limb_64_col129.clone(),
                partial_ec_mul_window_bits_9_output_limb_65_col130.clone(),
                partial_ec_mul_window_bits_9_output_limb_66_col131.clone(),
                partial_ec_mul_window_bits_9_output_limb_67_col132.clone(),
                partial_ec_mul_window_bits_9_output_limb_68_col133.clone(),
                partial_ec_mul_window_bits_9_output_limb_69_col134.clone(),
                partial_ec_mul_window_bits_9_output_limb_70_col135.clone(),
                partial_ec_mul_window_bits_9_output_limb_71_col136.clone(),
                partial_ec_mul_window_bits_9_output_limb_72_col137.clone(),
                partial_ec_mul_window_bits_9_output_limb_73_col138.clone(),
                partial_ec_mul_window_bits_9_output_limb_74_col139.clone(),
                partial_ec_mul_window_bits_9_output_limb_75_col140.clone(),
                partial_ec_mul_window_bits_9_output_limb_76_col141.clone(),
                partial_ec_mul_window_bits_9_output_limb_77_col142.clone(),
                partial_ec_mul_window_bits_9_output_limb_78_col143.clone(),
                partial_ec_mul_window_bits_9_output_limb_79_col144.clone(),
                partial_ec_mul_window_bits_9_output_limb_80_col145.clone(),
                partial_ec_mul_window_bits_9_output_limb_81_col146.clone(),
                partial_ec_mul_window_bits_9_output_limb_82_col147.clone(),
                partial_ec_mul_window_bits_9_output_limb_83_col148.clone(),
            ],
        ));

        let partial_ec_mul_window_bits_9_chain_id_tmp_344c0_37 = eval.add_intermediate(
            (partial_ec_mul_window_bits_9_chain_tmp_tmp_344c0_8.clone() + M31_1.clone()),
        );
        eval.add_to_relation(RelationEntry::new(
            &self.common_lookup_elements,
            -E::EF::from(M31_1.clone()),
            &[
                M31_2038149019.clone(),
                partial_ec_mul_window_bits_9_chain_id_tmp_344c0_37.clone(),
                M31_28.clone(),
                value_limb_0_col31.clone(),
                value_limb_1_col32.clone(),
                value_limb_2_col33.clone(),
                value_limb_3_col34.clone(),
                value_limb_4_col35.clone(),
                value_limb_5_col36.clone(),
                value_limb_6_col37.clone(),
                value_limb_7_col38.clone(),
                value_limb_8_col39.clone(),
                value_limb_9_col40.clone(),
                value_limb_10_col41.clone(),
                value_limb_11_col42.clone(),
                value_limb_12_col43.clone(),
                value_limb_13_col44.clone(),
                value_limb_14_col45.clone(),
                value_limb_15_col46.clone(),
                value_limb_16_col47.clone(),
                value_limb_17_col48.clone(),
                value_limb_18_col49.clone(),
                value_limb_19_col50.clone(),
                value_limb_20_col51.clone(),
                value_limb_21_col52.clone(),
                value_limb_22_col53.clone(),
                value_limb_23_col54.clone(),
                value_limb_24_col55.clone(),
                value_limb_25_col56.clone(),
                value_limb_26_col57.clone(),
                value_limb_27_col58.clone(),
                partial_ec_mul_window_bits_9_output_limb_28_col93.clone(),
                partial_ec_mul_window_bits_9_output_limb_29_col94.clone(),
                partial_ec_mul_window_bits_9_output_limb_30_col95.clone(),
                partial_ec_mul_window_bits_9_output_limb_31_col96.clone(),
                partial_ec_mul_window_bits_9_output_limb_32_col97.clone(),
                partial_ec_mul_window_bits_9_output_limb_33_col98.clone(),
                partial_ec_mul_window_bits_9_output_limb_34_col99.clone(),
                partial_ec_mul_window_bits_9_output_limb_35_col100.clone(),
                partial_ec_mul_window_bits_9_output_limb_36_col101.clone(),
                partial_ec_mul_window_bits_9_output_limb_37_col102.clone(),
                partial_ec_mul_window_bits_9_output_limb_38_col103.clone(),
                partial_ec_mul_window_bits_9_output_limb_39_col104.clone(),
                partial_ec_mul_window_bits_9_output_limb_40_col105.clone(),
                partial_ec_mul_window_bits_9_output_limb_41_col106.clone(),
                partial_ec_mul_window_bits_9_output_limb_42_col107.clone(),
                partial_ec_mul_window_bits_9_output_limb_43_col108.clone(),
                partial_ec_mul_window_bits_9_output_limb_44_col109.clone(),
                partial_ec_mul_window_bits_9_output_limb_45_col110.clone(),
                partial_ec_mul_window_bits_9_output_limb_46_col111.clone(),
                partial_ec_mul_window_bits_9_output_limb_47_col112.clone(),
                partial_ec_mul_window_bits_9_output_limb_48_col113.clone(),
                partial_ec_mul_window_bits_9_output_limb_49_col114.clone(),
                partial_ec_mul_window_bits_9_output_limb_50_col115.clone(),
                partial_ec_mul_window_bits_9_output_limb_51_col116.clone(),
                partial_ec_mul_window_bits_9_output_limb_52_col117.clone(),
                partial_ec_mul_window_bits_9_output_limb_53_col118.clone(),
                partial_ec_mul_window_bits_9_output_limb_54_col119.clone(),
                partial_ec_mul_window_bits_9_output_limb_55_col120.clone(),
                partial_ec_mul_window_bits_9_output_limb_56_col121.clone(),
                partial_ec_mul_window_bits_9_output_limb_57_col122.clone(),
                partial_ec_mul_window_bits_9_output_limb_58_col123.clone(),
                partial_ec_mul_window_bits_9_output_limb_59_col124.clone(),
                partial_ec_mul_window_bits_9_output_limb_60_col125.clone(),
                partial_ec_mul_window_bits_9_output_limb_61_col126.clone(),
                partial_ec_mul_window_bits_9_output_limb_62_col127.clone(),
                partial_ec_mul_window_bits_9_output_limb_63_col128.clone(),
                partial_ec_mul_window_bits_9_output_limb_64_col129.clone(),
                partial_ec_mul_window_bits_9_output_limb_65_col130.clone(),
                partial_ec_mul_window_bits_9_output_limb_66_col131.clone(),
                partial_ec_mul_window_bits_9_output_limb_67_col132.clone(),
                partial_ec_mul_window_bits_9_output_limb_68_col133.clone(),
                partial_ec_mul_window_bits_9_output_limb_69_col134.clone(),
                partial_ec_mul_window_bits_9_output_limb_70_col135.clone(),
                partial_ec_mul_window_bits_9_output_limb_71_col136.clone(),
                partial_ec_mul_window_bits_9_output_limb_72_col137.clone(),
                partial_ec_mul_window_bits_9_output_limb_73_col138.clone(),
                partial_ec_mul_window_bits_9_output_limb_74_col139.clone(),
                partial_ec_mul_window_bits_9_output_limb_75_col140.clone(),
                partial_ec_mul_window_bits_9_output_limb_76_col141.clone(),
                partial_ec_mul_window_bits_9_output_limb_77_col142.clone(),
                partial_ec_mul_window_bits_9_output_limb_78_col143.clone(),
                partial_ec_mul_window_bits_9_output_limb_79_col144.clone(),
                partial_ec_mul_window_bits_9_output_limb_80_col145.clone(),
                partial_ec_mul_window_bits_9_output_limb_81_col146.clone(),
                partial_ec_mul_window_bits_9_output_limb_82_col147.clone(),
                partial_ec_mul_window_bits_9_output_limb_83_col148.clone(),
            ],
        ));

        eval.add_to_relation(RelationEntry::new(
            &self.common_lookup_elements,
            E::EF::from(M31_1.clone()),
            &[
                M31_2038149019.clone(),
                partial_ec_mul_window_bits_9_chain_id_tmp_344c0_37.clone(),
                M31_56.clone(),
                partial_ec_mul_window_bits_9_output_limb_0_col149.clone(),
                partial_ec_mul_window_bits_9_output_limb_1_col150.clone(),
                partial_ec_mul_window_bits_9_output_limb_2_col151.clone(),
                partial_ec_mul_window_bits_9_output_limb_3_col152.clone(),
                partial_ec_mul_window_bits_9_output_limb_4_col153.clone(),
                partial_ec_mul_window_bits_9_output_limb_5_col154.clone(),
                partial_ec_mul_window_bits_9_output_limb_6_col155.clone(),
                partial_ec_mul_window_bits_9_output_limb_7_col156.clone(),
                partial_ec_mul_window_bits_9_output_limb_8_col157.clone(),
                partial_ec_mul_window_bits_9_output_limb_9_col158.clone(),
                partial_ec_mul_window_bits_9_output_limb_10_col159.clone(),
                partial_ec_mul_window_bits_9_output_limb_11_col160.clone(),
                partial_ec_mul_window_bits_9_output_limb_12_col161.clone(),
                partial_ec_mul_window_bits_9_output_limb_13_col162.clone(),
                partial_ec_mul_window_bits_9_output_limb_14_col163.clone(),
                partial_ec_mul_window_bits_9_output_limb_15_col164.clone(),
                partial_ec_mul_window_bits_9_output_limb_16_col165.clone(),
                partial_ec_mul_window_bits_9_output_limb_17_col166.clone(),
                partial_ec_mul_window_bits_9_output_limb_18_col167.clone(),
                partial_ec_mul_window_bits_9_output_limb_19_col168.clone(),
                partial_ec_mul_window_bits_9_output_limb_20_col169.clone(),
                partial_ec_mul_window_bits_9_output_limb_21_col170.clone(),
                partial_ec_mul_window_bits_9_output_limb_22_col171.clone(),
                partial_ec_mul_window_bits_9_output_limb_23_col172.clone(),
                partial_ec_mul_window_bits_9_output_limb_24_col173.clone(),
                partial_ec_mul_window_bits_9_output_limb_25_col174.clone(),
                partial_ec_mul_window_bits_9_output_limb_26_col175.clone(),
                partial_ec_mul_window_bits_9_output_limb_27_col176.clone(),
                partial_ec_mul_window_bits_9_output_limb_28_col177.clone(),
                partial_ec_mul_window_bits_9_output_limb_29_col178.clone(),
                partial_ec_mul_window_bits_9_output_limb_30_col179.clone(),
                partial_ec_mul_window_bits_9_output_limb_31_col180.clone(),
                partial_ec_mul_window_bits_9_output_limb_32_col181.clone(),
                partial_ec_mul_window_bits_9_output_limb_33_col182.clone(),
                partial_ec_mul_window_bits_9_output_limb_34_col183.clone(),
                partial_ec_mul_window_bits_9_output_limb_35_col184.clone(),
                partial_ec_mul_window_bits_9_output_limb_36_col185.clone(),
                partial_ec_mul_window_bits_9_output_limb_37_col186.clone(),
                partial_ec_mul_window_bits_9_output_limb_38_col187.clone(),
                partial_ec_mul_window_bits_9_output_limb_39_col188.clone(),
                partial_ec_mul_window_bits_9_output_limb_40_col189.clone(),
                partial_ec_mul_window_bits_9_output_limb_41_col190.clone(),
                partial_ec_mul_window_bits_9_output_limb_42_col191.clone(),
                partial_ec_mul_window_bits_9_output_limb_43_col192.clone(),
                partial_ec_mul_window_bits_9_output_limb_44_col193.clone(),
                partial_ec_mul_window_bits_9_output_limb_45_col194.clone(),
                partial_ec_mul_window_bits_9_output_limb_46_col195.clone(),
                partial_ec_mul_window_bits_9_output_limb_47_col196.clone(),
                partial_ec_mul_window_bits_9_output_limb_48_col197.clone(),
                partial_ec_mul_window_bits_9_output_limb_49_col198.clone(),
                partial_ec_mul_window_bits_9_output_limb_50_col199.clone(),
                partial_ec_mul_window_bits_9_output_limb_51_col200.clone(),
                partial_ec_mul_window_bits_9_output_limb_52_col201.clone(),
                partial_ec_mul_window_bits_9_output_limb_53_col202.clone(),
                partial_ec_mul_window_bits_9_output_limb_54_col203.clone(),
                partial_ec_mul_window_bits_9_output_limb_55_col204.clone(),
                partial_ec_mul_window_bits_9_output_limb_56_col205.clone(),
                partial_ec_mul_window_bits_9_output_limb_57_col206.clone(),
                partial_ec_mul_window_bits_9_output_limb_58_col207.clone(),
                partial_ec_mul_window_bits_9_output_limb_59_col208.clone(),
                partial_ec_mul_window_bits_9_output_limb_60_col209.clone(),
                partial_ec_mul_window_bits_9_output_limb_61_col210.clone(),
                partial_ec_mul_window_bits_9_output_limb_62_col211.clone(),
                partial_ec_mul_window_bits_9_output_limb_63_col212.clone(),
                partial_ec_mul_window_bits_9_output_limb_64_col213.clone(),
                partial_ec_mul_window_bits_9_output_limb_65_col214.clone(),
                partial_ec_mul_window_bits_9_output_limb_66_col215.clone(),
                partial_ec_mul_window_bits_9_output_limb_67_col216.clone(),
                partial_ec_mul_window_bits_9_output_limb_68_col217.clone(),
                partial_ec_mul_window_bits_9_output_limb_69_col218.clone(),
                partial_ec_mul_window_bits_9_output_limb_70_col219.clone(),
                partial_ec_mul_window_bits_9_output_limb_71_col220.clone(),
                partial_ec_mul_window_bits_9_output_limb_72_col221.clone(),
                partial_ec_mul_window_bits_9_output_limb_73_col222.clone(),
                partial_ec_mul_window_bits_9_output_limb_74_col223.clone(),
                partial_ec_mul_window_bits_9_output_limb_75_col224.clone(),
                partial_ec_mul_window_bits_9_output_limb_76_col225.clone(),
                partial_ec_mul_window_bits_9_output_limb_77_col226.clone(),
                partial_ec_mul_window_bits_9_output_limb_78_col227.clone(),
                partial_ec_mul_window_bits_9_output_limb_79_col228.clone(),
                partial_ec_mul_window_bits_9_output_limb_80_col229.clone(),
                partial_ec_mul_window_bits_9_output_limb_81_col230.clone(),
                partial_ec_mul_window_bits_9_output_limb_82_col231.clone(),
                partial_ec_mul_window_bits_9_output_limb_83_col232.clone(),
            ],
        ));

        eval.add_to_relation(RelationEntry::new(
            &self.common_lookup_elements,
            E::EF::from(M31_1.clone()),
            &[
                M31_1662111297.clone(),
                input_limb_2_col2.clone(),
                partial_ec_mul_window_bits_9_output_limb_28_col177.clone(),
                partial_ec_mul_window_bits_9_output_limb_29_col178.clone(),
                partial_ec_mul_window_bits_9_output_limb_30_col179.clone(),
                partial_ec_mul_window_bits_9_output_limb_31_col180.clone(),
                partial_ec_mul_window_bits_9_output_limb_32_col181.clone(),
                partial_ec_mul_window_bits_9_output_limb_33_col182.clone(),
                partial_ec_mul_window_bits_9_output_limb_34_col183.clone(),
                partial_ec_mul_window_bits_9_output_limb_35_col184.clone(),
                partial_ec_mul_window_bits_9_output_limb_36_col185.clone(),
                partial_ec_mul_window_bits_9_output_limb_37_col186.clone(),
                partial_ec_mul_window_bits_9_output_limb_38_col187.clone(),
                partial_ec_mul_window_bits_9_output_limb_39_col188.clone(),
                partial_ec_mul_window_bits_9_output_limb_40_col189.clone(),
                partial_ec_mul_window_bits_9_output_limb_41_col190.clone(),
                partial_ec_mul_window_bits_9_output_limb_42_col191.clone(),
                partial_ec_mul_window_bits_9_output_limb_43_col192.clone(),
                partial_ec_mul_window_bits_9_output_limb_44_col193.clone(),
                partial_ec_mul_window_bits_9_output_limb_45_col194.clone(),
                partial_ec_mul_window_bits_9_output_limb_46_col195.clone(),
                partial_ec_mul_window_bits_9_output_limb_47_col196.clone(),
                partial_ec_mul_window_bits_9_output_limb_48_col197.clone(),
                partial_ec_mul_window_bits_9_output_limb_49_col198.clone(),
                partial_ec_mul_window_bits_9_output_limb_50_col199.clone(),
                partial_ec_mul_window_bits_9_output_limb_51_col200.clone(),
                partial_ec_mul_window_bits_9_output_limb_52_col201.clone(),
                partial_ec_mul_window_bits_9_output_limb_53_col202.clone(),
                partial_ec_mul_window_bits_9_output_limb_54_col203.clone(),
                partial_ec_mul_window_bits_9_output_limb_55_col204.clone(),
            ],
        ));

        eval.add_to_relation(RelationEntry::new(
            &self.common_lookup_elements,
            -E::EF::from(multiplicity_0_col233.clone()),
            &[
                M31_194336987.clone(),
                input_limb_0_col0.clone(),
                input_limb_1_col1.clone(),
                input_limb_2_col2.clone(),
            ],
        ));

        eval.finalize_logup_in_pairs();
        eval
    }
}

#[cfg(test)]
mod tests {
    use num_traits::Zero;
    use rand::rngs::SmallRng;
    use rand::{Rng, SeedableRng};
    use stwo::core::fields::qm31::QM31;
    use stwo_constraint_framework::expr::ExprEvaluator;

    use super::*;
    use crate::components::constraints_regression_test_values::PEDERSEN_AGGREGATOR_WINDOW_BITS_9;

    #[test]
    fn pedersen_aggregator_window_bits_9_constraints_regression() {
        let mut rng = SmallRng::seed_from_u64(0);
        let eval = Eval {
            claim: Claim { log_size: 4 },
            common_lookup_elements: relations::CommonLookupElements::dummy(),
        };
        let expr_eval = eval.evaluate(ExprEvaluator::new());
        let assignment = expr_eval.random_assignment();

        let mut sum = QM31::zero();
        for c in expr_eval.constraints {
            sum += c.assign(&assignment) * rng.gen::<QM31>();
        }

        PEDERSEN_AGGREGATOR_WINDOW_BITS_9.assert_debug_eq(&sum);
    }
}
