#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*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
void write_analyze_header(int num_voxels[3], double voxel_size[3],
                          int analyze_data_type, int data_length,
                          char *output_path) {
  FILE *file;
  int dim_i;
  char header[348];
  memset(header, 0, 348);
  *((int *)header) = 348;
  strncpy(header + 4, "dsr      \0", 10);
  strncpy(header + 14, "randomly generated\0", 18);
  *((int *)(header + 32)) = 16384;
  strncpy(header + 38, "r0", 2);
  *((short *)(header + 40)) = 3;
  for (dim_i = 0; dim_i < 3; dim_i++)
    *((short *)(header + 42 + 2 * dim_i)) = num_voxels[dim_i];
  *((short *)(header + 48)) = 1;
  *((short *)(header + 70)) = analyze_data_type;
  *((short *)(header + 72)) = data_length * 8;
  for (dim_i = 0; dim_i < 3; dim_i++)
    *((float *)(header + 80 + 4 * dim_i)) = voxel_size[dim_i];
  *((float *)(header + 92)) = 1;
  *((float *)(header + 112)) = 1.0;
  *((float *)(header + 116)) = 0.0;
  strncpy(header + 148,
          "Generated from NFG by Tom Close, Brain Research Institute, "
          "Melbourne, Australia",
          80);
  strncpy(header + 228, "none                   \0", 24);
  if ((file = fopen(output_path, "wb")) == NULL) {
    printf("\nCould not open file %s.!\n", output_path);
    exit(EXIT_FAILURE);
  }
  if (!fwrite(header, sizeof(char), 348, file)) {
    printf("\nNo elements were written from file %s.!\n", output_path);
    exit(EXIT_FAILURE);
  }
  fclose(file);
  return;
}


x86 assembly (clang, -O0):
<write_analyze_header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
lea    -0x190(%rbp),%rdi
xor    %esi,%esi
mov    $0x15c,%edx
call   1060 <memset@plt>
movl   $0x15c,-0x190(%rbp)
lea    -0x190(%rbp),%rdi
add    $0x4,%rdi
lea    0xe48(%rip),%rsi
mov    $0xa,%edx
call   1030 <strncpy@plt>
lea    -0x190(%rbp),%rdi
add    $0xe,%rdi
lea    0xe37(%rip),%rsi
mov    $0x12,%edx
call   1030 <strncpy@plt>
movl   $0x4000,-0x170(%rbp)
lea    -0x190(%rbp),%rdi
add    $0x26,%rdi
lea    0xe3e(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncpy@plt>
movw   $0x3,-0x168(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x3,-0x2c(%rbp)
jge    124e <write_analyze_header+0xde>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %ax,%cx
mov    -0x2c(%rbp),%eax
shl    $0x1,%eax
cltq
mov    %cx,-0x166(%rbp,%rax,1)
ff
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1218 <write_analyze_header+0xa8>
movw   $0x1,-0x160(%rbp)
mov    -0x14(%rbp),%eax
mov    %ax,-0x14a(%rbp)
mov    -0x18(%rbp),%eax
shl    $0x3,%eax
mov    %ax,-0x148(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x3,-0x2c(%rbp)
jge    12af <write_analyze_header+0x13f>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x2c(%rbp),%eax
shl    $0x2,%eax
cltq
movss  %xmm0,-0x140(%rbp,%rax,1)
ff ff
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1275 <write_analyze_header+0x105>
movss  0xd49(%rip),%xmm0
movss  %xmm0,-0x134(%rbp)
ff
movss  0xd39(%rip),%xmm0
movss  %xmm0,-0x120(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x11c(%rbp)
ff
lea    -0x190(%rbp),%rdi
add    $0x94,%rdi
lea    0xd50(%rip),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    -0x190(%rbp),%rdi
add    $0xe4,%rdi
lea    0xd15(%rip),%rsi
mov    $0x18,%edx
call   1030 <strncpy@plt>
mov    -0x20(%rbp),%rdi
lea    0xd6c(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    1354 <write_analyze_header+0x1e4>
mov    -0x20(%rbp),%rsi
lea    0xd51(%rip),%rdi
call   1050 <printf@plt>
mov    0x2c93(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
lea    -0x190(%rbp),%rdi
mov    -0x28(%rbp),%rcx
mov    $0x1,%esi
mov    $0x15c,%edx
call   1090 <fwrite@plt>
cmp    $0x0,%eax
jne    1395 <write_analyze_header+0x225>
mov    -0x20(%rbp),%rsi
lea    0xd2b(%rip),%rdi
call   1050 <printf@plt>
mov    0x2c52(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_analyze_header>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x160,%rsp
mov    %r8,%r14
mov    %ecx,%ebp
mov    %edx,%r15d
mov    %rsi,%r12
mov    %rdi,%rbx
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x15c,%edx
call   1060 <memset@plt>
movl   $0x15c,(%rsp)
lea    0x4(%rsp),%rdi
lea    0xe51(%rip),%rsi
mov    $0xa,%edx
call   1030 <strncpy@plt>
lea    0xe(%rsp),%rdi
lea    0xe46(%rip),%rsi
mov    $0x12,%edx
call   1030 <strncpy@plt>
movl   $0x4000,0x20(%rsp)
lea    0x26(%rsp),%rdi
lea    0xe55(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncpy@plt>
movw   $0x3,0x28(%rsp)
movzwl (%rbx),%eax
mov    %ax,0x2a(%rsp)
movzwl 0x4(%rbx),%eax
mov    %ax,0x2c(%rsp)
movzwl 0x8(%rbx),%eax
mov    %ax,0x2e(%rsp)
movw   $0x1,0x30(%rsp)
mov    %r15w,0x46(%rsp)
shl    $0x3,%ebp
mov    %bp,0x48(%rsp)
movsd  (%r12),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x50(%rsp)
movsd  0x8(%r12),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x54(%rsp)
movsd  0x10(%r12),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x58(%rsp)
movl   $0x3f800000,0x5c(%rsp)
3f
movq   $0x3f800000,0x70(%rsp)
80 3f
lea    0x94(%rsp),%rdi
lea    0xdc6(%rip),%rsi
mov    $0x50,%edx
call   1030 <strncpy@plt>
lea    0xe4(%rsp),%rdi
lea    0xd91(%rip),%rsi
mov    $0x18,%edx
call   1030 <strncpy@plt>
lea    0xdec(%rip),%rsi
mov    %r14,%rdi
call   1070 <fopen@plt>
test   %rax,%rax
je     12e0 <write_analyze_header+0x170>
mov    %rax,%rbx
mov    %rsp,%rdi
mov    $0x1,%esi
mov    $0x15c,%edx
mov    %rax,%rcx
call   1090 <fwrite@plt>
test   %eax,%eax
je     12e9 <write_analyze_header+0x179>
mov    %rbx,%rdi
call   1040 <fclose@plt>
add    $0x160,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xda7(%rip),%rdi
jmp    12f0 <write_analyze_header+0x180>
lea    0xdb9(%rip),%rdi
mov    %r14,%rsi
call   1050 <printf@plt>
mov    0x2ce1(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"dsr \00\00"
@.str.1 = [20 x i8] c"randomly generated\00\00"
@.str.2 = [3 x i8] c"r0\00"
@.str.3 = [80 x i8] c"Generated from NFG by Tom Close, Brain Research Institute, Melbourne, Australia\00"
@.str.4 = [25 x i8] c"none \00\00"
@.str.5 = [3 x i8] c"wb\00"
@.str.6 = [27 x i8] c"\0ACould not open file %s.!\0A\00"
@EXIT_FAILURE = global i32 0
@.str.7 = [42 x i8] c"\0ANo elements were written from file %s.!\0A\00"
define void @write_analyze_header(i32* %0, double* %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca i32*
%7 = alloca double*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i32*
%12 = alloca i32
%13 = alloca [348 x i8]
store i32* %0, i32** %6
store double* %1, double** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i8* %4, i8** %10
%14 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%15 = call i32 @memset(i8* %14, i32 0, i32 348)
%16 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%17 = bitcast i8* %16 to i32*
store i32 348, i32* %17
%18 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%19 = getelementptr inbounds i8, i8* %18, i64 4
%20 = call i32 @strncpy(i8* %19, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 10)
%21 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%22 = getelementptr inbounds i8, i8* %21, i64 14
%23 = call i32 @strncpy(i8* %22, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 18)
%24 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%25 = getelementptr inbounds i8, i8* %24, i64 32
%26 = bitcast i8* %25 to i32*
store i32 16384, i32* %26
%27 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%28 = getelementptr inbounds i8, i8* %27, i64 38
%29 = call i32 @strncpy(i8* %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 2)
%30 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%31 = getelementptr inbounds i8, i8* %30, i64 40
%32 = bitcast i8* %31 to i16*
store i16 3, i16* %32
store i32 0, i32* %12
br label %33
33: ; preds = %50, %5
%34 = load i32, i32* %12
%35 = icmp slt i32 %34, 3
br i1 %35, label %36, label %53
36: ; preds = %33
%37 = load i32*, i32** %6
%38 = load i32, i32* %12
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, i32* %37, i64 %39
%41 = load i32, i32* %40
%42 = trunc i32 %41 to i16
%43 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%44 = getelementptr inbounds i8, i8* %43, i64 42
%45 = load i32, i32* %12
%46 = mul nsw i32 2, %45
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, i8* %44, i64 %47
%49 = bitcast i8* %48 to i16*
store i16 %42, i16* %49
br label %50
50: ; preds = %36
%51 = load i32, i32* %12
%52 = add nsw i32 %51, 1
store i32 %52, i32* %12
br label %33
53: ; preds = %33
%54 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%55 = getelementptr inbounds i8, i8* %54, i64 48
%56 = bitcast i8* %55 to i16*
store i16 1, i16* %56
%57 = load i32, i32* %8
%58 = trunc i32 %57 to i16
%59 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%60 = getelementptr inbounds i8, i8* %59, i64 70
%61 = bitcast i8* %60 to i16*
store i16 %58, i16* %61
%62 = load i32, i32* %9
%63 = mul nsw i32 %62, 8
%64 = trunc i32 %63 to i16
%65 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%66 = getelementptr inbounds i8, i8* %65, i64 72
%67 = bitcast i8* %66 to i16*
store i16 %64, i16* %67
store i32 0, i32* %12
br label %68
68: ; preds = %85, %53
%69 = load i32, i32* %12
%70 = icmp slt i32 %69, 3
br i1 %70, label %71, label %88
71: ; preds = %68
%72 = load double*, double** %7
%73 = load i32, i32* %12
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %72, i64 %74
%76 = load double, double* %75
%77 = fptrunc double %76 to float
%78 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%79 = getelementptr inbounds i8, i8* %78, i64 80
%80 = load i32, i32* %12
%81 = mul nsw i32 4, %80
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, i8* %79, i64 %82
%84 = bitcast i8* %83 to float*
store float %77, float* %84
br label %85
85: ; preds = %71
%86 = load i32, i32* %12
%87 = add nsw i32 %86, 1
store i32 %87, i32* %12
br label %68
88: ; preds = %68
%89 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%90 = getelementptr inbounds i8, i8* %89, i64 92
%91 = bitcast i8* %90 to float*
store float 1.000000e+00, float* %91
%92 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%93 = getelementptr inbounds i8, i8* %92, i64 112
%94 = bitcast i8* %93 to float*
store float 1.000000e+00, float* %94
%95 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%96 = getelementptr inbounds i8, i8* %95, i64 116
%97 = bitcast i8* %96 to float*
store float 0.000000e+00, float* %97
%98 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%99 = getelementptr inbounds i8, i8* %98, i64 148
%100 = call i32 @strncpy(i8* %99, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.3, i64 0, i64 0), i32 80)
%101 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%102 = getelementptr inbounds i8, i8* %101, i64 228
%103 = call i32 @strncpy(i8* %102, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 24)
%104 = load i8*, i8** %10
%105 = call i32* @fopen(i8* %104, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
store i32* %105, i32** %11
%106 = icmp eq i32* %105, null
br i1 %106, label %107, label %112
107: ; preds = %88
%108 = load i8*, i8** %10
%109 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i8* %108)
%110 = load i32, i32* @EXIT_FAILURE
%111 = call i32 @exit(i32 %110)
unreachable
112: ; preds = %88
%113 = getelementptr inbounds [348 x i8], [348 x i8]* %13, i64 0, i64 0
%114 = load i32*, i32** %11
%115 = call i32 @fwrite(i8* %113, i32 1, i32 348, i32* %114)
%116 = icmp ne i32 %115, 0
br i1 %116, label %122, label %117
117: ; preds = %112
%118 = load i8*, i8** %10
%119 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), i8* %118)
%120 = load i32, i32* @EXIT_FAILURE
%121 = call i32 @exit(i32 %120)
unreachable
122: ; preds = %112
%123 = load i32*, i32** %11
%124 = call i32 @fclose(i32* %123)
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"dsr \00\00"
@.str.1 = [20 x i8] c"randomly generated\00\00"
@.str.2 = [3 x i8] c"r0\00"
@.str.3 = [80 x i8] c"Generated from NFG by Tom Close, Brain Research Institute, Melbourne, Australia\00"
@.str.4 = [25 x i8] c"none \00\00"
@.str.5 = [3 x i8] c"wb\00"
@.str.6 = [27 x i8] c"\0ACould not open file %s.!\0A\00"
@EXIT_FAILURE = global i32 0
@.str.7 = [42 x i8] c"\0ANo elements were written from file %s.!\0A\00"
define void @write_analyze_header(i32* nocapture %0, double* nocapture %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca [348 x i8]
%7 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 0
%8 = call i32 @memset(i8* %7, i32 0, i32 348)
%9 = bitcast [348 x i8]* %6 to i32*
store i32 348, i32* %9
%10 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 4
%11 = call i32 @strncpy(i8* %10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 10)
%12 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 14
%13 = call i32 @strncpy(i8* %12, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 18)
%14 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 32
%15 = bitcast i8* %14 to i32*
store i32 16384, i32* %15
%16 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 38
%17 = call i32 @strncpy(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 2)
%18 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 40
%19 = bitcast i8* %18 to i16*
store i16 3, i16* %19
%20 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 42
%21 = load i32, i32* %0
%22 = trunc i32 %21 to i16
%23 = bitcast i8* %20 to i16*
store i16 %22, i16* %23
%24 = getelementptr inbounds i32, i32* %0, i64 1
%25 = load i32, i32* %24
%26 = trunc i32 %25 to i16
%27 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 44
%28 = bitcast i8* %27 to i16*
store i16 %26, i16* %28
%29 = getelementptr inbounds i32, i32* %0, i64 2
%30 = load i32, i32* %29
%31 = trunc i32 %30 to i16
%32 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 46
%33 = bitcast i8* %32 to i16*
store i16 %31, i16* %33
%34 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 48
%35 = bitcast i8* %34 to i16*
store i16 1, i16* %35
%36 = trunc i32 %2 to i16
%37 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 70
%38 = bitcast i8* %37 to i16*
store i16 %36, i16* %38
%39 = trunc i32 %3 to i16
%40 = shl i16 %39, 3
%41 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 72
%42 = bitcast i8* %41 to i16*
store i16 %40, i16* %42
%43 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 80
%44 = load double, double* %1
%45 = fptrunc double %44 to float
%46 = bitcast i8* %43 to float*
store float %45, float* %46
%47 = getelementptr inbounds double, double* %1, i64 1
%48 = load double, double* %47
%49 = fptrunc double %48 to float
%50 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 84
%51 = bitcast i8* %50 to float*
store float %49, float* %51
%52 = getelementptr inbounds double, double* %1, i64 2
%53 = load double, double* %52
%54 = fptrunc double %53 to float
%55 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 88
%56 = bitcast i8* %55 to float*
store float %54, float* %56
%57 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 92
%58 = bitcast i8* %57 to float*
store float 1.000000e+00, float* %58
%59 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 112
%60 = bitcast i8* %59 to float*
store float 1.000000e+00, float* %60
%61 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 116
%62 = bitcast i8* %61 to float*
store float 0.000000e+00, float* %62
%63 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 148
%64 = call i32 @strncpy(i8* %63, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.3, i64 0, i64 0), i32 80)
%65 = getelementptr inbounds [348 x i8], [348 x i8]* %6, i64 0, i64 228
%66 = call i32 @strncpy(i8* %65, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 24)
%67 = call i32* @fopen(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%68 = icmp eq i32* %67, null
br i1 %68, label %69, label %73
69: ; preds = %5
%70 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i8* %4)
%71 = load i32, i32* @EXIT_FAILURE
%72 = call i32 @exit(i32 %71)
unreachable
73: ; preds = %5
%74 = call i32 @fwrite(i8* %7, i32 1, i32 348, i32* %67)
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %80
76: ; preds = %73
%77 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), i8* %4)
%78 = load i32, i32* @EXIT_FAILURE
%79 = call i32 @exit(i32 %78)
unreachable
80: ; preds = %73
%81 = call i32 @fclose(i32* %67)
ret void
}