CodeQL library for Python
codeql/python-all 0.9.2 ( changelog , source )

Predicate Make :: isEndTuple

Holds if tuple is an end state in our search, and tuple is on a path from a start state to an end state. That means there exists a pair of loops (pivot, pumpEnd) such that tuple = (pivot, pumpEnd, pumpEnd).

Import path

import codeql.regex.nfa.SuperlinearBackTracking
predicate isEndTuple ( StateTuple tuple )