Skip to content

Commit

Permalink
Java: Use more set literal syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
aschackmull committed Jan 21, 2022
1 parent 41d2942 commit 5f7ee33
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ predicate implies_v1(Guard g1, boolean b1, Guard g2, boolean b2) {
or
g1.(LogNotExpr).getExpr() = g2 and
b1 = b2.booleanNot() and
(b1 = true or b1 = false)
b1 = [true, false]
or
exists(EqualityTest eqtest, boolean polarity, BooleanLiteral boollit |
eqtest = g1 and
eqtest.hasOperands(g2, boollit) and
eqtest.polarity() = polarity and
(b1 = true or b1 = false) and
b1 = [true, false] and
b2 = b1.booleanXor(polarity).booleanXor(boollit.getBooleanValue())
)
or
Expand All @@ -60,7 +60,7 @@ predicate implies_v1(Guard g1, boolean b1, Guard g2, boolean b2) {
exists(MethodAccess check | check = g1 |
conditionCheck(check, _) and
g2 = check.getArgument(0) and
(b1 = true or b1 = false) and
b1 = [true, false] and
b2 = b1
)
or
Expand All @@ -69,7 +69,7 @@ predicate implies_v1(Guard g1, boolean b1, Guard g2, boolean b2) {
vbool.getDefiningExpr().(AssignOp) = g2
|
vbool.getAUse() = g1 and
(b1 = true or b1 = false) and
b1 = [true, false] and
b2 = b1
)
or
Expand All @@ -91,7 +91,7 @@ predicate implies_v2(Guard g1, boolean b1, Guard g2, boolean b2) {
vbool.getDefiningExpr().(AssignOp) = g2
|
vbool.getAUse() = g1 and
(b1 = true or b1 = false) and
b1 = [true, false] and
b2 = b1
)
or
Expand Down

0 comments on commit 5f7ee33

Please sign in to comment.