From db30cafd94527e73e969457c9c00e8c67300d7d4 Mon Sep 17 00:00:00 2001 From: qunyanm Date: Thu, 5 Mar 2015 12:04:37 -0800 Subject: Stop pretty-print from emitting deprecated semi-colons. --- Test/hofs/Fold.dfy | 4 ++-- Test/hofs/Monads.dfy | 8 ++++---- Test/hofs/TreeMapSimple.dfy | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'Test/hofs') diff --git a/Test/hofs/Fold.dfy b/Test/hofs/Fold.dfy index 50b5569b..6ca2d3b1 100644 --- a/Test/hofs/Fold.dfy +++ b/Test/hofs/Fold.dfy @@ -1,9 +1,9 @@ // RUN: %dafny /compile:3 "%s" > "%t" // RUN: %diff "%s.expect" "%t" -datatype List = Nil | Cons(A,List); +datatype List = Nil | Cons(A,List) -datatype Expr = Add(List) | Mul(List) | Lit(int); +datatype Expr = Add(List) | Mul(List) | Lit(int) function method Eval(e : Expr): int { diff --git a/Test/hofs/Monads.dfy b/Test/hofs/Monads.dfy index a221f818..3598d2b3 100644 --- a/Test/hofs/Monads.dfy +++ b/Test/hofs/Monads.dfy @@ -2,7 +2,7 @@ // RUN: %diff "%s.expect" "%t" abstract module Monad { - type M; + type M function method Return(x: A): M function method Bind(m: M, f:A -> M):M @@ -30,7 +30,7 @@ abstract module Monad { } module Identity refines Monad { - datatype M = I(A); + datatype M = I(A) function method Return(x: A): M { I(x) } @@ -62,7 +62,7 @@ module Identity refines Monad { } module Maybe refines Monad { - datatype M = Just(A) | Nothing; + datatype M = Just(A) | Nothing function method Return(x: A): M { Just(x) } @@ -96,7 +96,7 @@ module Maybe refines Monad { } module List refines Monad { - datatype M = Cons(hd: A,tl: M) | Nil; + datatype M = Cons(hd: A,tl: M) | Nil function method Return(x: A): M { Cons(x,Nil) } diff --git a/Test/hofs/TreeMapSimple.dfy b/Test/hofs/TreeMapSimple.dfy index 3c70840e..a853b82c 100644 --- a/Test/hofs/TreeMapSimple.dfy +++ b/Test/hofs/TreeMapSimple.dfy @@ -1,9 +1,9 @@ // RUN: %dafny /compile:3 "%s" > "%t" // RUN: %diff "%s.expect" "%t" -datatype List = Nil | Cons(head: A,tail: List); +datatype List = Nil | Cons(head: A,tail: List) -datatype Tree = Branch(val: A,trees: List>); +datatype Tree = Branch(val: A,trees: List>) function ListData(xs : List) : set ensures forall x :: x in ListData(xs) ==> x < xs; -- cgit v1.2.3