source: CIVL/examples/focus/sv-benchmarks-main-c-array-industry-pattern/c/array-industry-pattern/array_assert_loop_dep.c

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: 345 bytes
Line 
1/* Cannot verify. Reasons:
2 * assertion inside of dependent for loop
3 */
4#include <stdlib.h>
5#include <assert.h>
6
7#pragma CIVL ACSL
8
9$input int N;
10$assume(0 < N);
11
12int main()
13{
14 int i;
15 int a[N];
16 for(i = 0; i < N; i++)
17 {
18 a[i] = 10;
19 }
20
21
22 for(i = 0; i < N; i++)
23 {
24 $assert(a[i] == 10);
25
26 if(i+1 != 15000)
27 a[i+1] = 20;
28 }
29
30 return 0;
31}
32
Note: See TracBrowser for help on using the repository browser.