Skip to content

Commit 948b7e9

Browse files
committed
Added test case
1 parent bfdf70b commit 948b7e9

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

  • src/test/resources/all/issues/silicon
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Any copyright is dedicated to the Public Domain.
2+
// http://creativecommons.org/publicdomain/zero/1.0/
3+
4+
import <decreases/all.vpr>
5+
6+
domain ListWellFoundedOrder[T] {
7+
8+
9+
axiom {
10+
forall y : List[T] :: {bounded(y)} bounded(y)
11+
}
12+
13+
14+
axiom {
15+
forall xs : List[T] , y : T ::
16+
decreasing(xs, Cons(y, xs))
17+
}
18+
19+
axiom {
20+
forall xs : List[T], ys : List[T], zs : List[T] :: {decreasing(xs, ys), decreasing(ys, zs)}
21+
decreasing(xs, ys) && decreasing(ys, zs) ==> decreasing(xs, zs)
22+
}
23+
}
24+
25+
adt List[T] {
26+
Nil()
27+
Cons(value : T, tail : List[T])
28+
}

0 commit comments

Comments
 (0)