Skip to content

Commit

Permalink
Merge branch 'equality' into merge-equality
Browse files Browse the repository at this point in the history
(plus don't simplifyPred)
  • Loading branch information
dorchard committed Mar 13, 2019
2 parents 7d10e2e + 946ac62 commit 1688cf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/Language/Granule/Checker/Checker.hs
Original file line number Diff line number Diff line change
Expand Up @@ -928,9 +928,9 @@ solveConstraints predicate s name = do
simplPred <- simplifyPred predicate
if msg' == "is Falsifiable\n"
then throw SolverErrorFalsifiableTheorem
{ errLoc = s, errDefId = name, errPred = simplPred }
{ errLoc = s, errDefId = name, errPred = predicate }
else throw SolverErrorCounterExample
{ errLoc = s, errDefId = name, errPred = simplPred }
{ errLoc = s, errDefId = name, errPred = predicate }
NotValidTrivial unsats ->
mapM_ (\c -> throw GradingError{ errLoc = getSpan c, errConstraint = Neg c }) unsats
Timeout ->
Expand Down Expand Up @@ -1266,7 +1266,7 @@ checkGuardsForImpossibility s name = do
-- For each guard predicate
forM_ ps $ \((ctxt, p), s) -> do

p <- simplifyPred p
-- p <- simplifyPred p

-- Existentially quantify those variables occuring in the pattern in scope
let thm = foldr (uncurry Exists) p ctxt
Expand Down

0 comments on commit 1688cf4

Please sign in to comment.