Skip to content

Commit

Permalink
Revert distribution and print cmd list size
Browse files Browse the repository at this point in the history
  • Loading branch information
jmid committed Sep 3, 2024
1 parent 1180872 commit e961537
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/domain/stm_tests_dls.ml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ let agree_prop cs = match Domain.spawn (fun () -> Util.protect DLS_STM_seq.agree
| Ok r -> r
| Error e -> raise e

(*let gen_cmds_size gen s size_gen = Gen.sized_size size_gen (gen_cmds gen s)*)

let _exp_dist_gen =
(*
let exp_dist_gen =
let mean = 10. in
let skew = 0.75 in (* to avoid too many empty cmd lists *)
let unit_gen = Gen.float_bound_inclusive 1.0 in
Expand Down Expand Up @@ -105,13 +104,15 @@ let arb_cmds s =
(match (DLSConf.arb_cmd s).print with
| None -> ac
| Some p -> set_print (Util.print_vertical p) ac)
*)

let iter = ref 1

let agree_test ~count ~name =
Test.make ~name ~count (arb_cmds DLSConf.init_state)
Test.make ~name ~count (DLS_STM_seq.arb_cmds DLSConf.init_state)
(fun cs ->
Printf.printf "%i %!" !iter;
Printf.printf "%i %!" (List.length cs);
(if !iter mod 100 = 0 then Printf.printf "\n%!");
(*Printf.printf "%4i: %s\n%!" !iter Print.(list DLSConf.show_cmd cs);*)
incr iter;
agree_prop cs)
Expand Down

0 comments on commit e961537

Please sign in to comment.