main
|
Last change
on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago |
|
Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
417 bytes
|
| Line | |
|---|
| 1 | /* Cannot verify. Reasons:
|
|---|
| 2 | * Assertion inside of dependent loop
|
|---|
| 3 | */
|
|---|
| 4 | #include <stdlib.h>
|
|---|
| 5 | #include <assert.h>
|
|---|
| 6 | #pragma CIVL ACSL
|
|---|
| 7 |
|
|---|
| 8 | $input int N;
|
|---|
| 9 | $assume(0 < N);
|
|---|
| 10 | struct _S
|
|---|
| 11 | {
|
|---|
| 12 | int n;
|
|---|
| 13 | };
|
|---|
| 14 | typedef struct _S S;
|
|---|
| 15 |
|
|---|
| 16 | S a[N];
|
|---|
| 17 |
|
|---|
| 18 | int main()
|
|---|
| 19 | {
|
|---|
| 20 | int i;
|
|---|
| 21 | for(i = 0; i < N; i++)
|
|---|
| 22 | {
|
|---|
| 23 | a[i].n = 10;
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | for(i = 0; i < N; i++)
|
|---|
| 28 | {
|
|---|
| 29 | __VERIFIER_assert(a[i].n == 10 || a[i].n == 20);
|
|---|
| 30 |
|
|---|
| 31 | if(i+1 != 15000)
|
|---|
| 32 | a[i+1].n = 20;
|
|---|
| 33 |
|
|---|
| 34 | }
|
|---|
| 35 |
|
|---|
| 36 | return 0;
|
|---|
| 37 | }
|
|---|
| 38 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.