source:
CIVL/examples/languageFeatures/unionAssumePush.cvl
| Last change on this file was c2b37db, checked in by , 8 months ago | |
|---|---|
|
|
| File size: 176 bytes | |
| Line | |
|---|---|
| 1 | #include <mem.cvh> |
| 2 | |
| 3 | $input int N; |
| 4 | $assume(N > 0); |
| 5 | int a[N]; |
| 6 | |
| 7 | int main() { |
| 8 | $mem y = &a; |
| 9 | $assume_push(N == 1); |
| 10 | $mem x = &a; |
| 11 | $assume_pop(); |
| 12 | $mem z = $mem_union(x, y); |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
