source: CIVL/examples/languageFeatures/pointerAddBad6.c@ fc77f0c

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

now this example can cover more

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

  • Property mode set to 100644
File size: 202 bytes
Line 
1#include <assert.h>
2#include <civlc.cvh>
3$input int offset;
4$assume(0<=offset && offset<=1);
5int main(int argc, char * argv[]) {
6 int a = 8;
7 void *p = &a + 1;
8 void * q = p + offset;
9
10 return 0;
11}
Note: See TracBrowser for help on using the repository browser.