Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
program_block.hpp File Reference

Go to the source code of this file.

Classes

class  ProgramBlock
 

Enumerations

enum class  TerminatorType { RETURN , JUMP , JUMP_IF , NONE }
 

Enumeration Type Documentation

◆ TerminatorType

enum class TerminatorType
strong

Program block is a logical block of the program. This abstraction is used, because we want to know which variables are defined in the block. For example the following program:

if (mem[1337]) {
// BLOCK 1
mem[1338] = 1;
} else {
// BLOCK 2
mem[1339] = 2;
}
// BLOCK 3
MemoryStore mem

In the BLOCK 3 only one of {1338, 1339} is defined, so we cannot use them.

Enumerator
RETURN 
JUMP 
JUMP_IF 
NONE 

Definition at line 30 of file program_block.hpp.