mirror of
https://github.com/github/codeql.git
synced 2026-06-28 16:17:03 +02:00
Java: Adjust references.
This commit is contained in:
@@ -110,11 +110,17 @@ predicate assertFail(BasicBlock bb, ControlFlowNode n) {
|
||||
(
|
||||
exists(AssertTrueMethod m |
|
||||
n.asExpr() = m.getACheck(any(BooleanLiteral b | b.getBooleanValue() = false))
|
||||
) or
|
||||
)
|
||||
or
|
||||
exists(AssertFalseMethod m |
|
||||
n.asExpr() = m.getACheck(any(BooleanLiteral b | b.getBooleanValue() = true))
|
||||
) or
|
||||
exists(AssertFailMethod m | n.asExpr() = m.getACheck()) or
|
||||
n.asStmt().(AssertStmt).getExpr().(BooleanLiteral).getBooleanValue() = false
|
||||
)
|
||||
or
|
||||
exists(AssertFailMethod m | n.asExpr() = m.getACheck())
|
||||
or
|
||||
exists(AssertStmt a |
|
||||
n.asExpr() = a.getExpr() and
|
||||
a.getExpr().(BooleanLiteral).getBooleanValue() = false
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user