source: CIVL/examples/backend/arrayWrite.cvl@ beab7f2

main test-branch
Last change on this file since beab7f2 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

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

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