source:
CIVL/examples/languageFeatures/arbitrary_pointer_bad.cvl@
42c5f45
| Last change on this file since 42c5f45 was 67af1ea, checked in by , 8 years ago | |
|---|---|
|
|
| File size: 170 bytes | |
| Rev | Line | |
|---|---|---|
| [67af1ea] | 1 | int main() { |
| 2 | int * ap; | |
| 3 | ||
| 4 | $havoc(&ap); | |
| 5 | if (1 > 0) { | |
| 6 | int x[100]; | |
| 7 | ||
| 8 | $assume(x == ap); | |
| 9 | for (int i = 0; i < 99; i++) | |
| 10 | ap += 1; | |
| 11 | } | |
| 12 | $assert(*ap == 0); | |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
