mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 11:15:43 -05:00
Fixed a bug in proof dot printer (+ indent)
This commit is contained in:
parent
cac9df4510
commit
d6cfd27f32
2 changed files with 22 additions and 23 deletions
|
|
@ -274,16 +274,15 @@ module Make(St : Solver_types.S)(Proof : sig type proof end) = struct
|
|||
Hashtbl.iter (fun c (_, id) -> Hashtbl.replace ids c (false, id)) ids
|
||||
|
||||
let is_drawn c =
|
||||
try
|
||||
ignore (c_id c);
|
||||
fst (Hashtbl.find ids c)
|
||||
with Not_found ->
|
||||
false
|
||||
|
||||
let has_drawn c =
|
||||
assert (Hashtbl.mem ids c);
|
||||
if not (is_drawn c) then
|
||||
let b, id = Hashtbl.find ids c in
|
||||
assert (not b);
|
||||
Hashtbl.replace ids c (true, id)
|
||||
else
|
||||
()
|
||||
|
||||
let print_clause fmt c = print_cl fmt (to_list c)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue