Skip to content

Commit

Permalink
Removing unit_tenv_queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevendeo committed Apr 5, 2024
1 parent 97353c0 commit a91b605
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/lib/reasoners/satml.ml
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,6 @@ module Make (Th : Theory.S) : SAT_ML with type th = Th.t = struct

mutable tenv_queue : Th.t Vec.t;

mutable unit_tenv_queue : Th.t Vec.t;

mutable tatoms_queue : Atom.atom Queue.t;
(** Queue of atoms that have been added to the [trail] through either
decision or boolean propagation, but have not been otherwise processed
Expand Down Expand Up @@ -508,8 +506,6 @@ module Make (Th : Theory.S) : SAT_ML with type th = Th.t = struct

tenv_queue = Vec.make 100 ~dummy:(Th.empty());

unit_tenv_queue = Vec.make 100 ~dummy:(Th.empty());

tatoms_queue = Queue.create ();

th_tableaux = Queue.create ();
Expand Down Expand Up @@ -2207,15 +2203,13 @@ module Make (Th : Theory.S) : SAT_ML with type th = Th.t = struct
guard.neg.is_guard <- false;
cancel_until env env.next_dec_guard;
Vec.push env.increm_guards guard;
Vec.push env.unit_tenv_queue env.unit_tenv;
env.is_unsat_cpt <- if env.is_unsat then env.is_unsat_cpt + 1 else 0

let pop env =
(assert (not (Vec.is_empty env.increm_guards)));
let g = Vec.pop env.increm_guards in
env.is_unsat <- env.is_unsat_cpt <> 0;
env.is_unsat_cpt <- max 0 (env.is_unsat_cpt - 1);
env.unit_tenv <- Vec.pop env.unit_tenv_queue;
g.is_guard <- false;
g.neg.is_guard <- false;
assert (not g.var.na.is_true); (* atom not false *)
Expand Down
2 changes: 1 addition & 1 deletion tests/smtlib/testfile-get-info1.dolmen.expected
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

unknown
(
:steps 10)
:steps 9)

unsupported

Expand Down

0 comments on commit a91b605

Please sign in to comment.