Skip to content

Commit 409f2c1

Browse files
committed
C++: Make the formatting of conjunct when using 'getDualValue' consistent.
1 parent 459bb6e commit 409f2c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cpp/ql/lib/semmle/code/cpp/controlflow/IRGuards.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,8 +844,7 @@ private predicate compares_eq(
844844
complex_eq(test, left, right, k, areEqual, value)
845845
or
846846
/* (x is true => (left == right + k)) => (!x is false => (left == right + k)) */
847-
exists(AbstractValue dual |
848-
value = dual.getDualValue() and
847+
exists(AbstractValue dual | value = dual.getDualValue() |
849848
compares_eq(test.(LogicalNotValueNumber).getUnary(), left, right, k, areEqual, dual)
850849
)
851850
or

0 commit comments

Comments
 (0)