1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#define STACK_REQUIREMENT (128 * 128 * 4 + 1024)
#if defined (STACK_SIZE) && STACK_SIZE < STACK_REQUIREMENT
main () { exit (0); }
#else
typedef struct {
float wsx;
} struct_list;
typedef struct_list *list_t;
typedef struct {
float x, y;
} vector_t;
w(float x, float y) {}
f1(float x, float y)
{
if (x != 0 || y != 0)
abort();
}
f2(float x, float y)
{
if (x != 1 || y != 1)
abort();
}
gitter(int count, vector_t pos[], list_t list, int *nww, vector_t limit[2], float r)
{
float d;
int gitt[128][128];
f1(limit[0].x, limit[0].y);
f2(limit[1].x, limit[1].y);
*nww = 0;
d = pos[0].x;
if (d <= 0.)
{
w(d, r);
if (d <= r * 0.5)
{
w(d, r);
list[0].wsx = 1;
}
}
}
vector_t pos[1] = {{0., 0.}};
vector_t limit[2] = {{0.,0.},{1.,1.}};
main()
{
int nww;
struct_list list;
gitter(1, pos, &list, &nww, limit, 1.);
exit(0);
}
#endif
|