Enumeration sorts.
More...
|
| FuncDecl | ConstDecl (uint inx) |
| | Retrieves the inx'th constant declaration in the enumeration.
|
| |
| Expr | Const (uint inx) |
| | Retrieves the inx'th constant in the enumeration.
|
| |
| FuncDecl | TesterDecl (uint inx) |
| | Retrieves the inx'th tester/recognizer declaration in the enumeration.
|
| |
| override bool | Equals (object o) |
| | Equality operator for objects of type Sort.
|
| |
| override int | GetHashCode () |
| | Hash code generation for Sorts.
|
| |
| override string | ToString () |
| | A string representation of the sort.
|
| |
| new Sort | Translate (Context ctx) |
| | Translates (copies) the sort to the Context ctx .
|
| |
| override bool | Equals (object o) |
| | Object comparison.
|
| |
| virtual int | CompareTo (object other) |
| | Object Comparison.
|
| |
| override int | GetHashCode () |
| | The AST's hash code.
|
| |
| AST | Translate (Context ctx) |
| | Translates (copies) the AST to the Context ctx .
|
| |
| override string | ToString () |
| | A string representation of the AST.
|
| |
| string | SExpr () |
| | A string representation of the AST in s-expression notation.
|
| |
| void | Dispose () |
| | Disposes of the underlying native Z3 object.
|
| |
|
| FuncDecl[] | ConstDecls [get] |
| | The function declarations of the constants in the enumeration.
|
| |
| Expr[] | Consts [get] |
| | The constants in the enumeration.
|
| |
| FuncDecl[] | TesterDecls [get] |
| | The test predicates (recognizers) for the constants in the enumeration.
|
| |
| new uint | Id [get] |
| | Returns a unique identifier for the sort.
|
| |
| Z3_sort_kind | SortKind [get] |
| | The kind of the sort.
|
| |
| Symbol | Name [get] |
| | The name of the sort.
|
| |
| uint | Id [get] |
| | A unique identifier for the AST (unique among all ASTs).
|
| |
| Z3_ast_kind | ASTKind [get] |
| | The kind of the AST.
|
| |
| bool | IsExpr [get] |
| | Indicates whether the AST is an Expr.
|
| |
| bool | IsApp [get] |
| | Indicates whether the AST is an application.
|
| |
| bool | IsVar [get] |
| | Indicates whether the AST is a BoundVariable.
|
| |
| bool | IsQuantifier [get] |
| | Indicates whether the AST is a Quantifier.
|
| |
| bool | IsSort [get] |
| | Indicates whether the AST is a Sort.
|
| |
| bool | IsFuncDecl [get] |
| | Indicates whether the AST is a FunctionDeclaration.
|
| |
| Context | Context [get] |
| | Access Context object.
|
| |
Enumeration sorts.
Definition at line 28 of file EnumSort.cs.
◆ Const()
Retrieves the inx'th constant in the enumeration.
- Parameters
-
- Returns
Definition at line 75 of file EnumSort.cs.
76 {
79 }
Expr MkApp(FuncDecl f, params Expr[] args)
Create a new function application.
FuncDecl ConstDecl(uint inx)
Retrieves the inx'th constant declaration in the enumeration.
Context Context
Access Context object.
◆ ConstDecl()
Retrieves the inx'th constant declaration in the enumeration.
- Parameters
-
- Returns
Definition at line 50 of file EnumSort.cs.
51 {
52 return new FuncDecl(Context, Native.Z3_get_datatype_sort_constructor(
Context.nCtx, NativeObject, inx));
53 }
Referenced by EnumSort.Const().
◆ TesterDecl()
Retrieves the inx'th tester/recognizer declaration in the enumeration.
- Parameters
-
- Returns
Definition at line 101 of file EnumSort.cs.
102 {
103 return new FuncDecl(Context, Native.Z3_get_datatype_sort_recognizer(
Context.nCtx, NativeObject, inx));
104 }
◆ ConstDecls
The function declarations of the constants in the enumeration.
Definition at line 33 of file EnumSort.cs.
34 {
35 get
36 {
37 uint n = Native.Z3_get_datatype_sort_num_constructors(
Context.nCtx, NativeObject);
38 FuncDecl[] t = new FuncDecl[n];
39 for (uint i = 0; i < n; i++)
40 t[i] =
new FuncDecl(Context, Native.Z3_get_datatype_sort_constructor(
Context.nCtx, NativeObject, i));
41 return t;
42 }
43 }
◆ Consts
The constants in the enumeration.
Definition at line 58 of file EnumSort.cs.
59 {
60 get
61 {
63 Expr[] t = new Expr[cds.Length];
64 for (uint i = 0; i < t.Length; i++)
66 return t;
67 }
68 }
FuncDecl[] ConstDecls
The function declarations of the constants in the enumeration.
◆ TesterDecls
The test predicates (recognizers) for the constants in the enumeration.
Definition at line 84 of file EnumSort.cs.
85 {
86 get
87 {
88 uint n = Native.Z3_get_datatype_sort_num_constructors(
Context.nCtx, NativeObject);
89 FuncDecl[] t = new FuncDecl[n];
90 for (uint i = 0; i < n; i++)
91 t[i] =
new FuncDecl(Context, Native.Z3_get_datatype_sort_recognizer(
Context.nCtx, NativeObject, i));
92 return t;
93 }
94 }