#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*/ uintmax_t;
typedef int /*<<< orphan*/ uint64_t;
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ off_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ *stderr;
int main(void) {
  FILE *f;
  int ret = 0;
  f = fopen("uoff_t.h", "w");
  if (f == NULL) {
    ret = 1;
    fprintf(stderr, "Error: cannot create uoff_t.h\n");
  } else {
    fprintf(f, "/* Generated by mkuoff_t.c */\n\n");
    fprintf(f, "#ifndef _UOFF_T_H\n");
    fprintf(f, "#define _UOFF_T_H\n\n");
    fprintf(f, "#ifndef SIZEOF_CHAR\n");
    fprintf(f, "#define SIZEOF_CHAR %d\n", (int)sizeof(char));
    fprintf(f, "#endif\n\n");
    fprintf(f, "#ifndef SIZEOF_SHORT\n");
    fprintf(f, "#define SIZEOF_SHORT %d\n", (int)sizeof(short));
    fprintf(f, "#endif\n\n");
    fprintf(f, "#ifndef SIZEOF_INT\n");
    fprintf(f, "#define SIZEOF_INT %d\n", (int)sizeof(int));
    fprintf(f, "#endif\n\n");
    fprintf(f, "#ifndef SIZEOF_LONG\n");
    fprintf(f, "#define SIZEOF_LONG %d\n", (int)sizeof(long));
    fprintf(f, "#endif\n\n");
    fprintf(f, "#ifndef SIZEOF_LONG_LONG\n");
    fprintf(f, "#define SIZEOF_LONG_LONG %d\n", (int)sizeof(long long));
    fprintf(f, "#endif\n\n");
    fprintf(f, "#ifndef SIZEOF_VOID_P\n");
    fprintf(f, "#define SIZEOF_VOID_P %d\n", (int)sizeof(void *));
    fprintf(f, "#endif\n\n");
    fprintf(f, "#ifndef SIZEOF_SIZE_T\n");
    fprintf(f, "#define SIZEOF_SIZE_T %d\n", (int)sizeof(size_t));
    fprintf(f, "#endif\n\n");
    fprintf(f, "#ifndef SIZEOF_OFF_T\n");
    fprintf(f, "#define SIZEOF_OFF_T %d\n", (int)sizeof(off_t));
    fprintf(f, "#endif\n\n");
    if (sizeof(off_t) == sizeof(uint32_t)) {
      fprintf(f, "#define SIZEOF_UOFF_T %d\n", (int)sizeof(uint32_t));
      fprintf(f, "typedef uint32_t uoff_t;\n\n");
    } else if (sizeof(off_t) == sizeof(uint64_t)) {
      fprintf(f, "#define SIZEOF_UOFF_T %d\n", (int)sizeof(uint64_t));
      fprintf(f, "typedef uint64_t uoff_t;\n\n");
    } else if (sizeof(off_t) == sizeof(uintmax_t)) {
      fprintf(f, "#define SIZEOF_UOFF_T %d\n", (int)sizeof(uintmax_t));
      fprintf(f, "typedef uintmax_t uoff_t;\n\n");
    } else {
      fprintf(f, "#error Cannot define uoff_t\n\n");
      fprintf(stderr, "Error: cannot define uoff_t\n");
      ret = 1;
    }
    fprintf(f, "#endif\t/* _UOFF_T_H */\n\n");
    fclose(f);
  }
  exit(ret);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x14(%rbp)
lea    0xea3(%rip),%rdi
lea    0xea5(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    119c <main+0x5c>
movl   $0x1,-0x14(%rbp)
mov    0x2e5a(%rip),%rax
mov    (%rax),%rdi
lea    0xe7b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    13ee <main+0x2ae>
mov    -0x10(%rbp),%rdi
lea    0xe83(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe91(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe92(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe94(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe97(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe98(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe8f(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe93(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe5d(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe83(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe85(%rip),%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe22(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe73(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe76(%rip),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xde7(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe65(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe6d(%rip),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xdac(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe61(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe66(%rip),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xd71(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe57(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe5c(%rip),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xd36(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe4d(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe51(%rip),%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xcfb(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe41(%rip),%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe44(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xe4d(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x14(%rbp),%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
lea    0xea5(%rip),%rdi
lea    0xea7(%rip),%rsi
call   1050 <fopen@plt>
test   %rax,%rax
jne    1196 <main+0x46>
mov    0x2e6d(%rip),%rax
mov    (%rax),%rcx
lea    0xe8e(%rip),%rdi
mov    $0x1e,%esi
mov    $0x1,%edx
call   1070 <fwrite@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    %rax,%rbx
lea    0xe8a(%rip),%rdi
mov    $0x1f,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1070 <fwrite@plt>
lea    0xe91(%rip),%rdi
mov    $0x12,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe8b(%rip),%rdi
mov    $0x13,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe86(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe82(%rip),%rsi
xor    %r14d,%r14d
mov    %rbx,%rdi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe81(%rip),%rbp
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe6e(%rip),%rdi
mov    $0x15,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe6b(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe59(%rip),%rdi
mov    $0x13,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe54(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe40(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe3c(%rip),%rsi
mov    %rbx,%rdi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe29(%rip),%rdi
mov    $0x19,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe2a(%rip),%rsi
mov    %rbx,%rdi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe1c(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe1a(%rip),%rsi
mov    %rbx,%rdi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe09(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe07(%rip),%rsi
mov    %rbx,%rdi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xdf6(%rip),%rdi
mov    $0x15,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xdf3(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xde1(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xde5(%rip),%rdi
mov    $0x1a,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xde7(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
mov    %r14d,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"uoff_t.h\00"
@.str.1 = [2 x i8] c"w\00"
@stderr = global i32* null
@.str.2 = [31 x i8] c"Error: cannot create uoff_t.h\0A\00"
@.str.3 = [32 x i8] c"/* Generated by mkuoff_t.c */\0A\0A\00"
@.str.4 = [19 x i8] c"#ifndef _UOFF_T_H\0A\00"
@.str.5 = [20 x i8] c"#define _UOFF_T_H\0A\0A\00"
@.str.6 = [21 x i8] c"#ifndef SIZEOF_CHAR\0A\00"
@.str.7 = [24 x i8] c"#define SIZEOF_CHAR %d\0A\00"
@.str.8 = [9 x i8] c"#endif\0A\0A\00"
@.str.9 = [22 x i8] c"#ifndef SIZEOF_SHORT\0A\00"
@.str.10 = [25 x i8] c"#define SIZEOF_SHORT %d\0A\00"
@.str.11 = [20 x i8] c"#ifndef SIZEOF_INT\0A\00"
@.str.12 = [23 x i8] c"#define SIZEOF_INT %d\0A\00"
@.str.13 = [21 x i8] c"#ifndef SIZEOF_LONG\0A\00"
@.str.14 = [24 x i8] c"#define SIZEOF_LONG %d\0A\00"
@.str.15 = [26 x i8] c"#ifndef SIZEOF_LONG_LONG\0A\00"
@.str.16 = [29 x i8] c"#define SIZEOF_LONG_LONG %d\0A\00"
@.str.17 = [23 x i8] c"#ifndef SIZEOF_VOID_P\0A\00"
@.str.18 = [26 x i8] c"#define SIZEOF_VOID_P %d\0A\00"
@.str.19 = [23 x i8] c"#ifndef SIZEOF_SIZE_T\0A\00"
@.str.20 = [26 x i8] c"#define SIZEOF_SIZE_T %d\0A\00"
@.str.21 = [22 x i8] c"#ifndef SIZEOF_OFF_T\0A\00"
@.str.22 = [25 x i8] c"#define SIZEOF_OFF_T %d\0A\00"
@.str.23 = [26 x i8] c"#define SIZEOF_UOFF_T %d\0A\00"
@.str.24 = [27 x i8] c"typedef uint32_t uoff_t;\0A\0A\00"
@.str.25 = [25 x i8] c"#endif\09/* _UOFF_T_H */\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
%4 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %4, i32** %2
%5 = load i32*, i32** %2
%6 = icmp eq i32* %5, null
br i1 %6, label %7, label %10
7: ; preds = %0
store i32 1, i32* %3
%8 = load i32*, i32** @stderr
%9 = call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
br label %73
10: ; preds = %0
%11 = load i32*, i32** %2
%12 = call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%13 = load i32*, i32** %2
%14 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%15 = load i32*, i32** %2
%16 = call i32 (i32*, i8*, ...) @fprintf(i32* %15, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%17 = load i32*, i32** %2
%18 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%19 = load i32*, i32** %2
%20 = call i32 (i32*, i8*, ...) @fprintf(i32* %19, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i32 1)
%21 = load i32*, i32** %2
%22 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%23 = load i32*, i32** %2
%24 = call i32 (i32*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%25 = load i32*, i32** %2
%26 = call i32 (i32*, i8*, ...) @fprintf(i32* %25, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 2)
%27 = load i32*, i32** %2
%28 = call i32 (i32*, i8*, ...) @fprintf(i32* %27, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%29 = load i32*, i32** %2
%30 = call i32 (i32*, i8*, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0))
%31 = load i32*, i32** %2
%32 = call i32 (i32*, i8*, ...) @fprintf(i32* %31, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i32 4)
%33 = load i32*, i32** %2
%34 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%35 = load i32*, i32** %2
%36 = call i32 (i32*, i8*, ...) @fprintf(i32* %35, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0))
%37 = load i32*, i32** %2
%38 = call i32 (i32*, i8*, ...) @fprintf(i32* %37, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.14, i64 0, i64 0), i32 8)
%39 = load i32*, i32** %2
%40 = call i32 (i32*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%41 = load i32*, i32** %2
%42 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0))
%43 = load i32*, i32** %2
%44 = call i32 (i32*, i8*, ...) @fprintf(i32* %43, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i32 8)
%45 = load i32*, i32** %2
%46 = call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%47 = load i32*, i32** %2
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %47, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0))
%49 = load i32*, i32** %2
%50 = call i32 (i32*, i8*, ...) @fprintf(i32* %49, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0), i32 8)
%51 = load i32*, i32** %2
%52 = call i32 (i32*, i8*, ...) @fprintf(i32* %51, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%53 = load i32*, i32** %2
%54 = call i32 (i32*, i8*, ...) @fprintf(i32* %53, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0))
%55 = load i32*, i32** %2
%56 = call i32 (i32*, i8*, ...) @fprintf(i32* %55, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.20, i64 0, i64 0), i32 8)
%57 = load i32*, i32** %2
%58 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%59 = load i32*, i32** %2
%60 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.21, i64 0, i64 0))
%61 = load i32*, i32** %2
%62 = call i32 (i32*, i8*, ...) @fprintf(i32* %61, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.22, i64 0, i64 0), i32 4)
%63 = load i32*, i32** %2
%64 = call i32 (i32*, i8*, ...) @fprintf(i32* %63, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%65 = load i32*, i32** %2
%66 = call i32 (i32*, i8*, ...) @fprintf(i32* %65, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.23, i64 0, i64 0), i32 4)
%67 = load i32*, i32** %2
%68 = call i32 (i32*, i8*, ...) @fprintf(i32* %67, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.24, i64 0, i64 0))
%69 = load i32*, i32** %2
%70 = call i32 (i32*, i8*, ...) @fprintf(i32* %69, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.25, i64 0, i64 0))
%71 = load i32*, i32** %2
%72 = call i32 @fclose(i32* %71)
br label %73
73: ; preds = %10, %7
%74 = load i32, i32* %3
%75 = call i32 @exit(i32 %74)
unreachable
}

LLVM IR (-O2):
@.str = [9 x i8] c"uoff_t.h\00"
@.str.1 = [2 x i8] c"w\00"
@stderr = global i32* null
@.str.2 = [31 x i8] c"Error: cannot create uoff_t.h\0A\00"
@.str.3 = [32 x i8] c"/* Generated by mkuoff_t.c */\0A\0A\00"
@.str.4 = [19 x i8] c"#ifndef _UOFF_T_H\0A\00"
@.str.5 = [20 x i8] c"#define _UOFF_T_H\0A\0A\00"
@.str.6 = [21 x i8] c"#ifndef SIZEOF_CHAR\0A\00"
@.str.7 = [24 x i8] c"#define SIZEOF_CHAR %d\0A\00"
@.str.8 = [9 x i8] c"#endif\0A\0A\00"
@.str.9 = [22 x i8] c"#ifndef SIZEOF_SHORT\0A\00"
@.str.10 = [25 x i8] c"#define SIZEOF_SHORT %d\0A\00"
@.str.11 = [20 x i8] c"#ifndef SIZEOF_INT\0A\00"
@.str.12 = [23 x i8] c"#define SIZEOF_INT %d\0A\00"
@.str.13 = [21 x i8] c"#ifndef SIZEOF_LONG\0A\00"
@.str.14 = [24 x i8] c"#define SIZEOF_LONG %d\0A\00"
@.str.15 = [26 x i8] c"#ifndef SIZEOF_LONG_LONG\0A\00"
@.str.16 = [29 x i8] c"#define SIZEOF_LONG_LONG %d\0A\00"
@.str.17 = [23 x i8] c"#ifndef SIZEOF_VOID_P\0A\00"
@.str.18 = [26 x i8] c"#define SIZEOF_VOID_P %d\0A\00"
@.str.19 = [23 x i8] c"#ifndef SIZEOF_SIZE_T\0A\00"
@.str.20 = [26 x i8] c"#define SIZEOF_SIZE_T %d\0A\00"
@.str.21 = [22 x i8] c"#ifndef SIZEOF_OFF_T\0A\00"
@.str.22 = [25 x i8] c"#define SIZEOF_OFF_T %d\0A\00"
@.str.23 = [26 x i8] c"#define SIZEOF_UOFF_T %d\0A\00"
@.str.24 = [27 x i8] c"typedef uint32_t uoff_t;\0A\0A\00"
@.str.25 = [25 x i8] c"#endif\09/* _UOFF_T_H */\0A\0A\00"
define i32 @main() {
%1 = tail call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = icmp eq i32* %1, null
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = load i32*, i32** @stderr
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i64 30, i64 1, i32* %4)
br label %38
6: ; preds = %0
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), i64 31, i64 1, i32* %1)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i64 18, i64 1, i32* %1)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i64 19, i64 1, i32* %1)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i64 20, i64 1, i32* %1)
%11 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i32 1)
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i64 8, i64 1, i32* %1)
%13 = tail call i64 @fwrite(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i64 21, i64 1, i32* %1)
%14 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 2)
%15 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i64 8, i64 1, i32* %1)
%16 = tail call i64 @fwrite(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0), i64 19, i64 1, i32* %1)
%17 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i32 4)
%18 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i64 8, i64 1, i32* %1)
%19 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i64 20, i64 1, i32* %1)
%20 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.14, i64 0, i64 0), i32 8)
%21 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i64 8, i64 1, i32* %1)
%22 = tail call i64 @fwrite(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0), i64 25, i64 1, i32* %1)
%23 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i32 8)
%24 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i64 8, i64 1, i32* %1)
%25 = tail call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0), i64 22, i64 1, i32* %1)
%26 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0), i32 8)
%27 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i64 8, i64 1, i32* %1)
%28 = tail call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0), i64 22, i64 1, i32* %1)
%29 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.20, i64 0, i64 0), i32 8)
%30 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i64 8, i64 1, i32* %1)
%31 = tail call i64 @fwrite(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.21, i64 0, i64 0), i64 21, i64 1, i32* %1)
%32 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.22, i64 0, i64 0), i32 4)
%33 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i64 8, i64 1, i32* %1)
%34 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.23, i64 0, i64 0), i32 4)
%35 = tail call i64 @fwrite(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.24, i64 0, i64 0), i64 26, i64 1, i32* %1)
%36 = tail call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.25, i64 0, i64 0), i64 24, i64 1, i32* %1)
%37 = tail call i32 @fclose(i32* %1)
br label %38
38: ; preds = %6, %3
%39 = phi i32 [ 1, %3 ], [ 0, %6 ]
%40 = tail call i32 @exit(i32 %39)
unreachable
}