Skip to content

Commit

Permalink
Typetracking: minor perf fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
aschackmull committed Sep 20, 2023
1 parent 5c40d55 commit d285afb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion shared/typetracking/codeql/typetracking/TypeTracking.qll
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d285afb

Please sign in to comment.