mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Python: Prevent bad magic during pruning.
Fixes the performance regression seen on `uncompyle2` and similar projects.
This commit is contained in:
@@ -525,6 +525,7 @@ module Pruner {
|
||||
}
|
||||
|
||||
/** Holds if `cond` holds for `var` on conditional edge `pred` -> `succ` as a result of the test for that edge */
|
||||
pragma [nomagic]
|
||||
predicate constraintOnBranch(UnprunedBasicBlock pred, UnprunedBasicBlock succ, Constraint cond, SsaVariable var) {
|
||||
cond = constraintFromTest(var, pred.last()) and
|
||||
succ = pred.getATrueSuccessor()
|
||||
|
||||
Reference in New Issue
Block a user