reprospect.testing.binaries.sass.instruction.validate module
- class reprospect.testing.binaries.sass.instruction.validate.ModifierValidator(matcher: InstructionMatcher, modifier: str, index: int | None = None)View on GitHub
Bases:
InstructionMatcherIf
indexis an integer, the modifier must be present at that specific position in the matched instruction modifiers. IfindexisNone, the modifier may be at any position in the matched instruction modifiers.Note
It is not decorated with
dataclasses.dataclass()because of https://github.com/mypyc/mypyc/issues/1061.- __init__(matcher: InstructionMatcher, modifier: str, index: int | None = None) NoneView on GitHub
- match(inst: Instruction | str) InstructionMatch | NoneView on GitHub
- matcher: Final[InstructionMatcher]
- class reprospect.testing.binaries.sass.instruction.validate.OperandValidator(matcher: InstructionMatcher, operand: str | AddressMatcher | ConstantMatcher | RegisterMatcher, index: int | None = None)View on GitHub
Bases:
InstructionMatcherValidate that the operand at
indexmatches the instruction matched withmatcher.Note
It is not decorated with
dataclasses.dataclass()because of https://github.com/mypyc/mypyc/issues/1061.- __init__(matcher: InstructionMatcher, operand: str | AddressMatcher | ConstantMatcher | RegisterMatcher, index: int | None = None) NoneView on GitHub
- check(operand: str) boolView on GitHub
- match(inst: Instruction | str) InstructionMatch | NoneView on GitHub
- matcher: Final[InstructionMatcher]
- operand: Final[str | AddressMatcher | ConstantMatcher | RegisterMatcher]
- class reprospect.testing.binaries.sass.instruction.validate.OperandsValidator(matcher: InstructionMatcher, operands: Collection[tuple[int, str | AddressMatcher | ConstantMatcher | RegisterMatcher]])View on GitHub
Bases:
InstructionMatcherValidate that the
operandsmatch the instruction matched withmatcher.Note
It is not decorated with
dataclasses.dataclass()because of https://github.com/mypyc/mypyc/issues/1061.- __init__(matcher: InstructionMatcher, operands: Collection[tuple[int, str | AddressMatcher | ConstantMatcher | RegisterMatcher]]) NoneView on GitHub
- match(inst: Instruction | str) InstructionMatch | NoneView on GitHub
- matcher: Final[InstructionMatcher]
- operands: Final[tuple[tuple[int, str | AddressMatcher | ConstantMatcher | RegisterMatcher], ...]]