mirror of
https://github.com/c-cube/sidekick.git
synced 2026-01-24 02:16:41 -05:00
[bugfix] semantic variables weren't reset when backtracking
This commit is contained in:
parent
017bcaad78
commit
b05b21ac34
1 changed files with 4 additions and 1 deletions
|
|
@ -259,7 +259,10 @@ module Make (E : Expr_intf.S)
|
|||
env.tatoms_qhead <- env.qhead;
|
||||
for c = env.qhead to Vec.size env.trail - 1 do
|
||||
Either.destruct (Vec.get env.trail c)
|
||||
(fun a -> ())
|
||||
(fun v ->
|
||||
v.tag.assigned <- None;
|
||||
v.level <- -1
|
||||
)
|
||||
(fun a ->
|
||||
if a.var.level <= lvl then begin
|
||||
Vec.set env.trail env.qhead (Either.mk_right a);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue