3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-06 14:13:23 +00:00

update java bindings for arrays

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-07-02 09:09:57 -07:00
parent fc8193828d
commit 1f5d182f6a

View file

@ -91,12 +91,12 @@ public class Model extends Z3Object {
return null; return null;
else else
{ {
if (!Native.isAsArray(getContext().nCtx(), n)) if (Native.isAsArray(getContext().nCtx(), n)) {
throw new Z3Exception(
"Argument was not an array constant");
long fd = Native.getAsArrayFuncDecl(getContext().nCtx(), n); long fd = Native.getAsArrayFuncDecl(getContext().nCtx(), n);
return getFuncInterp(new FuncDecl(getContext(), fd)); return getFuncInterp(new FuncDecl(getContext(), fd));
} }
return FuncInterp(getContext(), n);
}
} else } else
{ {
throw new Z3Exception( throw new Z3Exception(