Skip to content

Commit

Permalink
fix calculation of free vars
Browse files Browse the repository at this point in the history
  • Loading branch information
LeventErkok committed Dec 3, 2024
1 parent 94b7c42 commit e0d7480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/SBV/Lambda.hs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ toLambda level curProgInfo cfg expectedKind result@Result{resAsgns = SBVPgm asgn
]
ResultLamInps xs -> map (\(q, v) -> (q, getSV v)) xs

frees = map show $ nub $ allUses \\ allDefs
frees = map show $ nub allUses \\ nub allDefs
where (defs, uses) = unzip [(d, u) | (d, SBVApp _ u) <- F.toList asgnsSeq]
allDefs = defs ++ map snd params ++ map fst constants
allUses = concat uses
Expand Down

0 comments on commit e0d7480

Please sign in to comment.