mirror of
https://github.com/c-cube/sidekick.git
synced 2026-01-28 12:24:50 -05:00
Fix for bad html printing
This commit is contained in:
parent
863a49a0a4
commit
b6089e67c3
1 changed files with 9 additions and 4 deletions
|
|
@ -350,10 +350,15 @@ module Make(St : Mcsolver_types.S) = struct
|
||||||
let name, f_args, t_args, color = St.proof_debug proof in
|
let name, f_args, t_args, color = St.proof_debug proof in
|
||||||
let color = match color with None -> "YELLOW" | Some c -> c in
|
let color = match color with None -> "YELLOW" | Some c -> c in
|
||||||
let aux fmt () =
|
let aux fmt () =
|
||||||
Format.fprintf fmt "<TR><TD colspan=\"2\">%a</TD></TR><TR><TD BGCOLOR=\"%s\" rowspan=\"%d\">%s</TD>%a%a</TR>"
|
Format.fprintf fmt "<TR><TD colspan=\"2\">%a</TD></TR><TR><TD BGCOLOR=\"%s\" rowspan=\"%d\">%s</TD>"
|
||||||
print_clause p.conclusion color (List.length f_args + List.length t_args) name
|
print_clause p.conclusion color (List.length f_args + List.length t_args) name;
|
||||||
(fun fmt -> List.iter (fun a -> Format.fprintf fmt "<TD>%a</TD>" St.print_atom a)) f_args
|
if f_args <> [] then
|
||||||
(fun fmt -> List.iter (fun v -> Format.fprintf fmt "<TD>%a</TD>" St.print_semantic_var v)) t_args
|
Format.fprintf fmt "<TD>%a</TD>%a%a" St.print_atom (List.hd f_args)
|
||||||
|
(fun fmt -> List.iter (fun a -> Format.fprintf fmt "<TR><TD>%a</TD></TR>" St.print_atom a)) (List.tl f_args)
|
||||||
|
(fun fmt -> List.iter (fun v -> Format.fprintf fmt "<TR><TD>%a</TD></TR>" St.print_semantic_var v)) t_args
|
||||||
|
else
|
||||||
|
Format.fprintf fmt "<TD>%a</TD>%a" St.print_semantic_var (List.hd t_args)
|
||||||
|
(fun fmt -> List.iter (fun v -> Format.fprintf fmt "<TR><TD>%a</TD></TR>" St.print_semantic_var v)) (List.tl t_args)
|
||||||
in
|
in
|
||||||
print_dot_rule "BGCOLOR=\"LIGHTBLUE\"" aux () fmt p.conclusion
|
print_dot_rule "BGCOLOR=\"LIGHTBLUE\"" aux () fmt p.conclusion
|
||||||
| Resolution (proof1, proof2, a) ->
|
| Resolution (proof1, proof2, a) ->
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue