Skip to content

Commit

Permalink
Merge pull request #772 from viperproject/meilers_allow_pure_inexhale
Browse files Browse the repository at this point in the history
Remove warnings for pure in- or exhales
  • Loading branch information
marcoeilers authored Feb 14, 2024
2 parents eec8dd0 + 7fce62b commit dc2616a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/scala/viper/silver/parser/Resolver.scala
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,10 @@ case class TypeChecker(names: NameAnalyser) {
checkMagicWand(e)
case PExhale(_, e) =>
check(e, Impure)
if (e.typ == Bool)
messages ++= FastMessaging.message(stmt, "found `exhale` of pure boolean expression, use `assert` instead", error = false)
case PAssert(_, e) =>
check(e, Impure)
case PInhale(_, e) =>
check(e, Impure)
if (e.typ == Bool)
messages ++= FastMessaging.message(stmt, "found `inhale` of pure boolean expression, use `assume` instead", error = false)
case PAssume(_, e) =>
check(e, Impure)
case assign: PAssign =>
Expand Down

0 comments on commit dc2616a

Please sign in to comment.