mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-10 13:14:09 -05:00
fix bug in add_clause
This commit is contained in:
parent
18a3478926
commit
9baa3f0716
1 changed files with 6 additions and 1 deletions
|
|
@ -759,7 +759,12 @@ module Make
|
|||
try
|
||||
let atoms, history = partition init.atoms in
|
||||
let clause =
|
||||
if history = [] then init
|
||||
if history = []
|
||||
then (
|
||||
(* update order of atoms *)
|
||||
List.iteri (fun i a -> init.atoms.(i) <- a) atoms;
|
||||
init
|
||||
)
|
||||
else make_clause ?tag:init.tag (fresh_name ()) atoms (History (init :: history))
|
||||
in
|
||||
Log.debugf 4 "New clause:@ @[%a@]" (fun k->k St.pp_clause clause);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue