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

Commit bd8f0ca

Browse files
committed
Generalize heapAddressGraph over the term type.
1 parent a549039 commit bd8f0ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

semantic-core/src/Analysis/Concrete.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ heapValueGraph :: Heap term -> G.Graph (Concrete term)
174174
heapValueGraph h = heapGraph (const id) (const fromAddr) h
175175
where fromAddr addr = maybe G.empty G.vertex (IntMap.lookup addr h)
176176

177-
heapAddressGraph :: Heap (Term (Core.Ann :+: Core.Core) User) -> G.Graph (EdgeType (Term (Core.Ann :+: Core.Core) User), Precise)
177+
heapAddressGraph :: Heap term -> G.Graph (EdgeType term, Precise)
178178
heapAddressGraph = heapGraph (\ addr v -> (Value v, addr)) (fmap G.vertex . (,) . either Edge Slot)
179179

180180
addressStyle :: Heap (Term (Core.Ann :+: Core.Core) User) -> G.Style (EdgeType (Term (Core.Ann :+: Core.Core) User), Precise) Text

0 commit comments

Comments
 (0)