source: CIVL/examples/analysis/abs2.c

main
Last change on this file 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
RevLine 
[7a13bdf]1#include <stdlib.h>
2#include <civlc.cvh>
3
[cbea8be]4$input int k;
5$input int m;
[7a13bdf]6$input int x;
7$input int y;
[cbea8be]8$input int z;
9$assume(x<0);
10$assume(y>0);
11$assume(k!=0);
12
13int call1(int v){
14 return abs(v);
15}
16
17int call2(int v){
18 return abs(v);
19}
20
21int call3(int v){
22 return abs(v);
23}
24
25int call4(int v){
26 return abs(v);
27}
28
29int call5(int v){
30 return abs(v);
31}
32
33int call6(int v){
34 return abs(v);
35}
36
37int call7(int v){
38 return abs(v);
39}
40
[7a13bdf]41void main(){
[cbea8be]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);
[7a13bdf]59}
Note: See TracBrowser for help on using the repository browser.