#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  unsigned int avail_in;
  unsigned int next_in;
  unsigned int avail_out;
  unsigned int next_out;
  void *opaque;
  void *zfree;
  void *zalloc;
};
typedef TYPE_1__ z_stream;

/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ Z_BEST_COMPRESSION;
void *Z_NULL;
int /*<<< orphan*/ deflateInit(TYPE_1__ *, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  z_stream defstream;
  defstream.zalloc = Z_NULL;
  defstream.zfree = Z_NULL;
  defstream.opaque = Z_NULL;
  defstream.avail_in = 0u;
  defstream.next_in = 0u;
  defstream.avail_out = 0u;
  defstream.next_out = 0u;
  deflateInit(&defstream, Z_BEST_COMPRESSION);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eab(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    0x2e9d(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    0x2e8f(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    0x2e75(%rip),%rax
mov    (%rax),%esi
lea    -0x38(%rbp),%rdi
call   1030 <deflateInit@plt>
mov    0x2e4b(%rip),%rax
mov    (%rax),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
mov    0x2ebd(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x20(%rsp)
mov    %rax,0x18(%rsp)
mov    %rax,0x10(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
mov    0x2ead(%rip),%rax
mov    (%rax),%esi
mov    %rsp,%rdi
call   1030 <deflateInit@plt>
mov    0x2e84(%rip),%rax
mov    (%rax),%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i32, i32, i32, i8*, i8*, i8* }
@Z_NULL = global i8* null
@Z_BEST_COMPRESSION = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.TYPE_3__
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i8*, i8** @Z_NULL
%8 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %6, i32 0, i32 6
store i8* %7, i8** %8
%9 = load i8*, i8** @Z_NULL
%10 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %6, i32 0, i32 5
store i8* %9, i8** %10
%11 = load i8*, i8** @Z_NULL
%12 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %6, i32 0, i32 4
store i8* %11, i8** %12
%13 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %6, i32 0, i32 0
store i32 0, i32* %13
%14 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %6, i32 0, i32 1
store i32 0, i32* %14
%15 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %6, i32 0, i32 2
store i32 0, i32* %15
%16 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %6, i32 0, i32 3
store i32 0, i32* %16
%17 = load i32, i32* @Z_BEST_COMPRESSION
%18 = call i32 @deflateInit(%struct.TYPE_3__* %6, i32 %17)
%19 = load i32, i32* @EXIT_SUCCESS
ret i32 %19
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i32, i32, i32, i8*, i8*, i8* }
@Z_NULL = global i8* null
@Z_BEST_COMPRESSION = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.TYPE_3__
%4 = bitcast %struct.TYPE_3__* %3 to i8*
%5 = load i8*, i8** @Z_NULL
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %3, i64 0, i32 6
store i8* %5, i8** %6
%7 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %3, i64 0, i32 5
store i8* %5, i8** %7
%8 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %3, i64 0, i32 4
store i8* %5, i8** %8
%9 = bitcast %struct.TYPE_3__* %3 to i8*
%10 = load i32, i32* @Z_BEST_COMPRESSION
%11 = call i32 @deflateInit(%struct.TYPE_3__* %3, i32 %10)
%12 = load i32, i32* @EXIT_SUCCESS
ret i32 %12
}