fix bug in add_clause

This commit is contained in:
Simon Cruanes 2016-09-12 10:38:13 +02:00
parent 18a3478926
commit 9baa3f0716

View file

@ -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);