Skip to content

Commit

Permalink
Test for Silicon issue #773
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoeilers committed Nov 10, 2023
1 parent 0c4c72c commit 8ba970a
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions src/test/resources/all/issues/silicon/0773.vpr
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
}
}

0 comments on commit 8ba970a

Please sign in to comment.