source: CIVL/examples/mem/mem_tests/mem_contains_complex2-bad.cvl@ afc300c

1.23 2.0 main test-branch
Last change on this file since afc300c 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: 261 bytes
Line 
1#include<mem.cvh>
2#include<stdlib.h>
3
4union U {
5 int x[10][10];
6 int y[10][10];
7};
8
9struct U2 {
10 int x[10][10];
11};
12
13struct T {
14 union U u[10][10];
15 struct U2 u2[10][10];
16} a[100];
17
18int main() {
19 $assert($mem_contains(&a[(9 .. 99) + (-8 .. 0)], &a));
20}
Note: See TracBrowser for help on using the repository browser.