mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-12 22:10:53 -05:00
Fixed bad decision level updating during pop
This commit is contained in:
parent
763d23146f
commit
6567d32900
1 changed files with 2 additions and 8 deletions
|
|
@ -999,14 +999,8 @@ module Make (L : Log_intf.S)(St : Solver_types.S)
|
||||||
done;
|
done;
|
||||||
Th.backtrack th_env; (* recover the right tenv *)
|
Th.backtrack th_env; (* recover the right tenv *)
|
||||||
Vec.shrink env.trail ((Vec.size env.trail) - env.qhead);
|
Vec.shrink env.trail ((Vec.size env.trail) - env.qhead);
|
||||||
if not (Vec.is_empty env.trail_lim) then begin
|
Vec.clear env.trail_lim;
|
||||||
Vec.shrink env.trail_lim ((Vec.size env.trail_lim) - 1);
|
Vec.clear env.tenv_queue;
|
||||||
Vec.set env.trail_lim 0 env.qhead
|
|
||||||
end;
|
|
||||||
if not (Vec.is_empty env.tenv_queue) then begin
|
|
||||||
Vec.shrink env.tenv_queue ((Vec.size env.tenv_queue) - 1);
|
|
||||||
Vec.set env.tenv_queue 0 th_env
|
|
||||||
end;
|
|
||||||
assert (Vec.size env.trail_lim = Vec.size env.tenv_queue);
|
assert (Vec.size env.trail_lim = Vec.size env.tenv_queue);
|
||||||
assert (env.qhead = Vec.size env.trail);
|
assert (env.qhead = Vec.size env.trail);
|
||||||
()
|
()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue