Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f29dfa5

Browse files
committed
Python: Add clarifying comment and pragma.
1 parent 1d269b0 commit f29dfa5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

python/ql/src/semmle/python/Pruning.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,8 @@ module Pruner {
548548
simply_dead(pred, succ)
549549
}
550550

551-
/* Helper for `unreachableEdge` */
551+
/* Helper for `unreachableEdge`, deal with inequalities here to avoid blow up */
552+
pragma [inline]
552553
private predicate contradicts(Constraint a, Constraint b) {
553554
a.contradicts(b) or
554555
a.(ConstrainedByConstant).minValue() > b.(ConstrainedByConstant).maxValue() or

0 commit comments

Comments
 (0)