Pretty instance for BlockExploreReason

This commit is contained in:
Valentin Robert 2023-08-09 14:33:48 -07:00
parent 24a18d26d3
commit 133f3bd9d5

View File

@ -65,6 +65,15 @@ data BlockExploreReason w
deriving (Eq, Show)
instance MemWidth w => PP.Pretty (BlockExploreReason w) where
pretty (NextIP b) = "next address after block " <> PP.pretty b
pretty FunctionEntryPoint = "function entry point"
pretty (SplitAt o prior) =
PP.vcat
[ "split at offset" PP.<+> PP.pretty o <> ", previously reachable from:"
, PP.indent 2 (PP.pretty prior)
]
-------------------------------------------------------------------------------
-- BoundedMemArray