18 package com.microsoft.z3;
30 return Native.astVectorSize(getContext().nCtx(), getNativeObject());
45 getNativeObject(), i));
51 Native.astVectorSet(getContext().nCtx(), getNativeObject(), i,
52 value.getNativeObject());
61 Native.astVectorResize(getContext().nCtx(), getNativeObject(), newSize);
71 Native.astVectorPush(getContext().nCtx(), getNativeObject(), a.getNativeObject());
84 .nCtx(), getNativeObject(), ctx.nCtx()));
94 return Native.astVectorToString(getContext().nCtx(), getNativeObject());
97 return "Z3Exception: " + e.getMessage();
106 ASTVector(Context ctx)
108 super(ctx, Native.mkAstVector(ctx.nCtx()));
113 getContext().getASTVectorDRQ().incAndClear(getContext(), o);
119 getContext().getASTVectorDRQ().add(o);
130 for (
int i = 0; i < n; i++)
131 res[i] =
AST.create(getContext(),
get(i).getNativeObject());
141 for (
int i = 0; i < n; i++)
142 res[i] =
Expr.create(getContext(),
get(i).getNativeObject());
153 for (
int i = 0; i < n; i++)
154 res[i] = (
BoolExpr) Expr.create(getContext(),
get(i).getNativeObject());
165 for (
int i = 0; i < n; i++)
166 res[i] = (
BitVecExpr)Expr.create(getContext(),
get(i).getNativeObject());
177 for (
int i = 0; i < n; i++)
178 res[i] = (
ArithExpr)Expr.create(getContext(),
get(i).getNativeObject());
189 for (
int i = 0; i < n; i++)
190 res[i] = (
ArrayExpr)Expr.create(getContext(),
get(i).getNativeObject());
201 for (
int i = 0; i < n; i++)
202 res[i] = (
DatatypeExpr)Expr.create(getContext(),
get(i).getNativeObject());
213 for (
int i = 0; i < n; i++)
214 res[i] = (
FPExpr)Expr.create(getContext(),
get(i).getNativeObject());
225 for (
int i = 0; i < n; i++)
226 res[i] = (
FPRMExpr)Expr.create(getContext(),
get(i).getNativeObject());
237 for (
int i = 0; i < n; i++)
238 res[i] = (
IntExpr)Expr.create(getContext(),
get(i).getNativeObject());
249 for (
int i = 0; i < n; i++)
250 res[i] = (
RealExpr)Expr.create(getContext(),
get(i).getNativeObject());
IntExpr[] ToIntExprArray()
void set(int i, AST value)
DatatypeExpr[] ToDatatypeExprArray()
ArithExpr[] ToArithExprExprArray()
BoolExpr[] ToBoolExprArray()
static long astVectorTranslate(long a0, long a1, long a2)
RealExpr[] ToRealExprArray()
ASTVector translate(Context ctx)
static long astVectorGet(long a0, long a1, int a2)
ArrayExpr[] ToArrayExprArray()
BitVecExpr[] ToBitVecExprArray()
FPRMExpr[] ToFPRMExprArray()