source:
CIVL/mods/dev.civl.com/examples/library/string/strlen_symbolic.c@
bc0fbae
| Last change on this file since bc0fbae was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 188 bytes | |
| Line | |
|---|---|
| 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.
