Skip to content

Commit

Permalink
add Pretty instance for NoReturnFunStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptival committed Jan 5, 2024
1 parent 7d84006 commit 0f2264b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions base/src/Data/Macaw/Architecture/Info.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import Data.Map ( Map )
import Data.Parameterized.Nonce
import Data.Parameterized.TraversableF
import Data.Sequence (Seq)
import qualified Prettyprinter as PP

import Data.Macaw.AbsDomain.AbsState as AbsState
import qualified Data.Macaw.AbsDomain.JumpBounds as Jmp
Expand All @@ -50,10 +51,14 @@ import Data.Macaw.Memory

-- | Flags whether a function is labeled no return or not.
data NoReturnFunStatus
= NoReturnFun
-- ^ Function labeled no return
| MayReturnFun
-- ^ Function may retun
= NoReturnFun
-- ^ Function labeled no return
| MayReturnFun
-- ^ Function may retun
deriving (Show)

instance PP.Pretty NoReturnFunStatus where
pretty = PP.viaShow

type ClassificationError = String

Expand Down

0 comments on commit 0f2264b

Please sign in to comment.