source:
CIVL/examples/library/civlc/elaborate1.cvl@
7dbb0db
| Last change on this file since 7dbb0db was 6ffeadc, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 257 bytes | |
| Line | |
|---|---|
| 1 | #include <stdio.h> |
| 2 | #include <civlc.cvh> |
| 3 | |
| 4 | $input int X; |
| 5 | $assume(1 <= X && X <= 2); |
| 6 | |
| 7 | void proc(int id){ |
| 8 | printf("hello, I'm process %d\n", id); |
| 9 | } |
| 10 | |
| 11 | int main(void) { |
| 12 | $elaborate(X); |
| 13 | //printf("%d\n", X); |
| 14 | $parfor(int i: 0 .. X-1) |
| 15 | proc(i); |
| 16 | return 0; |
| 17 | } |
Note:
See TracBrowser
for help on using the repository browser.
