@@ -160,6 +160,9 @@ astGuardsCompare
160
160
| 137 | 0 == 0 when 0 is false |
161
161
| 146 | ! ... != 0 when ! ... is true |
162
162
| 146 | ! ... == 0 when ! ... is false |
163
+ | 146 | x != 0 when ! ... is false |
164
+ | 146 | x != 0 when x is true |
165
+ | 146 | x == 0 when x is false |
163
166
| 152 | x != 0 when ... && ... is true |
164
167
| 152 | x != 0 when x is true |
165
168
| 152 | x == 0 when x is false |
@@ -518,6 +521,7 @@ astGuardsEnsure_const
518
521
| test.c:131:7:131:7 | b | test.c:131:7:131:7 | b | != | 0 | 131 | 132 |
519
522
| test.c:137:7:137:7 | 0 | test.c:137:7:137:7 | 0 | == | 0 | 142 | 136 |
520
523
| test.c:146:7:146:8 | ! ... | test.c:146:7:146:8 | ! ... | != | 0 | 146 | 147 |
524
+ | test.c:146:8:146:8 | x | test.c:146:8:146:8 | x | == | 0 | 146 | 147 |
521
525
| test.c:152:10:152:10 | x | test.c:152:10:152:10 | x | != | 0 | 151 | 152 |
522
526
| test.c:152:10:152:10 | x | test.c:152:10:152:10 | x | != | 0 | 152 | 152 |
523
527
| test.c:152:10:152:15 | ... && ... | test.c:152:10:152:10 | x | != | 0 | 151 | 152 |
@@ -689,6 +693,9 @@ irGuardsCompare
689
693
| 137 | 0 == 0 when Constant: 0 is false |
690
694
| 146 | ! ... != 0 when LogicalNot: ! ... is true |
691
695
| 146 | ! ... == 0 when LogicalNot: ! ... is false |
696
+ | 146 | x != 0 when Load: x is true |
697
+ | 146 | x != 0 when LogicalNot: ! ... is false |
698
+ | 146 | x == 0 when Load: x is false |
692
699
| 152 | x != 0 when Load: x is true |
693
700
| 152 | x == 0 when Load: x is false |
694
701
| 152 | y != 0 when Load: y is true |
@@ -1063,6 +1070,7 @@ irGuardsEnsure_const
1063
1070
| test.c:131:7:131:7 | Load: b | test.c:131:7:131:7 | Load: b | != | 0 | 132 | 132 |
1064
1071
| test.c:137:7:137:7 | Constant: 0 | test.c:137:7:137:7 | Constant: 0 | == | 0 | 142 | 142 |
1065
1072
| test.c:146:7:146:8 | LogicalNot: ! ... | test.c:146:7:146:8 | LogicalNot: ! ... | != | 0 | 147 | 147 |
1073
+ | test.c:146:8:146:8 | Load: x | test.c:146:8:146:8 | Load: x | == | 0 | 147 | 147 |
1066
1074
| test.c:152:10:152:10 | Load: x | test.c:152:10:152:10 | Load: x | != | 0 | 152 | 152 |
1067
1075
| test.c:152:15:152:15 | Load: y | test.c:152:15:152:15 | Load: y | != | 0 | 152 | 152 |
1068
1076
| test.c:175:13:175:32 | CompareEQ: ... == ... | test.c:175:13:175:15 | Call: call to foo | != | 0 | 175 | 175 |
0 commit comments