-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pretty printer for CFG.Expr doesn't show argument to withAssertion
#337
Comments
brianhuffman
pushed a commit
that referenced
this issue
Nov 12, 2019
The predicate part is still omitted, however. Fixes #337.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When pretty printing a Crucible CFG (as when using
show_cfg
in saw-script) thewithAssertion
expressions are printed with<some assertion>
in place of the argument, like this:This is not very useful when trying to inspect a CFG.
The problem is in the
PrettyApp (App ext)
instance in moduleLang.Crucible.CFG.Expr
:crucible/crucible/src/Lang/Crucible/CFG/Expr.hs
Lines 1287 to 1291 in 6fdb562
Instead of
\_ _ -> text "<some assertion>"
it should contain something like\pp pe -> pp (pe ^. value)
, so that at least it would show the value part of thePartialExpr
inside theWithAssertion
constructor.The text was updated successfully, but these errors were encountered: