27 const auto execution_LIMIT_GTE_USED_L2 = (in.get(C::execution_l2_gas_limit) - execution_PREV_GAS_PLUS_USAGE_L2);
28 const auto execution_LIMIT_LT_USED_L2 =
29 ((execution_PREV_GAS_PLUS_USAGE_L2 - in.get(C::execution_l2_gas_limit)) -
FF(1));
30 const auto execution_PREV_GAS_PLUS_USAGE_DA = in.get(C::execution_prev_da_gas_used) + execution_TOTAL_DA_GAS_USED;
31 const auto execution_LIMIT_GTE_USED_DA = (in.get(C::execution_da_gas_limit) - execution_PREV_GAS_PLUS_USAGE_DA);
32 const auto execution_LIMIT_LT_USED_DA =
33 ((execution_PREV_GAS_PLUS_USAGE_DA - in.get(C::execution_da_gas_limit)) -
FF(1));
37 auto tmp = in.get(C::execution_sel_should_check_gas) * (
FF(64) - in.get(C::execution_constant_64));
38 tmp *= scaling_factor;
39 std::get<0>(evals) +=
typename Accumulator::View(tmp);
43 auto tmp = in.get(C::execution_out_of_gas_l2) * (
FF(1) - in.get(C::execution_out_of_gas_l2));
44 tmp *= scaling_factor;
45 std::get<1>(evals) +=
typename Accumulator::View(tmp);
49 auto tmp = in.get(C::execution_out_of_gas_da) * (
FF(1) - in.get(C::execution_out_of_gas_da));
50 tmp *= scaling_factor;
51 std::get<2>(evals) +=
typename Accumulator::View(tmp);
56 (in.get(C::execution_limit_used_l2_cmp_diff) -
57 in.get(C::execution_sel_should_check_gas) *
58 ((execution_LIMIT_LT_USED_L2 - execution_LIMIT_GTE_USED_L2) * in.get(C::execution_out_of_gas_l2) +
59 execution_LIMIT_GTE_USED_L2));
60 tmp *= scaling_factor;
61 std::get<3>(evals) +=
typename Accumulator::View(tmp);
66 (in.get(C::execution_limit_used_da_cmp_diff) -
67 in.get(C::execution_sel_should_check_gas) *
68 ((execution_LIMIT_LT_USED_DA - execution_LIMIT_GTE_USED_DA) * in.get(C::execution_out_of_gas_da) +
69 execution_LIMIT_GTE_USED_DA));
70 tmp *= scaling_factor;
71 std::get<4>(evals) +=
typename Accumulator::View(tmp);
75 auto tmp = (in.get(C::execution_sel_out_of_gas) - (
FF(1) - (
FF(1) - in.get(C::execution_out_of_gas_l2)) *
76 (
FF(1) - in.get(C::execution_out_of_gas_da))));
77 tmp *= scaling_factor;
78 std::get<5>(evals) +=
typename Accumulator::View(tmp);
82 auto tmp = (
FF(1) - in.get(C::execution_sel_should_check_gas)) * in.get(C::execution_sel_out_of_gas);
83 tmp *= scaling_factor;
84 std::get<6>(evals) +=
typename Accumulator::View(tmp);