-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c4c72c
commit 8ba970a
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
method test() | ||
{ | ||
label l0 invariant true | ||
refute false | ||
goto l0 | ||
} | ||
|
||
method test2() | ||
{ | ||
label l0 | ||
refute false | ||
goto l0 | ||
} | ||
|
||
function pre(): Bool | ||
|
||
function needsPre(): Bool | ||
requires pre() | ||
|
||
method test3() | ||
{ | ||
var tmp: Int | ||
label l1 | ||
assume pre() | ||
if (needsPre()) { | ||
tmp := 3 | ||
} else { | ||
tmp := 4 | ||
} | ||
goto l1 | ||
} | ||
|
||
method test3fail() | ||
{ | ||
var tmp: Int | ||
label l1 | ||
//:: ExpectedOutput(application.precondition:assertion.false) | ||
if (needsPre()) { | ||
tmp := 3 | ||
} else { | ||
tmp := 4 | ||
} | ||
goto l1 | ||
} | ||
|
||
|
||
method test4() | ||
{ | ||
{ | ||
label l0 | ||
{ | ||
var __plugin_refute_nondet1: Bool | ||
if (__plugin_refute_nondet1) { | ||
//:: ExpectedOutput(assert.failed:assertion.false) | ||
assert false | ||
inhale false | ||
} | ||
} | ||
goto l0 | ||
} | ||
} |