pg.mutfun.Instruction

Accessible via pg.mutfun.Instruction.

class Instruction[source]

Bases: pg.mutfun.Code

Base class for all instructions.

Methods:

parent_instruction()

Returns the parent instruction of current instruction.

select_types([where])

Selects all instruction types that match the condition.

parent_instruction()[source]

Returns the parent instruction of current instruction.

Return type:

Optional[pg.mutfun.Instruction]

classmethod select_types(where=<function Instruction.<lambda>>)[source]

Selects all instruction types that match the condition.

Return type:

Iterable[Type[pg.mutfun.Instruction]]