#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 */
float atof(char *);
int atoi(char *);
scalar_t__ calloc(int, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, float *);
scalar_t__ pow(float, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdout;
main(int argc, char *argv[]) {
  FILE *fvic, *fobs, *fout;
  int startrec, endrec;
  int Nrecs, i;
  float basinfactor;
  float meanobs;
  float meanvic;
  float Rsqr;
  float tmpdata;
  float *vicdata;
  float *obsdata;
  float vicflow, obsflow;
  float numsum, densum;
  if (argc != 7) {
    fprintf(stderr,
            "Usage: %s <VIC discharge> <observed discharge> <start rec> <end "
            "rec> <basin size factor> <R2 outfile>\n",
            argv[0]);
    exit(0);
  }
  if ((fvic = fopen(argv[1], "r")) == NULL) {
    fprintf(stderr, "ERROR: Unable to open VIC simulation file %s.\n", argv[1]);
    exit(1);
  }
  if ((fobs = fopen(argv[2], "r")) == NULL) {
    fprintf(stderr, "ERROR: Unable to open observed flow file %s.\n", argv[2]);
    exit(2);
  }
  if ((fout = fopen(argv[6], "w")) == NULL) {
    fprintf(stderr, "ERROR: Unable to open output file %s.\n", "R2.out");
    exit(1);
  }
  startrec = atoi(argv[3]);
  endrec = atoi(argv[4]);
  basinfactor = atof(argv[5]);
  Nrecs = endrec - startrec + 1;
  vicdata = (float *)calloc(Nrecs, sizeof(float));
  obsdata = (float *)calloc(Nrecs, sizeof(float));
  for (i = 0; i < startrec; i++) {
    fscanf(fvic, "%*s %f\n", &tmpdata);
    fscanf(fobs, "%*s %f\n", &tmpdata);
  }
  meanvic = meanobs = 0;
  vicflow = obsflow = 0;
  for (i = 0; i < Nrecs; i++) {
    fscanf(fvic, "%*s %f\n", &vicdata[i]);
    fscanf(fobs, "%*s %f\n", &obsdata[i]);
    vicdata[i] *= 1;
    vicdata[i] *= basinfactor;
    meanvic += vicdata[i];
    meanobs += obsdata[i];
    vicflow += vicdata[i] * 0.02831685 * 24. * 60. * 60.;
    obsflow += obsdata[i] * 0.02831685 * 24. * 60. * 60.;
  }
  meanvic /= (float)Nrecs;
  meanobs /= (float)Nrecs;
  vicflow /= 1.e9;
  obsflow /= 1.e9;
  numsum = densum = 0;
  for (i = 0; i < Nrecs; i++) {
    numsum += pow(obsdata[i] - vicdata[i], 2.);
    densum += pow(obsdata[i] - meanobs, 2.);
  }
  Rsqr = -1. * (1. - (numsum / densum));
  fprintf(fout, "Total observed flow  = %f km^3.\n", obsflow);
  fprintf(fout, "Total simulated flow = %f km^3.\n", vicflow);
  fprintf(fout, "Mean observed flow   = %f cfs.\n", meanobs);
  fprintf(fout, "Mean simulated flow  = %f cfs.\n", meanvic);
  fprintf(fout, "R^2 model error      = %f.\n", Rsqr);
  fprintf(stdout, "%f\n", Rsqr);
  free((char *)vicdata);
  free((char *)obsdata);
  fclose(fvic);
  fclose(fobs);
  fclose(fout);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x7,-0x8(%rbp)
je     11e6 <main+0x46>
mov    0x2e19(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe5c(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
xor    %edi,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xea6(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1232 <main+0x92>
mov    0x2dd1(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe7c(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe5a(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    127e <main+0xde>
mov    0x2d85(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xe5f(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x2,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rdi
lea    0xe6d(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    12c9 <main+0x129>
mov    0x2d39(%rip),%rax
movslq (%rax),%rdi
lea    0xe4b(%rip),%rsi
lea    0xe6b(%rip),%rdx
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rdi
call   1040 <atof@plt>
movss  %xmm0,-0x3c(%rbp)
mov    -0x30(%rbp),%eax
sub    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%edi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x34(%rbp),%edi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1372 <main+0x1d2>
mov    -0x18(%rbp),%rdi
lea    0xde3(%rip),%rsi
lea    -0x4c(%rbp),%rdx
call   1060 <fscanf@plt>
mov    -0x20(%rbp),%rdi
lea    0xdcf(%rip),%rsi
lea    -0x4c(%rbp),%rdx
call   1060 <fscanf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1330 <main+0x190>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x44(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x64(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    14fe <main+0x35e>
mov    -0x18(%rbp),%rdi
mov    -0x58(%rbp),%rdx
movslq -0x38(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xd6b(%rip),%rsi
call   1060 <fscanf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x60(%rbp),%rdx
movslq -0x38(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xd4c(%rip),%rsi
call   1060 <fscanf@plt>
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movss  0xc3d(%rip),%xmm0
mulss  (%rax,%rcx,4),%xmm0
movss  %xmm0,(%rax,%rcx,4)
movss  -0x3c(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
mulss  (%rax,%rcx,4),%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
addss  -0x44(%rbp),%xmm0
movss  %xmm0,-0x44(%rbp)
mov    -0x60(%rbp),%rax
movslq -0x38(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
addss  -0x40(%rbp),%xmm0
movss  %xmm0,-0x40(%rbp)
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xbcd(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xbb9(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xba5(%rip),%xmm1
mulsd  %xmm1,%xmm0
movss  -0x64(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xb90(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x64(%rbp)
mov    -0x60(%rbp),%rax
movslq -0x38(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xb76(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xb62(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xb4e(%rip),%xmm1
mulsd  %xmm1,%xmm0
movss  -0x68(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xb39(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x68(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1399 <main+0x1f9>
cvtsi2ssl -0x34(%rbp),%xmm1
movss  -0x44(%rbp),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,-0x44(%rbp)
cvtsi2ssl -0x34(%rbp),%xmm1
movss  -0x40(%rbp),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x64(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xacb(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x64(%rbp)
movss  -0x68(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xaad(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x6c(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    15ef <main+0x44f>
mov    -0x60(%rbp),%rax
movslq -0x38(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
subss  (%rax,%rcx,4),%xmm0
mov    $0x2,%edi
call   10a0 <pow@plt>
cvtsi2ss %rax,%xmm0
addss  -0x6c(%rbp),%xmm0
movss  %xmm0,-0x6c(%rbp)
mov    -0x60(%rbp),%rax
movslq -0x38(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
subss  -0x40(%rbp),%xmm0
mov    $0x2,%edi
call   10a0 <pow@plt>
cvtsi2ss %rax,%xmm0
addss  -0x70(%rbp),%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1577 <main+0x3d7>
movss  -0x6c(%rbp),%xmm0
divss  -0x70(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xa0b(%rip),%xmm1
subsd  %xmm0,%xmm1
movsd  0x9f7(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x48(%rbp)
mov    -0x28(%rbp),%rdi
movss  -0x68(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb00(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x64(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb06(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x40(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb0c(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb11(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x48(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb16(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    0x292c(%rip),%rax
mov    (%rax),%rdi
movss  -0x48(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xa6f(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rsi,%r12
cmp    $0x7,%edi
jne    16a1 <main+0x501>
mov    0x8(%r12),%rdi
lea    0xef1(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     16c4 <main+0x524>
mov    %rax,%r14
mov    0x10(%r12),%rdi
lea    0xed4(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     16dc <main+0x53c>
mov    %rax,%r15
mov    0x30(%r12),%rdi
lea    0xf16(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     1703 <main+0x563>
mov    %rax,%r13
mov    0x18(%r12),%rdi
call   10b0 <atoi@plt>
mov    %eax,%ebp
mov    0x20(%r12),%rdi
call   10b0 <atoi@plt>
mov    %eax,%ebx
mov    0x28(%r12),%rdi
call   1040 <atof@plt>
movss  %xmm0,0x8(%rsp)
sub    %ebp,%ebx
mov    %rbx,0x10(%rsp)
add    $0x1,%ebx
mov    %ebx,%edi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,0x28(%rsp)
mov    %rbx,0x30(%rsp)
mov    %ebx,%edi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,0x20(%rsp)
test   %ebp,%ebp
jle    12a1 <main+0x101>
lea    0xed1(%rip),%r12
lea    0x64(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1060 <fscanf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1060 <fscanf@plt>
add    $0xffffffff,%ebp
jne    1280 <main+0xe0>
cmpl   $0x0,0x10(%rsp)
js     13db <main+0x23b>
mov    %r13,0x58(%rsp)
xorpd  %xmm3,%xmm3
xorps  %xmm2,%xmm2
lea    0xe87(%rip),%rbp
mov    0x30(%rsp),%rbx
mov    0x28(%rsp),%r12
mov    0x20(%rsp),%r13
xorps  %xmm0,%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movapd %xmm3,0x40(%rsp)
movss  %xmm2,0xc(%rsp)
movss  %xmm0,0x18(%rsp)
mov    %r14,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
call   1060 <fscanf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %r13,%rdx
call   1060 <fscanf@plt>
movss  0xc(%rsp),%xmm2
movss  (%r12),%xmm0
mulss  0x8(%rsp),%xmm0
movss  %xmm0,(%r12)
movss  0x0(%r13),%xmm1
addss  %xmm1,%xmm2
unpcklps %xmm0,%xmm1
cvtps2pd %xmm1,%xmm1
mulpd  0xcc2(%rip),%xmm1
mulpd  0xcca(%rip),%xmm1
movapd 0xcd2(%rip),%xmm3
mulpd  %xmm3,%xmm1
mulpd  %xmm3,%xmm1
addpd  0x40(%rsp),%xmm1
cvtpd2ps %xmm1,%xmm1
cvtps2pd %xmm1,%xmm3
movss  0x18(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x18(%rsp)
movss  0x18(%rsp),%xmm0
add    $0x4,%r13
add    $0x4,%r12
add    $0xffffffffffffffff,%rbx
jne    12e0 <main+0x140>
mov    0x30(%rsp),%rax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
divss  %xmm1,%xmm2
cmpl   $0x0,0x10(%rsp)
mov    0x58(%rsp),%r13
movss  %xmm2,0xc(%rsp)
js     13f5 <main+0x255>
movss  %xmm1,0x3c(%rsp)
movapd %xmm3,0x40(%rsp)
cmp    $0x1,%eax
mov    0x28(%rsp),%r12
jne    140c <main+0x26c>
xorps  %xmm0,%xmm0
xor    %ebx,%ebx
xorps  %xmm1,%xmm1
movss  %xmm1,0x8(%rsp)
mov    0x20(%rsp),%rbp
jmp    14e6 <main+0x346>
cvtsi2ssl 0x30(%rsp),%xmm1
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
divss  %xmm1,%xmm2
movss  %xmm2,0xc(%rsp)
xorpd  %xmm3,%xmm3
movss  0xc43(%rip),%xmm4
mov    0x28(%rsp),%r12
mov    0x20(%rsp),%rbp
jmp    1576 <main+0x3d6>
mov    %eax,%r13d
and    $0xfffffffe,%r13d
xorps  %xmm0,%xmm0
xor    %ebx,%ebx
xorps  %xmm1,%xmm1
movss  %xmm1,0x8(%rsp)
mov    0x20(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
movss  %xmm0,0x10(%rsp)
movss  0x0(%rbp,%rbx,4),%xmm0
subss  (%r12,%rbx,4),%xmm0
mov    $0x2,%edi
call   10a0 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x8(%rsp),%xmm0
movss  %xmm0,0x8(%rsp)
movss  0x0(%rbp,%rbx,4),%xmm0
subss  0xc(%rsp),%xmm0
mov    $0x2,%edi
call   10a0 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
movss  0x4(%rbp,%rbx,4),%xmm0
subss  0x4(%r12,%rbx,4),%xmm0
mov    $0x2,%edi
call   10a0 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x8(%rsp),%xmm0
movss  %xmm0,0x8(%rsp)
movss  0x4(%rbp,%rbx,4),%xmm0
subss  0xc(%rsp),%xmm0
mov    $0x2,%edi
call   10a0 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp),%xmm0
add    $0x2,%rbx
cmp    %rbx,%r13
jne    1430 <main+0x290>
testb  $0x1,0x30(%rsp)
mov    0x58(%rsp),%r13
je     155a <main+0x3ba>
movss  %xmm0,0x10(%rsp)
movss  0x0(%rbp,%rbx,4),%xmm0
subss  (%r12,%rbx,4),%xmm0
mov    $0x2,%edi
call   10a0 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  0x8(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0x0(%rbp,%rbx,4),%xmm0
subss  0xc(%rsp),%xmm0
mov    $0x2,%edi
call   10a0 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  0x10(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x10(%rsp)
movss  0x10(%rsp),%xmm0
movss  0x8(%rsp),%xmm4
divss  %xmm0,%xmm4
movss  0x18(%rsp),%xmm0
movapd 0x40(%rsp),%xmm3
movss  0x3c(%rsp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,0x18(%rsp)
movsd  0xac0(%rip),%xmm0
movapd %xmm3,%xmm1
divsd  %xmm0,%xmm1
cvtsd2ss %xmm1,%xmm1
unpckhpd %xmm3,%xmm3
divsd  %xmm0,%xmm3
xorps  %xmm0,%xmm0
cvtsd2ss %xmm3,%xmm0
movss  %xmm0,0x8(%rsp)
movss  0xa93(%rip),%xmm0
subss  %xmm4,%xmm0
xorps  0xa74(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xb7f(%rip),%rsi
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <fprintf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb85(%rip),%rsi
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <fprintf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb8b(%rip),%rsi
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <fprintf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb90(%rip),%rsi
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <fprintf@plt>
movaps 0x40(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0xb90(%rip),%rsi
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    0x2987(%rip),%rax
mov    (%rax),%rdi
lea    0xaef(%rip),%rsi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
mov    %r15,%rdi
call   1050 <fclose@plt>
mov    %r13,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2938(%rip),%rax
movslq (%rax),%rdi
mov    (%r12),%rdx
lea    0x99a(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
xor    %edi,%edi
call   10c0 <exit@plt>
mov    0x2915(%rip),%rax
movslq (%rax),%rdi
mov    0x8(%r12),%rdx
lea    0x9df(%rip),%rsi
jmp    171b <main+0x57b>
mov    0x28fd(%rip),%rax
movslq (%rax),%rdi
mov    0x10(%r12),%rdx
lea    0x9f6(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x2,%edi
call   10c0 <exit@plt>
mov    0x28d6(%rip),%rax
movslq (%rax),%rdi
lea    0xa04(%rip),%rsi
lea    0xa24(%rip),%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [103 x i8] c"Usage: %s <VIC discharge> <observed discharge> <start rec> <end rec> <basin size factor> <R2 outfile>\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [47 x i8] c"ERROR: Unable to open VIC simulation file %s.\0A\00"
@.str.3 = [46 x i8] c"ERROR: Unable to open observed flow file %s.\0A\00"
@.str.4 = [2 x i8] c"w\00"
@.str.5 = [39 x i8] c"ERROR: Unable to open output file %s.\0A\00"
@.str.6 = [7 x i8] c"R2.out\00"
@.str.7 = [8 x i8] c"%*s %f\0A\00"
@.str.8 = [33 x i8] c"Total observed flow = %f km^3.\0A\00"
@.str.9 = [33 x i8] c"Total simulated flow = %f km^3.\0A\00"
@.str.10 = [32 x i8] c"Mean observed flow = %f cfs.\0A\00"
@.str.11 = [32 x i8] c"Mean simulated flow = %f cfs.\0A\00"
@.str.12 = [28 x i8] c"R^2 model error = %f.\0A\00"
@stdout = global i32* null
@.str.13 = [4 x i8] c"%f\0A\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 float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float*
%19 = alloca float*
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%24 = load i32, i32* %4
%25 = icmp ne i32 %24, 7
br i1 %25, label %26, label %35
26: ; preds = %2
%27 = load i32, i32* @stderr
%28 = sext i32 %27 to i64
%29 = inttoptr i64 %28 to i32*
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 0
%32 = load i8*, i8** %31
%33 = call i32 (i32*, i8*, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str, i64 0, i64 0), i8* %32)
%34 = call i32 @exit(i32 0)
unreachable
35: ; preds = %2
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 1
%38 = load i8*, i8** %37
%39 = call i32* @fopen(i8* %38, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %39, i32** %6
%40 = icmp eq i32* %39, null
br i1 %40, label %41, label %50
41: ; preds = %35
%42 = load i32, i32* @stderr
%43 = sext i32 %42 to i64
%44 = inttoptr i64 %43 to i32*
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 1
%47 = load i8*, i8** %46
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %44, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i8* %47)
%49 = call i32 @exit(i32 1)
unreachable
50: ; preds = %35
%51 = load i8**, i8*** %5
%52 = getelementptr inbounds i8*, i8** %51, i64 2
%53 = load i8*, i8** %52
%54 = call i32* @fopen(i8* %53, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %54, i32** %7
%55 = icmp eq i32* %54, null
br i1 %55, label %56, label %65
56: ; preds = %50
%57 = load i32, i32* @stderr
%58 = sext i32 %57 to i64
%59 = inttoptr i64 %58 to i32*
%60 = load i8**, i8*** %5
%61 = getelementptr inbounds i8*, i8** %60, i64 2
%62 = load i8*, i8** %61
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0), i8* %62)
%64 = call i32 @exit(i32 2)
unreachable
65: ; preds = %50
%66 = load i8**, i8*** %5
%67 = getelementptr inbounds i8*, i8** %66, i64 6
%68 = load i8*, i8** %67
%69 = call i32* @fopen(i8* %68, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %69, i32** %8
%70 = icmp eq i32* %69, null
br i1 %70, label %71, label %77
71: ; preds = %65
%72 = load i32, i32* @stderr
%73 = sext i32 %72 to i64
%74 = inttoptr i64 %73 to i32*
%75 = call i32 (i32*, i8*, ...) @fprintf(i32* %74, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%76 = call i32 @exit(i32 1)
unreachable
77: ; preds = %65
%78 = load i8**, i8*** %5
%79 = getelementptr inbounds i8*, i8** %78, i64 3
%80 = load i8*, i8** %79
%81 = call i32 @atoi(i8* %80)
store i32 %81, i32* %9
%82 = load i8**, i8*** %5
%83 = getelementptr inbounds i8*, i8** %82, i64 4
%84 = load i8*, i8** %83
%85 = call i32 @atoi(i8* %84)
store i32 %85, i32* %10
%86 = load i8**, i8*** %5
%87 = getelementptr inbounds i8*, i8** %86, i64 5
%88 = load i8*, i8** %87
%89 = call float @atof(i8* %88)
store float %89, float* %13
%90 = load i32, i32* %10
%91 = load i32, i32* %9
%92 = sub nsw i32 %90, %91
%93 = add nsw i32 %92, 1
store i32 %93, i32* %11
%94 = load i32, i32* %11
%95 = call i64 @calloc(i32 %94, i32 4)
%96 = inttoptr i64 %95 to float*
store float* %96, float** %18
%97 = load i32, i32* %11
%98 = call i64 @calloc(i32 %97, i32 4)
%99 = inttoptr i64 %98 to float*
store float* %99, float** %19
store i32 0, i32* %12
br label %100
100: ; preds = %109, %77
%101 = load i32, i32* %12
%102 = load i32, i32* %9
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %112
104: ; preds = %100
%105 = load i32*, i32** %6
%106 = call i32 @fscanf(i32* %105, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), float* %17)
%107 = load i32*, i32** %7
%108 = call i32 @fscanf(i32* %107, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), float* %17)
br label %109
109: ; preds = %104
%110 = load i32, i32* %12
%111 = add nsw i32 %110, 1
store i32 %111, i32* %12
br label %100
112: ; preds = %100
store float 0.000000e+00, float* %14
store float 0.000000e+00, float* %15
store float 0.000000e+00, float* %21
store float 0.000000e+00, float* %20
store i32 0, i32* %12
br label %113
113: ; preds = %183, %112
%114 = load i32, i32* %12
%115 = load i32, i32* %11
%116 = icmp slt i32 %114, %115
br i1 %116, label %117, label %186
117: ; preds = %113
%118 = load i32*, i32** %6
%119 = load float*, float** %18
%120 = load i32, i32* %12
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds float, float* %119, i64 %121
%123 = call i32 @fscanf(i32* %118, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), float* %122)
%124 = load i32*, i32** %7
%125 = load float*, float** %19
%126 = load i32, i32* %12
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds float, float* %125, i64 %127
%129 = call i32 @fscanf(i32* %124, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), float* %128)
%130 = load float*, float** %18
%131 = load i32, i32* %12
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds float, float* %130, i64 %132
%134 = load float, float* %133
%135 = fmul float %134, 1.000000e+00
store float %135, float* %133
%136 = load float, float* %13
%137 = load float*, float** %18
%138 = load i32, i32* %12
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds float, float* %137, i64 %139
%141 = load float, float* %140
%142 = fmul float %141, %136
store float %142, float* %140
%143 = load float*, float** %18
%144 = load i32, i32* %12
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds float, float* %143, i64 %145
%147 = load float, float* %146
%148 = load float, float* %15
%149 = fadd float %148, %147
store float %149, float* %15
%150 = load float*, float** %19
%151 = load i32, i32* %12
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds float, float* %150, i64 %152
%154 = load float, float* %153
%155 = load float, float* %14
%156 = fadd float %155, %154
store float %156, float* %14
%157 = load float*, float** %18
%158 = load i32, i32* %12
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds float, float* %157, i64 %159
%161 = load float, float* %160
%162 = fpext float %161 to double
%163 = fmul double %162, 0x3F9CFF17A2B3F48F
%164 = fmul double %163, 2.400000e+01
%165 = fmul double %164, 6.000000e+01
%166 = load float, float* %20
%167 = fpext float %166 to double
%168 = call double @llvm.fmuladd.f64(double %165, double 6.000000e+01, double %167)
%169 = fptrunc double %168 to float
store float %169, float* %20
%170 = load float*, float** %19
%171 = load i32, i32* %12
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds float, float* %170, i64 %172
%174 = load float, float* %173
%175 = fpext float %174 to double
%176 = fmul double %175, 0x3F9CFF17A2B3F48F
%177 = fmul double %176, 2.400000e+01
%178 = fmul double %177, 6.000000e+01
%179 = load float, float* %21
%180 = fpext float %179 to double
%181 = call double @llvm.fmuladd.f64(double %178, double 6.000000e+01, double %180)
%182 = fptrunc double %181 to float
store float %182, float* %21
br label %183
183: ; preds = %117
%184 = load i32, i32* %12
%185 = add nsw i32 %184, 1
store i32 %185, i32* %12
br label %113
186: ; preds = %113
%187 = load i32, i32* %11
%188 = sitofp i32 %187 to float
%189 = load float, float* %15
%190 = fdiv float %189, %188
store float %190, float* %15
%191 = load i32, i32* %11
%192 = sitofp i32 %191 to float
%193 = load float, float* %14
%194 = fdiv float %193, %192
store float %194, float* %14
%195 = load float, float* %20
%196 = fpext float %195 to double
%197 = fdiv double %196, 1.000000e+09
%198 = fptrunc double %197 to float
store float %198, float* %20
%199 = load float, float* %21
%200 = fpext float %199 to double
%201 = fdiv double %200, 1.000000e+09
%202 = fptrunc double %201 to float
store float %202, float* %21
store float 0.000000e+00, float* %23
store float 0.000000e+00, float* %22
store i32 0, i32* %12
br label %203
203: ; preds = %234, %186
%204 = load i32, i32* %12
%205 = load i32, i32* %11
%206 = icmp slt i32 %204, %205
br i1 %206, label %207, label %237
207: ; preds = %203
%208 = load float*, float** %19
%209 = load i32, i32* %12
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds float, float* %208, i64 %210
%212 = load float, float* %211
%213 = load float*, float** %18
%214 = load i32, i32* %12
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds float, float* %213, i64 %215
%217 = load float, float* %216
%218 = fsub float %212, %217
%219 = call i64 @pow(float %218, i32 2)
%220 = sitofp i64 %219 to float
%221 = load float, float* %22
%222 = fadd float %221, %220
store float %222, float* %22
%223 = load float*, float** %19
%224 = load i32, i32* %12
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds float, float* %223, i64 %225
%227 = load float, float* %226
%228 = load float, float* %14
%229 = fsub float %227, %228
%230 = call i64 @pow(float %229, i32 2)
%231 = sitofp i64 %230 to float
%232 = load float, float* %23
%233 = fadd float %232, %231
store float %233, float* %23
br label %234
234: ; preds = %207
%235 = load i32, i32* %12
%236 = add nsw i32 %235, 1
store i32 %236, i32* %12
br label %203
237: ; preds = %203
%238 = load float, float* %22
%239 = load float, float* %23
%240 = fdiv float %238, %239
%241 = fpext float %240 to double
%242 = fsub double 1.000000e+00, %241
%243 = fmul double -1.000000e+00, %242
%244 = fptrunc double %243 to float
store float %244, float* %16
%245 = load i32*, i32** %8
%246 = load float, float* %21
%247 = fpext float %246 to double
%248 = call i32 (i32*, i8*, ...) @fprintf(i32* %245, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), double %247)
%249 = load i32*, i32** %8
%250 = load float, float* %20
%251 = fpext float %250 to double
%252 = call i32 (i32*, i8*, ...) @fprintf(i32* %249, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), double %251)
%253 = load i32*, i32** %8
%254 = load float, float* %14
%255 = fpext float %254 to double
%256 = call i32 (i32*, i8*, ...) @fprintf(i32* %253, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0), double %255)
%257 = load i32*, i32** %8
%258 = load float, float* %15
%259 = fpext float %258 to double
%260 = call i32 (i32*, i8*, ...) @fprintf(i32* %257, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), double %259)
%261 = load i32*, i32** %8
%262 = load float, float* %16
%263 = fpext float %262 to double
%264 = call i32 (i32*, i8*, ...) @fprintf(i32* %261, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), double %263)
%265 = load i32*, i32** @stdout
%266 = load float, float* %16
%267 = fpext float %266 to double
%268 = call i32 (i32*, i8*, ...) @fprintf(i32* %265, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), double %267)
%269 = load float*, float** %18
%270 = bitcast float* %269 to i8*
%271 = call i32 @free(i8* %270)
%272 = load float*, float** %19
%273 = bitcast float* %272 to i8*
%274 = call i32 @free(i8* %273)
%275 = load i32*, i32** %6
%276 = call i32 @fclose(i32* %275)
%277 = load i32*, i32** %7
%278 = call i32 @fclose(i32* %277)
%279 = load i32*, i32** %8
%280 = call i32 @fclose(i32* %279)
%281 = load i32, i32* %3
ret i32 %281
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [103 x i8] c"Usage: %s <VIC discharge> <observed discharge> <start rec> <end rec> <basin size factor> <R2 outfile>\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [47 x i8] c"ERROR: Unable to open VIC simulation file %s.\0A\00"
@.str.3 = [46 x i8] c"ERROR: Unable to open observed flow file %s.\0A\00"
@.str.4 = [2 x i8] c"w\00"
@.str.5 = [39 x i8] c"ERROR: Unable to open output file %s.\0A\00"
@.str.6 = [7 x i8] c"R2.out\00"
@.str.7 = [8 x i8] c"%*s %f\0A\00"
@.str.8 = [33 x i8] c"Total observed flow = %f km^3.\0A\00"
@.str.9 = [33 x i8] c"Total simulated flow = %f km^3.\0A\00"
@.str.10 = [32 x i8] c"Mean observed flow = %f cfs.\0A\00"
@.str.11 = [32 x i8] c"Mean simulated flow = %f cfs.\0A\00"
@.str.12 = [28 x i8] c"R^2 model error = %f.\0A\00"
@stdout = global i32* null
@.str.13 = [4 x i8] c"%f\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca float
%4 = bitcast float* %3 to i8*
%5 = icmp eq i32 %0, 7
br i1 %5, label %13, label %6
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to i32*
%10 = load i8*, i8** %1
%11 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str, i64 0, i64 0), i8* %10)
%12 = tail call i32 @exit(i32 0)
unreachable
13: ; preds = %2
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = tail call i32* @fopen(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp eq i32* %16, null
br i1 %17, label %18, label %25
18: ; preds = %13
%19 = load i32, i32* @stderr
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i32*
%22 = load i8*, i8** %14
%23 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i8* %22)
%24 = tail call i32 @exit(i32 1)
unreachable
25: ; preds = %13
%26 = getelementptr inbounds i8*, i8** %1, i64 2
%27 = load i8*, i8** %26
%28 = tail call i32* @fopen(i8* %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%29 = icmp eq i32* %28, null
br i1 %29, label %30, label %37
30: ; preds = %25
%31 = load i32, i32* @stderr
%32 = sext i32 %31 to i64
%33 = inttoptr i64 %32 to i32*
%34 = load i8*, i8** %26
%35 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0), i8* %34)
%36 = tail call i32 @exit(i32 2)
unreachable
37: ; preds = %25
%38 = getelementptr inbounds i8*, i8** %1, i64 6
%39 = load i8*, i8** %38
%40 = tail call i32* @fopen(i8* %39, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%41 = icmp eq i32* %40, null
br i1 %41, label %42, label %48
42: ; preds = %37
%43 = load i32, i32* @stderr
%44 = sext i32 %43 to i64
%45 = inttoptr i64 %44 to i32*
%46 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%47 = tail call i32 @exit(i32 1)
unreachable
48: ; preds = %37
%49 = getelementptr inbounds i8*, i8** %1, i64 3
%50 = load i8*, i8** %49
%51 = tail call i32 @atoi(i8* %50)
%52 = getelementptr inbounds i8*, i8** %1, i64 4
%53 = load i8*, i8** %52
%54 = tail call i32 @atoi(i8* %53)
%55 = getelementptr inbounds i8*, i8** %1, i64 5
%56 = load i8*, i8** %55
%57 = tail call float @atof(i8* %56)
%58 = sub nsw i32 %54, %51
%59 = add nsw i32 %58, 1
%60 = tail call i64 @calloc(i32 %59, i32 4)
%61 = inttoptr i64 %60 to float*
%62 = tail call i64 @calloc(i32 %59, i32 4)
%63 = inttoptr i64 %62 to float*
%64 = icmp sgt i32 %51, 0
br i1 %64, label %74, label %65
65: ; preds = %74, %48
%66 = icmp slt i32 %58, 0
br i1 %66, label %67, label %70
67: ; preds = %65
%68 = sitofp i32 %59 to float
%69 = fdiv float 0.000000e+00, %68
br label %173
70: ; preds = %65
%71 = add i32 %54, 1
%72 = sub i32 %71, %51
%73 = zext i32 %72 to i64
br label %80
74: ; preds = %48, %74
%75 = phi i32 [ %78, %74 ], [ 0, %48 ]
%76 = call i32 @fscanf(i32* %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), float* %3)
%77 = call i32 @fscanf(i32* %28, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), float* %3)
%78 = add nuw nsw i32 %75, 1
%79 = icmp eq i32 %78, %51
br i1 %79, label %65, label %74
80: ; preds = %70, %80
%81 = phi i64 [ 0, %70 ], [ %102, %80 ]
%82 = phi float [ 0.000000e+00, %70 ], [ %93, %80 ]
%83 = phi float [ 0.000000e+00, %70 ], [ %91, %80 ]
%84 = phi <2 x double> [ zeroinitializer, %70 ], [ %103, %80 ]
%85 = getelementptr inbounds float, float* %61, i64 %81
%86 = call i32 @fscanf(i32* %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), float* %85)
%87 = getelementptr inbounds float, float* %63, i64 %81
%88 = call i32 @fscanf(i32* %28, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), float* %87)
%89 = load float, float* %85
%90 = fmul float %57, %89
store float %90, float* %85
%91 = fadd float %83, %90
%92 = load float, float* %87
%93 = fadd float %82, %92
%94 = insertelement <2 x float> poison, float %92, i64 0
%95 = insertelement <2 x float> %94, float %90, i64 1
%96 = fpext <2 x float> %95 to <2 x double>
%97 = fmul <2 x double> %96, <double 0x3F9CFF17A2B3F48F, double 0x3F9CFF17A2B3F48F>
%98 = fmul <2 x double> %97, <double 2.400000e+01, double 2.400000e+01>
%99 = fmul <2 x double> %98, <double 6.000000e+01, double 6.000000e+01>
%100 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %99, <2 x double> <double 6.000000e+01, double 6.000000e+01>, <2 x double> %84)
%101 = fptrunc <2 x double> %100 to <2 x float>
%102 = add nuw nsw i64 %81, 1
%103 = fpext <2 x float> %101 to <2 x double>
%104 = icmp eq i64 %102, %73
br i1 %104, label %105, label %80
105: ; preds = %80
%106 = sitofp i32 %59 to float
%107 = fdiv float %93, %106
br i1 %66, label %173, label %108
108: ; preds = %105
%109 = and i64 %73, 1
%110 = icmp eq i32 %72, 1
br i1 %110, label %148, label %111
111: ; preds = %108
%112 = and i64 %73, 4294967294
br label %113
113: ; preds = %113, %111
%114 = phi i64 [ 0, %111 ], [ %145, %113 ]
%115 = phi float [ 0.000000e+00, %111 ], [ %144, %113 ]
%116 = phi float [ 0.000000e+00, %111 ], [ %139, %113 ]
%117 = phi i64 [ 0, %111 ], [ %146, %113 ]
%118 = getelementptr inbounds float, float* %63, i64 %114
%119 = load float, float* %118
%120 = getelementptr inbounds float, float* %61, i64 %114
%121 = load float, float* %120
%122 = fsub float %119, %121
%123 = call i64 @pow(float %122, i32 2)
%124 = sitofp i64 %123 to float
%125 = fadd float %116, %124
%126 = load float, float* %118
%127 = fsub float %126, %107
%128 = call i64 @pow(float %127, i32 2)
%129 = sitofp i64 %128 to float
%130 = fadd float %115, %129
%131 = or i64 %114, 1
%132 = getelementptr inbounds float, float* %63, i64 %131
%133 = load float, float* %132
%134 = getelementptr inbounds float, float* %61, i64 %131
%135 = load float, float* %134
%136 = fsub float %133, %135
%137 = call i64 @pow(float %136, i32 2)
%138 = sitofp i64 %137 to float
%139 = fadd float %125, %138
%140 = load float, float* %132
%141 = fsub float %140, %107
%142 = call i64 @pow(float %141, i32 2)
%143 = sitofp i64 %142 to float
%144 = fadd float %130, %143
%145 = add nuw nsw i64 %114, 2
%146 = add i64 %117, 2
%147 = icmp eq i64 %146, %112
br i1 %147, label %148, label %113
148: ; preds = %113, %108
%149 = phi float [ undef, %108 ], [ %139, %113 ]
%150 = phi float [ undef, %108 ], [ %144, %113 ]
%151 = phi i64 [ 0, %108 ], [ %145, %113 ]
%152 = phi float [ 0.000000e+00, %108 ], [ %144, %113 ]
%153 = phi float [ 0.000000e+00, %108 ], [ %139, %113 ]
%154 = icmp eq i64 %109, 0
br i1 %154, label %169, label %155
155: ; preds = %148
%156 = getelementptr inbounds float, float* %63, i64 %151
%157 = load float, float* %156
%158 = getelementptr inbounds float, float* %61, i64 %151
%159 = load float, float* %158
%160 = fsub float %157, %159
%161 = call i64 @pow(float %160, i32 2)
%162 = sitofp i64 %161 to float
%163 = fadd float %153, %162
%164 = load float, float* %156
%165 = fsub float %164, %107
%166 = call i64 @pow(float %165, i32 2)
%167 = sitofp i64 %166 to float
%168 = fadd float %152, %167
br label %169
169: ; preds = %148, %155
%170 = phi float [ %149, %148 ], [ %163, %155 ]
%171 = phi float [ %150, %148 ], [ %168, %155 ]
%172 = fdiv float %170, %171
br label %173
173: ; preds = %67, %169, %105
%174 = phi float [ %107, %169 ], [ %107, %105 ], [ %69, %67 ]
%175 = phi float [ %106, %169 ], [ %106, %105 ], [ %68, %67 ]
%176 = phi float [ %91, %169 ], [ %91, %105 ], [ 0.000000e+00, %67 ]
%177 = phi float [ %172, %169 ], [ 0x7FF8000000000000, %105 ], [ 0x7FF8000000000000, %67 ]
%178 = phi <2 x double> [ %103, %169 ], [ %103, %105 ], [ zeroinitializer, %67 ]
%179 = extractelement <2 x double> %178, i64 0
%180 = fdiv double %179, 1.000000e+09
%181 = fptrunc double %180 to float
%182 = extractelement <2 x double> %178, i64 1
%183 = fdiv double %182, 1.000000e+09
%184 = fptrunc double %183 to float
%185 = fdiv float %176, %175
%186 = fsub float 1.000000e+00, %177
%187 = fneg float %186
%188 = fpext float %181 to double
%189 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), double %188)
%190 = fpext float %184 to double
%191 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), double %190)
%192 = fpext float %174 to double
%193 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0), double %192)
%194 = fpext float %185 to double
%195 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), double %194)
%196 = fpext float %187 to double
%197 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), double %196)
%198 = load i32*, i32** @stdout
%199 = call i32 (i32*, i8*, ...) @fprintf(i32* %198, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), double %196)
%200 = inttoptr i64 %60 to i8*
%201 = call i32 @free(i8* %200)
%202 = inttoptr i64 %62 to i8*
%203 = call i32 @free(i8* %202)
%204 = call i32 @fclose(i32* %16)
%205 = call i32 @fclose(i32* %28)
%206 = call i32 @fclose(i32* %40)
ret i32 0
}