source: CIVL/examples/backend/binaryGuard.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: 260 bytes
Line 
1$input int x, y, z, d;
2
3int main(){
4 int a=0;
5
6 $choose{
7 $when(d>100)
8 if(x<y)
9 a=0;
10 else
11 a=1;
12 if(y>z)
13 a=2;
14 else
15 if(z>50)
16 a=3;
17 else
18 a=5;
19 $when(d<4)
20 for(int i=0; i<3; i++)
21 a+=i;
22 default:
23 a=4;
24 }
25}
Note: See TracBrowser for help on using the repository browser.