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

property HasNext
prefix "Iterator"
prefix "List"
prefix "Scanner"
nondet (start)
start -> start: *
start -> invalid: I = iterator(*)
start -> invalid: Scanner(I, *) // For constructors, biabduction has "this" as first argument
invalid -> valid: B = hasNext(i) if B != 0 // in SIL, "true" is encoded as "not 0"
valid -> invalid: next(i)
invalid -> error: next(i)