3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 03:15:50 +00:00

expose BoolExpr[] for ASTVector and merge common functionality

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-05-22 08:57:05 -07:00
parent 4d8af9191c
commit 279ef05713
4 changed files with 16 additions and 18 deletions

View file

@ -298,11 +298,7 @@ public class Fixedpoint extends Z3Object
ASTVector v = new ASTVector(getContext(), Native.fixedpointGetRules(
getContext().nCtx(), getNativeObject()));
int n = v.size();
BoolExpr[] res = new BoolExpr[n];
for (int i = 0; i < n; i++)
res[i] = new BoolExpr(getContext(), v.get(i).getNativeObject());
return res;
return v.ToBoolArray();
}
/**
@ -315,11 +311,7 @@ public class Fixedpoint extends Z3Object
ASTVector v = new ASTVector(getContext(), Native.fixedpointGetAssertions(
getContext().nCtx(), getNativeObject()));
int n = v.size();
BoolExpr[] res = new BoolExpr[n];
for (int i = 0; i < n; i++)
res[i] = new BoolExpr(getContext(), v.get(i).getNativeObject());
return res;
return v.ToBoolArray();
}
/**