main
test-branch
|
Last change
on this file since bb03188 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:
722 bytes
|
| Line | |
|---|
| 1 | #include <stdlib.h>
|
|---|
| 2 | #include <civlc.cvh>
|
|---|
| 3 |
|
|---|
| 4 | $input int k;
|
|---|
| 5 | $input int m;
|
|---|
| 6 | $input int x;
|
|---|
| 7 | $input int y;
|
|---|
| 8 | $input int z;
|
|---|
| 9 | $assume(x<0);
|
|---|
| 10 | $assume(y>0);
|
|---|
| 11 | $assume(k!=0);
|
|---|
| 12 |
|
|---|
| 13 | int call1(int v){
|
|---|
| 14 | return abs(v);
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | int call2(int v){
|
|---|
| 18 | return abs(v);
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | int call3(int v){
|
|---|
| 22 | return abs(v);
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | int call4(int v){
|
|---|
| 26 | return abs(v);
|
|---|
| 27 | }
|
|---|
| 28 |
|
|---|
| 29 | int call5(int v){
|
|---|
| 30 | return abs(v);
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 | int call6(int v){
|
|---|
| 34 | return abs(v);
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
| 37 | int call7(int v){
|
|---|
| 38 | return abs(v);
|
|---|
| 39 | }
|
|---|
| 40 |
|
|---|
| 41 | void main(){
|
|---|
| 42 | call1(k);
|
|---|
| 43 | call1(z*z*z-3*z*z+2*z-1);
|
|---|
| 44 | call1(y);
|
|---|
| 45 | call1(1);
|
|---|
| 46 | call1(-1);
|
|---|
| 47 | call2(k);
|
|---|
| 48 | call2(m);
|
|---|
| 49 | call2(y);
|
|---|
| 50 | call3(z*z*z-3*z*z+2*z-1);
|
|---|
| 51 | call3(m);
|
|---|
| 52 | call4(m);
|
|---|
| 53 | call5(x);
|
|---|
| 54 | call5(y);
|
|---|
| 55 | call6(y);
|
|---|
| 56 | call6(x);
|
|---|
| 57 | call7(m);
|
|---|
| 58 | call7(x);
|
|---|
| 59 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.