Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 99a4f8e

Browse files
committed
Write an empty scope graph into the heap during abstraction.
1 parent 16b1442 commit 99a4f8e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

semantic-core/src/Analysis/ScopeGraph.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ scopeGraphAnalysis = Analysis{..}
8080
assign addr ty = modify (Map.insertWith (<>) addr (Set.singleton ty))
8181
abstract eval name body = do
8282
addr <- alloc name
83+
assign name (mempty @ScopeGraph)
8384
bind name addr (eval body)
8485
apply _ f a = pure (f <> a)
8586
unit = pure mempty

0 commit comments

Comments
 (0)