A Model contains interpretations (assignments) of constants and functions. More...
Data Structures | |
class | ArrayValue |
An array value obtained by untangling a model assignment. More... | |
class | ModelEvaluationFailedException |
A ModelEvaluationFailedException is thrown when an expression cannot be evaluated by the model. More... | |
Public Member Functions | |
Z3_ast | ConstInterp (Z3_ast a) |
Retrieves the interpretation (the assignment) of a in the model. More... | |
Z3_ast | ConstFuncInterp (Z3_func_decl f) |
Retrieves the interpretation (the assignment) of f in the model. More... | |
NativeFuncInterp | FuncInterp (Z3_func_decl f) |
Retrieves the interpretation (the assignment) of a non-constant f in the model. More... | |
Z3_ast | Eval (Z3_ast t, bool completion=false) |
Evaluates the expression t in the current model. More... | |
Z3_ast | Evaluate (Z3_ast t, bool completion=false) |
Alias for Eval . More... | |
double | Double (Z3_ast t) |
Evaluate expression to a double, assuming it is a numeral already. More... | |
bool | TryGetArrayValue (Z3_ast t, out ArrayValue result) |
Convert the interpretation of t into a sequence of array updates More... | |
override string | ToString () |
Conversion of models to strings. More... | |
void | Dispose () |
Disposes of the underlying native Z3 object. More... | |
Properties | |
uint | NumConsts [get] |
The number of constants that have an interpretation in the model. More... | |
Z3_func_decl[] | ConstDecls [get] |
The function declarations of the constants in the model. More... | |
IEnumerable< KeyValuePair< Z3_func_decl, Z3_ast > > | Consts [get] |
Enumerate constants in model. More... | |
uint | NumFuncs [get] |
The number of function interpretations in the model. More... | |
Z3_func_decl[] | FuncDecls [get] |
The function declarations of the function interpretations in the model. More... | |
Z3_func_decl[] | Decls [get] |
All symbols that have an interpretation in the model. More... | |
uint | NumSorts [get] |
The number of uninterpreted sorts that the model has an interpretation for. More... | |
Z3_sort[] | Sorts [get] |
The uninterpreted sorts that the model has an interpretation for. More... | |
A Model contains interpretations (assignments) of constants and functions.
Definition at line 36 of file NativeModel.cs.
|
inline |
Retrieves the interpretation (the assignment) of f in the model.
f | A function declaration of zero arity |
Definition at line 51 of file NativeModel.cs.
Retrieves the interpretation (the assignment) of a in the model.
a | A Constant |
|
inline |
Disposes of the underlying native Z3 object.
Definition at line 368 of file NativeModel.cs.
|
inline |
Evaluate expression to a double, assuming it is a numeral already.
Definition at line 232 of file NativeModel.cs.
Evaluates the expression t in the current model.
This function may fail if t contains quantifiers, is partial (MODEL_PARTIAL enabled), or if t is not well-sorted. In this case a ModelEvaluationFailedException
is thrown.
t | An expression |
completion | When this flag is enabled, a model value will be assigned to any constant or function that does not have an interpretation in the model. |
Definition at line 214 of file NativeModel.cs.
Referenced by NativeModel.Double(), and NativeModel.TryGetArrayValue().
|
inline |
Retrieves the interpretation (the assignment) of a non-constant f in the model.
f | A function declaration of non-zero arity |
Definition at line 64 of file NativeModel.cs.
|
inline |
Conversion of models to strings.
Definition at line 339 of file NativeModel.cs.
|
inline |
Convert the interpretation of t into a sequence of array updates
t | |
result |
Definition at line 272 of file NativeModel.cs.
|
get |
The function declarations of the constants in the model.
Definition at line 113 of file NativeModel.cs.
|
get |
|
get |
All symbols that have an interpretation in the model.
Definition at line 172 of file NativeModel.cs.
|
get |
The function declarations of the function interpretations in the model.
Definition at line 156 of file NativeModel.cs.
|
get |
The number of constants that have an interpretation in the model.
Definition at line 104 of file NativeModel.cs.
|
get |
The number of function interpretations in the model.
Definition at line 148 of file NativeModel.cs.
|
get |
The number of uninterpreted sorts that the model has an interpretation for.
Definition at line 309 of file NativeModel.cs.
|
get |
The uninterpreted sorts that the model has an interpretation for.
Z3 also provides an interpretation for uninterpreted sorts used in a formula. The interpretation for a sort is a finite set of distinct values. We say this finite set is the "universe" of the sort.
Definition at line 321 of file NativeModel.cs.