Revert "Removed an error that was raised for tautological conflict clauses"

This reverts commit 803b61c7dc.
This commit is contained in:
Guillaume Bury 2015-01-29 15:49:01 +01:00
parent 436dc49111
commit 0e84c5bfb3
2 changed files with 5 additions and 5 deletions

View file

@ -78,7 +78,10 @@ module Make(St : Mcsolver_types.S) = struct
for i = 0 to Vec.size v - 1 do
l := (Vec.get v i) :: !l
done;
List.sort_uniq compare_atoms !l
let l, res = resolve (List.sort_uniq compare_atoms !l) in
if l <> [] then
raise (Resolution_error "Input cause is a tautology");
res
(* Adding hyptoheses *)
let is_unit_hyp = function

View file

@ -370,10 +370,7 @@ module Make (L : Log_intf.S)(E : Expr_intf.S)
var_bump_activity a.var;
history := d :: !history;
c := res
| _ ->
L.debug 0 "Found %d resolution lits" (List.length tmp);
List.iter (fun c -> L.debug 0 " |- %a" St.pp_atom c) tmp;
assert false
| _ -> assert false
end
| Bcp None -> L.debug 15 "Decision : %a" St.pp_atom a
| Semantic _ -> L.debug 15 "Semantic propagation : %a" St.pp_atom a)