source: CIVL/examples/showStates/symbolicArrayWrite.cvl

main
Last change on this file 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: 308 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 N;
14$input int K;
15$assume(0 <= K && K < N);
16
17void main(){
18 Line A[N];
19 Point p0={0,0}, p1={1,1};
20 Line l0={p0, p1};
21
22 A[K]=l0;
23 $assert(A[K].start.x==0);
24}
25
Note: See TracBrowser for help on using the repository browser.