source: CIVL/examples/bench/binaryGuards.cvl@ 87397f9

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

updated benchmark

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

  • Property mode set to 100644
File size: 188 bytes
RevLine 
[87397f9]1#include<civlc.cvh>
2$input int N, B=10;
3$input int x,y;
4$assume(0<N && N<=B);
[66f00bb]5
6int main(){
7 int a=0;
8
9 for(int i=0; i<N; i++){
[87397f9]10 if(x+i>y+i)
11 a=a+i;
[66f00bb]12 else
[87397f9]13 a=a-i;
[66f00bb]14 }
15}
Note: See TracBrowser for help on using the repository browser.