File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -352,11 +352,11 @@ let check_and_verify2 p m ignore_k max_steps inv trans prog query bounds pred s
352
352
in let t = Sys. time() -. t
353
353
in let _ = println(" Internal time for precondition check + actual checking: " ^ string_of_float t)
354
354
and _ = println(" " )
355
- (* and _ = if !debug_level >= 1 then
355
+ and _ = if ! debug_level > = 1 then
356
356
let
357
357
_ = println(" # explored states: " ^ string_of_int(Tracing. get_count () ))
358
358
and _ = println(" " )
359
- in () else (); *)
359
+ in () else () ;
360
360
in
361
361
print_result result
362
362
Original file line number Diff line number Diff line change @@ -17,12 +17,25 @@ end = struct
17
17
fun count_up () = (counter := !counter + 1);
18
18
fun get_count () = !counter;
19
19
end
20
+ \<close> and ( OCaml )
21
+ \<open>
22
+ module Tracing : sig
23
+ val count_up : unit -> unit
24
+ val get_count : unit -> int
25
+ end = struct
26
+ let counter = ref 0
27
+ let count_up () = (counter := !counter + 1)
28
+ let get_count () = !counter
29
+ end
20
30
\<close>
21
31
22
32
code_reserved SML Tracing
23
33
34
+ code_reserved OCaml Tracing
35
+
24
36
code_printing
25
37
constant write_msg \<rightharpoonup> ( SML ) "(fn x => Tracing.count'_up ()) _"
38
+ and ( OCaml ) "(fun x -> Tracing.count'_up ()) _"
26
39
27
40
definition trace where
28
41
"trace m x = (let a = write_msg m in x)"
You can’t perform that action at this time.
0 commit comments