source:
CIVL/examples/languageFeatures/pointerAddBad6.c@
2bad4e4
| Last change on this file since 2bad4e4 was 8777216, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 202 bytes | |
| Rev | Line | |
|---|---|---|
| [4c67e83] | 1 | #include <assert.h> |
| [8777216] | 2 | #include <civlc.cvh> |
| 3 | $input int offset; | |
| 4 | $assume(0<=offset && offset<=1); | |
| [4c67e83] | 5 | int main(int argc, char * argv[]) { |
| [8777216] | 6 | int a = 8; |
| 7 | void *p = &a + 1; | |
| 8 | void * q = p + offset; | |
| [4c67e83] | 9 | |
| 10 | return 0; | |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
