Skip to content

Commit

Permalink
Merge pull request #339 from GaloisInc/issue337
Browse files Browse the repository at this point in the history
Update CFG.Expr pretty printer to show partial expressions.
  • Loading branch information
brianhuffman committed Nov 12, 2019
2 parents 6fdb562 + 2700c78 commit 976ad77
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crucible/src/Lang/Crucible/CFG/Expr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ module Lang.Crucible.CFG.Expr
, RoundingMode(..)
) where

import Control.Lens ((^.))
import Control.Monad.Identity
import Control.Monad.State.Strict
import Data.Kind (Type)
Expand Down Expand Up @@ -1284,10 +1285,10 @@ instance PrettyApp (ExprExtension ext) => PrettyApp (App ext) where
, ( U.ConType [t|Vector|] `U.TypeApp` U.AnyType
, [| \pp v -> brackets (commas (fmap pp v)) |]
)
, ( U.ConType [t|PartialExpr|] `U.TypeApp` U.AnyType
, ( U.ConType [t|PartialExpr|] `U.TypeApp` U.DataArg 0
`U.TypeApp` U.DataArg 1
`U.TypeApp` U.AnyType
`U.TypeApp` U.AnyType
, [| \_ _ -> text "<some assertion>" |]
, [| \pp pe -> text "partial" <> parens (pp (pe ^. value)) |]
)
])

Expand Down

0 comments on commit 976ad77

Please sign in to comment.