|
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.
| smt_circuit::STerm add_signed | ( | smt_circuit::STerm | v0, |
| smt_circuit::STerm | v1, | ||
| uint32_t | bit_size | ||
| ) |
| v0 | Augend |
| v1 | Addend |
| bit_size | Bit size to truncate to |
Definition at line 68 of file helpers.cpp.
| 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 88 of file helpers.cpp.
| smt_circuit::STerm mul_signed | ( | smt_circuit::STerm | v0, |
| smt_circuit::STerm | v1, | ||
| uint32_t | bit_size | ||
| ) |
Signed multiplication operation: c = a * b + truncate to bit_size bits.
| v0 | Multiplicand |
| v1 | Multiplier |
| bit_size | Bit size to truncate to |
Definition at line 81 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 shl8 | ( | smt_circuit::STerm | v0, |
| smt_circuit::STerm | v1, | ||
| smt_solver::Solver * | solver | ||
| ) |
Left shift operation with 8-bit truncation.
| v0 | Value to shift |
| v1 | Number of bits to shift (8-bit value) |
| solver | SMT solver instance |
Definition at line 61 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.
| smt_circuit::STerm sub_signed | ( | smt_circuit::STerm | v0, |
| smt_circuit::STerm | v1, | ||
| uint32_t | bit_size | ||
| ) |
Signed subtraction operation: c = a - b + truncate to bit_size bits.
| v0 | Minuend |
| v1 | Subtrahend |
| bit_size | Bit size to truncate to |
Definition at line 74 of file helpers.cpp.