Skip to content
Snippets Groups Projects
Commit ace2ca06 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[wp/ivette] update API

parent 9da5e817
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,7 @@ struct ...@@ -117,7 +117,7 @@ struct
"total", Jnumber; "total", Jnumber;
]) ])
let to_json (smoke,cs) : Json.t = let to_json (smoke,cs) : Json.t =
let verdict = match cs.Stats.verdict with let verdict = match cs.Stats.best with
| VCS.Valid -> if smoke then "Doomed" else "Valid" | VCS.Valid -> if smoke then "Doomed" else "Valid"
| VCS.Unknown -> if smoke then "Passed" else "Unknown" | VCS.Unknown -> if smoke then "Passed" else "Unknown"
| Failed -> "Failure" | Failed -> "Failure"
...@@ -125,7 +125,6 @@ struct ...@@ -125,7 +125,6 @@ struct
| Computing _ -> "Computing" | Computing _ -> "Computing"
| Timeout -> "Timeout" | Timeout -> "Timeout"
| Stepout -> "Stepout" | Stepout -> "Stepout"
| Invalid -> "Invalid"
in in
let summary = Format.asprintf "%s%a" verdict let summary = Format.asprintf "%s%a" verdict
(Stats.pp_stats ~shell:false ~cache:Update) cs (Stats.pp_stats ~shell:false ~cache:Update) cs
...@@ -133,7 +132,7 @@ struct ...@@ -133,7 +132,7 @@ struct
"summary", `String summary ; "summary", `String summary ;
"tactics", `Int cs.tactics ; "tactics", `Int cs.tactics ;
"proved", `Int cs.proved ; "proved", `Int cs.proved ;
"total", `Int (Stats.proofs cs) ; "total", `Int (Stats.subgoals cs) ;
] ]
end end
......
...@@ -64,7 +64,7 @@ let () = ...@@ -64,7 +64,7 @@ let () =
set_proved rq (ProofEngine.proved node) ; set_proved rq (ProofEngine.proved node) ;
set_pending rq (ProofEngine.pending node) ; set_pending rq (ProofEngine.pending node) ;
let s = ProofEngine.stats node in let s = ProofEngine.stats node in
set_size rq (Stats.proofs s) ; set_size rq (Stats.subgoals s) ;
set_stats rq (Pretty_utils.to_string Stats.pretty s) ; set_stats rq (Pretty_utils.to_string Stats.pretty s) ;
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment