Skip to content
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

[WIP] Revamp LLVM error messages using annotations #441

Closed
wants to merge 12 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
let asConstantPred look through annotations
  • Loading branch information
robdockins committed Feb 13, 2020
commit de4796096cf005c4e917ae442572e56d0f8e91fa
3 changes: 1 addition & 2 deletions what4/src/What4/Expr/Builder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -980,8 +980,7 @@ iteSize e =
_ -> 0

instance IsExpr (Expr t) where
asConstantPred (BoolExpr b _) = Just b
asConstantPred _ = Nothing
asConstantPred = exprAbsValue

asNat (SemiRingLiteral SR.SemiRingNatRepr n _) = Just n
asNat _ = Nothing
Expand Down