3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 13:28:47 +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,11 +91,11 @@ 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( long fd = Native.getAsArrayFuncDecl(getContext().nCtx(), n);
"Argument was not an array constant"); return getFuncInterp(new FuncDecl(getContext(), fd));
long fd = Native.getAsArrayFuncDecl(getContext().nCtx(), n); }
return getFuncInterp(new FuncDecl(getContext(), fd)); return FuncInterp(getContext(), n);
} }
} else } else
{ {