equal
deleted
inserted
replaced
34 val mk_step_gfs_lfs = curry (swap #> uncurry mk_step_lfs_gfs) |
34 val mk_step_gfs_lfs = curry (swap #> uncurry mk_step_lfs_gfs) |
35 |
35 |
36 fun minimize_facts _ time min_facts [] = (time, min_facts) |
36 fun minimize_facts _ time min_facts [] = (time, min_facts) |
37 | minimize_facts mk_step time min_facts (f :: facts) = |
37 | minimize_facts mk_step time min_facts (f :: facts) = |
38 (case preplay_quietly (Time.+ (time, slack)) (mk_step (min_facts @ facts)) of |
38 (case preplay_quietly (Time.+ (time, slack)) (mk_step (min_facts @ facts)) of |
39 (true, _) => minimize_facts mk_step time (f :: min_facts) facts |
39 Preplay_Success (false, time) => minimize_facts mk_step time min_facts facts |
40 | (false, time) => minimize_facts mk_step time min_facts facts) |
40 | _ => minimize_facts mk_step time (f :: min_facts) facts) |
41 |
41 |
42 val (time, min_lfs) = minimize_facts (mk_step_gfs_lfs gfs) time [] lfs |
42 val (time, min_lfs) = minimize_facts (mk_step_gfs_lfs gfs) time [] lfs |
43 val (time, min_gfs) = minimize_facts (mk_step_lfs_gfs min_lfs) time [] gfs |
43 val (time, min_gfs) = minimize_facts (mk_step_lfs_gfs min_lfs) time [] gfs |
44 in |
44 in |
45 set_preplay_result l (Preplay_Success (false, time)); mk_step_lfs_gfs min_lfs min_gfs |
45 set_preplay_result l (Preplay_Success (false, time)); mk_step_lfs_gfs min_lfs min_gfs |