#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*/ O_RDONLY;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
scalar_t__ isinf(float);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int read(int, ...);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  int i, result, done = 0;
  int fd, temp_int, rate, channels;
  float points[8];
  int ticks = 0;
  long long temp64;
  if (argc > 1) {
    fd = open(argv[1], O_RDONLY);
    if (fd < 1) {
      fprintf(stderr, "Could not open %s\n", argv[1]);
      return -1;
    }
  } else {
    fd = 0;
  }
  read(fd, &temp_int, 4);
  printf("(* Version %d *)\n", temp_int);
  read(fd, &temp64, 8);
  printf("(* Start Time %lld.", temp64);
  read(fd, &temp64, 8);
  printf("%06lld)\n", temp64);
  read(fd, &temp_int, 4);
  rate = temp_int;
  printf("(* Rate %d Hz *)\n", rate);
  read(fd, &temp_int, 4);
  channels = temp_int;
  printf("(* Channels %d *)\n", channels);
  while (!done) {
    for (i = 0; i < channels; i++) {
      result = read(fd, &points[i], sizeof(float));
      if (result < sizeof(float)) {
        done = 1;
        break;
      }
      if (isinf(points[i])) {
        done = 1;
        break;
      }
      if (i == 0) {
        printf("%lf:\t", (double)ticks / (double)rate);
      }
      printf("%lf\t", points[i]);
    }
    printf("\n");
    ticks++;
  }
  read(fd, &temp64, 8);
  printf("(* Stop Time %lld.", temp64);
  read(fd, &temp64, 8);
  printf("%06lld)\n", temp64);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x54(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    11cf <main+0x7f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2e5b(%rip),%rax
mov    (%rax),%esi
call   1060 <open@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x1,-0x20(%rbp)
jge    11ca <main+0x7a>
mov    0x2e30(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe47(%rip),%rsi
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13de <main+0x28e>
jmp    11d6 <main+0x86>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%edi
lea    -0x24(%rbp),%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1040 <read@plt>
mov    -0x24(%rbp),%esi
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%edi
lea    -0x60(%rbp),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1040 <read@plt>
mov    -0x60(%rbp),%rsi
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%edi
lea    -0x60(%rbp),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1040 <read@plt>
mov    -0x60(%rbp),%rsi
lea    0xdfc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%edi
lea    -0x24(%rbp),%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1040 <read@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%esi
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%edi
lea    -0x24(%rbp),%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1040 <read@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%esi
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    12ae <main+0x15e>
jmp    138d <main+0x23d>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1371 <main+0x221>
mov    -0x20(%rbp),%edi
movslq -0x14(%rbp),%rax
lea    -0x50(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1040 <read@plt>
mov    %eax,-0x18(%rbp)
movslq -0x18(%rbp),%rax
cmp    $0x4,%rax
jae    12fc <main+0x1ac>
movl   $0x1,-0x1c(%rbp)
jmp    1371 <main+0x221>
movslq -0x14(%rbp),%rax
movss  -0x50(%rbp,%rax,4),%xmm0
call   1070 <isinf@plt>
cmp    $0x0,%rax
je     1321 <main+0x1d1>
movl   $0x1,-0x1c(%rbp)
jmp    1371 <main+0x221>
cmpl   $0x0,-0x14(%rbp)
jne    1347 <main+0x1f7>
cvtsi2sdl -0x54(%rbp),%xmm0
cvtsi2sdl -0x28(%rbp),%xmm1
divsd  %xmm1,%xmm0
lea    0xd27(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movslq -0x14(%rbp),%rax
movss  -0x50(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd11(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12b5 <main+0x165>
lea    0xcab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1298 <main+0x148>
mov    -0x20(%rbp),%edi
lea    -0x60(%rbp),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1040 <read@plt>
mov    -0x60(%rbp),%rsi
lea    0xcc7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%edi
lea    -0x60(%rbp),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1040 <read@plt>
mov    -0x60(%rbp),%rsi
lea    0xc69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    $0x0,%r13d
cmp    $0x2,%edi
jl     1199 <main+0x39>
mov    %rsi,%rbp
mov    0x8(%rsi),%rdi
mov    0x2e61(%rip),%rax
mov    (%rax),%esi
call   1070 <open@plt>
mov    %eax,%r13d
test   %eax,%eax
jle    1390 <main+0x230>
lea    0x4(%rsp),%r14
mov    %r13d,%edi
mov    %r14,%rsi
mov    $0x4,%edx
xor    %eax,%eax
call   1050 <read@plt>
mov    0x4(%rsp),%esi
lea    0xe58(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rbp
mov    %r13d,%edi
mov    %rbp,%rsi
mov    $0x8,%edx
xor    %eax,%eax
call   1050 <read@plt>
mov    0x8(%rsp),%rsi
lea    0xe40(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13d,%edi
mov    %rbp,%rsi
mov    $0x8,%edx
xor    %eax,%eax
call   1050 <read@plt>
mov    0x8(%rsp),%rsi
lea    0xe2f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13d,%edi
mov    %r14,%rsi
mov    $0x4,%edx
xor    %eax,%eax
call   1050 <read@plt>
mov    0x4(%rsp),%ebp
lea    0xe14(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13d,%edi
mov    %r14,%rsi
mov    $0x4,%edx
xor    %eax,%eax
call   1050 <read@plt>
mov    0x4(%rsp),%ebx
lea    0xe00(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cvtsi2sd %ebp,%xmm0
movsd  %xmm0,0x20(%rsp)
mov    %rbx,%r15
shl    $0x2,%r15
lea    0xdf8(%rip),%r12
movl   $0x0,0x14(%rsp)
mov    %rbx,0x18(%rsp)
jmp    12a4 <main+0x144>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0xa,%edi
call   1030 <putchar@plt>
addl   $0x1,0x14(%rsp)
mov    0x18(%rsp),%rbx
test   %ebx,%ebx
lea    0xdba(%rip),%rbx
jle    1290 <main+0x130>
xorps  %xmm0,%xmm0
cvtsi2sdl 0x14(%rsp),%xmm0
divsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
xor    %r14d,%r14d
jmp    12ee <main+0x18e>
nopl   0x0(%rax)
movss  0x30(%rsp,%r14,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x4,%r14
cmp    %r14,%r15
je     1290 <main+0x130>
lea    (%rsp,%r14,1),%rbp
add    $0x30,%rbp
mov    $0x4,%edx
mov    %r13d,%edi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <read@plt>
cmp    $0x4,%eax
jb     1333 <main+0x1d3>
movss  0x0(%rbp),%xmm0
call   1080 <isinf@plt>
test   %rax,%rax
jne    1333 <main+0x1d3>
test   %r14,%r14
jne    12d0 <main+0x170>
mov    %rbx,%rdi
movsd  0x28(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
jmp    12d0 <main+0x170>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %ebp,%ebp
lea    0x8(%rsp),%r14
mov    %r13d,%edi
mov    %r14,%rsi
mov    $0x8,%edx
xor    %eax,%eax
call   1050 <read@plt>
mov    0x8(%rsp),%rsi
lea    0xd10(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13d,%edi
mov    %r14,%rsi
mov    $0x8,%edx
xor    %eax,%eax
call   1050 <read@plt>
mov    0x8(%rsp),%rsi
lea    0xcb2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    13ae <main+0x24e>
mov    0x2c41(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rbp),%rdx
lea    0xc5c(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0xffffffff,%ebp
mov    %ebp,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@O_RDONLY = global i32 0
@stderr = global i32 0
@.str = [19 x i8] c"Could not open %s\0A\00"
@.str.1 = [18 x i8] c"(* Version %d *)\0A\00"
@.str.2 = [20 x i8] c"(* Start Time %lld.\00"
@.str.3 = [9 x i8] c"%06lld)\0A\00"
@.str.4 = [18 x i8] c"(* Rate %d Hz *)\0A\00"
@.str.5 = [19 x i8] c"(* Channels %d *)\0A\00"
@.str.6 = [6 x i8] c"%lf:\09\00"
@.str.7 = [5 x i8] c"%lf\09\00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [19 x i8] c"(* Stop Time %lld.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [8 x float]
%14 = alloca i32
%15 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
store i32 0, i32* %14
%16 = load i32, i32* %4
%17 = icmp sgt i32 %16, 1
br i1 %17, label %18, label %33
18: ; preds = %2
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = load i32, i32* @O_RDONLY
%23 = call i32 @open(i8* %21, i32 %22)
store i32 %23, i32* %9
%24 = load i32, i32* %9
%25 = icmp slt i32 %24, 1
br i1 %25, label %26, label %32
26: ; preds = %18
%27 = load i32, i32* @stderr
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
%31 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %30)
store i32 -1, i32* %3
br label %117
32: ; preds = %18
br label %34
33: ; preds = %2
store i32 0, i32* %9
br label %34
34: ; preds = %33, %32
%35 = load i32, i32* %9
%36 = call i32 (i32, ...) @read(i32 %35, i32* %10, i32 4)
%37 = load i32, i32* %10
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %37)
%39 = load i32, i32* %9
%40 = call i32 (i32, ...) @read(i32 %39, i64* %15, i32 8)
%41 = load i64, i64* %15
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i64 %41)
%43 = load i32, i32* %9
%44 = call i32 (i32, ...) @read(i32 %43, i64* %15, i32 8)
%45 = load i64, i64* %15
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64 %45)
%47 = load i32, i32* %9
%48 = call i32 (i32, ...) @read(i32 %47, i32* %10, i32 4)
%49 = load i32, i32* %10
store i32 %49, i32* %11
%50 = load i32, i32* %11
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %9
%53 = call i32 (i32, ...) @read(i32 %52, i32* %10, i32 4)
%54 = load i32, i32* %10
store i32 %54, i32* %12
%55 = load i32, i32* %12
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 %55)
br label %57
57: ; preds = %104, %34
%58 = load i32, i32* %8
%59 = icmp ne i32 %58, 0
%60 = xor i1 %59, true
br i1 %60, label %61, label %108
61: ; preds = %57
store i32 0, i32* %6
br label %62
62: ; preds = %101, %61
%63 = load i32, i32* %6
%64 = load i32, i32* %12
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %104
66: ; preds = %62
%67 = load i32, i32* %9
%68 = load i32, i32* %6
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [8 x float], [8 x float]* %13, i64 0, i64 %69
%71 = call i32 (i32, ...) @read(i32 %67, float* %70, i64 4)
store i32 %71, i32* %7
%72 = load i32, i32* %7
%73 = sext i32 %72 to i64
%74 = icmp ult i64 %73, 4
br i1 %74, label %75, label %76
75: ; preds = %66
store i32 1, i32* %8
br label %104
76: ; preds = %66
%77 = load i32, i32* %6
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [8 x float], [8 x float]* %13, i64 0, i64 %78
%80 = load float, float* %79
%81 = call i64 @isinf(float %80)
%82 = icmp ne i64 %81, 0
br i1 %82, label %83, label %84
83: ; preds = %76
store i32 1, i32* %8
br label %104
84: ; preds = %76
%85 = load i32, i32* %6
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %94
87: ; preds = %84
%88 = load i32, i32* %14
%89 = sitofp i32 %88 to double
%90 = load i32, i32* %11
%91 = sitofp i32 %90 to double
%92 = fdiv double %89, %91
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %92)
br label %94
94: ; preds = %87, %84
%95 = load i32, i32* %6
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [8 x float], [8 x float]* %13, i64 0, i64 %96
%98 = load float, float* %97
%99 = fpext float %98 to double
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), double %99)
br label %101
101: ; preds = %94
%102 = load i32, i32* %6
%103 = add nsw i32 %102, 1
store i32 %103, i32* %6
br label %62
104: ; preds = %83, %75, %62
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%106 = load i32, i32* %14
%107 = add nsw i32 %106, 1
store i32 %107, i32* %14
br label %57
108: ; preds = %57
%109 = load i32, i32* %9
%110 = call i32 (i32, ...) @read(i32 %109, i64* %15, i32 8)
%111 = load i64, i64* %15
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i64 %111)
%113 = load i32, i32* %9
%114 = call i32 (i32, ...) @read(i32 %113, i64* %15, i32 8)
%115 = load i64, i64* %15
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64 %115)
store i32 0, i32* %3
br label %117
117: ; preds = %108, %26
%118 = load i32, i32* %3
ret i32 %118
}

LLVM IR (-O2):
@O_RDONLY = global i32 0
@stderr = global i32 0
@.str = [19 x i8] c"Could not open %s\0A\00"
@.str.1 = [18 x i8] c"(* Version %d *)\0A\00"
@.str.2 = [20 x i8] c"(* Start Time %lld.\00"
@.str.3 = [9 x i8] c"%06lld)\0A\00"
@.str.4 = [18 x i8] c"(* Rate %d Hz *)\0A\00"
@.str.5 = [19 x i8] c"(* Channels %d *)\0A\00"
@.str.6 = [6 x i8] c"%lf:\09\00"
@.str.7 = [5 x i8] c"%lf\09\00"
@.str.9 = [19 x i8] c"(* Stop Time %lld.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca [8 x float]
%5 = alloca i64
%6 = bitcast i32* %3 to i8*
%7 = bitcast [8 x float]* %4 to i8*
%8 = bitcast i64* %5 to i8*
%9 = icmp sgt i32 %0, 1
br i1 %9, label %10, label %20
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = load i32, i32* @O_RDONLY
%14 = tail call i32 @open(i8* %12, i32 %13)
%15 = icmp slt i32 %14, 1
br i1 %15, label %16, label %20
16: ; preds = %10
%17 = load i32, i32* @stderr
%18 = load i8*, i8** %11
%19 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %18)
br label %75
20: ; preds = %2, %10
%21 = phi i32 [ %14, %10 ], [ 0, %2 ]
%22 = call i32 (i32, ...) @read(i32 %21, i32* %3, i32 4)
%23 = load i32, i32* %3
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %23)
%25 = call i32 (i32, ...) @read(i32 %21, i64* %5, i32 8)
%26 = load i64, i64* %5
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i64 %26)
%28 = call i32 (i32, ...) @read(i32 %21, i64* %5, i32 8)
%29 = load i64, i64* %5
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64 %29)
%31 = call i32 (i32, ...) @read(i32 %21, i32* %3, i32 4)
%32 = load i32, i32* %3
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %32)
%34 = call i32 (i32, ...) @read(i32 %21, i32* %3, i32 4)
%35 = load i32, i32* %3
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 %35)
%37 = icmp sgt i32 %35, 0
%38 = sitofp i32 %32 to double
%39 = zext i32 %35 to i64
br label %40
40: ; preds = %64, %20
%41 = phi i32 [ 0, %20 ], [ %66, %64 ]
br i1 %37, label %42, label %64
42: ; preds = %40
%43 = sitofp i32 %41 to double
%44 = fdiv double %43, %38
br label %45
45: ; preds = %42, %58
%46 = phi i64 [ 0, %42 ], [ %62, %58 ]
%47 = getelementptr inbounds [8 x float], [8 x float]* %4, i64 0, i64 %46
%48 = call i32 (i32, ...) @read(i32 %21, float* %47, i64 4)
%49 = icmp ult i32 %48, 4
br i1 %49, label %67, label %50
50: ; preds = %45
%51 = load float, float* %47
%52 = call i64 @isinf(float %51)
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %67
54: ; preds = %50
%55 = icmp eq i64 %46, 0
br i1 %55, label %56, label %58
56: ; preds = %54
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), double %44)
br label %58
58: ; preds = %56, %54
%59 = load float, float* %47
%60 = fpext float %59 to double
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), double %60)
%62 = add nuw nsw i64 %46, 1
%63 = icmp eq i64 %62, %39
br i1 %63, label %64, label %45
64: ; preds = %58, %40
%65 = call i32 @putchar(i32 10)
%66 = add nuw nsw i32 %41, 1
br label %40
67: ; preds = %45, %50
%68 = call i32 @putchar(i32 10)
%69 = call i32 (i32, ...) @read(i32 %21, i64* %5, i32 8)
%70 = load i64, i64* %5
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i64 %70)
%72 = call i32 (i32, ...) @read(i32 %21, i64* %5, i32 8)
%73 = load i64, i64* %5
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64 %73)
br label %75
75: ; preds = %67, %16
%76 = phi i32 [ -1, %16 ], [ 0, %67 ]
ret i32 %76
}