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