C++: Remove useUsePair.

This commit is contained in:
Geoffrey White
2021-04-13 15:03:06 +01:00
parent 40637c18ce
commit b0ad927fdd
2 changed files with 4 additions and 9 deletions

View File

@@ -37,15 +37,6 @@ predicate isGuarded(SubExpr sub, Expr left, Expr right) {
predicate exprIsSubLeftOrLess(SubExpr sub, Expr e) {
e = sub.getLeftOperand()
or
exists(Expr other |
// use-use
exprIsSubLeftOrLess(sub, other) and
(
useUsePair(_, other, e) or
useUsePair(_, e, other)
)
)
or
exists(Expr other |
// dataflow
exprIsSubLeftOrLess(sub, other) and