reprospect.test.sass.instruction.branch module

class reprospect.test.sass.instruction.branch.BranchMatcher(offset: str | None = None, predicate: str | None = None)View on GitHub

Bases: PatternMatcher

Matcher for a BRA branch instruction.

Typically:

@!UP5 BRA 0x456
PATTERN: Final[Pattern[str]] = regex.Regex('(?:(?P<predicate>@!?U?P(?:T|[0-9]+)))?\\s*(?P<opcode>BRA)\\s*(?P<operands>0x[0-9A-Fa-f]+)', flags=regex.V0)
__init__(offset: str | None = None, predicate: str | None = None) NoneView on GitHub
pattern: Final[Pattern[str]]