Typetracking: minor perf fix.

This commit is contained in:
Anders Schack-Mulligen
2023-09-20 14:52:49 +02:00
parent 5c40d553b4
commit d285afba08

View File

@@ -805,7 +805,12 @@ module TypeTracking<TypeTrackingInput I> {
private predicate sourceSimpleLocalSmallSteps(Node src, Node n) {
source(src) and
not src instanceof LocalSourceNode and
simpleLocalSmallStep*(src, n)
src = n
or
exists(Node mid |
sourceSimpleLocalSmallSteps(src, mid) and
simpleLocalSmallStep(mid, n)
)
}
private predicate firstStep(TypeTracker tt, Node src, LocalSourceNode n2) {