@@ -33,13 +33,13 @@ predicate implies_v1(Guard g1, boolean b1, Guard g2, boolean b2) {
33
33
or
34
34
g1 .( LogNotExpr ) .getExpr ( ) = g2 and
35
35
b1 = b2 .booleanNot ( ) and
36
- ( b1 = true or b1 = false )
36
+ b1 = [ true , false ]
37
37
or
38
38
exists ( EqualityTest eqtest , boolean polarity , BooleanLiteral boollit |
39
39
eqtest = g1 and
40
40
eqtest .hasOperands ( g2 , boollit ) and
41
41
eqtest .polarity ( ) = polarity and
42
- ( b1 = true or b1 = false ) and
42
+ b1 = [ true , false ] and
43
43
b2 = b1 .booleanXor ( polarity ) .booleanXor ( boollit .getBooleanValue ( ) )
44
44
)
45
45
or
@@ -60,7 +60,7 @@ predicate implies_v1(Guard g1, boolean b1, Guard g2, boolean b2) {
60
60
exists ( MethodAccess check | check = g1 |
61
61
conditionCheck ( check , _) and
62
62
g2 = check .getArgument ( 0 ) and
63
- ( b1 = true or b1 = false ) and
63
+ b1 = [ true , false ] and
64
64
b2 = b1
65
65
)
66
66
or
@@ -69,7 +69,7 @@ predicate implies_v1(Guard g1, boolean b1, Guard g2, boolean b2) {
69
69
vbool .getDefiningExpr ( ) .( AssignOp ) = g2
70
70
|
71
71
vbool .getAUse ( ) = g1 and
72
- ( b1 = true or b1 = false ) and
72
+ b1 = [ true , false ] and
73
73
b2 = b1
74
74
)
75
75
or
@@ -91,7 +91,7 @@ predicate implies_v2(Guard g1, boolean b1, Guard g2, boolean b2) {
91
91
vbool .getDefiningExpr ( ) .( AssignOp ) = g2
92
92
|
93
93
vbool .getAUse ( ) = g1 and
94
- ( b1 = true or b1 = false ) and
94
+ b1 = [ true , false ] and
95
95
b2 = b1
96
96
)
97
97
or
0 commit comments