source: CIVL/examples/library/civlc/elaborate1.cvl@ 7dbb0db

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since 7dbb0db was 6ffeadc, checked in by Manchun Zheng <zmanchun@…>, 11 years ago

added a test for elaborate() that reveals a bug.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@2420 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
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
7void proc(int id){
8 printf("hello, I'm process %d\n", id);
9}
10
11int 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.