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

Commit d817530

Browse files
committed
Generalize addressStyle over the term type.
1 parent bd8f0ca commit d817530

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
@@ -177,7 +177,7 @@ heapValueGraph h = heapGraph (const id) (const fromAddr) h
177177
heapAddressGraph :: Heap term -> G.Graph (EdgeType term, Precise)
178178
heapAddressGraph = heapGraph (\ addr v -> (Value v, addr)) (fmap G.vertex . (,) . either Edge Slot)
179179

180-
addressStyle :: Heap (Term (Core.Ann :+: Core.Core) User) -> G.Style (EdgeType (Term (Core.Ann :+: Core.Core) User), Precise) Text
180+
addressStyle :: Heap term -> G.Style (EdgeType term, Precise) Text
181181
addressStyle heap = (G.defaultStyle vertex) { G.edgeAttributes }
182182
where vertex (_, addr) = pack (show addr) <> " = " <> maybe "?" fromConcrete (IntMap.lookup addr heap)
183183
edgeAttributes _ (Slot name, _) = ["label" G.:= name]

0 commit comments

Comments
 (0)