StructsΒ§
- Call
Sequence πShrinker - Shrinker for a call sequence failure. Iterates sequence call sequence top down and removes calls one by one. If the failure is still reproducible with removed call then moves to the next one. If the failure is not reproducible then restore removed call and moves to next one.
- Check
Sequence Options
FunctionsΒ§
- apply_
warp_ πroll - Applies accumulated warp/roll to a call, returning a modified copy.
- apply_
warp_ πroll_ to_ env - Applies warp/roll adjustments directly to the executorβs environment.
- build_
shrunk_ πsequence - Builds the final shrunk sequence from the shrinker state.
- call_
failure_ πreason - check_
sequence - Checks if the given call sequence breaks the invariant.
- check_
sequence_ πsimple - check_
sequence_ value - Executes a call sequence and returns the optimization value (int256) from the invariant function. Used during shrinking for optimization mode.
- check_
sequence_ πwith_ accumulation - finish_
sequence_ πcheck - reset_
shrink_ πprogress - Resets the progress bar for shrinking.
- shrink_
sequence π - shrink_
sequence_ πvalue - Shrinks a call sequence to the shortest sequence that still produces the target optimization value. This is specifically for optimization mode where we want to find the minimal sequence that achieves the maximum value.