Skip to content

Commit

Permalink
Fix for test tests/cc/testfile-ac_cc002.ae
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevendeo committed Mar 25, 2024
1 parent 4bbfc84 commit e844f17
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions src/lib/reasoners/satml.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1038,21 +1038,28 @@ module Make (Th : Theory.S) : SAT_ML with type th = Th.t = struct
(fun acc (ta : Atom.atom) ->
assert (ta.is_true);
assert (ta.var.level >= 0);
if ta.var.level <= Vec.size env.increm_guards then begin
incr nb_f;
let ex =
if ta.var.level = 0 then Ex.empty else
let d =
Vec.get env.trail (Vec.get env.trail_lim (ta.var.level - 1))
in
Ex.singleton (Ex.Literal d)
in
(ta.lit,
Th_util.Other,
ex,
ta.var.level,
env.cpt_current_propagations) :: acc
if ta.var.level = 0 then begin
(ta.lit, Th_util.Other, Ex.empty, 0, env.cpt_current_propagations)
:: acc
end
(* This was first added by PR 1000, but it triggers a bug in
tests/cc/testfile-ac_cc002.ae with option
--no-tableaux-cdcl-in-instantiation *)
(* if ta.var.level <= Vec.size env.increm_guards then begin
* incr nb_f;
* let ex =
* if ta.var.level = 0 then Ex.empty else
* let d =
* Vec.get env.trail (Vec.get env.trail_lim (ta.var.level - 1))
* in
* Ex.singleton (Ex.Literal d)
* in
* (ta.lit,
* Th_util.Other,
* ex,
* ta.var.level,
* env.cpt_current_propagations) :: acc
* end *)
else acc
)[] lazy_q
in
Expand Down

0 comments on commit e844f17

Please sign in to comment.