diff options
author | 2011-06-24 10:06:10 -0700 | |
---|---|---|
committer | 2011-06-24 10:06:10 -0700 | |
commit | 530e6f14cb99f3b444a82eb58d096b5a5d0e48aa (patch) | |
tree | 2c51979a74317b31761ceb17a0a1680cfe465e35 /Jennisys/examples | |
parent | 8aab55358f04b6b6be84c362ee64f715ee7bd12a (diff) |
- implemented reading models from a BVD model file
Diffstat (limited to 'Jennisys/examples')
-rw-r--r-- | Jennisys/examples/List.jen | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Jennisys/examples/List.jen b/Jennisys/examples/List.jen index 89716f8b..184f4947 100644 --- a/Jennisys/examples/List.jen +++ b/Jennisys/examples/List.jen @@ -1,10 +1,10 @@ class List[T] { var list: seq[T] - constructor Init() + constructor Empty() ensures list = [] - constructor Singleton(t) + constructor Singleton(t: T) ensures list = [t] } @@ -25,7 +25,7 @@ class Node[T] { invariant |list| > 0 - constructor Init(t) + constructor Init(t: T) ensures list = [t] } @@ -37,6 +37,6 @@ model Node[T] { data * next invariant - next = null ==> list = [data] - next != null ==> list = [data] + next.list + next = null <==> list = [data] + next != null ==> list = [data] + next.list } |