13 const std::string& fname =
"witness.out",
17 const std::string& fname =
"witness.out",
23bb::fr string_to_fr(
const std::string& number,
int base,
bool is_signed =
true,
size_t step = 0);
Base class for symbolic circuits.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
bool smt_timer(smt_solver::Solver *s)
Get the solver result and amount of time that it took to solve.
std::vector< bb::fr > import_witness_single(const std::string &fname)
Import witness, obtained by solver, from file.
bb::fr string_to_fr(const std::string &number, int base, bool is_signed=true, size_t step=0)
Converts a string of an arbitrary base to fr. Note: there should be no prefix.
std::vector< std::vector< bb::fr > > default_model(const std::vector< std::string > &special, smt_circuit::CircuitBase &c1, smt_circuit::CircuitBase &c2, const std::string &fname="witness.out", bool pack=true)
Get pretty formatted result of the solver work.
void fix_range_lists(bb::UltraCircuitBuilder &builder)
Fix the triples from range_lists in the witness.
std::vector< bb::fr > default_model_single(const std::vector< std::string > &special, smt_circuit::CircuitBase &c, const std::string &fname="witness.out", bool pack=true)
Get pretty formatted result of the solver work.
std::pair< std::vector< bb::fr >, std::vector< bb::fr > > base4(uint32_t el)
base4 decomposition with accumulators
std::vector< std::vector< bb::fr > > import_witness(const std::string &fname)
Import witness, obtained by solver, from file.