28 const auto update_check_TIMESTAMP_LT_TIMESTAMP_OF_CHANGE =
29 ((in.get(C::update_check_timestamp_of_change) -
FF(1)) - in.get(C::update_check_timestamp));
30 const auto update_check_TIMESTAMP_GTE_TIMESTAMP_OF_CHANGE =
31 (in.get(C::update_check_timestamp) - in.get(C::update_check_timestamp_of_change));
35 auto tmp = in.get(C::update_check_sel) * (
FF(1) - in.get(C::update_check_sel));
36 tmp *= scaling_factor;
37 std::get<0>(evals) +=
typename Accumulator::View(tmp);
41 auto tmp = (in.get(C::update_check_timestamp_pi_offset) -
42 in.get(C::update_check_sel) * constants_AVM_PUBLIC_INPUTS_GLOBAL_VARIABLES_TIMESTAMP_ROW_IDX);
43 tmp *= scaling_factor;
44 std::get<1>(evals) +=
typename Accumulator::View(tmp);
48 auto tmp = in.get(C::update_check_sel) *
49 (constants_UPDATED_CLASS_IDS_SLOT - in.get(C::update_check_updated_class_ids_slot));
50 tmp *= scaling_factor;
51 std::get<2>(evals) +=
typename Accumulator::View(tmp);
55 auto tmp = in.get(C::update_check_sel) * ((in.get(C::update_check_delayed_public_mutable_slot) +
56 constants_UPDATES_DELAYED_PUBLIC_MUTABLE_VALUES_LEN) -
57 in.get(C::update_check_delayed_public_mutable_hash_slot));
58 tmp *= scaling_factor;
59 std::get<3>(evals) +=
typename Accumulator::View(tmp);
63 auto tmp = in.get(C::update_check_sel) * (constants_GENERATOR_INDEX__PUBLIC_LEAF_INDEX -
64 in.get(C::update_check_public_leaf_index_domain_separator));
65 tmp *= scaling_factor;
66 std::get<4>(evals) +=
typename Accumulator::View(tmp);
70 auto tmp = in.get(C::update_check_sel) * (constants_CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS -
71 in.get(C::update_check_deployer_protocol_contract_address));
72 tmp *= scaling_factor;
73 std::get<5>(evals) +=
typename Accumulator::View(tmp);
77 auto tmp = in.get(C::update_check_hash_not_zero) * (
FF(1) - in.get(C::update_check_hash_not_zero));
78 tmp *= scaling_factor;
79 std::get<6>(evals) +=
typename Accumulator::View(tmp);
83 auto tmp = ((in.get(C::update_check_update_hash) *
84 (update_check_HASH_IS_ZERO * (
FF(1) - in.get(C::update_check_update_hash_inv)) +
85 in.get(C::update_check_update_hash_inv)) -
87 update_check_HASH_IS_ZERO);
88 tmp *= scaling_factor;
89 std::get<7>(evals) +=
typename Accumulator::View(tmp);
93 auto tmp = (
FF(1) - in.get(C::update_check_hash_not_zero)) *
94 (in.get(C::update_check_current_class_id) - in.get(C::update_check_original_class_id));
95 tmp *= scaling_factor;
96 std::get<8>(evals) +=
typename Accumulator::View(tmp);
101 in.get(C::update_check_hash_not_zero) *
102 ((constants_UPDATES_DELAYED_PUBLIC_MUTABLE_METADATA_BIT_SIZE - constants_TIMESTAMP_OF_CHANGE_BIT_SIZE) -
103 in.get(C::update_check_update_hi_metadata_bit_size));
104 tmp *= scaling_factor;
105 std::get<9>(evals) +=
typename Accumulator::View(tmp);
109 auto tmp = in.get(C::update_check_hash_not_zero) *
110 (constants_TIMESTAMP_OF_CHANGE_BIT_SIZE - in.get(C::update_check_timestamp_of_change_bit_size));
111 tmp *= scaling_factor;
116 auto tmp = ((in.get(C::update_check_update_hi_metadata) * update_check_TWO_POW_32 +
117 in.get(C::update_check_timestamp_of_change)) -
118 in.get(C::update_check_update_preimage_metadata));
119 tmp *= scaling_factor;
124 auto tmp = in.get(C::update_check_timestamp_is_lt_timestamp_of_change) *
125 (
FF(1) - in.get(C::update_check_timestamp_is_lt_timestamp_of_change));
126 tmp *= scaling_factor;
131 auto tmp = (((update_check_TIMESTAMP_LT_TIMESTAMP_OF_CHANGE - update_check_TIMESTAMP_GTE_TIMESTAMP_OF_CHANGE) *
132 in.get(C::update_check_timestamp_is_lt_timestamp_of_change) +
133 update_check_TIMESTAMP_GTE_TIMESTAMP_OF_CHANGE) -
134 in.get(C::update_check_timestamp_of_change_subtraction));
135 tmp *= scaling_factor;
140 auto tmp = in.get(C::update_check_update_pre_class_id_is_zero) *
141 (
FF(1) - in.get(C::update_check_update_pre_class_id_is_zero));
142 tmp *= scaling_factor;
148 in.get(C::update_check_hash_not_zero) * ((in.get(C::update_check_update_preimage_pre_class_id) *
149 (in.get(C::update_check_update_pre_class_id_is_zero) *
150 (
FF(1) - in.get(C::update_check_update_pre_class_inv)) +
151 in.get(C::update_check_update_pre_class_inv)) -
153 in.get(C::update_check_update_pre_class_id_is_zero));
154 tmp *= scaling_factor;
159 auto tmp = in.get(C::update_check_update_post_class_id_is_zero) *
160 (
FF(1) - in.get(C::update_check_update_post_class_id_is_zero));
161 tmp *= scaling_factor;
167 in.get(C::update_check_hash_not_zero) * ((in.get(C::update_check_update_preimage_post_class_id) *
168 (in.get(C::update_check_update_post_class_id_is_zero) *
169 (
FF(1) - in.get(C::update_check_update_post_class_inv)) +
170 in.get(C::update_check_update_post_class_inv)) -
172 in.get(C::update_check_update_post_class_id_is_zero));
173 tmp *= scaling_factor;
178 auto tmp = in.get(C::update_check_hash_not_zero) * in.get(C::update_check_timestamp_is_lt_timestamp_of_change) *
179 ((in.get(C::update_check_original_class_id) * in.get(C::update_check_update_pre_class_id_is_zero) +
180 in.get(C::update_check_update_preimage_pre_class_id)) -
181 in.get(C::update_check_current_class_id));
182 tmp *= scaling_factor;
187 auto tmp = in.get(C::update_check_hash_not_zero) *
188 (
FF(1) - in.get(C::update_check_timestamp_is_lt_timestamp_of_change)) *
189 ((in.get(C::update_check_original_class_id) * in.get(C::update_check_update_post_class_id_is_zero) +
190 in.get(C::update_check_update_preimage_post_class_id)) -
191 in.get(C::update_check_current_class_id));
192 tmp *= scaling_factor;