source:
CIVL/examples/languageFeatures/pointerAddBad6.c@
fc77f0c
| Last change on this file since fc77f0c was 8777216, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 202 bytes | |
| Line | |
|---|---|
| 1 | #include <assert.h> |
| 2 | #include <civlc.cvh> |
| 3 | $input int offset; |
| 4 | $assume(0<=offset && offset<=1); |
| 5 | int 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.
