polytracker.diffing

diffing classes

ControlFlowDiff

class polytracker.diffing.ControlFlowDiff(trace1: ProgramTrace, trace2: ProgramTrace, function_name: str)

Bases: object

__init__(trace1: ProgramTrace, trace2: ProgramTrace, function_name: str)
property first_function_with_different_control_flow: str | None

TraceDiff

class polytracker.diffing.TraceDiff(trace1: ProgramTrace, trace2: ProgramTrace)

Bases: object

__init__(trace1: ProgramTrace, trace2: ProgramTrace)
property first_intervals: Dict[Input, IntervalTree]
property functions_in_both: Iterator[Tuple[str, TaintDiff]]
property functions_only_in_first: FrozenSet[Function]
property functions_only_in_second: FrozenSet[Function]
property has_input_chunks_only_in_first: bool
property has_input_chunks_only_in_second: bool
property input_chunks_only_in_first: Iterator[TaintedRegion]
property input_chunks_only_in_second: Iterator[TaintedRegion]
property second_intervals: Dict[Input, IntervalTree]
to_image() <module 'PIL.Image' from '/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/PIL/Image.py'>

diffing functions