mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-29 11:02:13 +03:00
Pretty instance for BlockExploreReason
This commit is contained in:
parent
24a18d26d3
commit
133f3bd9d5
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user