source: CIVL/examples/mem/mem_tests/mem_havoc_array2d_nc-bad.cvl@ aaa9c8d

1.23 2.0 main test-branch
Last change on this file since aaa9c8d was da65ee2, checked in by Ziqing Luo <ziqing@…>, 7 years ago

re-implemented loop invariants using $mem for transformation and valueSetRef for reasoning

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5153 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 244 bytes
Line 
1#include<mem.cvh>
2$input int N;
3$assume(N > 5);
4
5int a[2 * N][2 * N];
6
7int main() {
8 $mem m = &a[0 .. N-1][N .. 2*N-1];
9
10 $mem_havoc(m);
11
12 $assert(
13 $forall (int i : N .. 2*N-1)
14 $forall (int j : 0 .. N-1)
15 a[j][i] == 0
16 );
17}
Note: See TracBrowser for help on using the repository browser.