Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <instruction_spec.hpp>
Public Member Functions | |
RegisterInfo & | add_input (std::optional< ValueTag > tag=std::nullopt) |
RegisterInfo & | add_inputs (const std::vector< std::optional< ValueTag > > &tags) |
RegisterInfo & | add_output () |
size_t | num_inputs () const |
size_t | num_outputs () const |
size_t | total_registers () const |
bool | is_active (size_t index) const |
bool | is_write (size_t index) const |
bool | need_tag_check (size_t index) const |
std::optional< ValueTag > | expected_tag (size_t index) const |
bool | operator== (const RegisterInfo &other) const =default |
Static Public Attributes | |
static constexpr auto | ANY_TAG = std::nullopt |
Private Attributes | |
std::vector< std::optional< ValueTag > > | inputs |
bool | has_output = false |
Definition at line 28 of file instruction_spec.hpp.
RegisterInfo & bb::avm2::RegisterInfo::add_input | ( | std::optional< ValueTag > | tag = std::nullopt | ) |
Definition at line 388 of file instruction_spec.cpp.
RegisterInfo & bb::avm2::RegisterInfo::add_inputs | ( | const std::vector< std::optional< ValueTag > > & | tags | ) |
Definition at line 394 of file instruction_spec.cpp.
RegisterInfo & bb::avm2::RegisterInfo::add_output | ( | ) |
Definition at line 400 of file instruction_spec.cpp.
std::optional< ValueTag > bb::avm2::RegisterInfo::expected_tag | ( | size_t | index | ) | const |
Definition at line 421 of file instruction_spec.cpp.
bool bb::avm2::RegisterInfo::is_active | ( | size_t | index | ) | const |
Definition at line 406 of file instruction_spec.cpp.
bool bb::avm2::RegisterInfo::is_write | ( | size_t | index | ) | const |
Definition at line 411 of file instruction_spec.cpp.
bool bb::avm2::RegisterInfo::need_tag_check | ( | size_t | index | ) | const |
Definition at line 416 of file instruction_spec.cpp.
|
inline |
Definition at line 34 of file instruction_spec.hpp.
|
inline |
Definition at line 35 of file instruction_spec.hpp.
|
default |
|
inline |
Definition at line 36 of file instruction_spec.hpp.
|
staticconstexpr |
Definition at line 47 of file instruction_spec.hpp.
|
private |
Definition at line 53 of file instruction_spec.hpp.
|
private |
Definition at line 52 of file instruction_spec.hpp.