source:
CIVL/examples/library/string/strlen_symbolic.c@
cc8e265
| Last change on this file since cc8e265 was e8576bf, checked in by , 8 years ago | |
|---|---|
|
|
| File size: 188 bytes | |
| Rev | Line | |
|---|---|---|
| [e8576bf] | 1 | #include <civlc.cvh> |
| 2 | #include <string.h> | |
| 3 | ||
| 4 | $input int LENGTH; | |
| 5 | $assume(0 < LENGTH); | |
| 6 | $input char STR_IN[2][LENGTH]; | |
| 7 | ||
| 8 | void main(){ | |
| 9 | int len = strlen(&STR_IN[1][1]); | |
| 10 | ||
| 11 | $assert(0 <= len); | |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
