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

Commit 021350b

Browse files
committed
Generalize heapGraph over the term type.
1 parent ea174b2 commit 021350b

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
@@ -160,7 +160,7 @@ runHeap = runState mempty
160160
-- > λ let (heap, res) = concrete [ruby]
161161
-- > λ writeFile "/Users/rob/Desktop/heap.dot" (export (addressStyle heap) (heapAddressGraph heap))
162162
-- > λ :!dot -Tsvg < ~/Desktop/heap.dot > ~/Desktop/heap.svg
163-
heapGraph :: (Precise -> Concrete (Term (Core.Ann :+: Core.Core) User) -> a) -> (Either Edge User -> Precise -> G.Graph a) -> Heap (Term (Core.Ann :+: Core.Core) User) -> G.Graph a
163+
heapGraph :: (Precise -> Concrete term -> a) -> (Either Edge User -> Precise -> G.Graph a) -> Heap term -> G.Graph a
164164
heapGraph vertex edge h = foldr (uncurry graph) G.empty (IntMap.toList h)
165165
where graph k v rest = (G.vertex (vertex k v) `G.connect` outgoing v) `G.overlay` rest
166166
outgoing = \case

0 commit comments

Comments
 (0)