fix: must reset assignments before each iteration
Reason: the join points cached values are incorrect since they were computed using the previous values for `funVals`.
This commit is contained in:
parent
c81ab9759f
commit
daf9d219d3
1 changed files with 1 additions and 0 deletions
|
|
@ -221,6 +221,7 @@ partial def interpFnBody : FnBody → M Unit
|
|||
|
||||
def inferStep : M Bool :=
|
||||
do ctx ← read;
|
||||
modify $ fun s => { assignments := ctx.decls.map $ fun _ => {}, .. s };
|
||||
ctx.decls.size.mfold (fun idx modified => do
|
||||
match ctx.decls.get! idx with
|
||||
| Decl.fdecl fid ys _ b => do
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue