Skip to content

Commit

Permalink
fixes unhandled termination measure in pretty printer
Browse files Browse the repository at this point in the history
  • Loading branch information
ArquintL committed Dec 4, 2023
1 parent 625426f commit ea83cd1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/scala/viper/gobra/ast/internal/PrettyPrinter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,7 @@ class DefaultPrettyPrinter extends PrettyPrinter with kiama.output.PrettyPrinter
measure match {
case WildcardMeasure(cond) => "_" <+> showCond(cond)
case TupleTerminationMeasure(tuple, cond) =>
hcat(tuple map {
case e: Expr => showExpr(e)
case n => violation(s"Unexpected node $n")
}) <+> showCond(cond)
hcat(tuple map show) <+> showCond(cond)
}
}

Expand Down

0 comments on commit ea83cd1

Please sign in to comment.