3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 11:25:51 +00:00

Logic simplifications

There is no point in writing "boolean ? true : false" instead of
"boolean"
This commit is contained in:
George Karpenkov 2016-01-06 11:16:30 +01:00
parent 52fdf73178
commit a816b4895c
7 changed files with 21 additions and 22 deletions

View file

@ -1537,8 +1537,7 @@ public class Context extends IDisposable
checkContextMatch(t1);
checkContextMatch(t2);
return new BoolExpr(this, Native.mkBvaddNoOverflow(nCtx(), t1
.getNativeObject(), t2.getNativeObject(), (isSigned) ? true
: false));
.getNativeObject(), t2.getNativeObject(), (isSigned)));
}
/**
@ -1580,8 +1579,7 @@ public class Context extends IDisposable
checkContextMatch(t1);
checkContextMatch(t2);
return new BoolExpr(this, Native.mkBvsubNoUnderflow(nCtx(), t1
.getNativeObject(), t2.getNativeObject(), (isSigned) ? true
: false));
.getNativeObject(), t2.getNativeObject(), (isSigned)));
}
/**
@ -1621,8 +1619,7 @@ public class Context extends IDisposable
checkContextMatch(t1);
checkContextMatch(t2);
return new BoolExpr(this, Native.mkBvmulNoOverflow(nCtx(), t1
.getNativeObject(), t2.getNativeObject(), (isSigned) ? true
: false));
.getNativeObject(), t2.getNativeObject(), (isSigned)));
}
/**