cozy.concrete

Classes

CompatiblePairInput

Stores information about the concretization of a compatible state pair.

TerminalStateInput

Stores information about the concretization of a TerminalState.

Functions

_concretize(solver, state_bundle[, n])

Module Contents

cozy.concrete._concretize(solver, state_bundle, n=1)
class cozy.concrete.CompatiblePairInput(args, mem_diff: dict[range, tuple[int, int]], reg_diff: dict[str, tuple[int, int]], left_side_effects: dict[str, list[cozy.side_effect.ConcretePerformedSideEffect]], right_side_effects: dict[str, list[cozy.side_effect.ConcretePerformedSideEffect]])

Stores information about the concretization of a compatible state pair.

Variables:
  • args (any) – The same Python datastructures as the arguments passed to concrete_examples, except that all claripy symbolic variables are replaced with concrete values.

  • mem_diff (dict[range, tuple[int, int]]) – Concretized version of memory difference. Each key is a memory address range, and each value is a concretized version of the data stored at that location for the prepatched, postpatched runs.

  • reg_diff (dict[str, tuple[int, int]]) – Concretized version of register difference. Each key is a register name, and each value is a concretized version of the data stored at that register for the prepatched, postpatched runs.

  • left_side_effects (dict[str, list[ConcretePerformedSideEffect]]) – Concretized versions of side effects made by the prepatched state.

  • right_side_effects (dict[str, list[ConcretePerformedSideEffect]]) – Concretized versions of side_effects made by the postpatched state.

args
mem_diff
reg_diff
left_side_effects
right_side_effects
class cozy.concrete.TerminalStateInput(args, side_effects: dict[str, list[cozy.side_effect.ConcretePerformedSideEffect]])

Stores information about the concretization of a TerminalState.

Variables:
  • args (any) – The same Python datastructures as the arguments passed to concrete_examples, except that all claripy symbolic variables are replaced with concrete values.

  • side_effects (dict[str, list[PerformedSideEffect]]) – Concretized side effects outputted by the singleton state.

args
side_effects