Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Python: model throwing leaves as post-order
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 860cd56d-31cf-49f4-a947-45e0d72447c6
  • Loading branch information
yoff committed Aug 25, 2026
commit acbbd26ddda12cdfd5b12b74d9d29c73075a68c4
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,8 @@ private module Input implements InputSig1, InputSig2 {
n = any(Ast::AssertStmt a).getTest()
}

predicate postOrInOrder(Ast::AstNode n) { mayThrow(n) }

private string assertThrowTag() { result = "[assert-throw]" }

/**
Expand Down Expand Up @@ -1724,7 +1726,7 @@ private module Input implements InputSig1, InputSig2 {
always = true
or
mayThrow(ast) and
n.injects(ast) and
n.isIn(ast) and
c.asSimpleAbruptCompletion() instanceof ExceptionSuccessor and
always = false
}
Expand Down