]> matita.cs.unibo.it Git - pkg-cerco/acc.git/blob - tests/clight/binop.c
Package description and copyright added.
[pkg-cerco/acc.git] / tests / clight / binop.c
1 int main(){
2         int a=4,b=5,c;
3 //      double d=3.5,e=0.1,f;
4         
5         c = a;
6         c = 10;
7         c = a+b;
8         c = a-b;
9         c = a*b;
10         c = a/b;
11         c = a%b;
12         c = a&b;
13         c = a|b;
14         c = a<<b;
15         c = a>>b;
16         c = a^b;
17         c = a<b;
18         c = a>b;
19         c = a==b;
20         c = a!=b;
21         c = a<=b;
22         c = a>=b;
23
24 //      f = d;
25 //      f = 1.0;
26 //      f = d+e;
27 //      f = d-e;
28 //      f = d*e;
29 //      f = d/e;
30 //      c = d<e;
31 //      c = d>e;
32 //      c = d==e;
33 //      c = d!=e;
34 //      c = d<=e;
35 //      c = d>=e;
36
37         return c;
38 }
39
40