Package com.microsoft.z3
Class ASTVector
java.lang.Object
com.microsoft.z3.Z3Object
com.microsoft.z3.ASTVector
Vectors of ASTs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(int i) Retrieves the i-th object in the vector.voidAdd the ASTato the back of the vector.voidresize(int newSize) Resize the vector tonewSize.voidintsize()The size of the vectorArithExpr<?>[]Translates the AST vector into an ArithExpr[]AST[]ToArray()Translates the AST vector into an AST[]ArrayExpr<?,?>[] Translates the AST vector into an ArrayExpr[]Translates the AST vector into an BitVecExpr[]BoolExpr[]Translates the AST vector into an BoolExpr[]DatatypeExpr<?>[]Translates the AST vector into an DatatypeExpr[]Expr<?>[]Translates the AST vector into an Expr[]FPExpr[]Translates the AST vector into an FPExpr[]FPRMExpr[]Translates the AST vector into an FPRMExpr[]IntExpr[]Translates the AST vector into an IntExpr[]RealExpr[]Translates the AST vector into an RealExpr[]toString()Retrieves a string representation of the vector.Translates all ASTs in the vector toctx.Methods inherited from class com.microsoft.z3.Z3Object
arrayLength, arrayToNative
-
Constructor Details
-
ASTVector
-
ASTVector
-
-
Method Details
-
size
public int size()The size of the vector -
get
Retrieves the i-th object in the vector. Remarks: May throw anIndexOutOfBoundsExceptionwheniis out of range.- Parameters:
i- Index- Returns:
- An AST
- Throws:
Z3Exception
-
set
-
resize
public void resize(int newSize) Resize the vector tonewSize.- Parameters:
newSize- The new size of the vector.
-
push
Add the ASTato the back of the vector. The size is increased by 1.- Parameters:
a- An AST
-
translate
Translates all ASTs in the vector toctx.- Parameters:
ctx- A context- Returns:
- A new ASTVector
- Throws:
Z3Exception
-
toString
Retrieves a string representation of the vector. -
ToArray
Translates the AST vector into an AST[] -
ToExprArray
Translates the AST vector into an Expr[] -
ToBoolExprArray
Translates the AST vector into an BoolExpr[] -
ToBitVecExprArray
Translates the AST vector into an BitVecExpr[] -
ToArithExprExprArray
Translates the AST vector into an ArithExpr[] -
ToArrayExprArray
Translates the AST vector into an ArrayExpr[] -
ToDatatypeExprArray
Translates the AST vector into an DatatypeExpr[] -
ToFPExprArray
Translates the AST vector into an FPExpr[] -
ToFPRMExprArray
Translates the AST vector into an FPRMExpr[] -
ToIntExprArray
Translates the AST vector into an IntExpr[] -
ToRealExprArray
Translates the AST vector into an RealExpr[]
-