3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-08 07:03:23 +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

@ -190,11 +190,7 @@ public class Solver extends Z3Object
{
ASTVector assrts = new ASTVector(getContext(), Native.solverGetAssertions(
getContext().nCtx(), getNativeObject()));
int n = assrts.size();
BoolExpr[] res = new BoolExpr[n];
for (int i = 0; i < n; i++)
res[i] = new BoolExpr(getContext(), assrts.get(i).getNativeObject());
return res;
return assrts.ToBoolArray();
}
/**