A Model contains interpretations (assignments) of constants and functions. More...
Inheritance diagram for Model:Data Structures | |
| class | ModelEvaluationFailedException |
| A ModelEvaluationFailedException is thrown when an expression cannot be evaluated by the model. More... | |
Public Member Functions | |
| Expr | ConstInterp (Expr a) |
| Retrieves the interpretation (the assignment) of a in the model. More... | |
| Expr | ConstInterp (FuncDecl f) |
| Retrieves the interpretation (the assignment) of f in the model. More... | |
| FuncInterp | FuncInterp (FuncDecl f) |
| Retrieves the interpretation (the assignment) of a non-constant f in the model. More... | |
| Expr | Eval (Expr t, bool completion=false) |
| Evaluates the expression t in the current model. More... | |
| Expr | Evaluate (Expr t, bool completion=false) |
Alias for Eval. More... | |
| double | Double (Expr t) |
| Evaluate expression to a double, assuming it is a numeral already. More... | |
| Expr[] | SortUniverse (Sort s) |
| The finite set of distinct values that represent the interpretation for sort s . More... | |
| override string | ToString () |
| Conversion of models to strings. More... | |
Public Member Functions inherited from Z3Object | |
| 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... | |
| FuncDecl[] | ConstDecls [get] |
| The function declarations of the constants in the model. More... | |
| IEnumerable< KeyValuePair< FuncDecl, Expr > > | Consts [get] |
| Enumerate constants in model. More... | |
| uint | NumFuncs [get] |
| The number of function interpretations in the model. More... | |
| FuncDecl[] | FuncDecls [get] |
| The function declarations of the function interpretations in the model. More... | |
| FuncDecl[] | 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... | |
| Sort[] | Sorts [get] |
| The uninterpreted sorts that the model has an interpretation for. More... | |
Properties inherited from Z3Object | |
| Context | Context [get] |
| Access Context object More... | |
A Model contains interpretations (assignments) of constants and functions.
Retrieves the interpretation (the assignment) of a in the model.
| a | A Constant |
Definition at line 36 of file Model.cs.
Retrieves the interpretation (the assignment) of f in the model.
| f | A function declaration of zero arity |
|
inline |
Evaluate expression to a double, assuming it is a numeral already.
Definition at line 244 of file Model.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 220 of file Model.cs.
Referenced by Model.Double(), and Model.Evaluate().
|
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 69 of file Model.cs.
The finite set of distinct values that represent the interpretation for sort s .
| s | An uninterpreted sort |
|
inline |
|
get |
The function declarations of the constants in the model.
Definition at line 120 of file Model.cs.
|
get |
All symbols that have an interpretation in the model.
Definition at line 178 of file Model.cs.
|
get |
The function declarations of the function interpretations in the model.
|
get |
|
get |
|
get |
|
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 264 of file Model.cs.