@@ -148,6 +148,24 @@ astGuardsCompare
148
148
| 109 | y < 0+0 when ... < ... is true |
149
149
| 109 | y >= 0+0 when ... < ... is false |
150
150
| 109 | y >= 0+0 when ... \|\| ... is false |
151
+ | 126 | 1 != 0 when 1 is true |
152
+ | 126 | 1 != 0 when ... && ... is true |
153
+ | 126 | 1 == 0 when 1 is false |
154
+ | 126 | call to test3_condition != 0 when ... && ... is true |
155
+ | 126 | call to test3_condition != 0 when call to test3_condition is true |
156
+ | 126 | call to test3_condition == 0 when call to test3_condition is false |
157
+ | 131 | b != 0 when b is true |
158
+ | 131 | b == 0 when b is false |
159
+ | 137 | 0 != 0 when 0 is true |
160
+ | 137 | 0 == 0 when 0 is false |
161
+ | 146 | ! ... != 0 when ! ... is true |
162
+ | 146 | ! ... == 0 when ! ... is false |
163
+ | 152 | x != 0 when ... && ... is true |
164
+ | 152 | x != 0 when x is true |
165
+ | 152 | x == 0 when x is false |
166
+ | 152 | y != 0 when ... && ... is true |
167
+ | 152 | y != 0 when y is true |
168
+ | 152 | y == 0 when y is false |
151
169
| 156 | ... + ... != x+0 when ... == ... is false |
152
170
| 156 | ... + ... == x+0 when ... == ... is true |
153
171
| 156 | x != ... + ...+0 when ... == ... is false |
@@ -186,6 +204,8 @@ astGuardsCompare
186
204
| 175 | call to foo != 0+0 when ... == ... is false |
187
205
| 175 | call to foo == 0 when ... == ... is true |
188
206
| 175 | call to foo == 0+0 when ... == ... is true |
207
+ | 181 | x != 0 when x is true |
208
+ | 181 | x == 0 when x is false |
189
209
astGuardsControl
190
210
| test.c:7:9:7:13 | ... > ... | false | 10 | 11 |
191
211
| test.c:7:9:7:13 | ... > ... | true | 7 | 9 |
@@ -487,8 +507,27 @@ astGuardsEnsure_const
487
507
| test.c:109:9:109:14 | ... == ... | test.c:109:9:109:9 | x | != | 0 | 109 | 109 |
488
508
| test.c:109:9:109:14 | ... == ... | test.c:109:9:109:9 | x | != | 0 | 113 | 113 |
489
509
| test.c:109:9:109:23 | ... \|\| ... | test.c:109:9:109:9 | x | != | 0 | 113 | 113 |
510
+ | test.c:126:7:126:7 | 1 | test.c:126:7:126:7 | 1 | != | 0 | 126 | 126 |
511
+ | test.c:126:7:126:7 | 1 | test.c:126:7:126:7 | 1 | != | 0 | 126 | 128 |
512
+ | test.c:126:7:126:7 | 1 | test.c:126:7:126:7 | 1 | != | 0 | 131 | 131 |
513
+ | test.c:126:7:126:7 | 1 | test.c:126:7:126:7 | 1 | != | 0 | 131 | 132 |
514
+ | test.c:126:7:126:7 | 1 | test.c:126:7:126:7 | 1 | != | 0 | 134 | 123 |
515
+ | test.c:126:7:126:28 | ... && ... | test.c:126:7:126:7 | 1 | != | 0 | 126 | 128 |
516
+ | test.c:126:7:126:28 | ... && ... | test.c:126:12:126:26 | call to test3_condition | != | 0 | 126 | 128 |
517
+ | test.c:126:12:126:26 | call to test3_condition | test.c:126:12:126:26 | call to test3_condition | != | 0 | 126 | 128 |
518
+ | test.c:131:7:131:7 | b | test.c:131:7:131:7 | b | != | 0 | 131 | 132 |
519
+ | test.c:137:7:137:7 | 0 | test.c:137:7:137:7 | 0 | == | 0 | 142 | 136 |
520
+ | test.c:146:7:146:8 | ! ... | test.c:146:7:146:8 | ! ... | != | 0 | 146 | 147 |
521
+ | test.c:152:10:152:10 | x | test.c:152:10:152:10 | x | != | 0 | 151 | 152 |
522
+ | test.c:152:10:152:10 | x | test.c:152:10:152:10 | x | != | 0 | 152 | 152 |
523
+ | test.c:152:10:152:15 | ... && ... | test.c:152:10:152:10 | x | != | 0 | 151 | 152 |
524
+ | test.c:152:10:152:15 | ... && ... | test.c:152:15:152:15 | y | != | 0 | 151 | 152 |
525
+ | test.c:152:15:152:15 | y | test.c:152:15:152:15 | y | != | 0 | 151 | 152 |
490
526
| test.c:175:13:175:32 | ... == ... | test.c:175:13:175:15 | call to foo | != | 0 | 175 | 175 |
491
527
| test.c:175:13:175:32 | ... == ... | test.c:175:13:175:15 | call to foo | == | 0 | 175 | 175 |
528
+ | test.c:181:9:181:9 | x | test.c:181:9:181:9 | x | != | 0 | 181 | 182 |
529
+ | test.c:181:9:181:9 | x | test.c:181:9:181:9 | x | != | 0 | 186 | 180 |
530
+ | test.c:181:9:181:9 | x | test.c:181:9:181:9 | x | == | 0 | 183 | 184 |
492
531
| test.cpp:18:8:18:10 | call to get | test.cpp:18:8:18:10 | call to get | != | 0 | 19 | 19 |
493
532
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | != | -1 | 30 | 30 |
494
533
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | != | -1 | 34 | 34 |
@@ -640,6 +679,20 @@ irGuardsCompare
640
679
| 109 | y < 0+0 when CompareLT: ... < ... is true |
641
680
| 109 | y >= 0 when CompareLT: ... < ... is false |
642
681
| 109 | y >= 0+0 when CompareLT: ... < ... is false |
682
+ | 126 | 1 != 0 when Constant: 1 is true |
683
+ | 126 | 1 == 0 when Constant: 1 is false |
684
+ | 126 | call to test3_condition != 0 when Call: call to test3_condition is true |
685
+ | 126 | call to test3_condition == 0 when Call: call to test3_condition is false |
686
+ | 131 | b != 0 when Load: b is true |
687
+ | 131 | b == 0 when Load: b is false |
688
+ | 137 | 0 != 0 when Constant: 0 is true |
689
+ | 137 | 0 == 0 when Constant: 0 is false |
690
+ | 146 | ! ... != 0 when LogicalNot: ! ... is true |
691
+ | 146 | ! ... == 0 when LogicalNot: ! ... is false |
692
+ | 152 | x != 0 when Load: x is true |
693
+ | 152 | x == 0 when Load: x is false |
694
+ | 152 | y != 0 when Load: y is true |
695
+ | 152 | y == 0 when Load: y is false |
643
696
| 156 | ... + ... != x+0 when CompareEQ: ... == ... is false |
644
697
| 156 | ... + ... == x+0 when CompareEQ: ... == ... is true |
645
698
| 156 | x != ... + ...+0 when CompareEQ: ... == ... is false |
@@ -678,6 +731,8 @@ irGuardsCompare
678
731
| 175 | call to foo != 0+0 when CompareEQ: ... == ... is false |
679
732
| 175 | call to foo == 0 when CompareEQ: ... == ... is true |
680
733
| 175 | call to foo == 0+0 when CompareEQ: ... == ... is true |
734
+ | 181 | x != 0 when Load: x is true |
735
+ | 181 | x == 0 when Load: x is false |
681
736
irGuardsControl
682
737
| test.c:7:9:7:13 | CompareGT: ... > ... | false | 11 | 11 |
683
738
| test.c:7:9:7:13 | CompareGT: ... > ... | true | 8 | 8 |
@@ -999,8 +1054,21 @@ irGuardsEnsure_const
999
1054
| test.c:109:9:109:14 | CompareEQ: ... == ... | test.c:109:9:109:9 | Load: x | != | 0 | 109 | 109 |
1000
1055
| test.c:109:9:109:14 | CompareEQ: ... == ... | test.c:109:9:109:9 | Load: x | != | 0 | 113 | 113 |
1001
1056
| test.c:109:19:109:23 | CompareLT: ... < ... | test.c:109:19:109:19 | Load: y | >= | 0 | 113 | 113 |
1057
+ | test.c:126:7:126:7 | Constant: 1 | test.c:126:7:126:7 | Constant: 1 | != | 0 | 126 | 126 |
1058
+ | test.c:126:7:126:7 | Constant: 1 | test.c:126:7:126:7 | Constant: 1 | != | 0 | 127 | 127 |
1059
+ | test.c:126:7:126:7 | Constant: 1 | test.c:126:7:126:7 | Constant: 1 | != | 0 | 131 | 131 |
1060
+ | test.c:126:7:126:7 | Constant: 1 | test.c:126:7:126:7 | Constant: 1 | != | 0 | 132 | 132 |
1061
+ | test.c:126:7:126:7 | Constant: 1 | test.c:126:7:126:7 | Constant: 1 | != | 0 | 134 | 134 |
1062
+ | test.c:126:12:126:26 | Call: call to test3_condition | test.c:126:12:126:26 | Call: call to test3_condition | != | 0 | 127 | 127 |
1063
+ | test.c:131:7:131:7 | Load: b | test.c:131:7:131:7 | Load: b | != | 0 | 132 | 132 |
1064
+ | test.c:137:7:137:7 | Constant: 0 | test.c:137:7:137:7 | Constant: 0 | == | 0 | 142 | 142 |
1065
+ | test.c:146:7:146:8 | LogicalNot: ! ... | test.c:146:7:146:8 | LogicalNot: ! ... | != | 0 | 147 | 147 |
1066
+ | test.c:152:10:152:10 | Load: x | test.c:152:10:152:10 | Load: x | != | 0 | 152 | 152 |
1067
+ | test.c:152:15:152:15 | Load: y | test.c:152:15:152:15 | Load: y | != | 0 | 152 | 152 |
1002
1068
| test.c:175:13:175:32 | CompareEQ: ... == ... | test.c:175:13:175:15 | Call: call to foo | != | 0 | 175 | 175 |
1003
1069
| test.c:175:13:175:32 | CompareEQ: ... == ... | test.c:175:13:175:15 | Call: call to foo | == | 0 | 175 | 175 |
1070
+ | test.c:181:9:181:9 | Load: x | test.c:181:9:181:9 | Load: x | != | 0 | 182 | 182 |
1071
+ | test.c:181:9:181:9 | Load: x | test.c:181:9:181:9 | Load: x | == | 0 | 184 | 184 |
1004
1072
| test.cpp:18:8:18:12 | CompareNE: (bool)... | test.cpp:18:8:18:10 | Call: call to get | != | 0 | 19 | 19 |
1005
1073
| test.cpp:31:7:31:13 | CompareEQ: ... == ... | test.cpp:31:7:31:7 | Load: x | != | -1 | 34 | 34 |
1006
1074
| test.cpp:31:7:31:13 | CompareEQ: ... == ... | test.cpp:31:7:31:7 | Load: x | == | -1 | 30 | 30 |
0 commit comments