source: CIVL/examples/experimental/quantifierSARLBug.cvl

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: 441 bytes
Line 
1int main() {
2 int N;
3 int M;
4
5 $havoc(&M);
6 $havoc(&N);
7 $assume(N > 0 && M > 0);
8
9 int (*a)[M+2];
10 int (*b)[M+2];
11 int i, j;
12 int c[N+2][M+2];
13 int d[N+2][M+2];
14
15 a = c;
16 b = d;
17 $havoc(&i);
18 $havoc(&j);
19 $assume(1 <= i && i <= N+1 && ($forall (int t : 1 .. i-1) $forall (int x : 1 .. M)
20 b[t][x] == 0 ));
21 $assume(i < N+1);
22 i++;
23 $assert(($forall (int t : 1 .. i-1) $forall (int x : 1 .. M)
24 b[t][x] == 0));
25}
Note: See TracBrowser for help on using the repository browser.