main
test-branch
| Rev | Line | |
|---|
| [205d294] | 1 | #include <civlc.cvh>
|
|---|
| 2 |
|
|---|
| 3 | typedef struct Point{
|
|---|
| 4 | double x;
|
|---|
| 5 | double y;
|
|---|
| 6 | } Point;
|
|---|
| 7 |
|
|---|
| 8 | typedef struct Line{
|
|---|
| 9 | Point start;
|
|---|
| 10 | Point end;
|
|---|
| 11 | } Line;
|
|---|
| 12 |
|
|---|
| 13 | $input int x;
|
|---|
| 14 |
|
|---|
| 15 | void main(){
|
|---|
| 16 | Point p0={0,0}, p1={1,1}, p2;
|
|---|
| 17 | Line l0={p0, p1}, l1={p1,p2}, l2={p2, p0};
|
|---|
| [0d2a850] | 18 | Line lines[3], lines1[3];
|
|---|
| [205d294] | 19 |
|
|---|
| [0d2a850] | 20 | $assume(x>0 && x<3);
|
|---|
| [205d294] | 21 | lines[0]=l0;
|
|---|
| [0d2a850] | 22 | lines[x]=l1;
|
|---|
| [205d294] | 23 | lines[1]=l1;
|
|---|
| [0d2a850] | 24 | lines1[x]=l2;
|
|---|
| 25 | lines1[1]=l0;
|
|---|
| [205d294] | 26 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.