@@ -33,13 +33,13 @@ predicate implies_v1(Guard g1, boolean b1, Guard g2, boolean b2) {
3333 or
3434 g1 .( LogNotExpr ) .getExpr ( ) = g2 and
3535 b1 = b2 .booleanNot ( ) and
36- ( b1 = true or b1 = false )
36+ b1 = [ true , false ]
3737 or
3838 exists ( EqualityTest eqtest , boolean polarity , BooleanLiteral boollit |
3939 eqtest = g1 and
4040 eqtest .hasOperands ( g2 , boollit ) and
4141 eqtest .polarity ( ) = polarity and
42- ( b1 = true or b1 = false ) and
42+ b1 = [ true , false ] and
4343 b2 = b1 .booleanXor ( polarity ) .booleanXor ( boollit .getBooleanValue ( ) )
4444 )
4545 or
@@ -60,7 +60,7 @@ predicate implies_v1(Guard g1, boolean b1, Guard g2, boolean b2) {
6060 exists ( MethodAccess check | check = g1 |
6161 conditionCheck ( check , _) and
6262 g2 = check .getArgument ( 0 ) and
63- ( b1 = true or b1 = false ) and
63+ b1 = [ true , false ] and
6464 b2 = b1
6565 )
6666 or
@@ -69,7 +69,7 @@ predicate implies_v1(Guard g1, boolean b1, Guard g2, boolean b2) {
6969 vbool .getDefiningExpr ( ) .( AssignOp ) = g2
7070 |
7171 vbool .getAUse ( ) = g1 and
72- ( b1 = true or b1 = false ) and
72+ b1 = [ true , false ] and
7373 b2 = b1
7474 )
7575 or
@@ -91,7 +91,7 @@ predicate implies_v2(Guard g1, boolean b1, Guard g2, boolean b2) {
9191 vbool .getDefiningExpr ( ) .( AssignOp ) = g2
9292 |
9393 vbool .getAUse ( ) = g1 and
94- ( b1 = true or b1 = false ) and
94+ b1 = [ true , false ] and
9595 b2 = b1
9696 )
9797 or
0 commit comments