mirror of
https://github.com/Z3Prover/z3
synced 2026-01-13 22:26:14 +00:00
Logic simplifications
There is no point in writing "boolean ? true : false" instead of "boolean"
This commit is contained in:
parent
52fdf73178
commit
a816b4895c
7 changed files with 21 additions and 22 deletions
|
|
@ -92,7 +92,7 @@ public class Model extends Z3Object
|
|||
return null;
|
||||
else
|
||||
{
|
||||
if (Native.isAsArray(getContext().nCtx(), n) ^ true)
|
||||
if (!Native.isAsArray(getContext().nCtx(), n))
|
||||
throw new Z3Exception(
|
||||
"Argument was not an array constant");
|
||||
long fd = Native.getAsArrayFuncDecl(getContext().nCtx(), n);
|
||||
|
|
@ -212,8 +212,8 @@ public class Model extends Z3Object
|
|||
public Expr eval(Expr t, boolean completion)
|
||||
{
|
||||
Native.LongPtr v = new Native.LongPtr();
|
||||
if (Native.modelEval(getContext().nCtx(), getNativeObject(),
|
||||
t.getNativeObject(), (completion) ? true : false, v) ^ true)
|
||||
if (!Native.modelEval(getContext().nCtx(), getNativeObject(),
|
||||
t.getNativeObject(), (completion), v))
|
||||
throw new ModelEvaluationFailedException();
|
||||
else
|
||||
return Expr.create(getContext(), v.value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue