source: CIVL/examples/backend/binaryGuard.cvl@ a5b284d

1.23 2.0 main test-branch
Last change on this file since a5b284d was 4c90feb, checked in by Manchun Zheng <zmanchun@…>, 10 years ago

optimizing evaluation of binary guards.

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

  • Property mode set to 100644
File size: 233 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 a=3;
16 $when(d<4)
17 for(int i=0; i<3; i++)
18 a+=i;
19 default:
20 a=4;
21 }
22}
Note: See TracBrowser for help on using the repository browser.