rename set_using_visited to set_using_irn_visited, some cosmetics, remove obsolete...
[libfirm] / ir / be / test / codegen / leas.c
1 int k, g, h;
2
3 char *arr;
4
5 enum e_block_types {CLB, OUTPAD, INPAD, IO, ILLEGAL};
6 struct s_block {
7         char *name;
8         enum e_block_types type;
9         int *nets;
10         int x;
11         int y;
12 };
13
14 extern struct s_block *block;
15 extern int num_blocks;
16
17 int my_rand(int max);
18
19 int f(int x, int y, int z)
20 {
21         k = x;
22         g = y;
23         h = z;
24         int b_from = my_rand(num_blocks - 1);
25
26         while(block[b_from].type != CLB) {
27                 b_from = my_rand(num_blocks-1);
28         }
29         return 0;
30 }
31
32 int t2(int a) {
33         return a*2 + 2;
34 }
35
36 int t3(int a) {
37         return a*8 + 2;
38 }
39
40 int t4(int x, int y) {
41         return x + y + y;
42 }