Lines Matching refs:patterns
704 deterministic automaton to match patterns, using a similar algorithm to the
716 self.patterns = [t.search for t in transforms]
721 #for state, patterns in zip(self.states, self.patterns):
722 # print('{}: num patterns: {}'.format(state, len(patterns)))
771 different patterns share the same object, and store some extra
777 # These are the indices of patterns for which this item is the root node.
778 self.patterns = []
794 # The set of all opcodes used by the patterns. Used later to avoid
806 item.patterns.append(pattern)
832 # for patterns that have a generic opcode like f2b, or we
844 for i, pattern in enumerate(self.patterns):
897 patterns = list(sorted(p for item in state for p in item.patterns))
899 self.state_patterns.append(patterns)