Enumeration sorts. More...
Enumeration sorts.
Definition at line 28 of file EnumSort.cs.
◆ Const()Retrieves the inx'th constant in the enumeration.
Definition at line 75 of file EnumSort.cs.
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.
Definition at line 50 of file EnumSort.cs.
52 return newFuncDecl(
Context, Native.Z3_get_datatype_sort_constructor(
Context.nCtx, NativeObject, inx));
Referenced by EnumSort.Const().
◆ TesterDecl()Retrieves the inx'th tester/recognizer declaration in the enumeration.
Definition at line 101 of file EnumSort.cs.
103 return newFuncDecl(
Context, Native.Z3_get_datatype_sort_recognizer(
Context.nCtx, NativeObject, inx));
◆ ConstDeclsThe function declarations of the constants in the enumeration.
Definition at line 33 of file EnumSort.cs.
37uint n = Native.Z3_get_datatype_sort_num_constructors(
Context.nCtx, NativeObject);
38FuncDecl[] t =
newFuncDecl[n];
39 for(uint i = 0; i < n; i++)
40t[i] =
newFuncDecl(
Context, Native.Z3_get_datatype_sort_constructor(
Context.nCtx, NativeObject, i));
◆ ConstsThe constants in the enumeration.
Definition at line 58 of file EnumSort.cs.
63Expr[] t =
newExpr[cds.Length];
64 for(uint i = 0; i < t.Length; i++)
FuncDecl[] ConstDecls
The function declarations of the constants in the enumeration.
◆ TesterDeclsThe test predicates (recognizers) for the constants in the enumeration.
Definition at line 84 of file EnumSort.cs.
88uint n = Native.Z3_get_datatype_sort_num_constructors(
Context.nCtx, NativeObject);
89FuncDecl[] t =
newFuncDecl[n];
90 for(uint i = 0; i < n; i++)
91t[i] =
newFuncDecl(
Context, Native.Z3_get_datatype_sort_recognizer(
Context.nCtx, NativeObject, i));
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4