#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_FAILURE;
float atof(char *);
int atoi(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int timesteps(int, int);
void main(int argc, char **argv) {
  FILE *fpmask, *fpmonthly, *fpprism, *fpin_grd, *fpout_grd;
  char maskfile[400];
  char monthly[400], old_monthly[400];
  char prism[400], old_prism[400];
  char in_grd[400];
  char out_grd[400];
  char start_year[400];
  char *monthstr[] = {"jan", "feb", "mar", "apr", "may", "jun",
                      "jul", "aug", "sep", "oct", "nov", "dec"};
  char void_nr[20];
  char str1[20], mm[20], pp[20], grd[20];
  char end_year[400];
  float value, valpp;
  int year, endyy;
  int i, j, k, l;
  if (argc < 8) {
    printf("Not correct number of commandline arguments \n");
    exit(EXIT_FAILURE);
  }
  strcpy(maskfile, argv[1]);
  printf("%s \n", maskfile);
  strcpy(monthly, argv[2]);
  printf("%s \n", monthly);
  strcpy(prism, argv[3]);
  printf("%s \n", prism);
  strcpy(in_grd, argv[4]);
  printf("%s \n", in_grd);
  strcpy(out_grd, argv[5]);
  printf("%s \n", out_grd);
  strcpy(start_year, argv[6]);
  printf("%d \n", atoi(start_year));
  year = atoi(start_year);
  strcpy(end_year, argv[7]);
  printf("%d \n", atoi(end_year));
  endyy = atoi(end_year);
  strcpy(old_monthly, monthly);
  strcpy(old_prism, prism);
  if ((fpmask = fopen(maskfile, "r")) == NULL) {
    printf("Cannot open file %s \n", maskfile);
    exit(0);
  }
  if ((fpin_grd = fopen(in_grd, "r")) == NULL) {
    printf("Cannot open file %s \n", in_grd);
    exit(0);
  }
  if ((fpout_grd = fopen(out_grd, "w")) == NULL) {
    printf("Cannot open file %s \n", out_grd);
    exit(0);
  }
  endyy++;
  for (l = year; l < (endyy); l++) {
    for (k = 0; k < 12; k++) {
      strcpy(monthly, old_monthly);
      strcat(monthly, monthstr[k]);
      strcpy(prism, old_prism);
      strcat(prism, monthstr[k]);
      if ((fpmonthly = fopen(monthly, "r")) == NULL) {
        printf("Cannot open file %s \n", monthly);
        exit(0);
      }
      if ((fpprism = fopen(prism, "r")) == NULL) {
        printf("Cannot open file %s \n", prism);
        exit(0);
      }
      for (j = 0; j < timesteps(l, k); j++) {
        for (i = 0; i < 12; i++)
          fscanf(fpmonthly, "%s", str1);
        for (i = 0; i < 12; i++) {
          fscanf(fpmask, "%s", str1);
          strcpy(void_nr, str1);
        }
        for (i = 0; i < 12; i++)
          fscanf(fpprism, "%s", str1);
        while (fscanf(fpmask, "%s", str1) != EOF) {
          fscanf(fpmonthly, "%s", mm);
          fscanf(fpprism, "%s", pp);
          valpp = atof(pp);
          if (atof(pp) < 0.01)
            valpp = atof(mm);
          if (atof(str1) > 0.001) {
            fscanf(fpin_grd, "%s", grd);
            value = atof(grd) + valpp - atof(mm);
            fprintf(fpout_grd, "%4.2f ", value);
          }
        }
        fprintf(fpout_grd, "\n");
        rewind(fpmask);
        rewind(fpmonthly);
        rewind(fpprism);
      }
      fclose(fpmonthly);
      fclose(fpprism);
    }
    printf("year %d \n", l);
  }
  fclose(fpout_grd);
  fclose(fpin_grd);
  fclose(fpmask);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf80,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0xd20(%rbp),%rdi
lea    0x2bc0(%rip),%rsi
mov    $0x60,%edx
call   10a0 <memcpy@plt>
cmpl   $0x8,-0x4(%rbp)
jge    1220 <main+0x50>
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2dbf(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
lea    -0x1d0(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x1d0(%rbp),%rsi
lea    0xe3d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x360(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x360(%rbp),%rsi
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x680(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x680(%rbp),%rsi
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x9a0(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x9a0(%rbp),%rsi
lea    0xdc2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xb30(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0xb30(%rbp),%rsi
lea    0xd99(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xcc0(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0xcc0(%rbp),%rdi
call   10d0 <atoi@plt>
mov    %eax,%esi
lea    0xd7f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xcc0(%rbp),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0xf5c(%rbp)
lea    -0xf50(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x38(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0xf50(%rbp),%rdi
call   10d0 <atoi@plt>
mov    %eax,%esi
lea    0xd3d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xf50(%rbp),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0xf60(%rbp)
lea    -0x4f0(%rbp),%rdi
lea    -0x360(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x810(%rbp),%rdi
lea    -0x680(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x1d0(%rbp),%rdi
lea    0xc75(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    13d4 <main+0x204>
lea    -0x1d0(%rbp),%rsi
lea    0xca8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
lea    -0x9a0(%rbp),%rdi
lea    0xc38(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
jne    1411 <main+0x241>
lea    -0x9a0(%rbp),%rsi
lea    0xc6b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
lea    -0xb30(%rbp),%rdi
lea    0xc65(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
jne    144e <main+0x27e>
lea    -0xb30(%rbp),%rsi
lea    0xc2e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
mov    -0xf60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf60(%rbp)
mov    -0xf5c(%rbp),%eax
mov    %eax,-0xf70(%rbp)
mov    -0xf70(%rbp),%eax
cmp    -0xf60(%rbp),%eax
jge    1846 <main+0x676>
movl   $0x0,-0xf6c(%rbp)
cmpl   $0xc,-0xf6c(%rbp)
jge    181e <main+0x64e>
lea    -0x360(%rbp),%rdi
lea    -0x4f0(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x360(%rbp),%rdi
movslq -0xf6c(%rbp),%rax
mov    -0xd20(%rbp,%rax,8),%rsi
ff
call   10e0 <strcat@plt>
lea    -0x680(%rbp),%rdi
lea    -0x810(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x680(%rbp),%rdi
movslq -0xf6c(%rbp),%rax
mov    -0xd20(%rbp,%rax,8),%rsi
ff
call   10e0 <strcat@plt>
lea    -0x360(%rbp),%rdi
lea    0xb1e(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    152b <main+0x35b>
lea    -0x360(%rbp),%rsi
lea    0xb51(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
lea    -0x680(%rbp),%rdi
lea    0xae1(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    1568 <main+0x398>
lea    -0x680(%rbp),%rsi
lea    0xb14(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
movl   $0x0,-0xf68(%rbp)
mov    -0xf68(%rbp),%eax
mov    %eax,-0xf74(%rbp)
mov    -0xf70(%rbp),%edi
mov    -0xf6c(%rbp),%esi
call   10b0 <timesteps@plt>
mov    %eax,%ecx
mov    -0xf74(%rbp),%eax
cmp    %ecx,%eax
jge    17f8 <main+0x628>
movl   $0x0,-0xf64(%rbp)
cmpl   $0xc,-0xf64(%rbp)
jge    15e1 <main+0x411>
mov    -0x20(%rbp),%rdi
lea    -0xd60(%rbp),%rdx
lea    0xabe(%rip),%rsi
call   1080 <fscanf@plt>
mov    -0xf64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf64(%rbp)
jmp    15a9 <main+0x3d9>
movl   $0x0,-0xf64(%rbp)
cmpl   $0xc,-0xf64(%rbp)
jge    1636 <main+0x466>
mov    -0x18(%rbp),%rdi
lea    -0xd60(%rbp),%rdx
lea    0xa7c(%rip),%rsi
call   1080 <fscanf@plt>
lea    -0xd40(%rbp),%rdi
lea    -0xd60(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0xf64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf64(%rbp)
jmp    15eb <main+0x41b>
movl   $0x0,-0xf64(%rbp)
cmpl   $0xc,-0xf64(%rbp)
jge    1678 <main+0x4a8>
mov    -0x28(%rbp),%rdi
lea    -0xd60(%rbp),%rdx
lea    0xa27(%rip),%rsi
call   1080 <fscanf@plt>
mov    -0xf64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf64(%rbp)
jmp    1640 <main+0x470>
jmp    167d <main+0x4ad>
mov    -0x18(%rbp),%rdi
lea    -0xd60(%rbp),%rdx
lea    0x9f7(%rip),%rsi
call   1080 <fscanf@plt>
mov    0x294d(%rip),%rcx
cmp    (%rcx),%rax
je     17b7 <main+0x5e7>
mov    -0x20(%rbp),%rdi
lea    -0xd80(%rbp),%rdx
lea    0x9d0(%rip),%rsi
call   1080 <fscanf@plt>
mov    -0x28(%rbp),%rdi
lea    -0xda0(%rbp),%rdx
lea    0x9b9(%rip),%rsi
call   1080 <fscanf@plt>
lea    -0xda0(%rbp),%rdi
call   1040 <atof@plt>
movss  %xmm0,-0xf58(%rbp)
ff
lea    -0xda0(%rbp),%rdi
call   1040 <atof@plt>
cvtss2sd %xmm0,%xmm1
movsd  0x902(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    171c <main+0x54c>
lea    -0xd80(%rbp),%rdi
call   1040 <atof@plt>
movss  %xmm0,-0xf58(%rbp)
ff
lea    -0xd60(%rbp),%rdi
call   1040 <atof@plt>
cvtss2sd %xmm0,%xmm0
movsd  0x8d4(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    17b2 <main+0x5e2>
mov    -0x30(%rbp),%rdi
lea    -0xdc0(%rbp),%rdx
lea    0x936(%rip),%rsi
call   1080 <fscanf@plt>
lea    -0xdc0(%rbp),%rdi
call   1040 <atof@plt>
addss  -0xf58(%rbp),%xmm0
ff
movss  %xmm0,-0xf78(%rbp)
ff
lea    -0xd80(%rbp),%rdi
call   1040 <atof@plt>
movaps %xmm0,%xmm1
movss  -0xf78(%rbp),%xmm0
ff
subss  %xmm1,%xmm0
movss  %xmm0,-0xf54(%rbp)
ff
mov    -0x38(%rbp),%rdi
movss  -0xf54(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0x8de(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
jmp    167d <main+0x4ad>
mov    -0x38(%rbp),%rdi
lea    0x8d6(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1070 <rewind@plt>
mov    -0x20(%rbp),%rdi
call   1070 <rewind@plt>
mov    -0x28(%rbp),%rdi
call   1070 <rewind@plt>
mov    -0xf68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf68(%rbp)
jmp    1572 <main+0x3a2>
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0xf6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf6c(%rbp)
jmp    1485 <main+0x2b5>
mov    -0xf70(%rbp),%esi
lea    0x865(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xf70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf70(%rbp)
jmp    1469 <main+0x299>
mov    -0x38(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x30(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
add    $0xf80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xef8,%rsp
cmp    $0x7,%edi
jle    190b <main+0x72b>
mov    %rsi,%rbx
mov    0x8(%rsi),%rsi
lea    0xa40(%rsp),%r14
mov    %r14,%rdi
call   1030 <strcpy@plt>
lea    0xe39(%rip),%r13
mov    %r13,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x10(%rbx),%rsi
lea    0x270(%rsp),%r15
mov    %r15,%rdi
call   1030 <strcpy@plt>
mov    %r13,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x18(%rbx),%rsi
lea    0xe0(%rsp),%r12
mov    %r12,%rdi
call   1030 <strcpy@plt>
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x20(%rbx),%rsi
lea    0x590(%rsp),%rbp
mov    %rbp,%rdi
call   1030 <strcpy@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x28(%rbx),%rsi
lea    0x400(%rsp),%rbp
mov    %rbp,%rdi
call   1030 <strcpy@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x30(%rbx),%rsi
lea    0xd60(%rsp),%rbp
mov    %rbp,%rdi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
call   10e0 <atoi@plt>
lea    0xd9b(%rip),%r13
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbp,%rdi
call   10e0 <atoi@plt>
mov    %rax,0x8(%rsp)
mov    0x38(%rbx),%rsi
lea    0xbd0(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
call   10e0 <atoi@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
call   10e0 <atoi@plt>
mov    %eax,0x10(%rsp)
lea    0x8b0(%rsp),%rdi
mov    %r15,%rsi
call   1030 <strcpy@plt>
lea    0x720(%rsp),%rdi
mov    %r12,%rsi
call   1030 <strcpy@plt>
lea    0xcda(%rip),%rsi
mov    %r14,%rdi
call   10d0 <fopen@plt>
test   %rax,%rax
je     1925 <main+0x745>
mov    %rax,%rbp
lea    0xcbf(%rip),%rsi
lea    0x590(%rsp),%rdi
call   10d0 <fopen@plt>
mov    %rax,0x20(%rsp)
test   %rax,%rax
je     1936 <main+0x756>
lea    0xcd9(%rip),%rsi
lea    0x400(%rsp),%rdi
call   10d0 <fopen@plt>
mov    %rax,0x18(%rsp)
test   %rax,%rax
je     1947 <main+0x767>
mov    0x10(%rsp),%eax
cmp    %eax,0x8(%rsp)
jle    13d0 <main+0x1f0>
mov    0x18(%rsp),%rdi
call   1060 <fclose@plt>
mov    0x20(%rsp),%rdi
call   1060 <fclose@plt>
mov    %rbp,%rdi
call   1060 <fclose@plt>
add    $0xef8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc81(%rip),%r13
lea    0xa0(%rsp),%r14
jmp    1413 <main+0x233>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xc6b(%rip),%rdi
mov    0x8(%rsp),%rbx
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x1(%rbx),%eax
cmp    0x10(%rsp),%ebx
mov    %rax,0x8(%rsp)
je     13a2 <main+0x1c2>
xor    %r12d,%r12d
jmp    143a <main+0x25a>
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1060 <fclose@plt>
mov    %r15,%rdi
call   1060 <fclose@plt>
add    $0x1,%r12
cmp    $0xc,%r12
je     13f0 <main+0x210>
lea    0x270(%rsp),%r15
mov    %r15,%rdi
lea    0x8b0(%rsp),%rsi
call   1030 <strcpy@plt>
lea    0x2957(%rip),%rax
mov    (%rax,%r12,8),%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
call   10f0 <strcat@plt>
lea    0xe0(%rsp),%r15
mov    %r15,%rdi
lea    0x720(%rsp),%rsi
call   1030 <strcpy@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   10f0 <strcat@plt>
lea    0x270(%rsp),%rdi
lea    0xb80(%rip),%r15
mov    %r15,%rsi
call   10d0 <fopen@plt>
test   %rax,%rax
je     18dd <main+0x6fd>
mov    %rax,%rbx
lea    0xe0(%rsp),%rdi
mov    %r15,%rsi
call   10d0 <fopen@plt>
test   %rax,%rax
je     18ee <main+0x70e>
mov    %rax,%r15
mov    0x8(%rsp),%rdi
mov    %r12d,%esi
call   10c0 <timesteps@plt>
test   %eax,%eax
jle    1420 <main+0x240>
movl   $0x0,0x14(%rsp)
mov    %r12,0x38(%rsp)
mov    %rbx,0x28(%rsp)
mov    %r15,0x30(%rsp)
jmp    155d <main+0x37d>
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
mov    0x18(%rsp),%rsi
call   10a0 <fputc@plt>
mov    %rbp,%rdi
call   1080 <rewind@plt>
mov    0x28(%rsp),%rbx
mov    %rbx,%rdi
call   1080 <rewind@plt>
mov    %r15,%rdi
call   1080 <rewind@plt>
mov    0x14(%rsp),%r12d
add    $0x1,%r12d
mov    0x8(%rsp),%rdi
mov    0x38(%rsp),%r15
mov    %r15d,%esi
call   10c0 <timesteps@plt>
mov    %r12d,0x14(%rsp)
cmp    %eax,%r12d
mov    %r15,%r12
mov    0x30(%rsp),%r15
jge    1420 <main+0x240>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
lea    0xc0(%rsp),%r12
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r12,%rdi
mov    0x28b0(%rip),%r12
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
cmp    (%r12),%rax
je     1500 <main+0x320>
mov    %rbp,%rbx
mov    0x28(%rsp),%rdi
mov    %r13,%rsi
lea    0x40(%rsp),%rdx
call   1090 <fscanf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
lea    0x80(%rsp),%rbp
mov    %rbp,%rdx
call   1090 <fscanf@plt>
mov    %rbp,%rdi
call   1050 <atof@plt>
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
movsd  0x7b6(%rip),%xmm1
ucomisd %xmm2,%xmm1
jbe    185a <main+0x67a>
lea    0x40(%rsp),%rdi
call   1050 <atof@plt>
movss  %xmm0,0x4(%rsp)
mov    %r14,%rdi
call   1050 <atof@plt>
cvtss2sd %xmm0,%xmm0
ucomisd 0x794(%rip),%xmm0
mov    %rbx,%rbp
jbe    17f0 <main+0x610>
mov    0x20(%rsp),%rdi
mov    %r13,%rsi
lea    0x60(%rsp),%rbx
mov    %rbx,%rdx
call   1090 <fscanf@plt>
mov    %rbx,%rdi
call   1050 <atof@plt>
movss  0x4(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x4(%rsp)
lea    0x40(%rsp),%rdi
call   1050 <atof@plt>
movss  0x4(%rsp),%xmm1
subss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
mov    0x18(%rsp),%rdi
lea    0x78a(%rip),%rsi
mov    $0x1,%al
call   10b0 <fprintf@plt>
jmp    17f0 <main+0x610>
lea    0x75c(%rip),%rdi
lea    0x270(%rsp),%rsi
jmp    18fd <main+0x71d>
lea    0x74b(%rip),%rdi
lea    0xe0(%rsp),%rsi
xor    %eax,%eax
call   1070 <printf@plt>
xor    %edi,%edi
call   1100 <exit@plt>
lea    0x75a(%rip),%rdi
call   1040 <puts@plt>
mov    0x26ba(%rip),%rax
mov    (%rax),%edi
call   1100 <exit@plt>
lea    0x714(%rip),%rdi
lea    0xa40(%rsp),%rsi
jmp    18fd <main+0x71d>
lea    0x703(%rip),%rdi
lea    0x590(%rsp),%rsi
jmp    18fd <main+0x71d>
lea    0x6f2(%rip),%rdi
lea    0x400(%rsp),%rsi
jmp    18fd <main+0x71d>

LLVM IR (-O0):
@.str = [4 x i8] c"jan\00"
@.str.1 = [4 x i8] c"feb\00"
@.str.2 = [4 x i8] c"mar\00"
@.str.3 = [4 x i8] c"apr\00"
@.str.4 = [4 x i8] c"may\00"
@.str.5 = [4 x i8] c"jun\00"
@.str.6 = [4 x i8] c"jul\00"
@.str.7 = [4 x i8] c"aug\00"
@.str.8 = [4 x i8] c"sep\00"
@.str.9 = [4 x i8] c"oct\00"
@.str.10 = [4 x i8] c"nov\00"
@.str.11 = [4 x i8] c"dec\00"
@__const.main.monthstr = [12 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i32 0, i32 0)]
@.str.12 = [46 x i8] c"Not correct number of commandline arguments \0A\00"
@EXIT_FAILURE = global i32 0
@.str.13 = [5 x i8] c"%s \0A\00"
@.str.14 = [5 x i8] c"%d \0A\00"
@.str.15 = [2 x i8] c"r\00"
@.str.16 = [22 x i8] c"Cannot open file %s \0A\00"
@.str.17 = [2 x i8] c"w\00"
@.str.18 = [3 x i8] c"%s\00"
@EOF = global i64 0
@.str.19 = [7 x i8] c"%4.2f \00"
@.str.20 = [2 x i8] c"\0A\00"
@.str.21 = [10 x i8] c"year %d \0A\00"
define void @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca [400 x i8]
%11 = alloca [400 x i8]
%12 = alloca [400 x i8]
%13 = alloca [400 x i8]
%14 = alloca [400 x i8]
%15 = alloca [400 x i8]
%16 = alloca [400 x i8]
%17 = alloca [400 x i8]
%18 = alloca [12 x i8*]
%19 = alloca [20 x i8]
%20 = alloca [20 x i8]
%21 = alloca [20 x i8]
%22 = alloca [20 x i8]
%23 = alloca [20 x i8]
%24 = alloca [400 x i8]
%25 = alloca float
%26 = alloca float
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
%33 = bitcast [12 x i8*]* %18 to i8*
%34 = load i32, i32* %3
%35 = icmp slt i32 %34, 8
br i1 %35, label %36, label %40
36: ; preds = %2
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.12, i64 0, i64 0))
%38 = load i32, i32* @EXIT_FAILURE
%39 = call i32 @exit(i32 %38)
unreachable
40: ; preds = %2
%41 = getelementptr inbounds [400 x i8], [400 x i8]* %10, i64 0, i64 0
%42 = load i8**, i8*** %4
%43 = getelementptr inbounds i8*, i8** %42, i64 1
%44 = load i8*, i8** %43
%45 = call i32 @strcpy(i8* %41, i8* %44)
%46 = getelementptr inbounds [400 x i8], [400 x i8]* %10, i64 0, i64 0
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %46)
%48 = getelementptr inbounds [400 x i8], [400 x i8]* %11, i64 0, i64 0
%49 = load i8**, i8*** %4
%50 = getelementptr inbounds i8*, i8** %49, i64 2
%51 = load i8*, i8** %50
%52 = call i32 @strcpy(i8* %48, i8* %51)
%53 = getelementptr inbounds [400 x i8], [400 x i8]* %11, i64 0, i64 0
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %53)
%55 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%56 = load i8**, i8*** %4
%57 = getelementptr inbounds i8*, i8** %56, i64 3
%58 = load i8*, i8** %57
%59 = call i32 @strcpy(i8* %55, i8* %58)
%60 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %60)
%62 = getelementptr inbounds [400 x i8], [400 x i8]* %15, i64 0, i64 0
%63 = load i8**, i8*** %4
%64 = getelementptr inbounds i8*, i8** %63, i64 4
%65 = load i8*, i8** %64
%66 = call i32 @strcpy(i8* %62, i8* %65)
%67 = getelementptr inbounds [400 x i8], [400 x i8]* %15, i64 0, i64 0
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %67)
%69 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 0
%70 = load i8**, i8*** %4
%71 = getelementptr inbounds i8*, i8** %70, i64 5
%72 = load i8*, i8** %71
%73 = call i32 @strcpy(i8* %69, i8* %72)
%74 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 0
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %74)
%76 = getelementptr inbounds [400 x i8], [400 x i8]* %17, i64 0, i64 0
%77 = load i8**, i8*** %4
%78 = getelementptr inbounds i8*, i8** %77, i64 6
%79 = load i8*, i8** %78
%80 = call i32 @strcpy(i8* %76, i8* %79)
%81 = getelementptr inbounds [400 x i8], [400 x i8]* %17, i64 0, i64 0
%82 = call i32 @atoi(i8* %81)
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i32 %82)
%84 = getelementptr inbounds [400 x i8], [400 x i8]* %17, i64 0, i64 0
%85 = call i32 @atoi(i8* %84)
store i32 %85, i32* %27
%86 = getelementptr inbounds [400 x i8], [400 x i8]* %24, i64 0, i64 0
%87 = load i8**, i8*** %4
%88 = getelementptr inbounds i8*, i8** %87, i64 7
%89 = load i8*, i8** %88
%90 = call i32 @strcpy(i8* %86, i8* %89)
%91 = getelementptr inbounds [400 x i8], [400 x i8]* %24, i64 0, i64 0
%92 = call i32 @atoi(i8* %91)
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i32 %92)
%94 = getelementptr inbounds [400 x i8], [400 x i8]* %24, i64 0, i64 0
%95 = call i32 @atoi(i8* %94)
store i32 %95, i32* %28
%96 = getelementptr inbounds [400 x i8], [400 x i8]* %12, i64 0, i64 0
%97 = getelementptr inbounds [400 x i8], [400 x i8]* %11, i64 0, i64 0
%98 = call i32 @strcpy(i8* %96, i8* %97)
%99 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 0
%100 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%101 = call i32 @strcpy(i8* %99, i8* %100)
%102 = getelementptr inbounds [400 x i8], [400 x i8]* %10, i64 0, i64 0
%103 = call i32* @fopen(i8* %102, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
store i32* %103, i32** %5
%104 = icmp eq i32* %103, null
br i1 %104, label %105, label %109
105: ; preds = %40
%106 = getelementptr inbounds [400 x i8], [400 x i8]* %10, i64 0, i64 0
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i8* %106)
%108 = call i32 @exit(i32 0)
unreachable
109: ; preds = %40
%110 = getelementptr inbounds [400 x i8], [400 x i8]* %15, i64 0, i64 0
%111 = call i32* @fopen(i8* %110, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
store i32* %111, i32** %8
%112 = icmp eq i32* %111, null
br i1 %112, label %113, label %117
113: ; preds = %109
%114 = getelementptr inbounds [400 x i8], [400 x i8]* %15, i64 0, i64 0
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i8* %114)
%116 = call i32 @exit(i32 0)
unreachable
117: ; preds = %109
%118 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 0
%119 = call i32* @fopen(i8* %118, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
store i32* %119, i32** %9
%120 = icmp eq i32* %119, null
br i1 %120, label %121, label %125
121: ; preds = %117
%122 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 0
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i8* %122)
%124 = call i32 @exit(i32 0)
unreachable
125: ; preds = %117
%126 = load i32, i32* %28
%127 = add nsw i32 %126, 1
store i32 %127, i32* %28
%128 = load i32, i32* %27
store i32 %128, i32* %32
br label %129
129: ; preds = %281, %125
%130 = load i32, i32* %32
%131 = load i32, i32* %28
%132 = icmp slt i32 %130, %131
br i1 %132, label %133, label %284
133: ; preds = %129
store i32 0, i32* %31
br label %134
134: ; preds = %275, %133
%135 = load i32, i32* %31
%136 = icmp slt i32 %135, 12
br i1 %136, label %137, label %278
137: ; preds = %134
%138 = getelementptr inbounds [400 x i8], [400 x i8]* %11, i64 0, i64 0
%139 = getelementptr inbounds [400 x i8], [400 x i8]* %12, i64 0, i64 0
%140 = call i32 @strcpy(i8* %138, i8* %139)
%141 = getelementptr inbounds [400 x i8], [400 x i8]* %11, i64 0, i64 0
%142 = load i32, i32* %31
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [12 x i8*], [12 x i8*]* %18, i64 0, i64 %143
%145 = load i8*, i8** %144
%146 = call i32 @strcat(i8* %141, i8* %145)
%147 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%148 = getelementptr inbounds [400 x i8], [400 x i8]* %14, i64 0, i64 0
%149 = call i32 @strcpy(i8* %147, i8* %148)
%150 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%151 = load i32, i32* %31
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [12 x i8*], [12 x i8*]* %18, i64 0, i64 %152
%154 = load i8*, i8** %153
%155 = call i32 @strcat(i8* %150, i8* %154)
%156 = getelementptr inbounds [400 x i8], [400 x i8]* %11, i64 0, i64 0
%157 = call i32* @fopen(i8* %156, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
store i32* %157, i32** %6
%158 = icmp eq i32* %157, null
br i1 %158, label %159, label %163
159: ; preds = %137
%160 = getelementptr inbounds [400 x i8], [400 x i8]* %11, i64 0, i64 0
%161 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i8* %160)
%162 = call i32 @exit(i32 0)
unreachable
163: ; preds = %137
%164 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%165 = call i32* @fopen(i8* %164, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
store i32* %165, i32** %7
%166 = icmp eq i32* %165, null
br i1 %166, label %167, label %171
167: ; preds = %163
%168 = getelementptr inbounds [400 x i8], [400 x i8]* %13, i64 0, i64 0
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i8* %168)
%170 = call i32 @exit(i32 0)
unreachable
171: ; preds = %163
store i32 0, i32* %30
br label %172
172: ; preds = %267, %171
%173 = load i32, i32* %30
%174 = load i32, i32* %32
%175 = load i32, i32* %31
%176 = call i32 @timesteps(i32 %174, i32 %175)
%177 = icmp slt i32 %173, %176
br i1 %177, label %178, label %270
178: ; preds = %172
store i32 0, i32* %29
br label %179
179: ; preds = %186, %178
%180 = load i32, i32* %29
%181 = icmp slt i32 %180, 12
br i1 %181, label %182, label %189
182: ; preds = %179
%183 = load i32*, i32** %6
%184 = getelementptr inbounds [20 x i8], [20 x i8]* %20, i64 0, i64 0
%185 = call i64 @fscanf(i32* %183, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %184)
br label %186
186: ; preds = %182
%187 = load i32, i32* %29
%188 = add nsw i32 %187, 1
store i32 %188, i32* %29
br label %179
189: ; preds = %179
store i32 0, i32* %29
br label %190
190: ; preds = %200, %189
%191 = load i32, i32* %29
%192 = icmp slt i32 %191, 12
br i1 %192, label %193, label %203
193: ; preds = %190
%194 = load i32*, i32** %5
%195 = getelementptr inbounds [20 x i8], [20 x i8]* %20, i64 0, i64 0
%196 = call i64 @fscanf(i32* %194, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %195)
%197 = getelementptr inbounds [20 x i8], [20 x i8]* %19, i64 0, i64 0
%198 = getelementptr inbounds [20 x i8], [20 x i8]* %20, i64 0, i64 0
%199 = call i32 @strcpy(i8* %197, i8* %198)
br label %200
200: ; preds = %193
%201 = load i32, i32* %29
%202 = add nsw i32 %201, 1
store i32 %202, i32* %29
br label %190
203: ; preds = %190
store i32 0, i32* %29
br label %204
204: ; preds = %211, %203
%205 = load i32, i32* %29
%206 = icmp slt i32 %205, 12
br i1 %206, label %207, label %214
207: ; preds = %204
%208 = load i32*, i32** %7
%209 = getelementptr inbounds [20 x i8], [20 x i8]* %20, i64 0, i64 0
%210 = call i64 @fscanf(i32* %208, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %209)
br label %211
211: ; preds = %207
%212 = load i32, i32* %29
%213 = add nsw i32 %212, 1
store i32 %213, i32* %29
br label %204
214: ; preds = %204
br label %215
215: ; preds = %257, %214
%216 = load i32*, i32** %5
%217 = getelementptr inbounds [20 x i8], [20 x i8]* %20, i64 0, i64 0
%218 = call i64 @fscanf(i32* %216, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %217)
%219 = load i64, i64* @EOF
%220 = icmp ne i64 %218, %219
br i1 %220, label %221, label %258
221: ; preds = %215
%222 = load i32*, i32** %6
%223 = getelementptr inbounds [20 x i8], [20 x i8]* %21, i64 0, i64 0
%224 = call i64 @fscanf(i32* %222, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %223)
%225 = load i32*, i32** %7
%226 = getelementptr inbounds [20 x i8], [20 x i8]* %22, i64 0, i64 0
%227 = call i64 @fscanf(i32* %225, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %226)
%228 = getelementptr inbounds [20 x i8], [20 x i8]* %22, i64 0, i64 0
%229 = call float @atof(i8* %228)
store float %229, float* %26
%230 = getelementptr inbounds [20 x i8], [20 x i8]* %22, i64 0, i64 0
%231 = call float @atof(i8* %230)
%232 = fpext float %231 to double
%233 = fcmp olt double %232, 1.000000e-02
br i1 %233, label %234, label %237
234: ; preds = %221
%235 = getelementptr inbounds [20 x i8], [20 x i8]* %21, i64 0, i64 0
%236 = call float @atof(i8* %235)
store float %236, float* %26
br label %237
237: ; preds = %234, %221
%238 = getelementptr inbounds [20 x i8], [20 x i8]* %20, i64 0, i64 0
%239 = call float @atof(i8* %238)
%240 = fpext float %239 to double
%241 = fcmp ogt double %240, 1.000000e-03
br i1 %241, label %242, label %257
242: ; preds = %237
%243 = load i32*, i32** %8
%244 = getelementptr inbounds [20 x i8], [20 x i8]* %23, i64 0, i64 0
%245 = call i64 @fscanf(i32* %243, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %244)
%246 = getelementptr inbounds [20 x i8], [20 x i8]* %23, i64 0, i64 0
%247 = call float @atof(i8* %246)
%248 = load float, float* %26
%249 = fadd float %247, %248
%250 = getelementptr inbounds [20 x i8], [20 x i8]* %21, i64 0, i64 0
%251 = call float @atof(i8* %250)
%252 = fsub float %249, %251
store float %252, float* %25
%253 = load i32*, i32** %9
%254 = load float, float* %25
%255 = fpext float %254 to double
%256 = call i32 (i32*, i8*, ...) @fprintf(i32* %253, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), double %255)
br label %257
257: ; preds = %242, %237
br label %215
258: ; preds = %215
%259 = load i32*, i32** %9
%260 = call i32 (i32*, i8*, ...) @fprintf(i32* %259, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
%261 = load i32*, i32** %5
%262 = call i32 @rewind(i32* %261)
%263 = load i32*, i32** %6
%264 = call i32 @rewind(i32* %263)
%265 = load i32*, i32** %7
%266 = call i32 @rewind(i32* %265)
br label %267
267: ; preds = %258
%268 = load i32, i32* %30
%269 = add nsw i32 %268, 1
store i32 %269, i32* %30
br label %172
270: ; preds = %172
%271 = load i32*, i32** %6
%272 = call i32 @fclose(i32* %271)
%273 = load i32*, i32** %7
%274 = call i32 @fclose(i32* %273)
br label %275
275: ; preds = %270
%276 = load i32, i32* %31
%277 = add nsw i32 %276, 1
store i32 %277, i32* %31
br label %134
278: ; preds = %134
%279 = load i32, i32* %32
%280 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i64 0, i64 0), i32 %279)
br label %281
281: ; preds = %278
%282 = load i32, i32* %32
%283 = add nsw i32 %282, 1
store i32 %283, i32* %32
br label %129
284: ; preds = %129
%285 = load i32*, i32** %9
%286 = call i32 @fclose(i32* %285)
%287 = load i32*, i32** %8
%288 = call i32 @fclose(i32* %287)
%289 = load i32*, i32** %5
%290 = call i32 @fclose(i32* %289)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"jan\00"
@.str.1 = [4 x i8] c"feb\00"
@.str.2 = [4 x i8] c"mar\00"
@.str.3 = [4 x i8] c"apr\00"
@.str.4 = [4 x i8] c"may\00"
@.str.5 = [4 x i8] c"jun\00"
@.str.6 = [4 x i8] c"jul\00"
@.str.7 = [4 x i8] c"aug\00"
@.str.8 = [4 x i8] c"sep\00"
@.str.9 = [4 x i8] c"oct\00"
@.str.10 = [4 x i8] c"nov\00"
@.str.11 = [4 x i8] c"dec\00"
@__const.main.monthstr = [12 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i32 0, i32 0)]
@EXIT_FAILURE = global i32 0
@.str.13 = [5 x i8] c"%s \0A\00"
@.str.14 = [5 x i8] c"%d \0A\00"
@.str.15 = [2 x i8] c"r\00"
@.str.16 = [22 x i8] c"Cannot open file %s \0A\00"
@.str.17 = [2 x i8] c"w\00"
@.str.18 = [3 x i8] c"%s\00"
@EOF = global i64 0
@.str.19 = [7 x i8] c"%4.2f \00"
@.str.21 = [10 x i8] c"year %d \0A\00"
@str = [45 x i8] c"Not correct number of commandline arguments \00"
define void @main(i32 %0, i8** nocapture %1) {
%3 = alloca [400 x i8]
%4 = alloca [400 x i8]
%5 = alloca [400 x i8]
%6 = alloca [400 x i8]
%7 = alloca [400 x i8]
%8 = alloca [400 x i8]
%9 = alloca [400 x i8]
%10 = alloca [400 x i8]
%11 = alloca [20 x i8]
%12 = alloca [20 x i8]
%13 = alloca [20 x i8]
%14 = alloca [20 x i8]
%15 = alloca [20 x i8]
%16 = alloca [400 x i8]
%17 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 0
%18 = getelementptr inbounds [400 x i8], [400 x i8]* %4, i64 0, i64 0
%19 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%20 = getelementptr inbounds [400 x i8], [400 x i8]* %6, i64 0, i64 0
%21 = getelementptr inbounds [400 x i8], [400 x i8]* %7, i64 0, i64 0
%22 = getelementptr inbounds [400 x i8], [400 x i8]* %8, i64 0, i64 0
%23 = getelementptr inbounds [400 x i8], [400 x i8]* %9, i64 0, i64 0
%24 = getelementptr inbounds [400 x i8], [400 x i8]* %10, i64 0, i64 0
%25 = getelementptr inbounds [20 x i8], [20 x i8]* %11, i64 0, i64 0
%26 = getelementptr inbounds [20 x i8], [20 x i8]* %12, i64 0, i64 0
%27 = getelementptr inbounds [20 x i8], [20 x i8]* %13, i64 0, i64 0
%28 = getelementptr inbounds [20 x i8], [20 x i8]* %14, i64 0, i64 0
%29 = getelementptr inbounds [20 x i8], [20 x i8]* %15, i64 0, i64 0
%30 = getelementptr inbounds [400 x i8], [400 x i8]* %16, i64 0, i64 0
%31 = icmp slt i32 %0, 8
br i1 %31, label %32, label %36
32: ; preds = %2
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str, i64 0, i64 0))
%34 = load i32, i32* @EXIT_FAILURE
%35 = tail call i32 @exit(i32 %34)
unreachable
36: ; preds = %2
%37 = getelementptr inbounds i8*, i8** %1, i64 1
%38 = load i8*, i8** %37
%39 = call i32 @strcpy(i8* %17, i8* %38)
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %17)
%41 = getelementptr inbounds i8*, i8** %1, i64 2
%42 = load i8*, i8** %41
%43 = call i32 @strcpy(i8* %18, i8* %42)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %18)
%45 = getelementptr inbounds i8*, i8** %1, i64 3
%46 = load i8*, i8** %45
%47 = call i32 @strcpy(i8* %20, i8* %46)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %20)
%49 = getelementptr inbounds i8*, i8** %1, i64 4
%50 = load i8*, i8** %49
%51 = call i32 @strcpy(i8* %22, i8* %50)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %22)
%53 = getelementptr inbounds i8*, i8** %1, i64 5
%54 = load i8*, i8** %53
%55 = call i32 @strcpy(i8* %23, i8* %54)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* %23)
%57 = getelementptr inbounds i8*, i8** %1, i64 6
%58 = load i8*, i8** %57
%59 = call i32 @strcpy(i8* %24, i8* %58)
%60 = call i32 @atoi(i8* %24)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i32 %60)
%62 = call i32 @atoi(i8* %24)
%63 = getelementptr inbounds i8*, i8** %1, i64 7
%64 = load i8*, i8** %63
%65 = call i32 @strcpy(i8* %30, i8* %64)
%66 = call i32 @atoi(i8* %30)
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i32 %66)
%68 = call i32 @atoi(i8* %30)
%69 = call i32 @strcpy(i8* %19, i8* %18)
%70 = call i32 @strcpy(i8* %21, i8* %20)
%71 = call i32* @fopen(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%72 = icmp eq i32* %71, null
br i1 %72, label %73, label %76
73: ; preds = %36
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i8* %17)
%75 = call i32 @exit(i32 0)
unreachable
76: ; preds = %36
%77 = call i32* @fopen(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%78 = icmp eq i32* %77, null
br i1 %78, label %79, label %82
79: ; preds = %76
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i8* %22)
%81 = call i32 @exit(i32 0)
unreachable
82: ; preds = %76
%83 = call i32* @fopen(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%84 = icmp eq i32* %83, null
br i1 %84, label %87, label %85
85: ; preds = %82
%86 = icmp sgt i32 %62, %68
br i1 %86, label %210, label %90
87: ; preds = %82
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i8* %23)
%89 = call i32 @exit(i32 0)
unreachable
90: ; preds = %85, %206
%91 = phi i32 [ %208, %206 ], [ %62, %85 ]
br label %92
92: ; preds = %90, %201
%93 = phi i64 [ 0, %90 ], [ %204, %201 ]
%94 = call i32 @strcpy(i8* %18, i8* %19)
%95 = getelementptr inbounds [12 x i8*], [12 x i8*]* @__const.main.monthstr, i64 0, i64 %93
%96 = load i8*, i8** %95
%97 = call i32 @strcat(i8* %18, i8* %96)
%98 = call i32 @strcpy(i8* %20, i8* %21)
%99 = call i32 @strcat(i8* %20, i8* %96)
%100 = call i32* @fopen(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%101 = icmp eq i32* %100, null
br i1 %101, label %102, label %105
102: ; preds = %92
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i8* %18)
%104 = call i32 @exit(i32 0)
unreachable
105: ; preds = %92
%106 = call i32* @fopen(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%107 = icmp eq i32* %106, null
br i1 %107, label %112, label %108
108: ; preds = %105
%109 = trunc i64 %93 to i32
%110 = call i32 @timesteps(i32 %91, i32 %109)
%111 = icmp sgt i32 %110, 0
br i1 %111, label %115, label %201
112: ; preds = %105
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i8* %20)
%114 = call i32 @exit(i32 0)
unreachable
115: ; preds = %108, %193
%116 = phi i32 [ %198, %193 ], [ 0, %108 ]
%117 = call i64 @fscanf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%118 = call i64 @fscanf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%119 = call i64 @fscanf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%120 = call i64 @fscanf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%121 = call i64 @fscanf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%122 = call i64 @fscanf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%123 = call i64 @fscanf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%124 = call i64 @fscanf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%125 = call i64 @fscanf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%126 = call i64 @fscanf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%127 = call i64 @fscanf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%128 = call i64 @fscanf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%129 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%130 = call i32 @strcpy(i8* %25, i8* %26)
%131 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%132 = call i32 @strcpy(i8* %25, i8* %26)
%133 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%134 = call i32 @strcpy(i8* %25, i8* %26)
%135 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%136 = call i32 @strcpy(i8* %25, i8* %26)
%137 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%138 = call i32 @strcpy(i8* %25, i8* %26)
%139 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%140 = call i32 @strcpy(i8* %25, i8* %26)
%141 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%142 = call i32 @strcpy(i8* %25, i8* %26)
%143 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%144 = call i32 @strcpy(i8* %25, i8* %26)
%145 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%146 = call i32 @strcpy(i8* %25, i8* %26)
%147 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%148 = call i32 @strcpy(i8* %25, i8* %26)
%149 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%150 = call i32 @strcpy(i8* %25, i8* %26)
%151 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%152 = call i32 @strcpy(i8* %25, i8* %26)
%153 = call i64 @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%154 = call i64 @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%155 = call i64 @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%156 = call i64 @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%157 = call i64 @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%158 = call i64 @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%159 = call i64 @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%160 = call i64 @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%161 = call i64 @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%162 = call i64 @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%163 = call i64 @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%164 = call i64 @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%165 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%166 = load i64, i64* @EOF
%167 = icmp eq i64 %165, %166
br i1 %167, label %193, label %168
168: ; preds = %115, %189
%169 = call i64 @fscanf(i32* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %27)
%170 = call i64 @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %28)
%171 = call float @atof(i8* %28)
%172 = fpext float %171 to double
%173 = fcmp olt double %172, 1.000000e-02
br i1 %173, label %174, label %176
174: ; preds = %168
%175 = call float @atof(i8* %27)
br label %176
176: ; preds = %174, %168
%177 = phi float [ %175, %174 ], [ %171, %168 ]
%178 = call float @atof(i8* %26)
%179 = fpext float %178 to double
%180 = fcmp ogt double %179, 1.000000e-03
br i1 %180, label %181, label %189
181: ; preds = %176
%182 = call i64 @fscanf(i32* %77, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %29)
%183 = call float @atof(i8* %29)
%184 = fadd float %177, %183
%185 = call float @atof(i8* %27)
%186 = fsub float %184, %185
%187 = fpext float %186 to double
%188 = call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), double %187)
br label %189
189: ; preds = %181, %176
%190 = call i64 @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* %26)
%191 = load i64, i64* @EOF
%192 = icmp eq i64 %190, %191
br i1 %192, label %193, label %168
193: ; preds = %189, %115
%194 = call i32 @fputc(i32 10, i32* %83)
%195 = call i32 @rewind(i32* %71)
%196 = call i32 @rewind(i32* %100)
%197 = call i32 @rewind(i32* %106)
%198 = add nuw nsw i32 %116, 1
%199 = call i32 @timesteps(i32 %91, i32 %109)
%200 = icmp slt i32 %198, %199
br i1 %200, label %115, label %201
201: ; preds = %193, %108
%202 = call i32 @fclose(i32* %100)
%203 = call i32 @fclose(i32* %106)
%204 = add nuw nsw i64 %93, 1
%205 = icmp eq i64 %204, 12
br i1 %205, label %206, label %92
206: ; preds = %201
%207 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i64 0, i64 0), i32 %91)
%208 = add i32 %91, 1
%209 = icmp eq i32 %91, %68
br i1 %209, label %210, label %90
210: ; preds = %206, %85
%211 = call i32 @fclose(i32* %83)
%212 = call i32 @fclose(i32* %77)
%213 = call i32 @fclose(i32* %71)
ret void
}