1 /* { dg-options "-O2 -fdump-tree-graphite-all" } */
2
3 typedef struct _IO_FILE FILE;
4 struct _IO_marker {
5 };
6 enum __codecvt_result
7 {
8 __codecvt_noconv
9 };
10 struct _IO_FILE {
11 };
12 extern struct _IO_FILE *stderr;
13
14 typedef
15 struct {
16 unsigned int avail_in;
17 unsigned int avail_out;
18 void *state;
19 void *(*bzalloc)(void *,int,int);
20 void *opaque;
21 }
22 bz_stream;
23 extern int BZ2_bzCompressInit (
24 bz_stream* strm,
25 int blockSize100k,
26 int verbosity,
27 int workFactor
28 );
29 typedef unsigned char Bool;
30 typedef int Int32;
31 typedef unsigned int UInt32;
32
33 typedef
34 struct {
35 Int32 mode;
36 Int32 state;
37 UInt32* arr1;
38 UInt32* arr2;
39 UInt32* ftab;
40 Int32 nblock;
41 Int32 nblockMAX;
42 Bool inUse[256];
43 Int32 blockNo;
44 }
45 EState;
46
prepare_new_block(EState * s)47 void prepare_new_block ( EState* s )
48 {
49 Int32 i;
50 for (i = 0; i < 256; i++) s->inUse[i] = ((Bool)0);
51 s->blockNo++;
52 }
53
BZ2_bzCompressInit(bz_stream * strm,int blockSize100k,int verbosity,int workFactor)54 int BZ2_bzCompressInit
55 ( bz_stream* strm,
56 int blockSize100k,
57 int verbosity,
58 int workFactor )
59 {
60 EState* s;
61 s = (strm->bzalloc)(strm->opaque,(sizeof(EState)),1);
62 if (s->arr1 == ((void *)0) || s->arr2 == ((void *)0) || s->ftab == ((void *)0)) {
63 }
64 prepare_new_block ( s );
65 }
66
67 /* { dg-final { cleanup-tree-dump "graphite" } } */
68