You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
384 B
13 lines
384 B
6 years ago
|
property HasNext
|
||
|
prefix "Iterator"
|
||
|
prefix "List"
|
||
5 years ago
|
prefix "Scanner"
|
||
5 years ago
|
nondet (start)
|
||
6 years ago
|
start -> start: *
|
||
|
start -> invalid: I = iterator(*)
|
||
5 years ago
|
start -> invalid: Scanner(I, *) // For constructors, biabduction has "this" as first argument
|
||
5 years ago
|
invalid -> valid: B = hasNext(i) if B != 0 // in SIL, "true" is encoded as "not 0"
|
||
6 years ago
|
valid -> invalid: next(i)
|
||
|
invalid -> error: next(i)
|
||
5 years ago
|
|