#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*/ fflush(int /*<<< orphan*/);
char *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ malloc(int);
scalar_t__ realloc(char *, int);
int /*<<< orphan*/ stdout;
scalar_t__ strgetfloat(char **, double *);
int read_width_data(FILE *fpr, float **widdat) {
  char *q, temp[200];
  float *p;
  double d;
  double lasttime = -1.0;
  int istime = 1;
  int arraysize = 100, n = 0;
  if ((*widdat = (float *)malloc(arraysize * sizeof(float))) == NULL) {
    fprintf(stdout, "ERROR: Insufficient memory to store rotation data\n");
    fflush(stdout);
    return -1;
  }
  p = *widdat;
  while (fgets(temp, 200, fpr) == temp) {
    q = temp;
    while (strgetfloat(&q, &d)) {
      switch (istime) {
      case (1):
        if (d <= lasttime) {
          fprintf(
              stdout,
              "ERROR: Times not increasing (at %lf) in rotation data file\n",
              d);
          fflush(stdout);
          return -1;
        }
        lasttime = d;
        break;
      case (0):
        if (d > 1 || d < 0) {
          fprintf(stdout,
                  "ERROR: Width data %lf out of range 0-1 in width data file\n",
                  d);
          fflush(stdout);
          return -1;
        }
        break;
      }
      istime = !istime;
      *p = (float)d;
      p++;
      n++;
      if (n >= arraysize) {
        arraysize += 100;
        if ((*widdat = (float *)realloc((char *)(*widdat),
                                        arraysize * sizeof(float))) == NULL) {
          fprintf(
              stdout,
              "ERROR: Insufficient memory to expand store of rotation data\n");
          fflush(stdout);
          return -1;
        }
      }
    }
  }
  if (n & 1) {
    fprintf(stdout, "ERROR: Width data not correctly paired\n");
    fflush(stdout);
    return -1;
  }
  return n;
}


x86 assembly (clang, -O0):
<read_width_data>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movsd  0xe85(%rip),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movl   $0x1,-0x10c(%rbp)
movl   $0x64,-0x110(%rbp)
movl   $0x0,-0x114(%rbp)
movslq -0x110(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    -0x18(%rbp),%rcx
mov    %rax,(%rcx)
cmp    $0x0,%rax
jne    11f5 <read_width_data+0x95>
mov    0x2e15(%rip),%rax
mov    (%rax),%edi
lea    0xe3c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2dfe(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1471 <read_width_data+0x311>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0xf8(%rbp)
lea    -0xf0(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0xc8,%esi
call   1040 <fgets@plt>
lea    -0xf0(%rbp),%rcx
cmp    %rcx,%rax
jne    1425 <read_width_data+0x2c5>
lea    -0xf0(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x20(%rbp),%rdi
lea    -0x100(%rbp),%rsi
call   1030 <strgetfloat@plt>
cmp    $0x0,%rax
je     1420 <read_width_data+0x2c0>
mov    -0x10c(%rbp),%eax
mov    %eax,-0x118(%rbp)
test   %eax,%eax
je     12e2 <read_width_data+0x182>
jmp    1266 <read_width_data+0x106>
mov    -0x118(%rbp),%eax
sub    $0x1,%eax
jne    134b <read_width_data+0x1eb>
jmp    127a <read_width_data+0x11a>
movsd  -0x100(%rbp),%xmm1
ff
movsd  -0x108(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jb     12cd <read_width_data+0x16d>
mov    0x2d45(%rip),%rax
mov    (%rax),%edi
movsd  -0x100(%rbp),%xmm0
ff
lea    0xd97(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
mov    0x2d26(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1471 <read_width_data+0x311>
movsd  -0x100(%rbp),%xmm0
ff
movsd  %xmm0,-0x108(%rbp)
ff
jmp    134b <read_width_data+0x1eb>
movsd  -0x100(%rbp),%xmm0
ff
movsd  0xd16(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     130d <read_width_data+0x1ad>
xorps  %xmm0,%xmm0
ucomisd -0x100(%rbp),%xmm0
ff
jbe    1346 <read_width_data+0x1e6>
mov    0x2ccc(%rip),%rax
mov    (%rax),%edi
movsd  -0x100(%rbp),%xmm0
ff
lea    0xd5a(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
mov    0x2cad(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1471 <read_width_data+0x311>
jmp    134b <read_width_data+0x1eb>
cmpl   $0x0,-0x10c(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10c(%rbp)
movsd  -0x100(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
mov    -0xf8(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0xf8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0xf8(%rbp)
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
mov    -0x114(%rbp),%eax
cmp    -0x110(%rbp),%eax
jl     141b <read_width_data+0x2bb>
mov    -0x110(%rbp),%eax
add    $0x64,%eax
mov    %eax,-0x110(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
movslq -0x110(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%esi
call   1080 <realloc@plt>
mov    -0x18(%rbp),%rcx
mov    %rax,(%rcx)
cmp    $0x0,%rax
jne    1416 <read_width_data+0x2b6>
mov    0x2bf4(%rip),%rax
mov    (%rax),%edi
lea    0xcc5(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2bdd(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1471 <read_width_data+0x311>
jmp    141b <read_width_data+0x2bb>
jmp    1233 <read_width_data+0xd3>
jmp    1203 <read_width_data+0xa3>
mov    -0x114(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1468 <read_width_data+0x308>
mov    0x2ba2(%rip),%rax
mov    (%rax),%edi
lea    0xcb0(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2b8b(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1471 <read_width_data+0x311>
mov    -0x114(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_width_data>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    %rsi,%rbx
mov    %rdi,%rbp
mov    $0x190,%edi
call   1060 <malloc@plt>
mov    %rbx,0x18(%rsp)
mov    %rax,(%rbx)
test   %rax,%rax
je     1318 <read_width_data+0x1b8>
mov    %rax,%r15
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xc8,%esi
mov    %rbp,%rdx
call   1040 <fgets@plt>
xor    %r14d,%r14d
cmp    %rbx,%rax
jne    1379 <read_width_data+0x219>
mov    %rbp,0x28(%rsp)
movsd  0xe3d(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
mov    $0x1,%r12d
mov    $0x64,%ebp
xor    %r14d,%r14d
lea    0x20(%rsp),%r13
lea    0x8(%rsp),%rsi
mov    %rbx,0x20(%rsp)
mov    %r13,%rdi
call   1030 <strgetfloat@plt>
test   %rax,%rax
je     12d0 <read_width_data+0x170>
mov    %r13,%rbx
jmp    1223 <read_width_data+0xc3>
nopl   0x0(%rax)
add    $0x64,%ebp
mov    %r12b,%r13b
add    $0x4,%r15
mov    %rbx,%rdi
lea    0x8(%rsp),%rsi
call   1030 <strgetfloat@plt>
mov    %r13d,%r12d
test   %rax,%rax
je     12d3 <read_width_data+0x173>
test   %r12d,%r12d
je     1250 <read_width_data+0xf0>
cmp    $0x1,%r12d
jne    1280 <read_width_data+0x120>
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jae    1343 <read_width_data+0x1e3>
movsd  %xmm0,0x10(%rsp)
jmp    1286 <read_width_data+0x126>
nopl   0x0(%rax)
movsd  0x8(%rsp),%xmm0
ucomisd 0xdaa(%rip),%xmm0
ja     1355 <read_width_data+0x1f5>
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
jbe    1286 <read_width_data+0x126>
jmp    1355 <read_width_data+0x1f5>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x8(%rsp),%xmm0
xor    %r13d,%r13d
test   %r12d,%r12d
cvtsd2ss %xmm0,%xmm0
sete   %r12b
movss  %xmm0,(%r15)
add    $0x1,%r14d
cmp    %ebp,%r14d
jl     1203 <read_width_data+0xa3>
mov    0x18(%rsp),%rax
mov    (%rax),%rdi
lea    0x190(,%rbp,4),%esi
call   1080 <realloc@plt>
mov    0x18(%rsp),%rcx
mov    %rax,(%rcx)
test   %rax,%rax
jne    1200 <read_width_data+0xa0>
jmp    132a <read_width_data+0x1ca>
nopl   (%rax)
mov    %r12d,%r13d
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xc8,%esi
mov    0x28(%rsp),%rdx
call   1040 <fgets@plt>
mov    %r13d,%r12d
lea    0x20(%rsp),%r13
cmp    %rbx,%rax
lea    0x8(%rsp),%rsi
je     11e1 <read_width_data+0x81>
test   $0x1,%r14b
je     1379 <read_width_data+0x219>
mov    0x2cd3(%rip),%rbx
mov    (%rbx),%edi
lea    0xde9(%rip),%rsi
jmp    133a <read_width_data+0x1da>
mov    0x2cc1(%rip),%rbx
mov    (%rbx),%edi
lea    0xcf0(%rip),%rsi
jmp    133a <read_width_data+0x1da>
mov    0x2caf(%rip),%rbx
mov    (%rbx),%edi
lea    0xd88(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    136c <read_width_data+0x20c>
mov    0x2c96(%rip),%rbx
mov    (%rbx),%edi
lea    0xcf8(%rip),%rsi
jmp    1365 <read_width_data+0x205>
mov    0x2c84(%rip),%rbx
mov    (%rbx),%edi
lea    0xd22(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
mov    (%rbx),%edi
call   1070 <fflush@plt>
mov    $0xffffffff,%r14d
mov    %r14d,%eax
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [51 x i8] c"ERROR: Insufficient memory to store rotation data\0A\00"
@.str.1 = [60 x i8] c"ERROR: Times not increasing (at %lf) in rotation data file\0A\00"
@.str.2 = [59 x i8] c"ERROR: Width data %lf out of range 0-1 in width data file\0A\00"
@.str.3 = [61 x i8] c"ERROR: Insufficient memory to expand store of rotation data\0A\00"
@.str.4 = [40 x i8] c"ERROR: Width data not correctly paired\0A\00"
define i32 @read_width_data(i32* %0, float** %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca float**
%6 = alloca i8*
%7 = alloca [200 x i8]
%8 = alloca float*
%9 = alloca double
%10 = alloca double
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32* %0, i32** %4
store float** %1, float*** %5
store double -1.000000e+00, double* %10
store i32 1, i32* %11
store i32 100, i32* %12
store i32 0, i32* %13
%14 = load i32, i32* %12
%15 = sext i32 %14 to i64
%16 = mul i64 %15, 4
%17 = trunc i64 %16 to i32
%18 = call i64 @malloc(i32 %17)
%19 = inttoptr i64 %18 to float*
%20 = load float**, float*** %5
store float* %19, float** %20
%21 = icmp eq float* %19, null
br i1 %21, label %22, label %27
22: ; preds = %2
%23 = load i32, i32* @stdout
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0))
%25 = load i32, i32* @stdout
%26 = call i32 @fflush(i32 %25)
store i32 -1, i32* %3
br label %116
27: ; preds = %2
%28 = load float**, float*** %5
%29 = load float*, float** %28
store float* %29, float** %8
br label %30
30: ; preds = %104, %27
%31 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%32 = load i32*, i32** %4
%33 = call i8* @fgets(i8* %31, i32 200, i32* %32)
%34 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%35 = icmp eq i8* %33, %34
br i1 %35, label %36, label %105
36: ; preds = %30
%37 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
store i8* %37, i8** %6
br label %38
38: ; preds = %103, %36
%39 = call i64 @strgetfloat(i8** %6, double* %9)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %104
41: ; preds = %38
%42 = load i32, i32* %11
switch i32 %42, label %68 [
i32 1, label %43
i32 0, label %55
]
43: ; preds = %41
%44 = load double, double* %9
%45 = load double, double* %10
%46 = fcmp ole double %44, %45
br i1 %46, label %47, label %53
47: ; preds = %43
%48 = load i32, i32* @stdout
%49 = load double, double* %9
%50 = call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0), double %49)
%51 = load i32, i32* @stdout
%52 = call i32 @fflush(i32 %51)
store i32 -1, i32* %3
br label %116
53: ; preds = %43
%54 = load double, double* %9
store double %54, double* %10
br label %68
55: ; preds = %41
%56 = load double, double* %9
%57 = fcmp ogt double %56, 1.000000e+00
br i1 %57, label %61, label %58
58: ; preds = %55
%59 = load double, double* %9
%60 = fcmp olt double %59, 0.000000e+00
br i1 %60, label %61, label %67
61: ; preds = %58, %55
%62 = load i32, i32* @stdout
%63 = load double, double* %9
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0), double %63)
%65 = load i32, i32* @stdout
%66 = call i32 @fflush(i32 %65)
store i32 -1, i32* %3
br label %116
67: ; preds = %58
br label %68
68: ; preds = %41, %67, %53
%69 = load i32, i32* %11
%70 = icmp ne i32 %69, 0
%71 = xor i1 %70, true
%72 = zext i1 %71 to i32
store i32 %72, i32* %11
%73 = load double, double* %9
%74 = fptrunc double %73 to float
%75 = load float*, float** %8
store float %74, float* %75
%76 = load float*, float** %8
%77 = getelementptr inbounds float, float* %76, i32 1
store float* %77, float** %8
%78 = load i32, i32* %13
%79 = add nsw i32 %78, 1
store i32 %79, i32* %13
%80 = load i32, i32* %13
%81 = load i32, i32* %12
%82 = icmp sge i32 %80, %81
br i1 %82, label %83, label %103
83: ; preds = %68
%84 = load i32, i32* %12
%85 = add nsw i32 %84, 100
store i32 %85, i32* %12
%86 = load float**, float*** %5
%87 = load float*, float** %86
%88 = bitcast float* %87 to i8*
%89 = load i32, i32* %12
%90 = sext i32 %89 to i64
%91 = mul i64 %90, 4
%92 = trunc i64 %91 to i32
%93 = call i64 @realloc(i8* %88, i32 %92)
%94 = inttoptr i64 %93 to float*
%95 = load float**, float*** %5
store float* %94, float** %95
%96 = icmp eq float* %94, null
br i1 %96, label %97, label %102
97: ; preds = %83
%98 = load i32, i32* @stdout
%99 = call i32 (i32, i8*, ...) @fprintf(i32 %98, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0))
%100 = load i32, i32* @stdout
%101 = call i32 @fflush(i32 %100)
store i32 -1, i32* %3
br label %116
102: ; preds = %83
br label %103
103: ; preds = %102, %68
br label %38
104: ; preds = %38
br label %30
105: ; preds = %30
%106 = load i32, i32* %13
%107 = and i32 %106, 1
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %114
109: ; preds = %105
%110 = load i32, i32* @stdout
%111 = call i32 (i32, i8*, ...) @fprintf(i32 %110, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%112 = load i32, i32* @stdout
%113 = call i32 @fflush(i32 %112)
store i32 -1, i32* %3
br label %116
114: ; preds = %105
%115 = load i32, i32* %13
store i32 %115, i32* %3
br label %116
116: ; preds = %114, %109, %97, %61, %47, %22
%117 = load i32, i32* %3
ret i32 %117
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [51 x i8] c"ERROR: Insufficient memory to store rotation data\0A\00"
@.str.1 = [60 x i8] c"ERROR: Times not increasing (at %lf) in rotation data file\0A\00"
@.str.2 = [59 x i8] c"ERROR: Width data %lf out of range 0-1 in width data file\0A\00"
@.str.3 = [61 x i8] c"ERROR: Insufficient memory to expand store of rotation data\0A\00"
@.str.4 = [40 x i8] c"ERROR: Width data not correctly paired\0A\00"
define i32 @read_width_data(i32* nocapture %0, float** nocapture %1) {
%3 = alloca i8*
%4 = alloca [200 x i8]
%5 = alloca double
%6 = bitcast i8** %3 to i8*
%7 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%8 = bitcast double* %5 to i8*
%9 = tail call i64 @malloc(i32 400)
%10 = inttoptr i64 %9 to float*
store float* %10, float** %1
%11 = icmp eq i64 %9, 0
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = call i8* @fgets(i8* %7, i32 200, i32* %0)
%14 = icmp eq i8* %13, %7
br i1 %14, label %15, label %97
15: ; preds = %12
%16 = bitcast float** %1 to i8**
br label %30
17: ; preds = %2
%18 = load i32, i32* @stdout
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0))
%20 = load i32, i32* @stdout
%21 = tail call i32 @fflush(i32 %20)
br label %97
22: ; preds = %85, %30
%23 = phi float* [ %35, %30 ], [ %70, %85 ]
%24 = phi double [ %34, %30 ], [ %66, %85 ]
%25 = phi i32 [ %33, %30 ], [ %68, %85 ]
%26 = phi i32 [ %32, %30 ], [ %86, %85 ]
%27 = phi i32 [ %31, %30 ], [ %71, %85 ]
%28 = call i8* @fgets(i8* %7, i32 200, i32* %0)
%29 = icmp eq i8* %28, %7
br i1 %29, label %30, label %89
30: ; preds = %15, %22
%31 = phi i32 [ 0, %15 ], [ %27, %22 ]
%32 = phi i32 [ 100, %15 ], [ %26, %22 ]
%33 = phi i32 [ 1, %15 ], [ %25, %22 ]
%34 = phi double [ -1.000000e+00, %15 ], [ %24, %22 ]
%35 = phi float* [ %10, %15 ], [ %23, %22 ]
store i8* %7, i8** %3
%36 = call i64 @strgetfloat(i8** %3, double* %5)
%37 = icmp eq i64 %36, 0
br i1 %37, label %22, label %38
38: ; preds = %30, %85
%39 = phi i32 [ %71, %85 ], [ %31, %30 ]
%40 = phi i32 [ %86, %85 ], [ %32, %30 ]
%41 = phi i32 [ %68, %85 ], [ %33, %30 ]
%42 = phi double [ %66, %85 ], [ %34, %30 ]
%43 = phi float* [ %70, %85 ], [ %35, %30 ]
switch i32 %41, label %44 [
i32 1, label %46
i32 0, label %54
]
44: ; preds = %38
%45 = load double, double* %5
br label %64
46: ; preds = %38
%47 = load double, double* %5
%48 = fcmp ugt double %47, %42
br i1 %48, label %64, label %49
49: ; preds = %46
%50 = load i32, i32* @stdout
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0), double %47)
%52 = load i32, i32* @stdout
%53 = call i32 @fflush(i32 %52)
br label %97
54: ; preds = %38
%55 = load double, double* %5
%56 = fcmp ogt double %55, 1.000000e+00
%57 = fcmp olt double %55, 0.000000e+00
%58 = or i1 %56, %57
br i1 %58, label %59, label %64
59: ; preds = %54
%60 = load i32, i32* @stdout
%61 = call i32 (i32, i8*, ...) @fprintf(i32 %60, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0), double %55)
%62 = load i32, i32* @stdout
%63 = call i32 @fflush(i32 %62)
br label %97
64: ; preds = %44, %46, %54
%65 = phi double [ %45, %44 ], [ %55, %54 ], [ %47, %46 ]
%66 = phi double [ %42, %44 ], [ %42, %54 ], [ %47, %46 ]
%67 = icmp eq i32 %41, 0
%68 = zext i1 %67 to i32
%69 = fptrunc double %65 to float
store float %69, float* %43
%70 = getelementptr inbounds float, float* %43, i64 1
%71 = add nsw i32 %39, 1
%72 = icmp slt i32 %71, %40
br i1 %72, label %85, label %73
73: ; preds = %64
%74 = add nsw i32 %40, 100
%75 = load i8*, i8** %16
%76 = shl i32 %74, 2
%77 = call i64 @realloc(i8* %75, i32 %76)
%78 = inttoptr i64 %77 to float*
store float* %78, float** %1
%79 = icmp eq i64 %77, 0
br i1 %79, label %80, label %85
80: ; preds = %73
%81 = load i32, i32* @stdout
%82 = call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0))
%83 = load i32, i32* @stdout
%84 = call i32 @fflush(i32 %83)
br label %97
85: ; preds = %73, %64
%86 = phi i32 [ %74, %73 ], [ %40, %64 ]
%87 = call i64 @strgetfloat(i8** %3, double* %5)
%88 = icmp eq i64 %87, 0
br i1 %88, label %22, label %38
89: ; preds = %22
%90 = and i32 %27, 1
%91 = icmp eq i32 %90, 0
br i1 %91, label %97, label %92
92: ; preds = %89
%93 = load i32, i32* @stdout
%94 = call i32 (i32, i8*, ...) @fprintf(i32 %93, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%95 = load i32, i32* @stdout
%96 = call i32 @fflush(i32 %95)
br label %97
97: ; preds = %12, %89, %92, %80, %59, %49, %17
%98 = phi i32 [ -1, %17 ], [ -1, %80 ], [ -1, %59 ], [ -1, %49 ], [ -1, %92 ], [ %27, %89 ], [ 0, %12 ]
ret i32 %98
}