mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Revert unnecessary exists statement
This commit is contained in:
@@ -55,13 +55,9 @@ predicate implies_v1(Guard g1, boolean b1, Guard g2, boolean b2) {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
exists(DefaultCase sc | g1 = sc |
|
g1.(DefaultCase).getSwitch().getAConstCase() = g2 and b1 = true and b2 = false
|
||||||
sc.getSwitch().getAConstCase() = g2 and b1 = true and b2 = false
|
|
||||||
)
|
|
||||||
or
|
or
|
||||||
exists(DefaultCase sc | g1 = sc |
|
g1.(DefaultCase).getSwitchExpr().getAConstCase() = g2 and b1 = true and b2 = false
|
||||||
sc.getSwitchExpr().getAConstCase() = g2 and b1 = true and b2 = false
|
|
||||||
)
|
|
||||||
or
|
or
|
||||||
exists(MethodCall check, int argIndex | check = g1 |
|
exists(MethodCall check, int argIndex | check = g1 |
|
||||||
conditionCheckArgument(check, argIndex, _) and
|
conditionCheckArgument(check, argIndex, _) and
|
||||||
|
|||||||
Reference in New Issue
Block a user