|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include "barretenberg/smt_verification/circuit/ultra_circuit.hpp"#include "barretenberg/smt_verification/solver/solver.hpp"#include "barretenberg/smt_verification/terms/term.hpp"Go to the source code of this file.
Functions | |
| smt_circuit::STerm | shl64 (smt_circuit::STerm v0, smt_circuit::STerm v1, smt_solver::Solver *solver) |
| Left shift operation with 64-bit truncation. | |
| smt_circuit::STerm | shl32 (smt_circuit::STerm v0, smt_circuit::STerm v1, smt_solver::Solver *solver) |
| Left shift operation with 32-bit truncation. | |
| smt_circuit::STerm | pow2_8 (smt_circuit::STerm v0, smt_solver::Solver *solver) |
| Calculates power of 2. | |
| smt_circuit::STerm | shr (smt_circuit::STerm v0, smt_circuit::STerm v1, smt_solver::Solver *solver) |
| Right shift operation. | |
| smt_circuit::STerm | shl (smt_circuit::STerm v0, smt_circuit::STerm v1, smt_solver::Solver *solver) |
| Left shift operation without truncation. | |
| smt_circuit::STerm | idiv (smt_circuit::STerm v0, smt_circuit::STerm v1, uint32_t bit_size, smt_solver::Solver *solver) |
| Signed division in noir-style. | |
| smt_circuit::STerm idiv | ( | smt_circuit::STerm | v0, |
| smt_circuit::STerm | v1, | ||
| uint32_t | bit_size, | ||
| smt_solver::Solver * | solver | ||
| ) |
Signed division in noir-style.
| v0 | Numerator |
| v1 | Denominator |
| bit_size | bit sizes of numerator and denominator |
| solver | SMT solver instance |
Definition at line 61 of file helpers.cpp.
| smt_circuit::STerm pow2_8 | ( | smt_circuit::STerm | v0, |
| smt_solver::Solver * | solver | ||
| ) |
Calculates power of 2.
| v0 | Exponent (8-bit value) |
| solver | SMT solver instance |
Definition at line 16 of file helpers.cpp.
| smt_circuit::STerm shl | ( | smt_circuit::STerm | v0, |
| smt_circuit::STerm | v1, | ||
| smt_solver::Solver * | solver | ||
| ) |
Left shift operation without truncation.
| v0 | Value to shift |
| v1 | Number of bits to shift (8-bit value) |
| solver | SMT solver instance |
Definition at line 34 of file helpers.cpp.
| smt_circuit::STerm shl32 | ( | smt_circuit::STerm | v0, |
| smt_circuit::STerm | v1, | ||
| smt_solver::Solver * | solver | ||
| ) |
Left shift operation with 32-bit truncation.
| v0 | Value to shift |
| v1 | Number of bits to shift (8-bit value) |
| solver | SMT solver instance |
Definition at line 54 of file helpers.cpp.
| smt_circuit::STerm shl64 | ( | smt_circuit::STerm | v0, |
| smt_circuit::STerm | v1, | ||
| smt_solver::Solver * | solver | ||
| ) |
Left shift operation with 64-bit truncation.
| v0 | Value to shift |
| v1 | Number of bits to shift (8-bit value) |
| solver | SMT solver instance |
Definition at line 47 of file helpers.cpp.
| smt_circuit::STerm shr | ( | smt_circuit::STerm | v0, |
| smt_circuit::STerm | v1, | ||
| smt_solver::Solver * | solver | ||
| ) |
Right shift operation.
| v0 | Value to shift |
| v1 | Number of bits to shift (8-bit value) |
| solver | SMT solver instance |
Definition at line 40 of file helpers.cpp.