roundtrip

Function roundtrip 

Source
pub fn roundtrip(
    setup: &Setup,
    at: i64,
    to: i64,
    extra: i64,
) -> Result<String, String>
Expand description

Save states, proven complete (the base crate’s trace::roundtrip, the reference’s scripts/cd_state.py): power on, run to frame at plus extra instructions, save, then build a second machine the same way (it opens the disc itself), load the state into it, and run both to frame to. Every frame after the save must be the same on both, by the gate’s own lines. A third run loads the state into a machine that has run elsewhere first; and the loaded machine, saved at once, must give the same bytes back.