File tree Expand file tree Collapse file tree
src/test/resources/all/issues/silicon Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ method test()
2+ {
3+ label l0 invariant true
4+ refute false
5+ goto l0
6+ }
7+
8+ method test2()
9+ {
10+ label l0
11+ refute false
12+ goto l0
13+ }
14+
15+ function pre(): Bool
16+
17+ function needsPre(): Bool
18+ requires pre()
19+
20+ method test3()
21+ {
22+ var tmp: Int
23+ label l1
24+ assume pre()
25+ if (needsPre()) {
26+ tmp := 3
27+ } else {
28+ tmp := 4
29+ }
30+ goto l1
31+ }
32+
33+ method test3fail()
34+ {
35+ var tmp: Int
36+ label l1
37+ //:: ExpectedOutput(application.precondition:assertion.false)
38+ if (needsPre()) {
39+ tmp := 3
40+ } else {
41+ tmp := 4
42+ }
43+ goto l1
44+ }
45+
46+
47+ method test4()
48+ {
49+ {
50+ label l0
51+ {
52+ var __plugin_refute_nondet1: Bool
53+ if (__plugin_refute_nondet1) {
54+ //:: ExpectedOutput(assert.failed:assertion.false)
55+ assert false
56+ inhale false
57+ }
58+ }
59+ goto l0
60+ }
61+ }
You can’t perform that action at this time.
0 commit comments