Commit 351a654c authored by Asma Tafat's avatar Asma Tafat

Latex statistics

parent e1820030
...@@ -36,7 +36,7 @@ let spec = Arg.align [ ...@@ -36,7 +36,7 @@ let spec = Arg.align [
"<s> add s to loadpath") ; "<s> add s to loadpath") ;
("-force", ("-force",
Arg.Set opt_force, Arg.Set opt_force,
"enforce saving of session even if replay failed") ; " enforce saving of session even if replay failed") ;
("-s", ("-s",
Arg.Clear opt_stats, Arg.Clear opt_stats,
" do not print statistics") ; " do not print statistics") ;
...@@ -45,13 +45,13 @@ let spec = Arg.align [ ...@@ -45,13 +45,13 @@ let spec = Arg.align [
" print version information") ; " print version information") ;
("-latex", ("-latex",
Arg.Set_string opt_latex, Arg.Set_string opt_latex,
" produce latex statistics") ; " [Dir_output] produce latex statistics") ;
("-latex2", ("-latex2",
Arg.Set_string opt_latex2, Arg.Set_string opt_latex2,
" produce latex statistics") ; " [Dir_output] produce latex statistics") ;
("-html", ("-html",
Arg.Set_string opt_html, Arg.Set_string opt_html,
" produce html statistics") ; " [Dir_output] produce html statistics") ;
] ]
let version_msg = Format.sprintf "Why3 replayer, version %s (build date: %s)" let version_msg = Format.sprintf "Why3 replayer, version %s (build date: %s)"
...@@ -390,7 +390,9 @@ let rec goal_latex_stat n fmt prov depth depth_max column subgoal _subgoals_max ...@@ -390,7 +390,9 @@ let rec goal_latex_stat n fmt prov depth depth_max column subgoal _subgoals_max
fprintf fmt "\\explanation{%s} " (protect (M.goal_expl g)) fprintf fmt "\\explanation{%s} " (protect (M.goal_expl g))
else else
if n == 2 then if n == 2 then
fprintf fmt "%d " (subgoal + 1); fprintf fmt "%d " (subgoal + 1)
else
fprintf fmt "\\explanation{%s}" " ";
let proofs = M.external_proofs g in let proofs = M.external_proofs g in
if (Hashtbl.length proofs) > 0 then if (Hashtbl.length proofs) > 0 then
begin begin
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment