#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 *, long long, ...);
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[4];
  int ticks = 0;
  double watts;
  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 (isinf(points[i])) {
        done = 1;
        break;
      }
      if (result < sizeof(float)) {
        done = 1;
        break;
      }
    }
    if (done)
      break;
    watts = ((points[0] / 300.0) / 0.00333) * points[1];
    printf("%lf\t%lf\t(* %lf %lf *)\n", (double)ticks / (double)rate, watts,
           points[0], points[1]);
    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,-0x44(%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    0xe57(%rip),%rsi
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1410 <main+0x2c0>
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>
movslq -0x24(%rbp),%rsi
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%edi
lea    -0x58(%rbp),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1040 <read@plt>
mov    -0x58(%rbp),%rsi
lea    0xe1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%edi
lea    -0x58(%rbp),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1040 <read@plt>
mov    -0x58(%rbp),%rsi
lea    0xe0b(%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)
movslq -0x28(%rbp),%rsi
lea    0xde9(%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)
movslq -0x2c(%rbp),%rsi
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    12b1 <main+0x161>
jmp    13bf <main+0x26f>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1337 <main+0x1e7>
mov    -0x20(%rbp),%edi
movslq -0x14(%rbp),%rax
lea    -0x40(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1040 <read@plt>
mov    %eax,-0x18(%rbp)
movslq -0x14(%rbp),%rax
movss  -0x40(%rbp,%rax,4),%xmm0
call   1070 <isinf@plt>
cmp    $0x0,%rax
je     130a <main+0x1ba>
movl   $0x1,-0x1c(%rbp)
jmp    1337 <main+0x1e7>
movslq -0x18(%rbp),%rax
cmp    $0x4,%rax
jae    1324 <main+0x1d4>
movl   $0x1,-0x1c(%rbp)
jmp    1337 <main+0x1e7>
jmp    1329 <main+0x1d9>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12b8 <main+0x168>
cmpl   $0x0,-0x1c(%rbp)
je     1346 <main+0x1f6>
jmp    13bf <main+0x26f>
movss  -0x40(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xcb1(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xc9d(%rip),%xmm1
divsd  %xmm1,%xmm0
movss  -0x3c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
cvtsi2sdl -0x44(%rbp),%xmm0
cvtsi2sdl -0x28(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rsi
movsd  -0x50(%rbp),%xmm0
movss  -0x40(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x3c(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xccd(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    129b <main+0x14b>
mov    -0x20(%rbp),%edi
lea    -0x58(%rbp),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1040 <read@plt>
mov    -0x58(%rbp),%rsi
lea    0xcb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%edi
lea    -0x58(%rbp),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1040 <read@plt>
mov    -0x58(%rbp),%rsi
lea    0xc47(%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    $0x38,%rsp
mov    $0x0,%r15d
cmp    $0x2,%edi
jl     1189 <main+0x39>
mov    %rsi,%rbp
mov    0x8(%rsi),%rdi
mov    0x2e71(%rip),%rax
mov    (%rax),%esi
call   1060 <open@plt>
mov    %eax,%r15d
test   %eax,%eax
jle    135a <main+0x20a>
lea    0xc(%rsp),%r14
mov    %r15d,%edi
mov    %r14,%rsi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <read@plt>
movslq 0xc(%rsp),%rsi
lea    0xe77(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10(%rsp),%rbx
mov    %r15d,%edi
mov    %rbx,%rsi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <read@plt>
mov    0x10(%rsp),%rsi
lea    0xe5f(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <read@plt>
mov    0x10(%rsp),%rsi
lea    0xe4e(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <read@plt>
movslq 0xc(%rsp),%rbx
lea    0xe32(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <read@plt>
mov    0xc(%rsp),%r14d
movslq %r14d,%rsi
lea    0xe19(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
cvtsi2sd %ebx,%xmm0
movsd  %xmm0,0x18(%rsp)
xor    %r13d,%r13d
jmp    12c3 <main+0x173>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movss  0x20(%rsp),%xmm0
movss  0x24(%rsp),%xmm2
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movaps %xmm1,%xmm0
divsd  0xd72(%rip),%xmm0
divsd  0xd72(%rip),%xmm0
cvtss2sd %xmm2,%xmm2
xorps  %xmm3,%xmm3
cvtsi2sd %r13d,%xmm3
mulsd  %xmm2,%xmm0
divsd  0x18(%rsp),%xmm3
cvttsd2si %xmm3,%rsi
lea    0xdbf(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
add    $0x1,%r13d
test   %r14d,%r14d
jle    1270 <main+0x120>
mov    %r14,%r12
lea    0x20(%rsp),%rbp
mov    $0x4,%edx
mov    %r15d,%edi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <read@plt>
mov    %eax,%ebx
movss  0x0(%rbp),%xmm0
call   1070 <isinf@plt>
test   %rax,%rax
jne    1307 <main+0x1b7>
cmp    $0x4,%ebx
jb     1307 <main+0x1b7>
add    $0x4,%rbp
add    $0xffffffffffffffff,%r12
jne    12d0 <main+0x180>
jmp    1270 <main+0x120>
xor    %ebp,%ebp
lea    0x10(%rsp),%rbx
mov    %r15d,%edi
mov    %rbx,%rsi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <read@plt>
mov    0x10(%rsp),%rsi
lea    0xd62(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <read@plt>
mov    0x10(%rsp),%rsi
lea    0xcf8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1378 <main+0x228>
mov    0x2c77(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rbp),%rdx
lea    0xca2(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0xffffffff,%ebp
mov    %ebp,%eax
add    $0x38,%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 = [23 x i8] c"%lf\09%lf\09(* %lf %lf *)\0A\00"
@.str.7 = [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 [4 x float]
%14 = alloca i32
%15 = alloca double
%16 = 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
%17 = load i32, i32* %4
%18 = icmp sgt i32 %17, 1
br i1 %18, label %19, label %34
19: ; preds = %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = load i32, i32* @O_RDONLY
%24 = call i32 @open(i8* %22, i32 %23)
store i32 %24, i32* %9
%25 = load i32, i32* %9
%26 = icmp slt i32 %25, 1
br i1 %26, label %27, label %33
27: ; preds = %19
%28 = load i32, i32* @stderr
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %31)
store i32 -1, i32* %3
br label %131
33: ; preds = %19
br label %35
34: ; preds = %2
store i32 0, i32* %9
br label %35
35: ; preds = %34, %33
%36 = load i32, i32* %9
%37 = call i32 (i32, ...) @read(i32 %36, i32* %10, i32 4)
%38 = load i32, i32* %10
%39 = sext i32 %38 to i64
%40 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i64 %39)
%41 = load i32, i32* %9
%42 = call i32 (i32, ...) @read(i32 %41, i64* %16, i32 8)
%43 = load i64, i64* %16
%44 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i64 %43)
%45 = load i32, i32* %9
%46 = call i32 (i32, ...) @read(i32 %45, i64* %16, i32 8)
%47 = load i64, i64* %16
%48 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64 %47)
%49 = load i32, i32* %9
%50 = call i32 (i32, ...) @read(i32 %49, i32* %10, i32 4)
%51 = load i32, i32* %10
store i32 %51, i32* %11
%52 = load i32, i32* %11
%53 = sext i32 %52 to i64
%54 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i64 %53)
%55 = load i32, i32* %9
%56 = call i32 (i32, ...) @read(i32 %55, i32* %10, i32 4)
%57 = load i32, i32* %10
store i32 %57, i32* %12
%58 = load i32, i32* %12
%59 = sext i32 %58 to i64
%60 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i64 %59)
br label %61
61: ; preds = %96, %35
%62 = load i32, i32* %8
%63 = icmp ne i32 %62, 0
%64 = xor i1 %63, true
br i1 %64, label %65, label %122
65: ; preds = %61
store i32 0, i32* %6
br label %66
66: ; preds = %89, %65
%67 = load i32, i32* %6
%68 = load i32, i32* %12
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %92
70: ; preds = %66
%71 = load i32, i32* %9
%72 = load i32, i32* %6
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 %73
%75 = call i32 (i32, ...) @read(i32 %71, float* %74, i64 4)
store i32 %75, i32* %7
%76 = load i32, i32* %6
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 %77
%79 = load float, float* %78
%80 = call i64 @isinf(float %79)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %83
82: ; preds = %70
store i32 1, i32* %8
br label %92
83: ; preds = %70
%84 = load i32, i32* %7
%85 = sext i32 %84 to i64
%86 = icmp ult i64 %85, 4
br i1 %86, label %87, label %88
87: ; preds = %83
store i32 1, i32* %8
br label %92
88: ; preds = %83
br label %89
89: ; preds = %88
%90 = load i32, i32* %6
%91 = add nsw i32 %90, 1
store i32 %91, i32* %6
br label %66
92: ; preds = %87, %82, %66
%93 = load i32, i32* %8
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %96
95: ; preds = %92
br label %122
96: ; preds = %92
%97 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 0
%98 = load float, float* %97
%99 = fpext float %98 to double
%100 = fdiv double %99, 3.000000e+02
%101 = fdiv double %100, 3.330000e-03
%102 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 1
%103 = load float, float* %102
%104 = fpext float %103 to double
%105 = fmul double %101, %104
store double %105, double* %15
%106 = load i32, i32* %14
%107 = sitofp i32 %106 to double
%108 = load i32, i32* %11
%109 = sitofp i32 %108 to double
%110 = fdiv double %107, %109
%111 = fptosi double %110 to i64
%112 = load double, double* %15
%113 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 0
%114 = load float, float* %113
%115 = fpext float %114 to double
%116 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 1
%117 = load float, float* %116
%118 = fpext float %117 to double
%119 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i64 %111, double %112, double %115, double %118)
%120 = load i32, i32* %14
%121 = add nsw i32 %120, 1
store i32 %121, i32* %14
br label %61
122: ; preds = %95, %61
%123 = load i32, i32* %9
%124 = call i32 (i32, ...) @read(i32 %123, i64* %16, i32 8)
%125 = load i64, i64* %16
%126 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i64 %125)
%127 = load i32, i32* %9
%128 = call i32 (i32, ...) @read(i32 %127, i64* %16, i32 8)
%129 = load i64, i64* %16
%130 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64 %129)
store i32 0, i32* %3
br label %131
131: ; preds = %122, %27
%132 = load i32, i32* %3
ret i32 %132
}

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 = [23 x i8] c"%lf\09%lf\09(* %lf %lf *)\0A\00"
@.str.7 = [19 x i8] c"(* Stop Time %lld.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca [4 x float]
%5 = alloca i64
%6 = bitcast i32* %3 to i8*
%7 = bitcast [4 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 %79
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 = sext i32 %23 to i64
%25 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i64 %24)
%26 = call i32 (i32, ...) @read(i32 %21, i64* %5, i32 8)
%27 = load i64, i64* %5
%28 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i64 %27)
%29 = call i32 (i32, ...) @read(i32 %21, i64* %5, i32 8)
%30 = load i64, i64* %5
%31 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64 %30)
%32 = call i32 (i32, ...) @read(i32 %21, i32* %3, i32 4)
%33 = load i32, i32* %3
%34 = sext i32 %33 to i64
%35 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i64 %34)
%36 = call i32 (i32, ...) @read(i32 %21, i32* %3, i32 4)
%37 = load i32, i32* %3
%38 = sext i32 %37 to i64
%39 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i64 %38)
%40 = icmp sgt i32 %37, 0
%41 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 0
%42 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 1
%43 = sitofp i32 %33 to double
%44 = zext i32 %37 to i64
br label %45
45: ; preds = %59, %20
%46 = phi i32 [ 0, %20 ], [ %71, %59 ]
br i1 %40, label %49, label %59
47: ; preds = %49
%48 = icmp eq i64 %58, %44
br i1 %48, label %59, label %49
49: ; preds = %45, %47
%50 = phi i64 [ %58, %47 ], [ 0, %45 ]
%51 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 %50
%52 = call i32 (i32, ...) @read(i32 %21, float* %51, i64 4)
%53 = load float, float* %51
%54 = call i64 @isinf(float %53)
%55 = icmp ne i64 %54, 0
%56 = icmp ult i32 %52, 4
%57 = select i1 %55, i1 true, i1 %56
%58 = add nuw nsw i64 %50, 1
br i1 %57, label %72, label %47
59: ; preds = %47, %45
%60 = load float, float* %41
%61 = fpext float %60 to double
%62 = fdiv double %61, 3.000000e+02
%63 = fdiv double %62, 3.330000e-03
%64 = load float, float* %42
%65 = fpext float %64 to double
%66 = fmul double %63, %65
%67 = sitofp i32 %46 to double
%68 = fdiv double %67, %43
%69 = fptosi double %68 to i64
%70 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i64 %69, double %66, double %61, double %65)
%71 = add nuw nsw i32 %46, 1
br label %45
72: ; preds = %49
%73 = call i32 (i32, ...) @read(i32 %21, i64* %5, i32 8)
%74 = load i64, i64* %5
%75 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i64 %74)
%76 = call i32 (i32, ...) @read(i32 %21, i64* %5, i32 8)
%77 = load i64, i64* %5
%78 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64 %77)
br label %79
79: ; preds = %72, %16
%80 = phi i32 [ -1, %16 ], [ 0, %72 ]
ret i32 %80
}