minimize_bytes
def minimize_bytes(input: List[UInt8], is_crash: def(List[UInt8]) raises thin -> Bool) -> List[UInt8] Minimize input to the smallest prefix/subset that still crashes.
Implements ddmin with granularity doubling: starts by trying to remove half of the input, recursively narrows until no single-element removal preserves the crash.
- Args
input: The crashing input to minimize.is_crash: A predicate that returnsTrueif the given bytes trigger the crash. May raise; raises fromis_crashitself are treated asTrue(crash).
Raises Error: If the initial input does not pass is_crash.