Z3 C++ namespace. More...
Data Structures | |
class | apply_result |
class | array |
class | ast |
class | ast_vector_tpl |
class | cast_ast |
class | cast_ast< ast > |
class | cast_ast< expr > |
class | cast_ast< func_decl > |
class | cast_ast< sort > |
class | config |
Z3 global configuration object. More... | |
class | context |
A Context manages all other Z3 objects, global configuration options, etc. More... | |
class | exception |
Exception used to sign API usage errors. More... | |
class | expr |
A Z3 expression is used to represent formulas and terms. For Z3, a formula is any expression of sort Boolean. Every expression has a sort. More... | |
class | fixedpoint |
class | func_decl |
Function declaration (aka function definition). It is the signature of interpreted and uninterpreted functions in Z3. The basic building block in Z3 is the function application. More... | |
class | func_entry |
class | func_interp |
class | goal |
class | model |
class | object |
class | optimize |
class | param_descrs |
class | params |
class | probe |
class | solver |
class | sort |
A Z3 sort (aka type). Every expression (i.e., formula or term) in Z3 has a sort. More... | |
class | stats |
class | symbol |
class | tactic |
Typedefs | |
typedef ast_vector_tpl< ast > | ast_vector |
typedef ast_vector_tpl< expr > | expr_vector |
typedef ast_vector_tpl< sort > | sort_vector |
typedef ast_vector_tpl< func_decl > | func_decl_vector |
Enumerations | |
enum | check_result { unsat, sat, unknown } |
Functions | |
void | set_param (char const *param, char const *value) |
void | set_param (char const *param, bool value) |
void | set_param (char const *param, int value) |
void | reset_params () |
std::ostream & | operator<< (std::ostream &out, exception const &e) |
check_result | to_check_result (Z3_lbool l) |
void | check_context (object const &a, object const &b) |
std::ostream & | operator<< (std::ostream &out, symbol const &s) |
std::ostream & | operator<< (std::ostream &out, param_descrs const &d) |
std::ostream & | operator<< (std::ostream &out, params const &p) |
std::ostream & | operator<< (std::ostream &out, ast const &n) |
bool | eq (ast const &a, ast const &b) |
expr | implies (expr const &a, expr const &b) |
expr | implies (expr const &a, bool b) |
expr | implies (bool a, expr const &b) |
expr | pw (expr const &a, expr const &b) |
expr | pw (expr const &a, int b) |
expr | pw (int a, expr const &b) |
expr | mod (expr const &a, expr const &b) |
expr | mod (expr const &a, int b) |
expr | mod (int a, expr const &b) |
expr | rem (expr const &a, expr const &b) |
expr | rem (expr const &a, int b) |
expr | rem (int a, expr const &b) |
expr | operator! (expr const &a) |
expr | is_int (expr const &e) |
expr | operator && (expr const &a, expr const &b) |
expr | operator && (expr const &a, bool b) |
expr | operator && (bool a, expr const &b) |
expr | operator|| (expr const &a, expr const &b) |
expr | operator|| (expr const &a, bool b) |
expr | operator|| (bool a, expr const &b) |
expr | operator== (expr const &a, expr const &b) |
expr | operator== (expr const &a, int b) |
expr | operator== (int a, expr const &b) |
expr | operator!= (expr const &a, expr const &b) |
expr | operator!= (expr const &a, int b) |
expr | operator!= (int a, expr const &b) |
expr | operator+ (expr const &a, expr const &b) |
expr | operator+ (expr const &a, int b) |
expr | operator+ (int a, expr const &b) |
expr | operator* (expr const &a, expr const &b) |
expr | operator* (expr const &a, int b) |
expr | operator* (int a, expr const &b) |
expr | operator>= (expr const &a, expr const &b) |
expr | operator/ (expr const &a, expr const &b) |
expr | operator/ (expr const &a, int b) |
expr | operator/ (int a, expr const &b) |
expr | operator- (expr const &a) |
expr | operator- (expr const &a, expr const &b) |
expr | operator- (expr const &a, int b) |
expr | operator- (int a, expr const &b) |
expr | operator<= (expr const &a, expr const &b) |
expr | operator<= (expr const &a, int b) |
expr | operator<= (int a, expr const &b) |
expr | operator>= (expr const &a, int b) |
expr | operator>= (int a, expr const &b) |
expr | operator< (expr const &a, expr const &b) |
expr | operator< (expr const &a, int b) |
expr | operator< (int a, expr const &b) |
expr | operator> (expr const &a, expr const &b) |
expr | operator> (expr const &a, int b) |
expr | operator> (int a, expr const &b) |
expr | operator & (expr const &a, expr const &b) |
expr | operator & (expr const &a, int b) |
expr | operator & (int a, expr const &b) |
expr | operator^ (expr const &a, expr const &b) |
expr | operator^ (expr const &a, int b) |
expr | operator^ (int a, expr const &b) |
expr | operator| (expr const &a, expr const &b) |
expr | operator| (expr const &a, int b) |
expr | operator| (int a, expr const &b) |
expr | nand (expr const &a, expr const &b) |
expr | nor (expr const &a, expr const &b) |
expr | xnor (expr const &a, expr const &b) |
expr | operator~ (expr const &a) |
expr | ite (expr const &c, expr const &t, expr const &e) |
Create the if-then-else expression ite(c, t, e) More... | |
expr | to_expr (context &c, Z3_ast a) |
Wraps a Z3_ast as an expr object. It also checks for errors. This function allows the user to use the whole C API with the C++ layer defined in this file. More... | |
sort | to_sort (context &c, Z3_sort s) |
func_decl | to_func_decl (context &c, Z3_func_decl f) |
expr | ule (expr const &a, expr const &b) |
unsigned less than or equal to operator for bitvectors. More... | |
expr | ule (expr const &a, int b) |
expr | ule (int a, expr const &b) |
expr | ult (expr const &a, expr const &b) |
unsigned less than operator for bitvectors. More... | |
expr | ult (expr const &a, int b) |
expr | ult (int a, expr const &b) |
expr | uge (expr const &a, expr const &b) |
unsigned greater than or equal to operator for bitvectors. More... | |
expr | uge (expr const &a, int b) |
expr | uge (int a, expr const &b) |
expr | ugt (expr const &a, expr const &b) |
unsigned greater than operator for bitvectors. More... | |
expr | ugt (expr const &a, int b) |
expr | ugt (int a, expr const &b) |
expr | udiv (expr const &a, expr const &b) |
unsigned division operator for bitvectors. More... | |
expr | udiv (expr const &a, int b) |
expr | udiv (int a, expr const &b) |
expr | srem (expr const &a, expr const &b) |
signed remainder operator for bitvectors More... | |
expr | srem (expr const &a, int b) |
expr | srem (int a, expr const &b) |
expr | smod (expr const &a, expr const &b) |
signed modulus operator for bitvectors More... | |
expr | smod (expr const &a, int b) |
expr | smod (int a, expr const &b) |
expr | urem (expr const &a, expr const &b) |
unsigned reminder operator for bitvectors More... | |
expr | urem (expr const &a, int b) |
expr | urem (int a, expr const &b) |
expr | shl (expr const &a, expr const &b) |
shift left operator for bitvectors More... | |
expr | shl (expr const &a, int b) |
expr | shl (int a, expr const &b) |
expr | lshr (expr const &a, expr const &b) |
logic shift right operator for bitvectors More... | |
expr | lshr (expr const &a, int b) |
expr | lshr (int a, expr const &b) |
expr | ashr (expr const &a, expr const &b) |
arithmetic shift right operator for bitvectors More... | |
expr | ashr (expr const &a, int b) |
expr | ashr (int a, expr const &b) |
expr | zext (expr const &a, unsigned i) |
Extend the given bit-vector with zeros to the (unsigned) equivalent bitvector of size m+i, where m is the size of the given bit-vector. More... | |
expr | sext (expr const &a, unsigned i) |
Sign-extend of the given bit-vector to the (signed) equivalent bitvector of size m+i, where m is the size of the given bit-vector. More... | |
expr | forall (expr const &x, expr const &b) |
expr | forall (expr const &x1, expr const &x2, expr const &b) |
expr | forall (expr const &x1, expr const &x2, expr const &x3, expr const &b) |
expr | forall (expr const &x1, expr const &x2, expr const &x3, expr const &x4, expr const &b) |
expr | forall (expr_vector const &xs, expr const &b) |
expr | exists (expr const &x, expr const &b) |
expr | exists (expr const &x1, expr const &x2, expr const &b) |
expr | exists (expr const &x1, expr const &x2, expr const &x3, expr const &b) |
expr | exists (expr const &x1, expr const &x2, expr const &x3, expr const &x4, expr const &b) |
expr | exists (expr_vector const &xs, expr const &b) |
expr | pble (expr_vector const &es, int const *coeffs, int bound) |
expr | pbge (expr_vector const &es, int const *coeffs, int bound) |
expr | pbeq (expr_vector const &es, int const *coeffs, int bound) |
expr | atmost (expr_vector const &es, unsigned bound) |
expr | atleast (expr_vector const &es, unsigned bound) |
expr | sum (expr_vector const &args) |
expr | distinct (expr_vector const &args) |
expr | concat (expr const &a, expr const &b) |
expr | concat (expr_vector const &args) |
expr | mk_or (expr_vector const &args) |
expr | mk_and (expr_vector const &args) |
std::ostream & | operator<< (std::ostream &out, model const &m) |
std::ostream & | operator<< (std::ostream &out, stats const &s) |
std::ostream & | operator<< (std::ostream &out, check_result r) |
std::ostream & | operator<< (std::ostream &out, solver const &s) |
std::ostream & | operator<< (std::ostream &out, goal const &g) |
std::ostream & | operator<< (std::ostream &out, apply_result const &r) |
tactic | operator & (tactic const &t1, tactic const &t2) |
tactic | operator| (tactic const &t1, tactic const &t2) |
tactic | repeat (tactic const &t, unsigned max=UINT_MAX) |
tactic | with (tactic const &t, params const &p) |
tactic | try_for (tactic const &t, unsigned ms) |
tactic | par_or (unsigned n, tactic const *tactics) |
tactic | par_and_then (tactic const &t1, tactic const &t2) |
probe | operator<= (probe const &p1, probe const &p2) |
probe | operator<= (probe const &p1, double p2) |
probe | operator<= (double p1, probe const &p2) |
probe | operator>= (probe const &p1, probe const &p2) |
probe | operator>= (probe const &p1, double p2) |
probe | operator>= (double p1, probe const &p2) |
probe | operator< (probe const &p1, probe const &p2) |
probe | operator< (probe const &p1, double p2) |
probe | operator< (double p1, probe const &p2) |
probe | operator> (probe const &p1, probe const &p2) |
probe | operator> (probe const &p1, double p2) |
probe | operator> (double p1, probe const &p2) |
probe | operator== (probe const &p1, probe const &p2) |
probe | operator== (probe const &p1, double p2) |
probe | operator== (double p1, probe const &p2) |
probe | operator && (probe const &p1, probe const &p2) |
probe | operator|| (probe const &p1, probe const &p2) |
probe | operator! (probe const &p) |
std::ostream & | operator<< (std::ostream &out, optimize const &s) |
std::ostream & | operator<< (std::ostream &out, fixedpoint const &f) |
tactic | fail_if (probe const &p) |
tactic | when (probe const &p, tactic const &t) |
tactic | cond (probe const &p, tactic const &t1, tactic const &t2) |
expr | to_real (expr const &a) |
func_decl | function (symbol const &name, unsigned arity, sort const *domain, sort const &range) |
func_decl | function (char const *name, unsigned arity, sort const *domain, sort const &range) |
func_decl | function (char const *name, sort const &domain, sort const &range) |
func_decl | function (char const *name, sort const &d1, sort const &d2, sort const &range) |
func_decl | function (char const *name, sort const &d1, sort const &d2, sort const &d3, sort const &range) |
func_decl | function (char const *name, sort const &d1, sort const &d2, sort const &d3, sort const &d4, sort const &range) |
func_decl | function (char const *name, sort const &d1, sort const &d2, sort const &d3, sort const &d4, sort const &d5, sort const &range) |
expr | select (expr const &a, expr const &i) |
expr | select (expr const &a, int i) |
expr | store (expr const &a, expr const &i, expr const &v) |
expr | select (expr const &a, expr_vector const &i) |
expr | store (expr const &a, int i, expr const &v) |
expr | store (expr const &a, expr i, int v) |
expr | store (expr const &a, int i, int v) |
expr | store (expr const &a, expr_vector const &i, expr const &v) |
expr | as_array (func_decl &f) |
expr | const_array (sort const &d, expr const &v) |
expr | empty_set (sort const &s) |
expr | full_set (sort const &s) |
expr | set_add (expr const &s, expr const &e) |
expr | set_del (expr const &s, expr const &e) |
expr | set_union (expr const &a, expr const &b) |
expr | set_intersect (expr const &a, expr const &b) |
expr | set_difference (expr const &a, expr const &b) |
expr | set_complement (expr const &a) |
expr | set_member (expr const &s, expr const &e) |
expr | set_subset (expr const &a, expr const &b) |
expr | empty (sort const &s) |
expr | suffixof (expr const &a, expr const &b) |
expr | prefixof (expr const &a, expr const &b) |
expr | indexof (expr const &s, expr const &substr, expr const &offset) |
expr | to_re (expr const &s) |
expr | in_re (expr const &s, expr const &re) |
expr | plus (expr const &re) |
expr | option (expr const &re) |
expr | star (expr const &re) |
expr | re_empty (sort const &s) |
expr | re_full (sort const &s) |
expr | re_intersect (expr_vector const &args) |
expr | re_complement (expr const &a) |
expr | range (expr const &lo, expr const &hi) |
expr | interpolant (expr const &a) |
Z3 C++ namespace.
typedef ast_vector_tpl<ast> ast_vector |
typedef ast_vector_tpl<expr> expr_vector |
typedef ast_vector_tpl<func_decl> func_decl_vector |
typedef ast_vector_tpl<sort> sort_vector |
enum check_result |
Enumerator | |
---|---|
unsat | |
sat | |
unknown |
arithmetic shift right operator for bitvectors
Definition at line 1467 of file z3++.h.
Referenced by ashr().
|
inline |
Definition at line 1667 of file z3++.h.
Referenced by expr::body().
|
inline |
Definition at line 1659 of file z3++.h.
Referenced by expr::body().
Definition at line 368 of file z3++.h.
Referenced by goal::add(), tactic::apply(), expr::at(), solver::check(), object::check_error(), concat(), cond(), expr::contains(), apply_result::convert_model(), model::eval(), exists(), expr::extract(), forall(), context::function(), model::get_const_interp(), model::get_func_interp(), model::has_interp(), indexof(), ite(), nand(), nor(), operator &(), operator &&(), operator!=(), func_decl::operator()(), operator*(), operator+(), operator-(), operator/(), operator<(), operator<=(), operator==(), operator>(), operator>=(), operator^(), operator|(), operator||(), par_and_then(), prefixof(), range(), expr::replace(), select(), set_intersect(), set_union(), store(), suffixof(), when(), and xnor().
Definition at line 1693 of file z3++.h.
Referenced by expr::body(), and operator+().
|
inline |
Definition at line 1711 of file z3++.h.
|
inline |
Definition at line 1684 of file z3++.h.
Referenced by expr::body().
Definition at line 1611 of file z3++.h.
Definition at line 1616 of file z3++.h.
Definition at line 1621 of file z3++.h.
|
inline |
Definition at line 1626 of file z3++.h.
|
inline |
Definition at line 1631 of file z3++.h.
Definition at line 1587 of file z3++.h.
Definition at line 1592 of file z3++.h.
Definition at line 1597 of file z3++.h.
|
inline |
Definition at line 1602 of file z3++.h.
|
inline |
Definition at line 1607 of file z3++.h.
|
inline |
Definition at line 2625 of file z3++.h.
|
inline |
Definition at line 2628 of file z3++.h.
Definition at line 2631 of file z3++.h.
|
inline |
Definition at line 2634 of file z3++.h.
|
inline |
Definition at line 2637 of file z3++.h.
|
inline |
Definition at line 2640 of file z3++.h.
|
inline |
Definition at line 2643 of file z3++.h.
Definition at line 1082 of file z3++.h.
Referenced by expr::body(), and implies().
Definition at line 1112 of file z3++.h.
Referenced by expr::body(), and sort::is_arith().
Create the if-then-else expression ite(c, t, e)
Definition at line 1366 of file z3++.h.
Referenced by expr::body().
logic shift right operator for bitvectors
Definition at line 1460 of file z3++.h.
Referenced by lshr().
|
inline |
Definition at line 1743 of file z3++.h.
Referenced by expr::body().
|
inline |
Definition at line 1737 of file z3++.h.
Referenced by expr::body().
Definition at line 1094 of file z3++.h.
Referenced by expr::body(), and mod().
Definition at line 1116 of file z3++.h.
Referenced by expr::body(), and probe::operator()().
Definition at line 2259 of file z3++.h.
Definition at line 1110 of file z3++.h.
Referenced by expr::body(), and probe::operator()().
|
inline |
Definition at line 1150 of file z3++.h.
Referenced by expr::body().
|
inline |
|
inline |
Definition at line 1187 of file z3++.h.
Referenced by expr::body(), and ast_vector_tpl< T >::iterator::operator->().
Definition at line 1160 of file z3++.h.
Referenced by expr::body().
Definition at line 1244 of file z3++.h.
Referenced by expr::body().
Definition at line 1225 of file z3++.h.
Referenced by expr::body().
Definition at line 1302 of file z3++.h.
Referenced by expr::body(), and probe::operator()().
Definition at line 2244 of file z3++.h.
|
inline |
|
inline |
Definition at line 383 of file z3++.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1913 of file z3++.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1280 of file z3++.h.
Referenced by expr::body(), and probe::operator()().
Definition at line 2234 of file z3++.h.
Definition at line 1141 of file z3++.h.
Referenced by expr::body(), and probe::operator()().
Definition at line 2254 of file z3++.h.
Definition at line 1321 of file z3++.h.
Referenced by expr::body(), and probe::operator()().
Definition at line 2249 of file z3++.h.
Definition at line 1208 of file z3++.h.
Referenced by expr::body(), and probe::operator()().
Definition at line 2239 of file z3++.h.
Definition at line 1128 of file z3++.h.
Referenced by expr::body(), and probe::operator()().
Definition at line 2262 of file z3++.h.
Definition at line 2185 of file z3++.h.
Referenced by tactic::help().
Definition at line 2176 of file z3++.h.
Referenced by tactic::help().
|
inline |
Definition at line 1651 of file z3++.h.
Referenced by expr::body().
|
inline |
Definition at line 1643 of file z3++.h.
Referenced by expr::body().
|
inline |
Definition at line 1635 of file z3++.h.
Referenced by expr::body().
Definition at line 1090 of file z3++.h.
Referenced by expr::body(), and pw().
Definition at line 2813 of file z3++.h.
Referenced by z3py::AndThen(), ApplyResult::as_expr(), z3py::AtLeast(), ExprRef::children(), z3py::describe_probes(), z3py::eq(), context::function(), z3py::Function(), function(), FuncDecl.Parameter::getParameterKind(), ArraySort::getRange(), context::interrupt(), expr::itos(), z3py::OrElse(), z3py::ParOr(), z3py::probes(), z3py::RealVarVector(), AstVector::resize(), Fixedpoint::set_predicate_representation(), z3py::substitute(), z3py::substitute_vars(), z3py::tactics(), and Solver::to_smt2().
|
inline |
Definition at line 1098 of file z3++.h.
Referenced by expr::body(), and rem().
Definition at line 2160 of file z3++.h.
Referenced by tactic::help().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sign-extend of the given bit-vector to the (signed) equivalent bitvector of size m+i, where m is the size of the given bit-vector.
Definition at line 1479 of file z3++.h.
shift left operator for bitvectors
Definition at line 1453 of file z3++.h.
Referenced by shl().
signed modulus operator for bitvectors
Definition at line 1439 of file z3++.h.
Referenced by smod().
signed remainder operator for bitvectors
Definition at line 1432 of file z3++.h.
Referenced by srem().
|
inline |
|
inline |
Definition at line 1675 of file z3++.h.
Referenced by expr::body().
|
inline |
Definition at line 130 of file z3++.h.
Referenced by solver::check(), optimize::check(), context::compute_interpolant(), solver::consequences(), and fixedpoint::query().
Wraps a Z3_ast as an expr object. It also checks for errors. This function allows the user to use the whole C API with the C++ layer defined in this file.
Definition at line 1379 of file z3++.h.
Referenced by ashr(), lshr(), sext(), shl(), smod(), srem(), udiv(), uge(), ugt(), ule(), ult(), urem(), and zext().
Definition at line 1388 of file z3++.h.
Referenced by context::enumeration_sort(), and context::uninterpreted_sort().
Definition at line 2171 of file z3++.h.
Referenced by tactic::help().
unsigned division operator for bitvectors.
Definition at line 1425 of file z3++.h.
Referenced by udiv().
unsigned greater than or equal to operator for bitvectors.
Definition at line 1413 of file z3++.h.
Referenced by uge().
unsigned greater than operator for bitvectors.
Definition at line 1419 of file z3++.h.
Referenced by ugt().
unsigned less than or equal to operator for bitvectors.
Definition at line 1401 of file z3++.h.
Referenced by ule().
unsigned less than operator for bitvectors.
Definition at line 1407 of file z3++.h.
Referenced by ult().
unsigned reminder operator for bitvectors
Definition at line 1446 of file z3++.h.
Referenced by urem().
Definition at line 2166 of file z3++.h.
Referenced by tactic::help().
Extend the given bit-vector with zeros to the (unsigned) equivalent bitvector of size m+i, where m is the size of the given bit-vector.
Definition at line 1474 of file z3++.h.