Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions barretenberg/cpp/pil/vm2/instr_fetching.pil
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include "bc_decomposition.pil";
include "range_check.pil";
include "constants_gen.pil";

namespace instr_fetching;

Expand Down Expand Up @@ -58,12 +59,13 @@ pc_abs_diff = sel * ((2 * pc_out_of_range - 1) * (pc - bytecode_size) - 1 + pc_o

// TODO: Remove this one once we support constant in lookup tuples
// A column with the value 32 at each row.
pol commit thirty_two;
pol commit pc_size_in_bits;
sel * (pc_size_in_bits - constants.AVM_PC_SIZE_IN_BITS) = 0;

// pc_abs_diff is 32-bit long (pc is uint32_t)
// Use constant AVM_PC_SIZE_IN_BITS once we support constants in lookup tuples.
#[PC_ABS_DIFF_POSITIVE]
sel { pc_abs_diff, thirty_two } in range_check.sel { range_check.value, range_check.rng_chk_bits };
sel { pc_abs_diff, pc_size_in_bits } in range_check.sel { range_check.value, range_check.rng_chk_bits };

// The size of the bytecode is bytes_remaining at pc == 0.
#[BYTECODE_SIZE_FROM_BC_DEC]
Expand Down
Loading
Loading