Skip to content

Commit

Permalink
Do not create comparison result when not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
valis committed May 7, 2024
1 parent bfacd52 commit b3cb899
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public boolean nonNormalizingCompare(Expression expr1, Expression expr2, Express
}

private boolean initResult(Expression expr1, Expression expr2) {
if (myNormalCompare && myResult == null) {
if (myNormalCompare && myResult == null && !myOnlySolveVars) {
expr1 = expr1.copyStrict();
expr2 = expr2.copyStrict();
myResult = new Result(expr1, expr2, expr1, expr2);
Expand Down

0 comments on commit b3cb899

Please sign in to comment.