Vectors of ASTs. More...
Vectors of ASTs.
Definition at line 28 of file ASTVector.cs.
◆ Push()Add the AST a to the back of the vector. The size is increased by 1.
Definition at line 73 of file ASTVector.cs.
75Debug.Assert(a !=
null);
77Native.Z3_ast_vector_push(
Context.nCtx, NativeObject, a.NativeObject);
Context Context
Access Context object
◆ Resize() void Resize ( uint newSize ) inlineResize the vector to newSize .
Definition at line 63 of file ASTVector.cs.
65Native.Z3_ast_vector_resize(
Context.nCtx, NativeObject, newSize);
◆ ToArithExprArray()Translates an ASTVector into a ArithExpr[]
Definition at line 151 of file ASTVector.cs.
154ArithExpr[] res =
newArithExpr[n];
155 for(uint i = 0; i < n; i++)
156res[i] = (ArithExpr)Expr.Create(this.
Context,
this[i].NativeObject);
uint Size
The size of the vector
◆ ToArray()Translates an AST vector into an AST[]
Definition at line 103 of file ASTVector.cs.
106AST[] res =
newAST[n];
107 for(uint i = 0; i < n; i++)
108res[i] = AST.Create(
this.Context,
this[i].NativeObject);
◆ ToArrayExprArray()Translates an ASTVector into a ArrayExpr[]
Definition at line 163 of file ASTVector.cs.
166ArrayExpr[] res =
newArrayExpr[n];
167 for(uint i = 0; i < n; i++)
168res[i] = (ArrayExpr)Expr.Create(this.
Context,
this[i].NativeObject);
◆ ToBitVecExprArray()Translates an ASTVector into a BitVecExpr[]
Definition at line 139 of file ASTVector.cs.
142BitVecExpr[] res =
newBitVecExpr[n];
143 for(uint i = 0; i < n; i++)
144res[i] = (BitVecExpr)Expr.Create(this.
Context,
this[i].NativeObject);
◆ ToBoolExprArray() ◆ ToDatatypeExprArray()Translates an ASTVector into a DatatypeExpr[]
Definition at line 175 of file ASTVector.cs.
178DatatypeExpr[] res =
newDatatypeExpr[n];
179 for(uint i = 0; i < n; i++)
180res[i] = (DatatypeExpr)Expr.Create(this.
Context,
this[i].NativeObject);
◆ ToExprArray()Translates an ASTVector into an Expr[]
Definition at line 115 of file ASTVector.cs.
118Expr[] res =
newExpr[n];
119 for(uint i = 0; i < n; i++)
120res[i] = Expr.Create(
this.Context,
this[i].NativeObject);
Referenced by Model.SortUniverse().
◆ ToFPExprArray()Translates an ASTVector into a FPExpr[]
Definition at line 187 of file ASTVector.cs.
190FPExpr[] res =
newFPExpr[n];
191 for(uint i = 0; i < n; i++)
192res[i] = (FPExpr)Expr.Create(this.
Context,
this[i].NativeObject);
◆ ToFPRMExprArray()Translates an ASTVector into a FPRMExpr[]
Definition at line 199 of file ASTVector.cs.
202FPRMExpr[] res =
newFPRMExpr[n];
203 for(uint i = 0; i < n; i++)
204res[i] = (FPRMExpr)Expr.Create(this.
Context,
this[i].NativeObject);
◆ ToIntExprArray()Translates an ASTVector into a IntExpr[]
Definition at line 211 of file ASTVector.cs.
214IntExpr[] res =
newIntExpr[n];
215 for(uint i = 0; i < n; i++)
216res[i] = (IntExpr)Expr.Create(this.
Context,
this[i].NativeObject);
◆ ToRealExprArray()Translates an ASTVector into a RealExpr[]
Definition at line 223 of file ASTVector.cs.
226RealExpr[] res =
newRealExpr[n];
227 for(uint i = 0; i < n; i++)
228res[i] = (RealExpr)Expr.Create(this.
Context,
this[i].NativeObject);
◆ ToString() override string ToString ( ) inlineRetrieves a string representation of the vector.
Definition at line 95 of file ASTVector.cs.
97 returnNative.Z3_ast_vector_to_string(
Context.nCtx, NativeObject);
◆ Translate()Translates all ASTs in the vector to ctx .
Definition at line 85 of file ASTVector.cs.
87Debug.Assert(ctx !=
null);
89 return newASTVector(
Context, Native.Z3_ast_vector_translate(
Context.nCtx, NativeObject, ctx.nCtx));
◆ SizeThe size of the vector
Definition at line 33 of file ASTVector.cs.
35 get{
returnNative.Z3_ast_vector_size(
Context.nCtx, NativeObject); }
Referenced by ASTVector.ToArithExprArray(), ASTVector.ToArray(), ASTVector.ToArrayExprArray(), ASTVector.ToBitVecExprArray(), ASTVector.ToBoolExprArray(), ASTVector.ToDatatypeExprArray(), ASTVector.ToExprArray(), ASTVector.ToFPExprArray(), ASTVector.ToFPRMExprArray(), ASTVector.ToIntExprArray(), and ASTVector.ToRealExprArray().
◆ this[uint i]Retrieves the i-th object in the vector.
May throw an IndexOutOfBoundsException when i is out of range.
Definition at line 44 of file ASTVector.cs.
49 return newAST(
Context, Native.Z3_ast_vector_get(
Context.nCtx, NativeObject, i));
53Debug.Assert(value !=
null);
55Native.Z3_ast_vector_set(
Context.nCtx, NativeObject, i, value.NativeObject);
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