Merge pull request #1083 from geoffw0/newdelete-perf2

CPP: Fix NewDelete.qll performance.
This commit is contained in:
Jonas Jensen
2019-03-12 16:08:46 +01:00
committed by GitHub

View File

@@ -80,6 +80,7 @@ private predicate allocReaches0(Expr e, Expr alloc, string kind) {
) or exists(Variable v |
// alloc via a global
allocReachesVariable(v, alloc, kind) and
strictcount(VariableAccess va | va.getTarget() = v) <= 50 and // avoid very expensive cases
e.(VariableAccess).getTarget() = v
)
}