source: CIVL/examples/compare/simple/impl1.cvl@ 9bbf04b

1.23 2.0 main test-branch
Last change on this file since 9bbf04b was 5abe901, checked in by Manchun Zheng <zmanchun@…>, 11 years ago

added an option -strict to switch between deterministic and non-determinstic comparison; cleaned up predicate package; added nondeterministic functional equivalence predicate; added test class for nondeterministic comparison in dev test suite.

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

  • Property mode set to 100644
File size: 249 bytes
Line 
1
2
3$input int K;
4$input int N=4;
5$input int A[N];
6$output int B[N];
7
8int main(){
9 if(K > 5)
10 $for(int i: 0 .. N-1)
11 B[i]=A[i];
12 else if(K > 0)
13 $for(int i: 0 .. N-1)
14 B[i]=A[i];
15 else
16 $for(int i: 0 .. N-1)
17 B[i]=A[i]+1;
18}
Note: See TracBrowser for help on using the repository browser.