source: CIVL/mods/dev.civl.abc/examples/contract/acsl_mem_pointer_pointer.c

main
Last change on this file was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

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

  • Property mode set to 100644
File size: 368 bytes
RevLine 
[aad342c]1#pragma CIVL ACSL
2int ** a;
3int x;
4int y[10];
5
6/*@ assigns a[0 .. 10][0];
7 @ assigns a[0][0 .. 10];
8 @ assigns *(a[0 .. 10] + (0 .. 10));
9 @ assigns *(*(a + (0 .. 10)) + (0 .. 10));
10 @ assigns *(*(a + (0 .. 10)) + 1);
11 @ assigns *(*(a + 1) + (0 .. 10));
12 @ assigns *(*(a + 1) + (x + (0 .. 10)));
13 @ assigns *(a + (y[0 .. 9] + 1));
14 @*/
15int f() {
16 return 0;
17}
Note: See TracBrowser for help on using the repository browser.