Static Value-Flow Analysis
|
#include <Z3Expr.h>
Public Member Functions | |
Z3Expr () | |
Z3Expr (const z3::expr &_e) | |
Z3Expr (int i) | |
Z3Expr (const Z3Expr &z3Expr) | |
Z3Expr (float f) | |
Z3Expr (double f) | |
virtual | ~Z3Expr ()=default |
Z3Expr & | operator= (const Z3Expr &rhs) |
const z3::expr & | getExpr () const |
u32_t | id () const |
get id | |
u32_t | hash () const |
get hash id | |
const std::string | to_string () const |
bool | is_numeral () const |
bool | is_bool () const |
Z3Expr | simplify () const |
int64_t | get_numeral_int64 () const |
int | get_numeral_int () const |
z3::sort | get_sort () const |
Static Public Member Functions | |
static z3::solver & | getSolver () |
Get z3 solver, singleton design here to make sure we only have one context. | |
static z3::context & | getContext () |
Get z3 context, singleton design here to make sure we only have one context. | |
static void | releaseContext () |
release z3 context | |
static void | releaseSolver () |
release z3 solver | |
static z3::expr | nullExpr () |
null expression | |
static std::string | dumpStr (const Z3Expr &z3Expr) |
output Z3 expression as a string | |
static u32_t | getExprSize (const Z3Expr &z3Expr) |
get the number of subexpression of a Z3 expression | |
static Z3Expr | getTrueCond () |
Return the unique true condition. | |
static Z3Expr | getFalseCond () |
Return the unique false condition. | |
static Z3Expr | NEG (const Z3Expr &z3Expr) |
compute NEG | |
static Z3Expr | AND (const Z3Expr &lhs, const Z3Expr &rhs) |
compute AND, used for branch condition | |
static Z3Expr | OR (const Z3Expr &lhs, const Z3Expr &rhs) |
compute OR, used for branch condition | |
Static Public Attributes | |
static z3::context * | ctx = nullptr |
static z3::solver * | solver = nullptr |
Private Attributes | |
z3::expr | e |
|
inline |
|
inline |
Definition at line 59 of file Z3Expr.h.
|
inline |
|
inline |
|
virtualdefault |
compute AND, used for branch condition
Definition at line 92 of file Z3Expr.cpp.
|
inline |
|
inline |
|
inline |
|
static |
Get z3 context, singleton design here to make sure we only have one context.
Definition at line 66 of file Z3Expr.cpp.
|
inline |
get the number of subexpression of a Z3 expression
Definition at line 76 of file Z3Expr.cpp.
Return the unique false condition.
|
static |
Get z3 solver, singleton design here to make sure we only have one context.
Definition at line 56 of file Z3Expr.cpp.
Return the unique true condition.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
null expression
compute OR, used for branch condition
Definition at line 130 of file Z3Expr.cpp.
|
static |
|
static |
release z3 solver
Definition at line 49 of file Z3Expr.cpp.
|
inline |
|
inline |
Definition at line 258 of file Z3Expr.h.