mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-08 04:05:43 -05:00
Fixed typos in clause simplification
This commit is contained in:
parent
ac5e8a9766
commit
e2cac78d39
1 changed files with 4 additions and 4 deletions
|
|
@ -508,12 +508,12 @@ module Make (L : Log_intf.S)(St : Solver_types.S)
|
|||
if a.is_true then raise Trivial;
|
||||
if a.neg.is_true then begin
|
||||
match a.var.reason with
|
||||
| Bcp (Some cl) -> atoms, true, max lvl cl.c_level
|
||||
| Bcp (Some cl) -> atoms, false, max lvl cl.c_level
|
||||
| _ -> assert false
|
||||
end else
|
||||
a::atoms, init, lvl
|
||||
in
|
||||
let atoms, init, lvl = List.fold_left aux ([], false, level0) atoms in
|
||||
let atoms, init, lvl = List.fold_left aux ([], true, level0) atoms in
|
||||
List.fast_sort (fun a b -> a.var.vid - b.var.vid) atoms, init, lvl
|
||||
|
||||
let partition atoms init0 =
|
||||
|
|
@ -527,7 +527,7 @@ module Make (L : Log_intf.S)(St : Solver_types.S)
|
|||
if a.var.level = 0 then begin
|
||||
match a.var.reason with
|
||||
| Bcp (Some cl) ->
|
||||
partition_aux trues unassigned falses true (max lvl cl.c_level) r
|
||||
partition_aux trues unassigned falses false (max lvl cl.c_level) r
|
||||
| _ -> assert false
|
||||
end else
|
||||
partition_aux trues unassigned (a::falses) init lvl r
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue