diff --git a/solver/mcproof.ml b/solver/mcproof.ml
index be90ae86..20f8eeb8 100644
--- a/solver/mcproof.ml
+++ b/solver/mcproof.ml
@@ -351,14 +351,16 @@ module Make(St : Mcsolver_types.S) = struct
let color = match color with None -> "YELLOW" | Some c -> c in
let aux fmt () =
Format.fprintf fmt "
| %a |
| %s | "
- print_clause p.conclusion color (List.length f_args + List.length t_args) name;
+ print_clause p.conclusion color (min (List.length f_args + List.length t_args) 1) name;
if f_args <> [] then
Format.fprintf fmt "%a |
%a%a" St.print_atom (List.hd f_args)
(fun fmt -> List.iter (fun a -> Format.fprintf fmt "| %a |
" St.print_atom a)) (List.tl f_args)
(fun fmt -> List.iter (fun v -> Format.fprintf fmt "| %a |
" St.print_semantic_var v)) t_args
- else
+ else if t_args <> [] then
Format.fprintf fmt "%a | %a" St.print_semantic_var (List.hd t_args)
(fun fmt -> List.iter (fun v -> Format.fprintf fmt "| %a |
" St.print_semantic_var v)) (List.tl t_args)
+ else
+ Format.fprintf fmt " | "
in
print_dot_rule "BGCOLOR=\"LIGHTBLUE\"" aux () fmt p.conclusion
| Resolution (proof1, proof2, a) ->