#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 */
struct seq_file {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ fatal_error(char *, char *);
int /*<<< orphan*/ flt2ieee_nan(float, unsigned char *);
int /*<<< orphan*/ free(unsigned char *);
scalar_t__ malloc(int);
int /*<<< orphan*/ uint2_char(int, unsigned char *);
int /*<<< orphan*/ uint_char(int, unsigned char *);
int wrt_sec(unsigned char *, unsigned char *, unsigned char *, unsigned char *,
            unsigned char *, unsigned char *, unsigned char *, unsigned char *,
            struct seq_file *);
int ieee_grib_out(unsigned char **sec, float *data, unsigned int ndata,
                  struct seq_file *out) {
  unsigned int n_defined, i;
  int j;
  unsigned char *p, *sec0, *sec1, *sec2, *sec3, *sec4, *sec5, *sec6, *sec7;
  sec0 = sec[0];
  sec1 = sec[1];
  sec2 = sec[2];
  sec3 = sec[3];
  sec4 = sec[4];
  n_defined = ndata;
  sec6 = (unsigned char *)malloc(6);
  if (sec6 == NULL)
    fatal_error("grib_out ieee memory allocation sec6", "");
  uint_char(6 * sizeof(unsigned char), sec6);
  sec6[4] = 6;
  sec6[5] = 255;
  sec5 = (unsigned char *)malloc(12 * sizeof(unsigned char));
  if (sec5 == NULL)
    fatal_error("grib_out ieee memory allocation sec5", "");
  uint_char(12 * sizeof(unsigned char), sec5);
  sec5[4] = 5;
  uint_char(ndata, sec5 + 5);
  uint2_char(4, sec5 + 9);
  sec5[11] = 1;
  i = (unsigned int)(4 * (size_t)n_defined);
  if (i != (4 * (size_t)n_defined))
    fatal_error("ieee_pk: grib2 data section is limited to 4G bytes", "");
  sec7 = (unsigned char *)malloc(5 + ((size_t)n_defined) * 4);
  if (sec7 == NULL)
    fatal_error("ieee_pk: memory allocation sec7", "");
  uint_char(5 + 4 * (size_t)n_defined, sec7);
  sec7[4] = 7;
  p = sec7 + 5;
  j = 0;
#pragma omp parallel for private(i) schedule(static)
  for (i = 0; i < n_defined; i++) {
    flt2ieee_nan(data[i], p + (i << 2));
  }
  j = wrt_sec(sec0, sec1, sec2, sec3, sec4, sec5, sec6, sec7, out);
  free(sec5);
  free(sec6);
  free(sec7);
  return j;
}


x86 assembly (clang, -O0):
<ieee_grib_out>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x50(%rbp)
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x58(%rbp)
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%rax
mov    %rax,-0x60(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    $0x6,%edi
call   1090 <malloc@plt>
mov    %rax,-0x70(%rbp)
cmpq   $0x0,-0x70(%rbp)
jne    11f7 <ieee_grib_out+0x87>
lea    0xe15(%rip),%rdi
lea    0xe57(%rip),%rsi
call   1080 <fatal_error@plt>
mov    -0x70(%rbp),%rsi
mov    $0x6,%edi
call   1040 <uint_char@plt>
mov    -0x70(%rbp),%rax
movb   $0x6,0x4(%rax)
mov    -0x70(%rbp),%rax
movb   $0xff,0x5(%rax)
mov    $0xc,%edi
call   1090 <malloc@plt>
mov    %rax,-0x68(%rbp)
cmpq   $0x0,-0x68(%rbp)
jne    1241 <ieee_grib_out+0xd1>
lea    0xdf0(%rip),%rdi
lea    0xe0d(%rip),%rsi
call   1080 <fatal_error@plt>
mov    -0x68(%rbp),%rsi
mov    $0xc,%edi
call   1040 <uint_char@plt>
mov    -0x68(%rbp),%rax
movb   $0x5,0x4(%rax)
mov    -0x14(%rbp),%edi
mov    -0x68(%rbp),%rsi
add    $0x5,%rsi
call   1040 <uint_char@plt>
mov    -0x68(%rbp),%rsi
add    $0x9,%rsi
mov    $0x4,%edi
call   1050 <uint2_char@plt>
mov    -0x68(%rbp),%rax
movb   $0x1,0xb(%rax)
mov    -0x24(%rbp),%eax
shl    $0x2,%rax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x24(%rbp),%ecx
shl    $0x2,%rcx
cmp    %rcx,%rax
je     12b1 <ieee_grib_out+0x141>
lea    0xda5(%rip),%rdi
lea    0xd9d(%rip),%rsi
call   1080 <fatal_error@plt>
mov    -0x24(%rbp),%eax
shl    $0x2,%rax
add    $0x5,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x78(%rbp)
cmpq   $0x0,-0x78(%rbp)
jne    12e5 <ieee_grib_out+0x175>
lea    0xda4(%rip),%rdi
lea    0xd69(%rip),%rsi
call   1080 <fatal_error@plt>
mov    -0x24(%rbp),%eax
shl    $0x2,%rax
add    $0x5,%rax
mov    %eax,%edi
mov    -0x78(%rbp),%rsi
call   1040 <uint_char@plt>
mov    -0x78(%rbp),%rax
movb   $0x7,0x4(%rax)
mov    -0x78(%rbp),%rax
add    $0x5,%rax
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jae    1357 <ieee_grib_out+0x1e7>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
movss  (%rax,%rcx,4),%xmm0
mov    -0x38(%rbp),%rdi
mov    -0x28(%rbp),%eax
shl    $0x2,%eax
mov    %eax,%eax
add    %rax,%rdi
call   1070 <flt2ieee_nan@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    131d <ieee_grib_out+0x1ad>
mov    -0x40(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x58(%rbp),%rcx
mov    -0x60(%rbp),%r8
mov    -0x68(%rbp),%r9
mov    -0x70(%rbp),%r11
mov    -0x78(%rbp),%r10
mov    -0x20(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1060 <wrt_sec@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
mov    -0x70(%rbp),%rdi
call   1030 <free@plt>
mov    -0x78(%rbp),%rdi
call   1030 <free@plt>
mov    -0x2c(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ieee_grib_out>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rcx,0x38(%rsp)
mov    %edx,%r15d
mov    %rsi,%r14
mov    (%rdi),%rax
mov    %rax,0x30(%rsp)
mov    0x8(%rdi),%rax
mov    %rax,0x28(%rsp)
mov    0x10(%rdi),%rax
mov    %rax,0x20(%rsp)
mov    0x18(%rdi),%rax
mov    %rax,0x18(%rsp)
mov    0x20(%rdi),%rax
mov    %rax,0x10(%rsp)
mov    $0x6,%edi
call   1090 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    11da <ieee_grib_out+0x6a>
lea    0xe32(%rip),%rdi
lea    0xe74(%rip),%rsi
call   1080 <fatal_error@plt>
mov    $0x6,%edi
mov    %rbx,%rsi
call   1040 <uint_char@plt>
movw   $0xff06,0x4(%rbx)
mov    $0xc,%edi
call   1090 <malloc@plt>
mov    %rax,%rbp
test   %rax,%rax
jne    1212 <ieee_grib_out+0xa2>
lea    0xe1f(%rip),%rdi
lea    0xe3c(%rip),%rsi
call   1080 <fatal_error@plt>
mov    $0xc,%edi
mov    %rbp,%rsi
call   1040 <uint_char@plt>
movb   $0x5,0x4(%rbp)
lea    0x5(%rbp),%rsi
mov    %r15d,%edi
call   1040 <uint_char@plt>
mov    %rbp,%rsi
add    $0x9,%rsi
mov    $0x4,%edi
call   1050 <uint2_char@plt>
mov    %rbp,0x8(%rsp)
movb   $0x1,0xb(%rbp)
mov    %r15d,%ebp
mov    %r15d,%r15d
shl    $0x2,%r15
movabs $0x300000000,%rax
test   %rax,%r15
je     1275 <ieee_grib_out+0x105>
lea    0xde1(%rip),%rdi
lea    0xdd9(%rip),%rsi
call   1080 <fatal_error@plt>
mov    %rbx,0x40(%rsp)
lea    0x5(%r15),%r13d
mov    %r13d,%edi
call   1090 <malloc@plt>
mov    %rax,%r12
test   %rax,%rax
jne    12a1 <ieee_grib_out+0x131>
lea    0xde8(%rip),%rdi
lea    0xdad(%rip),%rsi
call   1080 <fatal_error@plt>
mov    %r13d,%edi
mov    %r12,%rsi
call   1040 <uint_char@plt>
movb   $0x7,0x4(%r12)
test   %ebp,%ebp
je     12dc <ieee_grib_out+0x16c>
mov    %r12,%rbx
add    $0x5,%rbx
xor    %ebp,%ebp
nop
movss  (%r14,%rbp,1),%xmm0
mov    %ebp,%edi
and    $0xfffffffc,%edi
add    %rbx,%rdi
call   1070 <flt2ieee_nan@plt>
add    $0x4,%rbp
cmp    %rbp,%r15
jne    12c0 <ieee_grib_out+0x150>
sub    $0x8,%rsp
mov    0x38(%rsp),%rdi
mov    0x30(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x20(%rsp),%rcx
mov    0x18(%rsp),%r8
mov    0x10(%rsp),%rbp
mov    %rbp,%r9
push   0x40(%rsp)
push   %r12
mov    0x58(%rsp),%rbx
push   %rbx
call   1060 <wrt_sec@plt>
add    $0x20,%rsp
mov    %eax,%r14d
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r14d,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.seq_file = type { i32 }
@.str = [37 x i8] c"grib_out ieee memory allocation sec6\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [37 x i8] c"grib_out ieee memory allocation sec5\00"
@.str.3 = [51 x i8] c"ieee_pk: grib2 data section is limited to 4G bytes\00"
@.str.4 = [32 x i8] c"ieee_pk: memory allocation sec7\00"
define i32 @ieee_grib_out(i8** %0, float* %1, i32 %2, %struct.seq_file* %3) {
%5 = alloca i8**
%6 = alloca float*
%7 = alloca i32
%8 = alloca %struct.seq_file*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8*
store i8** %0, i8*** %5
store float* %1, float** %6
store i32 %2, i32* %7
store %struct.seq_file* %3, %struct.seq_file** %8
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 0
%23 = load i8*, i8** %22
store i8* %23, i8** %13
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
store i8* %26, i8** %14
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 2
%29 = load i8*, i8** %28
store i8* %29, i8** %15
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 3
%32 = load i8*, i8** %31
store i8* %32, i8** %16
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 4
%35 = load i8*, i8** %34
store i8* %35, i8** %17
%36 = load i32, i32* %7
store i32 %36, i32* %9
%37 = call i64 @malloc(i32 6)
%38 = inttoptr i64 %37 to i8*
store i8* %38, i8** %19
%39 = load i8*, i8** %19
%40 = icmp eq i8* %39, null
br i1 %40, label %41, label %43
41: ; preds = %4
%42 = call i32 @fatal_error(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
br label %43
43: ; preds = %41, %4
%44 = load i8*, i8** %19
%45 = call i32 @uint_char(i32 6, i8* %44)
%46 = load i8*, i8** %19
%47 = getelementptr inbounds i8, i8* %46, i64 4
store i8 6, i8* %47
%48 = load i8*, i8** %19
%49 = getelementptr inbounds i8, i8* %48, i64 5
store i8 -1, i8* %49
%50 = call i64 @malloc(i32 12)
%51 = inttoptr i64 %50 to i8*
store i8* %51, i8** %18
%52 = load i8*, i8** %18
%53 = icmp eq i8* %52, null
br i1 %53, label %54, label %56
54: ; preds = %43
%55 = call i32 @fatal_error(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
br label %56
56: ; preds = %54, %43
%57 = load i8*, i8** %18
%58 = call i32 @uint_char(i32 12, i8* %57)
%59 = load i8*, i8** %18
%60 = getelementptr inbounds i8, i8* %59, i64 4
store i8 5, i8* %60
%61 = load i32, i32* %7
%62 = load i8*, i8** %18
%63 = getelementptr inbounds i8, i8* %62, i64 5
%64 = call i32 @uint_char(i32 %61, i8* %63)
%65 = load i8*, i8** %18
%66 = getelementptr inbounds i8, i8* %65, i64 9
%67 = call i32 @uint2_char(i32 4, i8* %66)
%68 = load i8*, i8** %18
%69 = getelementptr inbounds i8, i8* %68, i64 11
store i8 1, i8* %69
%70 = load i32, i32* %9
%71 = zext i32 %70 to i64
%72 = mul i64 4, %71
%73 = trunc i64 %72 to i32
store i32 %73, i32* %10
%74 = load i32, i32* %10
%75 = zext i32 %74 to i64
%76 = load i32, i32* %9
%77 = zext i32 %76 to i64
%78 = mul i64 4, %77
%79 = icmp ne i64 %75, %78
br i1 %79, label %80, label %82
80: ; preds = %56
%81 = call i32 @fatal_error(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
br label %82
82: ; preds = %80, %56
%83 = load i32, i32* %9
%84 = zext i32 %83 to i64
%85 = mul i64 %84, 4
%86 = add i64 5, %85
%87 = trunc i64 %86 to i32
%88 = call i64 @malloc(i32 %87)
%89 = inttoptr i64 %88 to i8*
store i8* %89, i8** %20
%90 = load i8*, i8** %20
%91 = icmp eq i8* %90, null
br i1 %91, label %92, label %94
92: ; preds = %82
%93 = call i32 @fatal_error(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
br label %94
94: ; preds = %92, %82
%95 = load i32, i32* %9
%96 = zext i32 %95 to i64
%97 = mul i64 4, %96
%98 = add i64 5, %97
%99 = trunc i64 %98 to i32
%100 = load i8*, i8** %20
%101 = call i32 @uint_char(i32 %99, i8* %100)
%102 = load i8*, i8** %20
%103 = getelementptr inbounds i8, i8* %102, i64 4
store i8 7, i8* %103
%104 = load i8*, i8** %20
%105 = getelementptr inbounds i8, i8* %104, i64 5
store i8* %105, i8** %12
store i32 0, i32* %11
store i32 0, i32* %10
br label %106
106: ; preds = %122, %94
%107 = load i32, i32* %10
%108 = load i32, i32* %9
%109 = icmp ult i32 %107, %108
br i1 %109, label %110, label %125
110: ; preds = %106
%111 = load float*, float** %6
%112 = load i32, i32* %10
%113 = zext i32 %112 to i64
%114 = getelementptr inbounds float, float* %111, i64 %113
%115 = load float, float* %114
%116 = load i8*, i8** %12
%117 = load i32, i32* %10
%118 = shl i32 %117, 2
%119 = zext i32 %118 to i64
%120 = getelementptr inbounds i8, i8* %116, i64 %119
%121 = call i32 @flt2ieee_nan(float %115, i8* %120)
br label %122
122: ; preds = %110
%123 = load i32, i32* %10
%124 = add i32 %123, 1
store i32 %124, i32* %10
br label %106
125: ; preds = %106
%126 = load i8*, i8** %13
%127 = load i8*, i8** %14
%128 = load i8*, i8** %15
%129 = load i8*, i8** %16
%130 = load i8*, i8** %17
%131 = load i8*, i8** %18
%132 = load i8*, i8** %19
%133 = load i8*, i8** %20
%134 = load %struct.seq_file*, %struct.seq_file** %8
%135 = call i32 @wrt_sec(i8* %126, i8* %127, i8* %128, i8* %129, i8* %130, i8* %131, i8* %132, i8* %133, %struct.seq_file* %134)
store i32 %135, i32* %11
%136 = load i8*, i8** %18
%137 = call i32 @free(i8* %136)
%138 = load i8*, i8** %19
%139 = call i32 @free(i8* %138)
%140 = load i8*, i8** %20
%141 = call i32 @free(i8* %140)
%142 = load i32, i32* %11
ret i32 %142
}

LLVM IR (-O2):
%struct.seq_file = type { i32 }
@.str = [37 x i8] c"grib_out ieee memory allocation sec6\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [37 x i8] c"grib_out ieee memory allocation sec5\00"
@.str.3 = [51 x i8] c"ieee_pk: grib2 data section is limited to 4G bytes\00"
@.str.4 = [32 x i8] c"ieee_pk: memory allocation sec7\00"
define i32 @ieee_grib_out(i8** nocapture %0, float* nocapture %1, i32 %2, %struct.seq_file* %3) {
%5 = load i8*, i8** %0
%6 = getelementptr inbounds i8*, i8** %0, i64 1
%7 = load i8*, i8** %6
%8 = getelementptr inbounds i8*, i8** %0, i64 2
%9 = load i8*, i8** %8
%10 = getelementptr inbounds i8*, i8** %0, i64 3
%11 = load i8*, i8** %10
%12 = getelementptr inbounds i8*, i8** %0, i64 4
%13 = load i8*, i8** %12
%14 = tail call i64 @malloc(i32 6)
%15 = inttoptr i64 %14 to i8*
%16 = icmp eq i64 %14, 0
br i1 %16, label %17, label %19
17: ; preds = %4
%18 = tail call i32 @fatal_error(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %17, %4
%20 = tail call i32 @uint_char(i32 6, i8* %15)
%21 = getelementptr inbounds i8, i8* %15, i64 4
store i8 6, i8* %21
%22 = getelementptr inbounds i8, i8* %15, i64 5
store i8 -1, i8* %22
%23 = tail call i64 @malloc(i32 12)
%24 = inttoptr i64 %23 to i8*
%25 = icmp eq i64 %23, 0
br i1 %25, label %26, label %28
26: ; preds = %19
%27 = tail call i32 @fatal_error(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
br label %28
28: ; preds = %26, %19
%29 = tail call i32 @uint_char(i32 12, i8* %24)
%30 = getelementptr inbounds i8, i8* %24, i64 4
store i8 5, i8* %30
%31 = getelementptr inbounds i8, i8* %24, i64 5
%32 = tail call i32 @uint_char(i32 %2, i8* %31)
%33 = getelementptr inbounds i8, i8* %24, i64 9
%34 = tail call i32 @uint2_char(i32 4, i8* %33)
%35 = getelementptr inbounds i8, i8* %24, i64 11
store i8 1, i8* %35
%36 = zext i32 %2 to i64
%37 = shl nuw nsw i64 %36, 2
%38 = and i64 %37, 4294967292
%39 = icmp eq i64 %38, %37
br i1 %39, label %42, label %40
40: ; preds = %28
%41 = tail call i32 @fatal_error(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
br label %42
42: ; preds = %40, %28
%43 = trunc i64 %37 to i32
%44 = add i32 %43, 5
%45 = tail call i64 @malloc(i32 %44)
%46 = inttoptr i64 %45 to i8*
%47 = icmp eq i64 %45, 0
br i1 %47, label %48, label %50
48: ; preds = %42
%49 = tail call i32 @fatal_error(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
br label %50
50: ; preds = %48, %42
%51 = tail call i32 @uint_char(i32 %44, i8* %46)
%52 = getelementptr inbounds i8, i8* %46, i64 4
store i8 7, i8* %52
%53 = getelementptr inbounds i8, i8* %46, i64 5
%54 = icmp eq i32 %2, 0
br i1 %54, label %65, label %55
55: ; preds = %50, %55
%56 = phi i64 [ %63, %55 ], [ 0, %50 ]
%57 = getelementptr inbounds float, float* %1, i64 %56
%58 = load float, float* %57
%59 = shl i64 %56, 2
%60 = and i64 %59, 4294967292
%61 = getelementptr inbounds i8, i8* %53, i64 %60
%62 = tail call i32 @flt2ieee_nan(float %58, i8* %61)
%63 = add nuw nsw i64 %56, 1
%64 = icmp eq i64 %63, %36
br i1 %64, label %65, label %55
65: ; preds = %55, %50
%66 = tail call i32 @wrt_sec(i8* %5, i8* %7, i8* %9, i8* %11, i8* %13, i8* %24, i8* %15, i8* %46, %struct.seq_file* %3)
%67 = tail call i32 @free(i8* %24)
%68 = tail call i32 @free(i8* %15)
%69 = tail call i32 @free(i8* %46)
ret i32 %66
}