#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 */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void fprint_header(FILE *output_file) {
  fprintf(output_file, "#include \"igzip_lib.h\"\n\n");
  fprintf(output_file, "#define LONG_BITS_CHECK %d\n", 12);
  fprintf(output_file, "#define SHORT_BITS_CHECK %d\n", 10);
  fprintf(output_file, "#if (LONG_BITS_CHECK == ISAL_DECODE_LONG_BITS) && "
                       "(SHORT_BITS_CHECK == ISAL_DECODE_SHORT_BITS)\n"
                       "# define ISAL_STATIC_INFLATE_TABLE\n"
                       "#else\n"
                       "# warning \"Incompatible compile time defines for "
                       "optimized static inflate table.\"\n"
                       "#endif\n\n");
}


x86 assembly (clang, -O0):
<fprint_header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xee0(%rip),%rsi
mov    $0xc,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xee5(%rip),%rsi
mov    $0xa,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xeeb(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fprint_header>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xed5(%rip),%rsi
mov    %rbx,%rdi
mov    $0xc,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xedb(%rip),%rsi
mov    %rbx,%rdi
mov    $0xa,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xee2(%rip),%rdi
mov    $0xe2,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"#include \22igzip_lib.h\22\0A\0A\00"
@.str.1 = [28 x i8] c"#define LONG_BITS_CHECK %d\0A\00"
@.str.2 = [29 x i8] c"#define SHORT_BITS_CHECK %d\0A\00"
@.str.3 = [227 x i8] c"#if (LONG_BITS_CHECK == ISAL_DECODE_LONG_BITS) && (SHORT_BITS_CHECK == ISAL_DECODE_SHORT_BITS)\0A# define ISAL_STATIC_INFLATE_TABLE\0A#else\0A# warning \22Incompatible compile time defines for optimized static inflate table.\22\0A#endif\0A\0A\00"
define void @fprint_header(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%5 = load i32*, i32** %2
%6 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 12)
%7 = load i32*, i32** %2
%8 = call i32 (i32*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 10)
%9 = load i32*, i32** %2
%10 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([227 x i8], [227 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"#include \22igzip_lib.h\22\0A\0A\00"
@.str.1 = [28 x i8] c"#define LONG_BITS_CHECK %d\0A\00"
@.str.2 = [29 x i8] c"#define SHORT_BITS_CHECK %d\0A\00"
@.str.3 = [227 x i8] c"#if (LONG_BITS_CHECK == ISAL_DECODE_LONG_BITS) && (SHORT_BITS_CHECK == ISAL_DECODE_SHORT_BITS)\0A# define ISAL_STATIC_INFLATE_TABLE\0A#else\0A# warning \22Incompatible compile time defines for optimized static inflate table.\22\0A#endif\0A\0A\00"
define void @fprint_header(i32* nocapture %0) {
%2 = tail call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 24, i64 1, i32* %0)
%3 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 12)
%4 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 10)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([227 x i8], [227 x i8]* @.str.3, i64 0, i64 0), i64 226, i64 1, i32* %0)
ret void
}