Skip to content

Commit e3ec67d

Browse files
committed
avoid materializing isFeasibleTuple
1 parent cbad705 commit e3ec67d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascript/ql/src/semmle/javascript/security/performance/SuperlinearBackTracking.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ private module FeasibleTuple {
106106
/**
107107
* Holds if the tuple `(r1, r2, r3)` might be on path from a start-state to an end-state in the product automaton.
108108
*/
109+
pragma[inline]
109110
predicate isFeasibleTuple(State r1, State r2, State r3) {
110111
// The first element is either inside a repetition (or the start state itself)
111112
isRepeitionOrStart(r1) and

0 commit comments

Comments
 (0)