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

Commit 06e3c7f

Browse files
committed
Factor the common bits of the string out.
1 parent 1bd25ac commit 06e3c7f

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
@@ -187,7 +187,7 @@ heapAddressGraph = heapGraph (\ addr v -> (Value v, addr)) (fmap G.vertex . (,)
187187

188188
addressStyle :: Heap -> G.Style (EdgeType, Precise) Text
189189
addressStyle heap = (G.defaultStyle vertex) { G.edgeAttributes }
190-
where vertex (_, addr) = maybe (pack (show addr) <> " = ?") (((pack (show addr) <> " = ") <>) . fromConcrete) (IntMap.lookup addr heap)
190+
where vertex (_, addr) = pack (show addr) <> " = " <> maybe "?" fromConcrete (IntMap.lookup addr heap)
191191
edgeAttributes _ (Slot name, _) = ["label" G.:= fromName name]
192192
edgeAttributes _ (Edge Core.Import, _) = ["color" G.:= "blue"]
193193
edgeAttributes _ (Edge Core.Lexical, _) = ["color" G.:= "green"]

0 commit comments

Comments
 (0)