diff --git a/subprojects/common/core/src/main/java/hu/bme/mit/theta/core/type/fptype/FpLitExpr.java b/subprojects/common/core/src/main/java/hu/bme/mit/theta/core/type/fptype/FpLitExpr.java index 857e6dd188..deb29cfc5d 100644 --- a/subprojects/common/core/src/main/java/hu/bme/mit/theta/core/type/fptype/FpLitExpr.java +++ b/subprojects/common/core/src/main/java/hu/bme/mit/theta/core/type/fptype/FpLitExpr.java @@ -251,9 +251,7 @@ public int hashCode() { @Override public boolean equals(final Object obj) { - if (this == obj) { - return true; - } else if (obj != null && this.getClass() == obj.getClass() && getType().equals(((FpLitExpr) obj).getType())) { + if (obj != null && this.getClass() == obj.getClass() && getType().equals(((FpLitExpr) obj).getType())) { return eq((FpLitExpr) obj).equals(BoolExprs.True()); } else { return false; diff --git a/subprojects/common/core/src/main/java/hu/bme/mit/theta/core/utils/ExprSimplifier.java b/subprojects/common/core/src/main/java/hu/bme/mit/theta/core/utils/ExprSimplifier.java index 9b02f1a457..a42549b81b 100644 --- a/subprojects/common/core/src/main/java/hu/bme/mit/theta/core/utils/ExprSimplifier.java +++ b/subprojects/common/core/src/main/java/hu/bme/mit/theta/core/utils/ExprSimplifier.java @@ -145,7 +145,7 @@ import static hu.bme.mit.theta.core.type.bvtype.BvExprs.Bv; import static hu.bme.mit.theta.core.type.inttype.IntExprs.Int; import static hu.bme.mit.theta.core.type.rattype.RatExprs.Rat; -import static hu.bme.mit.theta.core.utils.SimplifierLevel.*; +import static hu.bme.mit.theta.core.utils.SimplifierLevel.LITERAL_ONLY; public final class ExprSimplifier { @@ -2004,10 +2004,6 @@ private Expr simplifyFpEq(final FpEqExpr expr, final Valuation val) { if (leftOp instanceof FpLitExpr && rightOp instanceof FpLitExpr) { return Bool(leftOp.equals(rightOp)); - } else if (leftOp instanceof RefExpr && rightOp instanceof RefExpr) { - if (level != LITERAL_ONLY && leftOp.equals(rightOp)) { - return True(); - } } return expr.with(leftOp, rightOp); diff --git a/subprojects/frontends/c-frontend/src/main/java/hu/bme/mit/theta/frontend/transformation/grammar/preprocess/BitwiseOption.java b/subprojects/frontends/c-frontend/src/main/java/hu/bme/mit/theta/frontend/transformation/grammar/preprocess/MainArithmetic.java similarity index 100% rename from subprojects/frontends/c-frontend/src/main/java/hu/bme/mit/theta/frontend/transformation/grammar/preprocess/BitwiseOption.java rename to subprojects/frontends/c-frontend/src/main/java/hu/bme/mit/theta/frontend/transformation/grammar/preprocess/MainArithmetic.java