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

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int cg_prologue() {
  printf("#include <stdlib.h>\n");
  printf("#include <string.h>\n");
  printf("#include <stdarg.h>\n");
  printf("#include <stdio.h>\n");
  printf("#include \"utils.h\"\n");
  printf("#include \"niff.h\"\n\n");
  printf("#define COVERAGEIN\n");
  printf("#define COVERAGEOUT\n\n");
  printf("static inline int\n");
  printf("dbg(const char *format, ...)\n");
  printf("{\n");
  printf("	return 0;\n");
  printf("	va_list arg;\n");
  printf("	int done;\n");
  printf("	va_start (arg, format);\n");
  printf("	done = vprintf (format, arg);\n");
  printf("	va_end (arg);\n");
  printf("	return done;\n");
  printf("}\n\n");
  printf("static NifStream *R;\n");
  printf("static Stream *S;\n");
  printf("static int ERR;\n");
  printf("static int STOP;\n\n");
  printf("#define GETMEM(SIZE) malloc (SIZE)\n\n");
  printf("#define READERARGLST register NifStream *r\n");
  printf("#define READER R\n\n");
  printf("#define ENONE 0\n");
  printf("#define EM 1\n");
  printf("#define EIO 2\n");
  printf("#define ENIF 3\n");
  printf("#define EBUG 4\n\n");
  printf("// Nif Parsing Failed\n");
  printf("static void\n");
  printf("NPF(const char *msg, int ecode)\n");
  printf("{\n");
  printf("	dbg (\"*** %%s\\n\", msg);\n");
  printf("	ERR = ecode;\n");
  printf("	STOP = 1;\n");
  printf("}\n\n");
  printf("static void\n");
  printf("NPFF(int ecode, const char *msg, ...)\n");
  printf("{\n");
  printf("	va_list arg;\n");
  printf("	int done;\n");
  printf("	va_start (arg, msg);\n");
  printf("	done = vprintf (msg, arg);\n");
  printf("	va_end (arg);\n\n");
  printf("	ERR = ecode;\n");
  printf("	STOP = 1;\n");
  printf("}\n\n");
  printf("static unsigned int Version;\n");
  printf("static unsigned int "
         "UserVersion"
         ";\n");
  printf("static unsigned int "
         "UserVersion2"
         ";\n");
  printf("static int\n");
  printf("VersionCheck"
         " (unsigned int a, unsigned int b)\n");
  printf("{\n");
  printf("\tif (a == 0 && b == 0) return 1;\n");
  printf("\tif (a != 0 && b == 0) return Version >= a;\n");
  printf("\tif (a == 0 && b != 0) return Version <= b;\n");
  printf("\treturn Version >= a && Version <= b;\n");
  printf("}\n\n");
  return 1;
}


x86 assembly (clang, -O0):
<cg_prologue>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
call   1030 <printf@plt>
lea    0xf20(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf31(%rip),%rdi
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf63(%rip),%rdi
call   1030 <printf@plt>
lea    0xf66(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf68(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf74(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf94(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb4(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbb(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc0(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc9(%rip),%rdi
call   1030 <printf@plt>
lea    0xfce(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd9(%rip),%rdi
call   1030 <printf@plt>
lea    0xfda(%rip),%rdi
call   1030 <printf@plt>
lea    0xe23(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe3(%rip),%rdi
call   1030 <printf@plt>
lea    0xff1(%rip),%rdi
call   1030 <printf@plt>
lea    0xff4(%rip),%rdi
call   1030 <printf@plt>
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
lea    0xf85(%rip),%rdi
call   1030 <printf@plt>
lea    0xfdc(%rip),%rdi
call   1030 <printf@plt>
lea    0xdcf(%rip),%rdi
call   1030 <printf@plt>
lea    0xdd2(%rip),%rdi
call   1030 <printf@plt>
lea    0xdd5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd3(%rip),%rdi
call   1030 <printf@plt>
lea    0xfde(%rip),%rdi
call   1030 <printf@plt>
lea    0xfef(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
call   1030 <printf@plt>
lea    0xdf2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd0(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe2(%rip),%rdi
call   1030 <printf@plt>
lea    0xff8(%rip),%rdi
call   1030 <printf@plt>
lea    0x100f(%rip),%rdi
call   1030 <printf@plt>
lea    0x100f(%rip),%rdi
call   1030 <printf@plt>
lea    0xd27(%rip),%rdi
call   1030 <printf@plt>
lea    0x1026(%rip),%rdi
call   1030 <printf@plt>
lea    0x103c(%rip),%rdi
call   1030 <printf@plt>
lea    0x105d(%rip),%rdi
call   1030 <printf@plt>
lea    0x107e(%rip),%rdi
call   1030 <printf@plt>
lea    0xd6e(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cg_prologue>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef0(%rip),%rdi
call   1030 <puts@plt>
lea    0xef8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf00(%rip),%rdi
call   1030 <puts@plt>
lea    0xf07(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf15(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf25(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1205(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xf2d(%rip),%rdi
call   1030 <puts@plt>
lea    0x10dd(%rip),%rdi
call   1030 <puts@plt>
lea    0x10df(%rip),%r12
mov    %r12,%rdi
call   1030 <puts@plt>
lea    0xf11(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf31(%rip),%rdi
call   1030 <puts@plt>
lea    0xf34(%rip),%rdi
call   1030 <puts@plt>
lea    0x1240(%rip),%r13
mov    %r13,%rdi
call   1030 <puts@plt>
lea    0xf27(%rip),%rdi
call   1030 <puts@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0xf36(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf40(%rip),%rdi
call   1030 <puts@plt>
lea    0xf58(%rip),%rdi
call   1030 <puts@plt>
lea    0xf77(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf81(%rip),%rdi
call   1030 <puts@plt>
lea    0xf82(%rip),%rdi
call   1030 <puts@plt>
lea    0xf84(%rip),%rdi
call   1030 <puts@plt>
lea    0xf87(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8b(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb5(%rip),%r15
mov    %r15,%rdi
call   1030 <puts@plt>
lea    0xf86(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xd22(%rip),%rdi
call   1040 <printf@plt>
lea    0x1013(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x1012(%rip),%rbp
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
lea    0xf64(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xf76(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
lea    0xf7b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf85(%rip),%rdi
call   1030 <puts@plt>
lea    0xf95(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
lea    0xf9a(%rip),%rdi
call   1030 <puts@plt>
lea    0xfab(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc0(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd5(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xff1(%rip),%rdi
call   1030 <puts@plt>
lea    0x1006(%rip),%rdi
call   1030 <puts@plt>
lea    0x1026(%rip),%rdi
call   1030 <puts@plt>
lea    0x1046(%rip),%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [21 x i8] c"#include <stdlib.h>\0A\00"
@.str.1 = [21 x i8] c"#include <string.h>\0A\00"
@.str.2 = [21 x i8] c"#include <stdarg.h>\0A\00"
@.str.3 = [20 x i8] c"#include <stdio.h>\0A\00"
@.str.4 = [20 x i8] c"#include \22utils.h\22\0A\00"
@.str.5 = [20 x i8] c"#include \22niff.h\22\0A\0A\00"
@.str.6 = [20 x i8] c"#define COVERAGEIN\0A\00"
@.str.7 = [22 x i8] c"#define COVERAGEOUT\0A\0A\00"
@.str.8 = [19 x i8] c"static inline int\0A\00"
@.str.9 = [30 x i8] c"dbg(const char *format, ...)\0A\00"
@.str.10 = [3 x i8] c"{\0A\00"
@.str.11 = [12 x i8] c"\09return 0;\0A\00"
@.str.12 = [15 x i8] c"\09va_list arg;\0A\00"
@.str.13 = [12 x i8] c"\09int done;\0A\00"
@.str.14 = [26 x i8] c"\09va_start (arg, format);\0A\00"
@.str.15 = [32 x i8] c"\09done = vprintf (format, arg);\0A\00"
@.str.16 = [16 x i8] c"\09va_end (arg);\0A\00"
@.str.17 = [15 x i8] c"\09return done;\0A\00"
@.str.18 = [4 x i8] c"}\0A\0A\00"
@.str.19 = [22 x i8] c"static NifStream *R;\0A\00"
@.str.20 = [19 x i8] c"static Stream *S;\0A\00"
@.str.21 = [17 x i8] c"static int ERR;\0A\00"
@.str.22 = [19 x i8] c"static int STOP;\0A\0A\00"
@.str.23 = [37 x i8] c"#define GETMEM(SIZE) malloc (SIZE)\0A\0A\00"
@.str.24 = [44 x i8] c"#define READERARGLST register NifStream *r\0A\00"
@.str.25 = [19 x i8] c"#define READER R\0A\0A\00"
@.str.26 = [17 x i8] c"#define ENONE 0\0A\00"
@.str.27 = [14 x i8] c"#define EM 1\0A\00"
@.str.28 = [15 x i8] c"#define EIO 2\0A\00"
@.str.29 = [16 x i8] c"#define ENIF 3\0A\00"
@.str.30 = [17 x i8] c"#define EBUG 4\0A\0A\00"
@.str.31 = [23 x i8] c"// Nif Parsing Failed\0A\00"
@.str.32 = [13 x i8] c"static void\0A\00"
@.str.33 = [33 x i8] c"NPF(const char *msg, int ecode)\0A\00"
@.str.34 = [26 x i8] c"\09dbg (\22*** %%s\\n\22, msg);\0A\00"
@.str.35 = [15 x i8] c"\09ERR = ecode;\0A\00"
@.str.36 = [12 x i8] c"\09STOP = 1;\0A\00"
@.str.37 = [39 x i8] c"NPFF(int ecode, const char *msg, ...)\0A\00"
@.str.38 = [23 x i8] c"\09va_start (arg, msg);\0A\00"
@.str.39 = [29 x i8] c"\09done = vprintf (msg, arg);\0A\00"
@.str.40 = [17 x i8] c"\09va_end (arg);\0A\0A\00"
@.str.41 = [30 x i8] c"static unsigned int Version;\0A\00"
@.str.42 = [34 x i8] c"static unsigned int UserVersion;\0A\00"
@.str.43 = [35 x i8] c"static unsigned int UserVersion2;\0A\00"
@.str.44 = [12 x i8] c"static int\0A\00"
@.str.45 = [47 x i8] c"VersionCheck (unsigned int a, unsigned int b)\0A\00"
@.str.46 = [34 x i8] c"\09if (a == 0 && b == 0) return 1;\0A\00"
@.str.47 = [45 x i8] c"\09if (a != 0 && b == 0) return Version >= a;\0A\00"
@.str.48 = [45 x i8] c"\09if (a == 0 && b != 0) return Version <= b;\0A\00"
@.str.49 = [39 x i8] c"\09return Version >= a && Version <= b;\0A\00"
define i32 @cg_prologue() {
%1 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.26, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.27, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.28, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.29, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.30, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.31, i64 0, i64 0))
%33 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.32, i64 0, i64 0))
%34 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.33, i64 0, i64 0))
%35 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%36 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.34, i64 0, i64 0))
%37 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.35, i64 0, i64 0))
%38 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.36, i64 0, i64 0))
%39 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%40 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.32, i64 0, i64 0))
%41 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.37, i64 0, i64 0))
%42 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%43 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0))
%44 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%45 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.38, i64 0, i64 0))
%46 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.39, i64 0, i64 0))
%47 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.40, i64 0, i64 0))
%48 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.35, i64 0, i64 0))
%49 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.36, i64 0, i64 0))
%50 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%51 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.41, i64 0, i64 0))
%52 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.42, i64 0, i64 0))
%53 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.43, i64 0, i64 0))
%54 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.44, i64 0, i64 0))
%55 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.45, i64 0, i64 0))
%56 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%57 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.46, i64 0, i64 0))
%58 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.47, i64 0, i64 0))
%59 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.48, i64 0, i64 0))
%60 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.49, i64 0, i64 0))
%61 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@.str.34 = [26 x i8] c"\09dbg (\22*** %%s\\n\22, msg);\0A\00"
@str = [20 x i8] c"#include <stdlib.h>\00"
@str.50 = [20 x i8] c"#include <string.h>\00"
@str.51 = [20 x i8] c"#include <stdarg.h>\00"
@str.52 = [19 x i8] c"#include <stdio.h>\00"
@str.53 = [19 x i8] c"#include \22utils.h\22\00"
@str.54 = [19 x i8] c"#include \22niff.h\22\0A\00"
@str.55 = [19 x i8] c"#define COVERAGEIN\00"
@str.56 = [21 x i8] c"#define COVERAGEOUT\0A\00"
@str.57 = [18 x i8] c"static inline int\00"
@str.58 = [29 x i8] c"dbg(const char *format, ...)\00"
@str.60 = [11 x i8] c"\09return 0;\00"
@str.63 = [25 x i8] c"\09va_start (arg, format);\00"
@str.64 = [31 x i8] c"\09done = vprintf (format, arg);\00"
@str.65 = [15 x i8] c"\09va_end (arg);\00"
@str.66 = [14 x i8] c"\09return done;\00"
@str.68 = [21 x i8] c"static NifStream *R;\00"
@str.69 = [18 x i8] c"static Stream *S;\00"
@str.70 = [16 x i8] c"static int ERR;\00"
@str.71 = [18 x i8] c"static int STOP;\0A\00"
@str.72 = [36 x i8] c"#define GETMEM(SIZE) malloc (SIZE)\0A\00"
@str.73 = [43 x i8] c"#define READERARGLST register NifStream *r\00"
@str.74 = [18 x i8] c"#define READER R\0A\00"
@str.75 = [16 x i8] c"#define ENONE 0\00"
@str.76 = [13 x i8] c"#define EM 1\00"
@str.77 = [14 x i8] c"#define EIO 2\00"
@str.78 = [15 x i8] c"#define ENIF 3\00"
@str.79 = [16 x i8] c"#define EBUG 4\0A\00"
@str.80 = [22 x i8] c"// Nif Parsing Failed\00"
@str.82 = [32 x i8] c"NPF(const char *msg, int ecode)\00"
@str.87 = [12 x i8] c"static void\00"
@str.88 = [38 x i8] c"NPFF(int ecode, const char *msg, ...)\00"
@str.90 = [14 x i8] c"\09va_list arg;\00"
@str.91 = [11 x i8] c"\09int done;\00"
@str.92 = [22 x i8] c"\09va_start (arg, msg);\00"
@str.93 = [28 x i8] c"\09done = vprintf (msg, arg);\00"
@str.94 = [16 x i8] c"\09va_end (arg);\0A\00"
@str.95 = [14 x i8] c"\09ERR = ecode;\00"
@str.96 = [11 x i8] c"\09STOP = 1;\00"
@str.98 = [29 x i8] c"static unsigned int Version;\00"
@str.99 = [33 x i8] c"static unsigned int UserVersion;\00"
@str.100 = [34 x i8] c"static unsigned int UserVersion2;\00"
@str.101 = [11 x i8] c"static int\00"
@str.102 = [46 x i8] c"VersionCheck (unsigned int a, unsigned int b)\00"
@str.103 = [2 x i8] c"{\00"
@str.104 = [33 x i8] c"\09if (a == 0 && b == 0) return 1;\00"
@str.105 = [44 x i8] c"\09if (a != 0 && b == 0) return Version >= a;\00"
@str.106 = [44 x i8] c"\09if (a == 0 && b != 0) return Version <= b;\00"
@str.107 = [38 x i8] c"\09return Version >= a && Version <= b;\00"
@str.108 = [3 x i8] c"}\0A\00"
define i32 @cg_prologue() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.50, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.51, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.52, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.53, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.54, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.55, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.56, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.57, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.58, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.103, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.60, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.90, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.91, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.63, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.64, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.65, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.66, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.108, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.68, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.69, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.70, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.71, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.72, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.73, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.74, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.75, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.76, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.77, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.78, i64 0, i64 0))
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.79, i64 0, i64 0))
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.80, i64 0, i64 0))
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.87, i64 0, i64 0))
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.82, i64 0, i64 0))
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.103, i64 0, i64 0))
%36 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.34, i64 0, i64 0))
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.95, i64 0, i64 0))
%38 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.96, i64 0, i64 0))
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.108, i64 0, i64 0))
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.87, i64 0, i64 0))
%41 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.88, i64 0, i64 0))
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.103, i64 0, i64 0))
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.90, i64 0, i64 0))
%44 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.91, i64 0, i64 0))
%45 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.92, i64 0, i64 0))
%46 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.93, i64 0, i64 0))
%47 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.94, i64 0, i64 0))
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.95, i64 0, i64 0))
%49 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.96, i64 0, i64 0))
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.108, i64 0, i64 0))
%51 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.98, i64 0, i64 0))
%52 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.99, i64 0, i64 0))
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.100, i64 0, i64 0))
%54 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.101, i64 0, i64 0))
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.102, i64 0, i64 0))
%56 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.103, i64 0, i64 0))
%57 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.104, i64 0, i64 0))
%58 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.105, i64 0, i64 0))
%59 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.106, i64 0, i64 0))
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.107, i64 0, i64 0))
%61 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.108, i64 0, i64 0))
ret i32 1
}