#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 */
scalar_t__ EOF;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, float *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sscanf(char *, char *, int *);
int main(int argc, char *argv[]) {
  FILE *obsqfile, *outfile1;
  float qcfs, sum;
  int i, j, year, month, tinc, startyear, endyear, days_per_period[52];
  int timeincpyr, days, uswitch;
  char str[200], junk[100];
  if (argc != 6) {
    printf("Wrong command line arguments: enter <x time step file> <start "
           "year> <end year> <periods per year> <unit switch>,\n");
    exit(0);
  }
  obsqfile = fopen(argv[1], "r");
  sscanf(argv[2], "%d", &startyear);
  sscanf(argv[3], "%d", &endyear);
  sscanf(argv[4], "%d", &timeincpyr);
  sscanf(argv[5], "%d", &uswitch);
  if (timeincpyr == 14) {
    days_per_period[0] = 31;
    days_per_period[1] = 15;
    days_per_period[2] = 16;
    days_per_period[3] = 30;
    days_per_period[4] = 31;
    days_per_period[5] = 30;
    days_per_period[6] = 31;
    days_per_period[7] = 31;
    days_per_period[8] = 28;
    days_per_period[9] = 31;
    days_per_period[10] = 15;
    days_per_period[11] = 15;
    days_per_period[12] = 31;
    days_per_period[13] = 30;
  }
  if (timeincpyr == 12) {
    days_per_period[0] = 31;
    days_per_period[1] = 30;
    days_per_period[2] = 31;
    days_per_period[3] = 31;
    days_per_period[4] = 28;
    days_per_period[5] = 31;
    days_per_period[6] = 30;
    days_per_period[7] = 31;
    days_per_period[8] = 30;
    days_per_period[9] = 31;
    days_per_period[10] = 31;
    days_per_period[11] = 30;
  }
  if (timeincpyr == 52) {
    for (i = 0; i < 52; i++)
      days_per_period[i] = 7;
    days_per_period[51] = 8;
  }
  sum = 0;
  days = 0;
  for (year = startyear; year <= endyear; year++) {
    if ((year % 4 == 0) && (((year % 100 == 0) && (year % 400 != 0)) == 0)) {
      if (timeincpyr == 12)
        days_per_period[4] = 29;
      if (timeincpyr == 14)
        days_per_period[8] = 29;
      if (timeincpyr == 52)
        days_per_period[51] = 9;
    } else {
      if (timeincpyr == 12)
        days_per_period[4] = 28;
      if (timeincpyr == 14)
        days_per_period[8] = 28;
      if (timeincpyr == 52)
        days_per_period[51] = 8;
    }
    for (tinc = 0; tinc < timeincpyr; tinc++) {
      if (fscanf(obsqfile, "%f", &qcfs) == EOF)
        printf("end of file reached prematurely check beginning and ending "
               "dates and number of periods per year are correct\n");
      ;
      if (uswitch == 0) {
        sum += qcfs;
        days += days_per_period[tinc];
      }
      if (uswitch == 1) {
        sum += qcfs * days_per_period[tinc];
        days += days_per_period[tinc];
      }
      if (tinc == (timeincpyr - 1)) {
        if (uswitch == 1)
          printf("%8.2f\n", sum / days);
        if (uswitch == 0)
          printf("%8.2f\n", sum);
        sum = 0;
        days = 0;
      }
    }
  }
  fclose(obsqfile);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x280,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x6,-0x8(%rbp)
je     1198 <main+0x38>
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xecb(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xeb5(%rip),%rsi
lea    -0x40(%rbp),%rdx
call   1060 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xe9d(%rip),%rsi
lea    -0x44(%rbp),%rdx
call   1060 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
lea    0xe85(%rip),%rsi
lea    -0x124(%rbp),%rdx
call   1060 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rdi
lea    0xe6a(%rip),%rsi
lea    -0x12c(%rbp),%rdx
call   1060 <sscanf@plt>
cmpl   $0xe,-0x124(%rbp)
jne    12af <main+0x14f>
movl   $0x1f,-0x120(%rbp)
movl   $0xf,-0x11c(%rbp)
movl   $0x10,-0x118(%rbp)
movl   $0x1e,-0x114(%rbp)
movl   $0x1f,-0x110(%rbp)
movl   $0x1e,-0x10c(%rbp)
movl   $0x1f,-0x108(%rbp)
movl   $0x1f,-0x104(%rbp)
movl   $0x1c,-0x100(%rbp)
movl   $0x1f,-0xfc(%rbp)
movl   $0xf,-0xf8(%rbp)
movl   $0xf,-0xf4(%rbp)
movl   $0x1f,-0xf0(%rbp)
movl   $0x1e,-0xec(%rbp)
cmpl   $0xc,-0x124(%rbp)
jne    1334 <main+0x1d4>
movl   $0x1f,-0x120(%rbp)
movl   $0x1e,-0x11c(%rbp)
movl   $0x1f,-0x118(%rbp)
movl   $0x1f,-0x114(%rbp)
movl   $0x1c,-0x110(%rbp)
movl   $0x1f,-0x10c(%rbp)
movl   $0x1e,-0x108(%rbp)
movl   $0x1f,-0x104(%rbp)
movl   $0x1e,-0x100(%rbp)
movl   $0x1f,-0xfc(%rbp)
movl   $0x1f,-0xf8(%rbp)
movl   $0x1e,-0xf4(%rbp)
cmpl   $0x34,-0x124(%rbp)
jne    1376 <main+0x216>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x34,-0x2c(%rbp)
jge    136f <main+0x20f>
movslq -0x2c(%rbp),%rax
movl   $0x7,-0x120(%rbp,%rax,4)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1348 <main+0x1e8>
movl   $0x8,-0x54(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
movl   $0x0,-0x128(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x44(%rbp),%eax
jg     15e6 <main+0x486>
mov    -0x34(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    143c <main+0x2dc>
mov    -0x34(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x271(%rbp)
jne    13e1 <main+0x281>
mov    -0x34(%rbp),%eax
mov    $0x190,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
setne  %al
mov    %al,-0x271(%rbp)
mov    -0x271(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    143c <main+0x2dc>
cmpl   $0xc,-0x124(%rbp)
jne    140c <main+0x2ac>
movl   $0x1d,-0x110(%rbp)
cmpl   $0xe,-0x124(%rbp)
jne    1423 <main+0x2c3>
movl   $0x1d,-0x100(%rbp)
cmpl   $0x34,-0x124(%rbp)
jne    1437 <main+0x2d7>
movl   $0x9,-0x54(%rbp)
jmp    1483 <main+0x323>
cmpl   $0xc,-0x124(%rbp)
jne    1453 <main+0x2f3>
movl   $0x1c,-0x110(%rbp)
cmpl   $0xe,-0x124(%rbp)
jne    146a <main+0x30a>
movl   $0x1c,-0x100(%rbp)
cmpl   $0x34,-0x124(%rbp)
jne    147e <main+0x31e>
movl   $0x8,-0x54(%rbp)
jmp    1483 <main+0x323>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x124(%rbp),%eax
jge    15d3 <main+0x473>
mov    -0x18(%rbp),%rdi
lea    0xbd3(%rip),%rsi
lea    -0x24(%rbp),%rdx
call   1050 <fscanf@plt>
mov    0x2b34(%rip),%rcx
cmp    (%rcx),%rax
jne    14cb <main+0x36b>
lea    0xbb6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x12c(%rbp)
jne    14fe <main+0x39e>
movss  -0x24(%rbp),%xmm0
addss  -0x28(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
movslq -0x3c(%rbp),%rax
mov    -0x120(%rbp,%rax,4),%eax
add    -0x128(%rbp),%eax
mov    %eax,-0x128(%rbp)
cmpl   $0x1,-0x12c(%rbp)
jne    1546 <main+0x3e6>
movss  -0x24(%rbp),%xmm0
movslq -0x3c(%rbp),%rax
cvtsi2ssl -0x120(%rbp,%rax,4),%xmm2
ff ff
movss  -0x28(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x28(%rbp)
movslq -0x3c(%rbp),%rax
mov    -0x120(%rbp,%rax,4),%eax
add    -0x128(%rbp),%eax
mov    %eax,-0x128(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x124(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    15c0 <main+0x460>
cmpl   $0x1,-0x12c(%rbp)
jne    158a <main+0x42a>
movss  -0x28(%rbp),%xmm0
cvtsi2ssl -0x128(%rbp),%xmm1
ff
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb64(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x12c(%rbp)
jne    15ae <main+0x44e>
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb40(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
movl   $0x0,-0x128(%rbp)
jmp    15c5 <main+0x465>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    148a <main+0x32a>
jmp    15d8 <main+0x478>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    138e <main+0x22e>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0x280,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
cmp    $0x6,%edi
jne    1512 <main+0x3a2>
mov    %rsi,%r14
mov    0x8(%rsi),%rdi
lea    0xeb8(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%rbx
mov    0x10(%r14),%rdi
lea    0xea7(%rip),%r15
lea    0x14(%rsp),%rdx
mov    %r15,%rsi
call   1070 <sscanf@plt>
mov    0x18(%r14),%rdi
lea    0xc(%rsp),%rdx
mov    %r15,%rsi
call   1070 <sscanf@plt>
mov    0x20(%r14),%rdi
lea    0x4(%rsp),%rdx
mov    %r15,%rsi
call   1070 <sscanf@plt>
mov    0x28(%r14),%rdi
lea    0x8(%rsp),%rdx
mov    %r15,%rsi
call   1070 <sscanf@plt>
mov    0x4(%rsp),%eax
cmp    $0xc,%eax
je     126f <main+0xff>
cmp    $0xe,%eax
je     12aa <main+0x13a>
cmp    $0x34,%eax
jne    12e4 <main+0x174>
movaps 0xdf3(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xe0(%rsp)
mov    $0x8,%ecx
mov    $0x33,%edx
jmp    12e0 <main+0x170>
movaps 0xd9a(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xd9e(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movabs $0x1f0000001e,%rcx
mov    %rcx,0x40(%rsp)
movl   $0x1f,0x48(%rsp)
mov    $0x1e,%ecx
mov    $0xb,%edx
jmp    12e0 <main+0x170>
movaps 0xd7f(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xd53(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xd77(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movl   $0x1f,0x50(%rsp)
mov    $0x1e,%ecx
mov    $0xd,%edx
mov    %ecx,0x20(%rsp,%rdx,4)
mov    0x14(%rsp),%edi
mov    0xc(%rsp),%ecx
cmp    %ecx,%edi
jg     14f6 <main+0x386>
xor    %ebp,%ebp
xorps  %xmm0,%xmm0
lea    0xd55(%rip),%r14
lea    0x10(%rsp),%r15
mov    0x2cdc(%rip),%r13
nopl   0x0(%rax)
test   $0x3,%dil
mov    %rdi,0x18(%rsp)
jne    1355 <main+0x1e5>
imul   $0xc28f5c29,%edi,%edx
add    $0x51eb850,%edx
ror    $0x2,%edx
cmp    $0x28f5c28,%edx
ja     138d <main+0x21d>
movslq %edi,%rdx
imul   $0x51eb851f,%rdx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
sar    $0x27,%rdx
add    %esi,%edx
imul   $0x190,%edx,%edx
mov    %edi,%esi
sub    %edx,%esi
je     138d <main+0x21d>
cmp    $0x34,%eax
je     1380 <main+0x210>
cmp    $0xe,%eax
je     1370 <main+0x200>
cmp    $0xc,%eax
jne    13b0 <main+0x240>
movl   $0x1c,0x30(%rsp)
jmp    13d0 <main+0x260>
xchg   %ax,%ax
movl   $0x1c,0x40(%rsp)
jmp    13d0 <main+0x260>
nopw   0x0(%rax,%rax,1)
movl   $0x8,0xec(%rsp)
jmp    13d0 <main+0x260>
cmp    $0x34,%eax
je     13b9 <main+0x249>
cmp    $0xe,%eax
je     13c6 <main+0x256>
cmp    $0xc,%eax
jne    13b0 <main+0x240>
movl   $0x1d,0x30(%rsp)
jmp    13d0 <main+0x260>
cs nopw 0x0(%rax,%rax,1)
test   %eax,%eax
jg     13d0 <main+0x260>
jmp    14e4 <main+0x374>
movl   $0x9,0xec(%rsp)
jmp    13d0 <main+0x260>
movl   $0x1d,0x40(%rsp)
xchg   %ax,%ax
xor    %r12d,%r12d
jmp    13f2 <main+0x282>
movaps %xmm1,%xmm0
nopl   0x0(%rax,%rax,1)
add    $0x1,%r12
movslq 0x4(%rsp),%rax
cmp    %rax,%r12
jge    14e0 <main+0x370>
movss  %xmm0,(%rsp)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1060 <fscanf@plt>
cmp    0x0(%r13),%rax
jne    1417 <main+0x2a7>
lea    0xc4d(%rip),%rdi
call   1030 <puts@plt>
mov    0x8(%rsp),%eax
cmp    $0x1,%eax
je     1450 <main+0x2e0>
test   %eax,%eax
movss  (%rsp),%xmm0
jne    1434 <main+0x2c4>
addss  0x10(%rsp),%xmm0
add    0x20(%rsp,%r12,4),%ebp
mov    0x4(%rsp),%ecx
add    $0xffffffff,%ecx
movaps %xmm0,%xmm1
cmp    %rcx,%r12
jne    13e0 <main+0x270>
jmp    14ac <main+0x33c>
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x20(%rsp,%r12,4),%eax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
mulss  0x10(%rsp),%xmm1
addss  (%rsp),%xmm1
add    %eax,%ebp
mov    0x4(%rsp),%eax
add    $0xffffffff,%eax
cmp    %rax,%r12
jne    13d5 <main+0x265>
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
movss  %xmm1,(%rsp)
movss  (%rsp),%xmm1
divss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xbbc(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm1
mov    0x8(%rsp),%eax
xorps  %xmm0,%xmm0
xor    %ebp,%ebp
test   %eax,%eax
jne    13e0 <main+0x270>
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xb91(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
jmp    13e0 <main+0x270>
cs nopw 0x0(%rax,%rax,1)
mov    0xc(%rsp),%ecx
mov    0x18(%rsp),%rsi
lea    0x1(%rsi),%edx
cmp    %ecx,%esi
mov    %edx,%edi
jl     1310 <main+0x1a0>
mov    %rbx,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xbb2(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [114 x i8] c"Wrong command line arguments: enter <x time step file> <start year> <end year> <periods per year> <unit switch>,\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [3 x i8] c"%f\00"
@EOF = global i64 0
@.str.4 = [109 x i8] c"end of file reached prematurely check beginning and ending dates and number of periods per year are correct\0A\00"
@.str.5 = [7 x i8] c"%8.2f\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 float
%9 = alloca float
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca [52 x i32]
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca [200 x i8]
%22 = alloca [100 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%23 = load i32, i32* %4
%24 = icmp ne i32 %23, 6
br i1 %24, label %25, label %28
25: ; preds = %2
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([114 x i8], [114 x i8]* @.str, i64 0, i64 0))
%27 = call i32 @exit(i32 0)
unreachable
28: ; preds = %2
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = call i32* @fopen(i8* %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %32, i32** %6
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 2
%35 = load i8*, i8** %34
%36 = call i32 @sscanf(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %15)
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 3
%39 = load i8*, i8** %38
%40 = call i32 @sscanf(i8* %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %16)
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 4
%43 = load i8*, i8** %42
%44 = call i32 @sscanf(i8* %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %18)
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 5
%47 = load i8*, i8** %46
%48 = call i32 @sscanf(i8* %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %20)
%49 = load i32, i32* %18
%50 = icmp eq i32 %49, 14
br i1 %50, label %51, label %66
51: ; preds = %28
%52 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 0
store i32 31, i32* %52
%53 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 1
store i32 15, i32* %53
%54 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 2
store i32 16, i32* %54
%55 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 3
store i32 30, i32* %55
%56 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 4
store i32 31, i32* %56
%57 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 5
store i32 30, i32* %57
%58 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 6
store i32 31, i32* %58
%59 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 7
store i32 31, i32* %59
%60 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 8
store i32 28, i32* %60
%61 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 9
store i32 31, i32* %61
%62 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 10
store i32 15, i32* %62
%63 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 11
store i32 15, i32* %63
%64 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 12
store i32 31, i32* %64
%65 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 13
store i32 30, i32* %65
br label %66
66: ; preds = %51, %28
%67 = load i32, i32* %18
%68 = icmp eq i32 %67, 12
br i1 %68, label %69, label %82
69: ; preds = %66
%70 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 0
store i32 31, i32* %70
%71 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 1
store i32 30, i32* %71
%72 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 2
store i32 31, i32* %72
%73 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 3
store i32 31, i32* %73
%74 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 4
store i32 28, i32* %74
%75 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 5
store i32 31, i32* %75
%76 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 6
store i32 30, i32* %76
%77 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 7
store i32 31, i32* %77
%78 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 8
store i32 30, i32* %78
%79 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 9
store i32 31, i32* %79
%80 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 10
store i32 31, i32* %80
%81 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 11
store i32 30, i32* %81
br label %82
82: ; preds = %69, %66
%83 = load i32, i32* %18
%84 = icmp eq i32 %83, 52
br i1 %84, label %85, label %98
85: ; preds = %82
store i32 0, i32* %10
br label %86
86: ; preds = %93, %85
%87 = load i32, i32* %10
%88 = icmp slt i32 %87, 52
br i1 %88, label %89, label %96
89: ; preds = %86
%90 = load i32, i32* %10
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 %91
store i32 7, i32* %92
br label %93
93: ; preds = %89
%94 = load i32, i32* %10
%95 = add nsw i32 %94, 1
store i32 %95, i32* %10
br label %86
96: ; preds = %86
%97 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 51
store i32 8, i32* %97
br label %98
98: ; preds = %96, %82
store float 0.000000e+00, float* %9
store i32 0, i32* %19
%99 = load i32, i32* %15
store i32 %99, i32* %12
br label %100
100: ; preds = %223, %98
%101 = load i32, i32* %12
%102 = load i32, i32* %16
%103 = icmp sle i32 %101, %102
br i1 %103, label %104, label %226
104: ; preds = %100
%105 = load i32, i32* %12
%106 = srem i32 %105, 4
%107 = icmp eq i32 %106, 0
br i1 %107, label %108, label %136
108: ; preds = %104
%109 = load i32, i32* %12
%110 = srem i32 %109, 100
%111 = icmp eq i32 %110, 0
br i1 %111, label %112, label %116
112: ; preds = %108
%113 = load i32, i32* %12
%114 = srem i32 %113, 400
%115 = icmp ne i32 %114, 0
br label %116
116: ; preds = %112, %108
%117 = phi i1 [ false, %108 ], [ %115, %112 ]
%118 = zext i1 %117 to i32
%119 = icmp eq i32 %118, 0
br i1 %119, label %120, label %136
120: ; preds = %116
%121 = load i32, i32* %18
%122 = icmp eq i32 %121, 12
br i1 %122, label %123, label %125
123: ; preds = %120
%124 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 4
store i32 29, i32* %124
br label %125
125: ; preds = %123, %120
%126 = load i32, i32* %18
%127 = icmp eq i32 %126, 14
br i1 %127, label %128, label %130
128: ; preds = %125
%129 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 8
store i32 29, i32* %129
br label %130
130: ; preds = %128, %125
%131 = load i32, i32* %18
%132 = icmp eq i32 %131, 52
br i1 %132, label %133, label %135
133: ; preds = %130
%134 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 51
store i32 9, i32* %134
br label %135
135: ; preds = %133, %130
br label %152
136: ; preds = %116, %104
%137 = load i32, i32* %18
%138 = icmp eq i32 %137, 12
br i1 %138, label %139, label %141
139: ; preds = %136
%140 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 4
store i32 28, i32* %140
br label %141
141: ; preds = %139, %136
%142 = load i32, i32* %18
%143 = icmp eq i32 %142, 14
br i1 %143, label %144, label %146
144: ; preds = %141
%145 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 8
store i32 28, i32* %145
br label %146
146: ; preds = %144, %141
%147 = load i32, i32* %18
%148 = icmp eq i32 %147, 52
br i1 %148, label %149, label %151
149: ; preds = %146
%150 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 51
store i32 8, i32* %150
br label %151
151: ; preds = %149, %146
br label %152
152: ; preds = %151, %135
store i32 0, i32* %14
br label %153
153: ; preds = %219, %152
%154 = load i32, i32* %14
%155 = load i32, i32* %18
%156 = icmp slt i32 %154, %155
br i1 %156, label %157, label %222
157: ; preds = %153
%158 = load i32*, i32** %6
%159 = call i64 @fscanf(i32* %158, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), float* %8)
%160 = load i64, i64* @EOF
%161 = icmp eq i64 %159, %160
br i1 %161, label %162, label %164
162: ; preds = %157
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str.4, i64 0, i64 0))
br label %164
164: ; preds = %162, %157
%165 = load i32, i32* %20
%166 = icmp eq i32 %165, 0
br i1 %166, label %167, label %177
167: ; preds = %164
%168 = load float, float* %8
%169 = load float, float* %9
%170 = fadd float %169, %168
store float %170, float* %9
%171 = load i32, i32* %14
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 %172
%174 = load i32, i32* %173
%175 = load i32, i32* %19
%176 = add nsw i32 %175, %174
store i32 %176, i32* %19
br label %177
177: ; preds = %167, %164
%178 = load i32, i32* %20
%179 = icmp eq i32 %178, 1
br i1 %179, label %180, label %195
180: ; preds = %177
%181 = load float, float* %8
%182 = load i32, i32* %14
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 %183
%185 = load i32, i32* %184
%186 = sitofp i32 %185 to float
%187 = load float, float* %9
%188 = call float @llvm.fmuladd.f32(float %181, float %186, float %187)
store float %188, float* %9
%189 = load i32, i32* %14
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds [52 x i32], [52 x i32]* %17, i64 0, i64 %190
%192 = load i32, i32* %191
%193 = load i32, i32* %19
%194 = add nsw i32 %193, %192
store i32 %194, i32* %19
br label %195
195: ; preds = %180, %177
%196 = load i32, i32* %14
%197 = load i32, i32* %18
%198 = sub nsw i32 %197, 1
%199 = icmp eq i32 %196, %198
br i1 %199, label %200, label %218
200: ; preds = %195
%201 = load i32, i32* %20
%202 = icmp eq i32 %201, 1
br i1 %202, label %203, label %210
203: ; preds = %200
%204 = load float, float* %9
%205 = load i32, i32* %19
%206 = sitofp i32 %205 to float
%207 = fdiv float %204, %206
%208 = fpext float %207 to double
%209 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %208)
br label %210
210: ; preds = %203, %200
%211 = load i32, i32* %20
%212 = icmp eq i32 %211, 0
br i1 %212, label %213, label %217
213: ; preds = %210
%214 = load float, float* %9
%215 = fpext float %214 to double
%216 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %215)
br label %217
217: ; preds = %213, %210
store float 0.000000e+00, float* %9
store i32 0, i32* %19
br label %218
218: ; preds = %217, %195
br label %219
219: ; preds = %218
%220 = load i32, i32* %14
%221 = add nsw i32 %220, 1
store i32 %221, i32* %14
br label %153
222: ; preds = %153
br label %223
223: ; preds = %222
%224 = load i32, i32* %12
%225 = add nsw i32 %224, 1
store i32 %225, i32* %12
br label %100
226: ; preds = %100
%227 = load i32*, i32** %6
%228 = call i32 @fclose(i32* %227)
%229 = load i32, i32* %3
ret i32 %229
}

LLVM IR (-O2):
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [3 x i8] c"%f\00"
@EOF = global i64 0
@.str.5 = [7 x i8] c"%8.2f\0A\00"
@str = [108 x i8] c"end of file reached prematurely check beginning and ending dates and number of periods per year are correct\00"
@str.6 = [113 x i8] c"Wrong command line arguments: enter <x time step file> <start year> <end year> <periods per year> <unit switch>,\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca float
%4 = alloca i32
%5 = alloca i32
%6 = alloca [52 x i32]
%7 = alloca i32
%8 = alloca i32
%9 = bitcast float* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast [52 x i32]* %6 to i8*
%13 = bitcast i32* %7 to i8*
%14 = bitcast i32* %8 to i8*
%15 = icmp eq i32 %0, 6
br i1 %15, label %19, label %16
16: ; preds = %2
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([113 x i8], [113 x i8]* @str.6, i64 0, i64 0))
%18 = tail call i32 @exit(i32 0)
unreachable
19: ; preds = %2
%20 = getelementptr inbounds i8*, i8** %1, i64 1
%21 = load i8*, i8** %20
%22 = tail call i32* @fopen(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%23 = getelementptr inbounds i8*, i8** %1, i64 2
%24 = load i8*, i8** %23
%25 = call i32 @sscanf(i8* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%26 = getelementptr inbounds i8*, i8** %1, i64 3
%27 = load i8*, i8** %26
%28 = call i32 @sscanf(i8* %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %5)
%29 = getelementptr inbounds i8*, i8** %1, i64 4
%30 = load i8*, i8** %29
%31 = call i32 @sscanf(i8* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %7)
%32 = getelementptr inbounds i8*, i8** %1, i64 5
%33 = load i8*, i8** %32
%34 = call i32 @sscanf(i8* %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %8)
%35 = load i32, i32* %7
switch i32 %35, label %80 [
i32 14, label %62
i32 12, label %69
i32 52, label %36
]
36: ; preds = %19
%37 = bitcast [52 x i32]* %6 to <4 x i32>*
store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, <4 x i32>* %37
%38 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 4
%39 = bitcast i32* %38 to <4 x i32>*
store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, <4 x i32>* %39
%40 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 8
%41 = bitcast i32* %40 to <4 x i32>*
store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, <4 x i32>* %41
%42 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 12
%43 = bitcast i32* %42 to <4 x i32>*
store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, <4 x i32>* %43
%44 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 16
%45 = bitcast i32* %44 to <4 x i32>*
store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, <4 x i32>* %45
%46 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 20
%47 = bitcast i32* %46 to <4 x i32>*
store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, <4 x i32>* %47
%48 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 24
%49 = bitcast i32* %48 to <4 x i32>*
store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, <4 x i32>* %49
%50 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 28
%51 = bitcast i32* %50 to <4 x i32>*
store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, <4 x i32>* %51
%52 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 32
%53 = bitcast i32* %52 to <4 x i32>*
store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, <4 x i32>* %53
%54 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 36
%55 = bitcast i32* %54 to <4 x i32>*
store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, <4 x i32>* %55
%56 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 40
%57 = bitcast i32* %56 to <4 x i32>*
store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, <4 x i32>* %57
%58 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 44
%59 = bitcast i32* %58 to <4 x i32>*
store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, <4 x i32>* %59
%60 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 48
%61 = bitcast i32* %60 to <4 x i32>*
store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, <4 x i32>* %61
br label %76
62: ; preds = %19
%63 = bitcast [52 x i32]* %6 to <4 x i32>*
store <4 x i32> <i32 31, i32 15, i32 16, i32 30>, <4 x i32>* %63
%64 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 4
%65 = bitcast i32* %64 to <4 x i32>*
store <4 x i32> <i32 31, i32 30, i32 31, i32 31>, <4 x i32>* %65
%66 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 8
%67 = bitcast i32* %66 to <4 x i32>*
store <4 x i32> <i32 28, i32 31, i32 15, i32 15>, <4 x i32>* %67
%68 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 12
store i32 31, i32* %68
br label %76
69: ; preds = %19
%70 = bitcast [52 x i32]* %6 to <4 x i32>*
store <4 x i32> <i32 31, i32 30, i32 31, i32 31>, <4 x i32>* %70
%71 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 4
%72 = bitcast i32* %71 to <4 x i32>*
store <4 x i32> <i32 28, i32 31, i32 30, i32 31>, <4 x i32>* %72
%73 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 8
store i32 30, i32* %73
%74 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 9
store i32 31, i32* %74
%75 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 10
store i32 31, i32* %75
br label %76
76: ; preds = %36, %62, %69
%77 = phi i64 [ 11, %69 ], [ 13, %62 ], [ 51, %36 ]
%78 = phi i32 [ 30, %69 ], [ 30, %62 ], [ 8, %36 ]
%79 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 %77
store i32 %78, i32* %79
br label %80
80: ; preds = %76, %19
%81 = load i32, i32* %4
%82 = load i32, i32* %5
%83 = icmp sgt i32 %81, %82
br i1 %83, label %177, label %84
84: ; preds = %80
%85 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 51
%86 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 8
%87 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 4
br label %88
88: ; preds = %84, %170
%89 = phi i32 [ %82, %84 ], [ %171, %170 ]
%90 = phi i32 [ %35, %84 ], [ %172, %170 ]
%91 = phi float [ 0.000000e+00, %84 ], [ %174, %170 ]
%92 = phi i32 [ 0, %84 ], [ %173, %170 ]
%93 = phi i32 [ %81, %84 ], [ %175, %170 ]
%94 = and i32 %93, 3
%95 = icmp eq i32 %94, 0
br i1 %95, label %96, label %106
96: ; preds = %88
%97 = srem i32 %93, 100
%98 = icmp eq i32 %97, 0
%99 = srem i32 %93, 400
%100 = icmp ne i32 %99, 0
%101 = and i1 %98, %100
br i1 %101, label %106, label %102
102: ; preds = %96
switch i32 %90, label %110 [
i32 12, label %103
i32 14, label %104
i32 52, label %105
]
103: ; preds = %102
store i32 29, i32* %87
br label %112
104: ; preds = %102
store i32 29, i32* %86
br label %112
105: ; preds = %102
store i32 9, i32* %85
br label %112
106: ; preds = %96, %88
switch i32 %90, label %110 [
i32 12, label %107
i32 14, label %108
i32 52, label %109
]
107: ; preds = %106
store i32 28, i32* %87
br label %112
108: ; preds = %106
store i32 28, i32* %86
br label %112
109: ; preds = %106
store i32 8, i32* %85
br label %112
110: ; preds = %106, %102
%111 = icmp sgt i32 %90, 0
br i1 %111, label %112, label %170
112: ; preds = %105, %109, %103, %104, %107, %108, %110
br label %113
113: ; preds = %112, %161
%114 = phi i64 [ %164, %161 ], [ 0, %112 ]
%115 = phi float [ %163, %161 ], [ %91, %112 ]
%116 = phi i32 [ %162, %161 ], [ %92, %112 ]
%117 = call i64 @fscanf(i32* %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), float* %3)
%118 = load i64, i64* @EOF
%119 = icmp eq i64 %117, %118
br i1 %119, label %120, label %122
120: ; preds = %113
%121 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([108 x i8], [108 x i8]* @str, i64 0, i64 0))
br label %122
122: ; preds = %120, %113
%123 = load i32, i32* %8
switch i32 %123, label %130 [
i32 0, label %124
i32 1, label %137
]
124: ; preds = %122
%125 = load float, float* %3
%126 = fadd float %115, %125
%127 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 %114
%128 = load i32, i32* %127
%129 = add nsw i32 %128, %116
br label %130
130: ; preds = %122, %124
%131 = phi i32 [ %129, %124 ], [ %116, %122 ]
%132 = phi float [ %126, %124 ], [ %115, %122 ]
%133 = load i32, i32* %7
%134 = add nsw i32 %133, -1
%135 = zext i32 %134 to i64
%136 = icmp eq i64 %114, %135
br i1 %136, label %154, label %161
137: ; preds = %122
%138 = load float, float* %3
%139 = getelementptr inbounds [52 x i32], [52 x i32]* %6, i64 0, i64 %114
%140 = load i32, i32* %139
%141 = sitofp i32 %140 to float
%142 = call float @llvm.fmuladd.f32(float %138, float %141, float %115)
%143 = add nsw i32 %140, %116
%144 = load i32, i32* %7
%145 = add nsw i32 %144, -1
%146 = zext i32 %145 to i64
%147 = icmp eq i64 %114, %146
br i1 %147, label %148, label %161
148: ; preds = %137
%149 = sitofp i32 %143 to float
%150 = fdiv float %142, %149
%151 = fpext float %150 to double
%152 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %151)
%153 = load i32, i32* %8
br label %154
154: ; preds = %130, %148
%155 = phi float [ %142, %148 ], [ %132, %130 ]
%156 = phi i32 [ %153, %148 ], [ %123, %130 ]
%157 = icmp eq i32 %156, 0
br i1 %157, label %158, label %161
158: ; preds = %154
%159 = fpext float %155 to double
%160 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %159)
br label %161
161: ; preds = %137, %154, %158, %130
%162 = phi i32 [ %131, %130 ], [ 0, %158 ], [ 0, %154 ], [ %143, %137 ]
%163 = phi float [ %132, %130 ], [ 0.000000e+00, %158 ], [ 0.000000e+00, %154 ], [ %142, %137 ]
%164 = add nuw nsw i64 %114, 1
%165 = load i32, i32* %7
%166 = sext i32 %165 to i64
%167 = icmp slt i64 %164, %166
br i1 %167, label %113, label %168
168: ; preds = %161
%169 = load i32, i32* %5
br label %170
170: ; preds = %168, %110
%171 = phi i32 [ %89, %110 ], [ %169, %168 ]
%172 = phi i32 [ %90, %110 ], [ %165, %168 ]
%173 = phi i32 [ %92, %110 ], [ %162, %168 ]
%174 = phi float [ %91, %110 ], [ %163, %168 ]
%175 = add nsw i32 %93, 1
%176 = icmp slt i32 %93, %171
br i1 %176, label %88, label %177
177: ; preds = %170, %80
%178 = call i32 @fclose(i32* %22)
ret i32 0
}