From ea83cd1421c7a5050ae28757180b93d63e771990 Mon Sep 17 00:00:00 2001 From: Linard Arquint Date: Mon, 4 Dec 2023 13:43:21 +0100 Subject: [PATCH] fixes unhandled termination measure in pretty printer --- src/main/scala/viper/gobra/ast/internal/PrettyPrinter.scala | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/scala/viper/gobra/ast/internal/PrettyPrinter.scala b/src/main/scala/viper/gobra/ast/internal/PrettyPrinter.scala index 4a950981e..f7dd0caa5 100644 --- a/src/main/scala/viper/gobra/ast/internal/PrettyPrinter.scala +++ b/src/main/scala/viper/gobra/ast/internal/PrettyPrinter.scala @@ -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) } }