Java: Fix accidental CP in CFG for asserts.

This commit is contained in:
Anders Schack-Mulligen
2025-07-18 13:53:15 +02:00
parent f6975117fe
commit bc2e7d4e0d

View File

@@ -1621,7 +1621,8 @@ private module ControlFlowGraphImpl {
result.(AssertThrowNode).getAstNode() = assertstmt
)
or
last(assertstmt.getMessage(), n, NormalCompletion()) and
last(assertstmt.getMessage(), n, completion) and
completion = NormalCompletion() and
result.(AssertThrowNode).getAstNode() = assertstmt
)
or