#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 */
int /*<<< orphan*/ EXIT_FAILURE;
float atof(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
int one_cell(int **, float, float, float, float, float, float, float);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sscanf(char *, char *, char **, ...);
int /*<<< orphan*/ strcpy(char *, char *);
void main(int argc, char **argv) {
  FILE *fpmask, *fpprism, *fpout;
  char maskfile[400];
  char prism_in[400];
  char out[400];
  char outfile[400];
  char str1[40];
  char void_nr_mask[10];
  char cdum[400];
  int all_data[(int)(718)][(int)(1465)];
  float lat_mask, long_mask, res_mask, north_prsm, west_prsm, res_prsm,
      north_mask;
  int rows_mask, cols_mask, rows_prsm, cols_prsm;
  int i, k, j;
  int rows, cols;
  float elevation, latitude, longitude, void_nr, high, low;
  if (argc < 4) {
    printf("Not correct number of commandline arguments \n");
    exit(EXIT_FAILURE);
  }
  strcpy(maskfile, argv[1]);
  printf("%s\n", maskfile);
  strcpy(prism_in, argv[2]);
  printf("%s\n", prism_in);
  strcpy(outfile, argv[3]);
  printf("%s\n", outfile);
  if ((fpmask = fopen(maskfile, "r")) == NULL) {
    printf("Cannot open file %s \n", maskfile);
    exit(0);
  }
  if ((fpprism = fopen(prism_in, "r")) == NULL) {
    printf("Cannot open file %s \n", prism_in);
    exit(0);
  }
  fpout = fopen(outfile, "w");
  fgets(str1, 40, fpmask);
  sscanf(str1, "%s %d", &cdum, &cols_mask);
  fprintf(fpout, "%s", str1);
  fgets(str1, 40, fpmask);
  sscanf(str1, "%s %d", &cdum, &rows_mask);
  fprintf(fpout, "%s", str1);
  fgets(str1, 40, fpmask);
  sscanf(str1, "%s %f", &cdum, &long_mask);
  fprintf(fpout, "%s", str1);
  long_mask *= -1.0;
  fgets(str1, 40, fpmask);
  sscanf(str1, "%s %f", &cdum, &lat_mask);
  fprintf(fpout, "%s", str1);
  fgets(str1, 40, fpmask);
  sscanf(str1, "%s %f", &cdum, &res_mask);
  fprintf(fpout, "%s", str1);
  fgets(str1, 40, fpmask);
  sscanf(str1, "%s %s", &cdum, &void_nr_mask);
  fprintf(fpout, "%s", str1);
  void_nr = atof(void_nr_mask);
  low = void_nr - 0.001;
  high = void_nr + 0.001;
  north_prsm = (float)(53.979166);
  west_prsm = (float)(126.020833);
  rows_prsm = (int)(718);
  cols_prsm = (int)(1465);
  res_prsm = (float)(0.041666);
  printf("north_prsm = %4.5f \n", north_prsm);
  printf("west_prsm = %4.5f \n", west_prsm);
  printf("rows_prsm = %d \n", rows_prsm);
  printf("cols_prsm = %d \n", cols_prsm);
  printf("res_prsm  = %4.5f \n", res_prsm);
  printf("res_mask %f \n", res_mask);
  north_mask = lat_mask + (res_mask * rows_mask) - (res_mask / 2);
  printf("north_mask = %4.4f \n", north_mask);
  long_mask = long_mask - (res_mask / 2);
  printf("long_mask = %4.4f\n", long_mask);
  for (i = 0; i < 12; i++)
    fscanf(fpprism, "%s", &str1);
  for (k = 0; k < (int)(718); k++) {
    for (i = 0; i < (int)(1465); i++)
      fscanf(fpprism, "%d", &all_data[k][i]);
  }
  latitude = north_mask;
  longitude = long_mask;
  for (j = 0; j < rows_mask; j++) {
    for (i = 0; i < cols_mask; i++) {
      fscanf(fpmask, "%f", &elevation);
      if (elevation > high || elevation < low) {
        printf("%d ", one_cell(all_data, res_mask, res_prsm, latitude,
                               longitude, north_prsm, west_prsm, void_nr));
        fprintf(fpout, "%d ",
                one_cell(all_data, res_mask, res_prsm, latitude, longitude,
                         north_prsm, west_prsm, void_nr));
      } else {
        fprintf(fpout, "%.0f ", void_nr);
        printf("%.0f ", void_nr);
      }
      longitude = longitude - (res_mask);
    }
    longitude = long_mask;
    latitude = latitude - (res_mask);
    printf("\n");
    fprintf(fpout, "\n");
  }
  fclose(fpout);
  fclose(fpprism);
  fclose(fpmask);
  printf("NORTH_P  %4.6f\n", (53.979166));
  printf("WEST_P   %4.6f\n", (126.020833));
  printf("ROWS_P   %d\n", (718));
  printf("COLS_P   %d\n", (1465));
  printf("RES_P    %4.6f\n", (0.041666));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x403c20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x4(%rbp)
jge    11e8 <main+0x38>
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2dff(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
lea    -0x1c0(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x1c0(%rbp),%rsi
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x350(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x350(%rbp),%rsi
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x670(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x670(%rbp),%rsi
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x1c0(%rbp),%rdi
lea    0xdf9(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    12a0 <main+0xf0>
lea    -0x1c0(%rbp),%rsi
lea    0xdda(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
lea    -0x350(%rbp),%rdi
lea    0xdbc(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    12dd <main+0x12d>
lea    -0x350(%rbp),%rsi
lea    0xd9d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
lea    -0x670(%rbp),%rdi
lea    0xd97(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x28(%rbp)
lea    -0x6a0(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x28,%esi
call   1090 <fgets@plt>
lea    -0x6a0(%rbp),%rdi
lea    -0x840(%rbp),%rdx
lea    0xd66(%rip),%rsi
lea    -0x403be4(%rbp),%rcx
mov    $0x0,%al
call   10b0 <sscanf@plt>
mov    -0x28(%rbp),%rdi
lea    -0x6a0(%rbp),%rdx
lea    0xd55(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
lea    -0x6a0(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x28,%esi
call   1090 <fgets@plt>
lea    -0x6a0(%rbp),%rdi
lea    -0x840(%rbp),%rdx
lea    0xd15(%rip),%rsi
lea    -0x403be0(%rbp),%rcx
mov    $0x0,%al
call   10b0 <sscanf@plt>
mov    -0x28(%rbp),%rdi
lea    -0x6a0(%rbp),%rdx
lea    0xd04(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
lea    -0x6a0(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x28,%esi
call   1090 <fgets@plt>
lea    -0x6a0(%rbp),%rdi
lea    -0x840(%rbp),%rdx
lea    0xcca(%rip),%rsi
lea    -0x403bc8(%rbp),%rcx
mov    $0x0,%al
call   10b0 <sscanf@plt>
mov    -0x28(%rbp),%rdi
lea    -0x6a0(%rbp),%rdx
lea    0xcb3(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
movss  -0x403bc8(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xc1d(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x403bc8(%rbp)
ff
lea    -0x6a0(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x28,%esi
call   1090 <fgets@plt>
lea    -0x6a0(%rbp),%rdi
lea    -0x840(%rbp),%rdx
lea    0xc55(%rip),%rsi
lea    -0x403bc4(%rbp),%rcx
mov    $0x0,%al
call   10b0 <sscanf@plt>
mov    -0x28(%rbp),%rdi
lea    -0x6a0(%rbp),%rdx
lea    0xc3e(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
lea    -0x6a0(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x28,%esi
call   1090 <fgets@plt>
lea    -0x6a0(%rbp),%rdi
lea    -0x840(%rbp),%rdx
lea    0xc04(%rip),%rsi
lea    -0x403bcc(%rbp),%rcx
mov    $0x0,%al
call   10b0 <sscanf@plt>
mov    -0x28(%rbp),%rdi
lea    -0x6a0(%rbp),%rdx
lea    0xbed(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
lea    -0x6a0(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x28,%esi
call   1090 <fgets@plt>
lea    -0x6a0(%rbp),%rdi
lea    -0x840(%rbp),%rdx
lea    0xbb9(%rip),%rsi
lea    -0x6aa(%rbp),%rcx
mov    $0x0,%al
call   10b0 <sscanf@plt>
mov    -0x28(%rbp),%rdi
lea    -0x6a0(%rbp),%rdx
lea    0xb9c(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
lea    -0x6aa(%rbp),%rdi
call   1040 <atof@plt>
movss  %xmm0,-0x403c10(%rbp)
ff
movss  -0x403c10(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xaea(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x403c18(%rbp)
ff
movss  -0x403c10(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xac6(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x403c14(%rbp)
ff
movss  0xaaa(%rip),%xmm0
movss  %xmm0,-0x403bd0(%rbp)
ff
movss  0xa96(%rip),%xmm0
movss  %xmm0,-0x403bd4(%rbp)
ff
movl   $0x2ce,-0x403be8(%rbp)
movl   $0x5b9,-0x403bec(%rbp)
movss  0xa6e(%rip),%xmm0
movss  %xmm0,-0x403bd8(%rbp)
ff
movss  -0x403bd0(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xae5(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  -0x403bd4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xae0(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    -0x403be8(%rbp),%esi
lea    0xae0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x403bec(%rbp),%esi
lea    0xadd(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movss  -0x403bd8(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xad4(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  -0x403bcc(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xace(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  -0x403bc4(%rbp),%xmm1
ff
movss  -0x403bcc(%rbp),%xmm0
ff
cvtsi2ssl -0x403be0(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x403bcc(%rbp),%xmm1
ff
movss  0x9a2(%rip),%xmm2
divss  %xmm2,%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x403bdc(%rbp)
ff
movss  -0x403bdc(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa82(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  -0x403bc8(%rbp),%xmm0
ff
movss  -0x403bcc(%rbp),%xmm1
ff
movss  0x960(%rip),%xmm2
divss  %xmm2,%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x403bc8(%rbp)
ff
movss  -0x403bc8(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa55(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movl   $0x0,-0x403bf0(%rbp)
cmpl   $0xc,-0x403bf0(%rbp)
jge    170e <main+0x55e>
mov    -0x20(%rbp),%rdi
lea    0x9a7(%rip),%rsi
lea    -0x6a0(%rbp),%rdx
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x403bf0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x403bf0(%rbp)
jmp    16d4 <main+0x524>
movl   $0x0,-0x403bf4(%rbp)
cmpl   $0x2ce,-0x403bf4(%rbp)
jge    17a7 <main+0x5f7>
movl   $0x0,-0x403bf0(%rbp)
cmpl   $0x5b9,-0x403bf0(%rbp)
jge    178e <main+0x5de>
mov    -0x20(%rbp),%rdi
movslq -0x403bf4(%rbp),%rax
lea    -0x403bc0(%rbp),%rdx
imul   $0x16e4,%rax,%rax
add    %rax,%rdx
movslq -0x403bf0(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0x914(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x403bf0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x403bf0(%rbp)
jmp    1732 <main+0x582>
jmp    1793 <main+0x5e3>
mov    -0x403bf4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x403bf4(%rbp)
jmp    1718 <main+0x568>
movss  -0x403bdc(%rbp),%xmm0
ff
movss  %xmm0,-0x403c08(%rbp)
ff
movss  -0x403bc8(%rbp),%xmm0
ff
movss  %xmm0,-0x403c0c(%rbp)
ff
movl   $0x0,-0x403bf8(%rbp)
mov    -0x403bf8(%rbp),%eax
cmp    -0x403be0(%rbp),%eax
jge    19c5 <main+0x815>
movl   $0x0,-0x403bf0(%rbp)
mov    -0x403bf0(%rbp),%eax
cmp    -0x403be4(%rbp),%eax
jge    1969 <main+0x7b9>
mov    -0x18(%rbp),%rdi
lea    0x883(%rip),%rsi
lea    -0x403c04(%rbp),%rdx
mov    $0x0,%al
call   1070 <fscanf@plt>
movss  -0x403c04(%rbp),%xmm0
ff
ucomiss -0x403c14(%rbp),%xmm0
ja     1846 <main+0x696>
movss  -0x403c04(%rbp),%xmm1
ff
movss  -0x403c18(%rbp),%xmm0
ff
ucomiss %xmm1,%xmm0
jbe    1905 <main+0x755>
lea    -0x403bc0(%rbp),%rdi
movss  -0x403bcc(%rbp),%xmm0
ff
movss  -0x403bd8(%rbp),%xmm1
ff
movss  -0x403c08(%rbp),%xmm2
ff
movss  -0x403c0c(%rbp),%xmm3
ff
movss  -0x403bd0(%rbp),%xmm4
ff
movss  -0x403bd4(%rbp),%xmm5
ff
movss  -0x403c10(%rbp),%xmm6
ff
call   1080 <one_cell@plt>
mov    %eax,%esi
lea    0x898(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x403c20(%rbp)
lea    -0x403bc0(%rbp),%rdi
movss  -0x403bcc(%rbp),%xmm0
ff
movss  -0x403bd8(%rbp),%xmm1
ff
movss  -0x403c08(%rbp),%xmm2
ff
movss  -0x403c0c(%rbp),%xmm3
ff
movss  -0x403bd0(%rbp),%xmm4
ff
movss  -0x403bd4(%rbp),%xmm5
ff
movss  -0x403c10(%rbp),%xmm6
ff
call   1080 <one_cell@plt>
mov    -0x403c20(%rbp),%rdi
mov    %eax,%edx
lea    0x832(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
jmp    193d <main+0x78d>
mov    -0x28(%rbp),%rdi
movss  -0x403c10(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0x813(%rip),%rsi
mov    $0x1,%al
call   10a0 <fprintf@plt>
movss  -0x403c10(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0x7f9(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  -0x403c0c(%rbp),%xmm0
ff
subss  -0x403bcc(%rbp),%xmm0
ff
movss  %xmm0,-0x403c0c(%rbp)
ff
mov    -0x403bf0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x403bf0(%rbp)
jmp    17ed <main+0x63d>
movss  -0x403bc8(%rbp),%xmm0
ff
movss  %xmm0,-0x403c0c(%rbp)
ff
movss  -0x403c08(%rbp),%xmm0
ff
subss  -0x403bcc(%rbp),%xmm0
ff
movss  %xmm0,-0x403c08(%rbp)
ff
lea    0x747(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x28(%rbp),%rdi
lea    0x735(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0x403bf8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x403bf8(%rbp)
jmp    17d1 <main+0x621>
mov    -0x28(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
lea    0x74e(%rip),%rdi
movsd  0x641(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
lea    0x748(%rip),%rdi
movsd  0x623(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
lea    0x742(%rip),%rdi
mov    $0x2ce,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x73c(%rip),%rdi
mov    $0x5b9,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x736(%rip),%rdi
movsd  0x5df(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
add    $0x403c20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x403a58,%rsp
cmp    $0x3,%edi
jle    18c8 <main+0x6d8>
mov    %rsi,%rbp
mov    0x8(%rsi),%rsi
lea    0x3c0(%rsp),%r14
mov    %r14,%rdi
call   1040 <strcpy@plt>
mov    %r14,%rdi
call   1050 <puts@plt>
mov    0x10(%rbp),%rsi
lea    0xa0(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
call   1050 <puts@plt>
mov    0x18(%rbp),%rsi
lea    0x230(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
call   1050 <puts@plt>
lea    0xdf8(%rip),%rsi
mov    %r14,%rdi
call   1100 <fopen@plt>
mov    %rax,0x40(%rsp)
test   %rax,%rax
je     18e2 <main+0x6f2>
lea    0xddb(%rip),%rsi
lea    0xa0(%rsp),%rdi
call   1100 <fopen@plt>
test   %rax,%rax
je     18f3 <main+0x703>
mov    %rax,%r13
lea    0xdd3(%rip),%rsi
lea    0x230(%rsp),%rdi
call   1100 <fopen@plt>
mov    %rax,%rbp
lea    0x70(%rsp),%r12
mov    %r12,%rdi
mov    $0x28,%esi
mov    0x40(%rsp),%rbx
mov    %rbx,%rdx
call   10d0 <fgets@plt>
lea    0xda4(%rip),%r15
lea    0x550(%rsp),%r14
lea    0x2c(%rsp),%rcx
mov    %r12,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   10f0 <sscanf@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
call   1090 <fputs@plt>
mov    %r12,%rdi
mov    $0x28,%esi
mov    %rbx,%rdx
call   10d0 <fgets@plt>
lea    0x24(%rsp),%rcx
mov    %r12,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   10f0 <sscanf@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
call   1090 <fputs@plt>
mov    %r12,%rdi
mov    $0x28,%esi
mov    %rbx,%rdx
call   10d0 <fgets@plt>
lea    0xd3b(%rip),%r15
lea    0x10(%rsp),%rcx
mov    %r12,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   10f0 <sscanf@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
call   1090 <fputs@plt>
movss  0x10(%rsp),%xmm0
xorps  0xc8e(%rip),%xmm0
movss  %xmm0,0x10(%rsp)
mov    %r12,%rdi
mov    $0x28,%esi
mov    %rbx,%rdx
call   10d0 <fgets@plt>
lea    0x54(%rsp),%rcx
mov    %r12,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   10f0 <sscanf@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
call   1090 <fputs@plt>
mov    %r12,%rdi
mov    $0x28,%esi
mov    %rbx,%rdx
call   10d0 <fgets@plt>
lea    0xc(%rsp),%rcx
mov    %r12,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   10f0 <sscanf@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
call   1090 <fputs@plt>
mov    %r12,%rdi
mov    $0x28,%esi
mov    %rbx,%rdx
call   10d0 <fgets@plt>
lea    0xc97(%rip),%rsi
lea    0x66(%rsp),%rbx
mov    %r12,%rdi
mov    %r14,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   10f0 <sscanf@plt>
mov    %r12,%rdi
mov    %rbp,0x30(%rsp)
mov    %rbp,%rsi
call   1090 <fputs@plt>
mov    %rbx,%rdi
call   1060 <atof@plt>
movss  %xmm0,0x28(%rsp)
cvtss2sd %xmm0,%xmm0
movsd  0xbe2(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0xbd8(%rip),%xmm1
movsd  %xmm0,0x58(%rsp)
addsd  %xmm0,%xmm1
movsd  %xmm1,0x38(%rsp)
lea    0xc35(%rip),%rdi
movsd  0xbc1(%rip),%xmm0
mov    $0x1,%al
call   1080 <printf@plt>
lea    0xc34(%rip),%rdi
movsd  0xbb3(%rip),%xmm0
mov    $0x1,%al
call   1080 <printf@plt>
lea    0xc32(%rip),%rdi
mov    $0x2ce,%esi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xc30(%rip),%rdi
mov    $0x5b9,%esi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xc2e(%rip),%rdi
movsd  0xb7f(%rip),%xmm0
mov    $0x1,%al
call   1080 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc22(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
xorps  %xmm1,%xmm1
cvtsi2ssl 0x24(%rsp),%xmm1
movss  0xc(%rsp),%xmm0
mulss  %xmm0,%xmm1
addss  0x54(%rsp),%xmm1
mulss  0xb5f(%rip),%xmm0
subss  %xmm0,%xmm1
movss  %xmm1,0x14(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xbf0(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movss  0xb38(%rip),%xmm1
mulss  0xc(%rsp),%xmm1
movss  0x10(%rsp),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,0x10(%rsp)
cvtss2sd %xmm0,%xmm0
lea    0xbd5(%rip),%rdi
mov    $0x1,%al
call   1080 <printf@plt>
lea    0xb42(%rip),%rbp
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <fscanf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <fscanf@plt>
movsd  0x18(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x4c(%rsp)
lea    0x6e0(%rsp),%rbx
lea    0xa57(%rip),%r15
xor    %r14d,%r14d
nopl   0x0(%rax)
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    (%rbx,%rbp,1),%rdx
mov    %r13,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   10a0 <fscanf@plt>
add    $0x4,%rbp
cmp    $0x16e4,%rbp
jne    1640 <main+0x450>
add    $0x1,%r14
add    $0x16e4,%rbx
cmp    $0x2ce,%r14
jne    1630 <main+0x440>
cmpl   $0x0,0x24(%rsp)
jle    1832 <main+0x642>
movsd  0x38(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x38(%rsp)
movss  0x10(%rsp),%xmm0
movss  %xmm0,0x18(%rsp)
lea    0x50(%rsp),%rbx
lea    0x6e0(%rsp),%rbp
lea    0xa74(%rip),%r14
lea    0xa71(%rip),%r15
xor    %eax,%eax
jmp    170c <main+0x51c>
nopl   0x0(%rax,%rax,1)
movss  0xc(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
movss  %xmm1,0x18(%rsp)
movss  0x14(%rsp),%xmm1
subss  %xmm0,%xmm1
movss  %xmm1,0x14(%rsp)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
mov    0x30(%rsp),%rsi
call   10c0 <fputc@plt>
mov    0x48(%rsp),%eax
add    $0x1,%eax
cmp    0x24(%rsp),%eax
jge    1832 <main+0x642>
cmpl   $0x0,0x2c(%rsp)
mov    %eax,0x48(%rsp)
jle    16c0 <main+0x4d0>
xor    %r12d,%r12d
jmp    17d2 <main+0x5e2>
nop
movss  0xc(%rsp),%xmm0
mov    %rbp,%rdi
movss  0x923(%rip),%xmm1
movss  0x14(%rsp),%xmm2
movss  0x18(%rsp),%xmm3
movss  0x913(%rip),%xmm4
movss  0x90f(%rip),%xmm5
movss  0x28(%rsp),%xmm6
call   10b0 <one_cell@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <printf@plt>
movss  0xc(%rsp),%xmm0
mov    %rbp,%rdi
movss  0x8df(%rip),%xmm1
movss  0x14(%rsp),%xmm2
movss  0x18(%rsp),%xmm3
movss  0x8cf(%rip),%xmm4
movss  0x8cb(%rip),%xmm5
movss  0x28(%rsp),%xmm6
call   10b0 <one_cell@plt>
mov    0x30(%rsp),%rdi
mov    %r14,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   10e0 <fprintf@plt>
movss  0x18(%rsp),%xmm1
movss  0xc(%rsp),%xmm0
subss  %xmm0,%xmm1
movss  %xmm1,0x18(%rsp)
add    $0x1,%r12d
cmp    0x2c(%rsp),%r12d
jge    16c6 <main+0x4d6>
mov    0x40(%rsp),%rdi
lea    0x8a5(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   10a0 <fscanf@plt>
movss  0x50(%rsp),%xmm0
ucomiss 0x38(%rsp),%xmm0
ja     1720 <main+0x530>
movss  0x4c(%rsp),%xmm1
ucomiss %xmm0,%xmm1
ja     1720 <main+0x530>
mov    0x30(%rsp),%rdi
mov    %r15,%rsi
movsd  0x58(%rsp),%xmm0
mov    $0x1,%al
call   10e0 <fprintf@plt>
mov    %r15,%rdi
movsd  0x58(%rsp),%xmm0
mov    $0x1,%al
call   1080 <printf@plt>
jmp    17ad <main+0x5bd>
mov    0x30(%rsp),%rdi
call   1070 <fclose@plt>
mov    %r13,%rdi
call   1070 <fclose@plt>
mov    0x40(%rsp),%rdi
call   1070 <fclose@plt>
lea    0x8d6(%rip),%rdi
movsd  0x7db(%rip),%xmm0
mov    $0x1,%al
call   1080 <printf@plt>
lea    0x8d0(%rip),%rdi
movsd  0x7cd(%rip),%xmm0
mov    $0x1,%al
call   1080 <printf@plt>
lea    0x8ca(%rip),%rdi
mov    $0x2ce,%esi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x8c4(%rip),%rdi
mov    $0x5b9,%esi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x8be(%rip),%rdi
movsd  0x799(%rip),%xmm0
mov    $0x1,%al
call   1080 <printf@plt>
add    $0x403a58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x8a6(%rip),%rdi
call   1050 <puts@plt>
mov    0x2705(%rip),%rax
mov    (%rax),%edi
call   1110 <exit@plt>
lea    0x779(%rip),%rdi
lea    0x3c0(%rsp),%rsi
jmp    1902 <main+0x712>
lea    0x768(%rip),%rdi
lea    0xa0(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %edi,%edi
call   1110 <exit@plt>

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

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [22 x i8] c"Cannot open file %s \0A\00"
@.str.4 = [2 x i8] c"w\00"
@.str.5 = [6 x i8] c"%s %d\00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [6 x i8] c"%s %f\00"
@.str.8 = [6 x i8] c"%s %s\00"
@.str.9 = [21 x i8] c"north_prsm = %4.5f \0A\00"
@.str.10 = [20 x i8] c"west_prsm = %4.5f \0A\00"
@.str.11 = [17 x i8] c"rows_prsm = %d \0A\00"
@.str.12 = [17 x i8] c"cols_prsm = %d \0A\00"
@.str.13 = [20 x i8] c"res_prsm = %4.5f \0A\00"
@.str.14 = [14 x i8] c"res_mask %f \0A\00"
@.str.15 = [21 x i8] c"north_mask = %4.4f \0A\00"
@.str.16 = [19 x i8] c"long_mask = %4.4f\0A\00"
@.str.17 = [3 x i8] c"%d\00"
@.str.18 = [3 x i8] c"%f\00"
@.str.19 = [4 x i8] c"%d \00"
@.str.20 = [6 x i8] c"%.0f \00"
@.str.22 = [16 x i8] c"NORTH_P %4.6f\0A\00"
@.str.23 = [16 x i8] c"WEST_P %4.6f\0A\00"
@.str.24 = [13 x i8] c"ROWS_P %d\0A\00"
@.str.25 = [13 x i8] c"COLS_P %d\0A\00"
@.str.26 = [16 x i8] c"RES_P %4.6f\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 [40 x i8]
%7 = alloca [10 x i8]
%8 = alloca [400 x i8]
%9 = alloca [718 x [1465 x i32]]
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca i32
%14 = alloca i32
%15 = alloca float
%16 = getelementptr inbounds [400 x i8], [400 x i8]* %3, i64 0, i64 0
%17 = getelementptr inbounds [400 x i8], [400 x i8]* %4, i64 0, i64 0
%18 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%19 = getelementptr inbounds [40 x i8], [40 x i8]* %6, i64 0, i64 0
%20 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%21 = getelementptr inbounds [400 x i8], [400 x i8]* %8, i64 0, i64 0
%22 = bitcast [718 x [1465 x i32]]* %9 to i8*
%23 = bitcast float* %10 to i8*
%24 = bitcast float* %11 to i8*
%25 = bitcast float* %12 to i8*
%26 = bitcast i32* %13 to i8*
%27 = bitcast i32* %14 to i8*
%28 = bitcast float* %15 to i8*
%29 = icmp slt i32 %0, 4
br i1 %29, label %30, label %34
30: ; preds = %2
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str, i64 0, i64 0))
%32 = load i32, i32* @EXIT_FAILURE
%33 = tail call i32 @exit(i32 %32)
unreachable
34: ; preds = %2
%35 = getelementptr inbounds i8*, i8** %1, i64 1
%36 = load i8*, i8** %35
%37 = call i32 @strcpy(i8* %16, i8* %36)
%38 = call i32 @puts(i8* %16)
%39 = getelementptr inbounds i8*, i8** %1, i64 2
%40 = load i8*, i8** %39
%41 = call i32 @strcpy(i8* %17, i8* %40)
%42 = call i32 @puts(i8* %17)
%43 = getelementptr inbounds i8*, i8** %1, i64 3
%44 = load i8*, i8** %43
%45 = call i32 @strcpy(i8* %18, i8* %44)
%46 = call i32 @puts(i8* %18)
%47 = call i32* @fopen(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%48 = icmp eq i32* %47, null
br i1 %48, label %49, label %52
49: ; preds = %34
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* %16)
%51 = call i32 @exit(i32 0)
unreachable
52: ; preds = %34
%53 = call i32* @fopen(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%54 = icmp eq i32* %53, null
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* %17)
%57 = call i32 @exit(i32 0)
unreachable
58: ; preds = %52
%59 = call i32* @fopen(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%60 = call i32 @fgets(i8* %19, i32 40, i32* %47)
%61 = bitcast [400 x i8]* %8 to i8**
%62 = call i32 (i8*, i8*, i8**, ...) @sscanf(i8* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8** %61, i32* %14)
%63 = call i32 @fputs(i8* %19, i32* %59)
%64 = call i32 @fgets(i8* %19, i32 40, i32* %47)
%65 = call i32 (i8*, i8*, i8**, ...) @sscanf(i8* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8** %61, i32* %13)
%66 = call i32 @fputs(i8* %19, i32* %59)
%67 = call i32 @fgets(i8* %19, i32 40, i32* %47)
%68 = call i32 (i8*, i8*, i8**, ...) @sscanf(i8* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8** %61, float* %11)
%69 = call i32 @fputs(i8* %19, i32* %59)
%70 = load float, float* %11
%71 = fneg float %70
store float %71, float* %11
%72 = call i32 @fgets(i8* %19, i32 40, i32* %47)
%73 = call i32 (i8*, i8*, i8**, ...) @sscanf(i8* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8** %61, float* %10)
%74 = call i32 @fputs(i8* %19, i32* %59)
%75 = call i32 @fgets(i8* %19, i32 40, i32* %47)
%76 = call i32 (i8*, i8*, i8**, ...) @sscanf(i8* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8** %61, float* %12)
%77 = call i32 @fputs(i8* %19, i32* %59)
%78 = call i32 @fgets(i8* %19, i32 40, i32* %47)
%79 = call i32 (i8*, i8*, i8**, ...) @sscanf(i8* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8** %61, [10 x i8]* %7)
%80 = call i32 @fputs(i8* %19, i32* %59)
%81 = call float @atof(i8* %20)
%82 = fpext float %81 to double
%83 = fadd double %82, -1.000000e-03
%84 = fadd double %82, 1.000000e-03
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), double 0x404AFD5540000000)
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), double 0x405F815560000000)
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i32 718)
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i32 1465)
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0), double 0x3FA5553F00000000)
%90 = load float, float* %12
%91 = fpext float %90 to double
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), double %91)
%93 = load float, float* %10
%94 = load float, float* %12
%95 = load i32, i32* %13
%96 = sitofp i32 %95 to float
%97 = call float @llvm.fmuladd.f32(float %94, float %96, float %93)
%98 = fmul float %94, 5.000000e-01
%99 = fsub float %97, %98
%100 = fpext float %99 to double
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), double %100)
%102 = load float, float* %11
%103 = load float, float* %12
%104 = fmul float %103, 5.000000e-01
%105 = fsub float %102, %104
store float %105, float* %11
%106 = fpext float %105 to double
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0), double %106)
%108 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), [40 x i8]* %6)
%109 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), [40 x i8]* %6)
%110 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), [40 x i8]* %6)
%111 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), [40 x i8]* %6)
%112 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), [40 x i8]* %6)
%113 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), [40 x i8]* %6)
%114 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), [40 x i8]* %6)
%115 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), [40 x i8]* %6)
%116 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), [40 x i8]* %6)
%117 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), [40 x i8]* %6)
%118 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), [40 x i8]* %6)
%119 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), [40 x i8]* %6)
%120 = fptrunc double %83 to float
br label %121
121: ; preds = %58, %129
%122 = phi i64 [ 0, %58 ], [ %130, %129 ]
br label %123
123: ; preds = %121, %123
%124 = phi i64 [ 0, %121 ], [ %127, %123 ]
%125 = getelementptr inbounds [718 x [1465 x i32]], [718 x [1465 x i32]]* %9, i64 0, i64 %122, i64 %124
%126 = call i32 (i32*, i8*, ...) @fscanf(i32* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i32* %125)
%127 = add nuw nsw i64 %124, 1
%128 = icmp eq i64 %127, 1465
br i1 %128, label %129, label %123
129: ; preds = %123
%130 = add nuw nsw i64 %122, 1
%131 = icmp eq i64 %130, 718
br i1 %131, label %132, label %121
132: ; preds = %129
%133 = fptrunc double %84 to float
%134 = load i32, i32* %13
%135 = icmp sgt i32 %134, 0
br i1 %135, label %136, label %180
136: ; preds = %132
%137 = load float, float* %11
%138 = bitcast [718 x [1465 x i32]]* %9 to i32**
br label %139
139: ; preds = %136, %171
%140 = phi i32 [ 0, %136 ], [ %177, %171 ]
%141 = phi float [ %137, %136 ], [ %173, %171 ]
%142 = phi float [ %99, %136 ], [ %174, %171 ]
%143 = load i32, i32* %14
%144 = icmp sgt i32 %143, 0
br i1 %144, label %147, label %145
145: ; preds = %139
%146 = load float, float* %12
br label %171
147: ; preds = %139, %165
%148 = phi i32 [ %168, %165 ], [ 0, %139 ]
%149 = phi float [ %167, %165 ], [ %141, %139 ]
%150 = call i32 (i32*, i8*, ...) @fscanf(i32* %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), float* %15)
%151 = load float, float* %15
%152 = fcmp ogt float %151, %133
%153 = fcmp olt float %151, %120
%154 = select i1 %152, i1 true, i1 %153
br i1 %154, label %155, label %162
155: ; preds = %147
%156 = load float, float* %12
%157 = call i32 @one_cell(i32** %138, float %156, float 0x3FA5553F00000000, float %142, float %149, float 0x404AFD5540000000, float 0x405F815560000000, float %81)
%158 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0), i32 %157)
%159 = load float, float* %12
%160 = call i32 @one_cell(i32** %138, float %159, float 0x3FA5553F00000000, float %142, float %149, float 0x404AFD5540000000, float 0x405F815560000000, float %81)
%161 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0), i32 %160)
br label %165
162: ; preds = %147
%163 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0), double %82)
%164 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0), double %82)
br label %165
165: ; preds = %162, %155
%166 = load float, float* %12
%167 = fsub float %149, %166
%168 = add nuw nsw i32 %148, 1
%169 = load i32, i32* %14
%170 = icmp slt i32 %168, %169
br i1 %170, label %147, label %171
171: ; preds = %165, %145
%172 = phi float [ %146, %145 ], [ %166, %165 ]
%173 = load float, float* %11
%174 = fsub float %142, %172
%175 = call i32 @putchar(i32 10)
%176 = call i32 @fputc(i32 10, i32* %59)
%177 = add nuw nsw i32 %140, 1
%178 = load i32, i32* %13
%179 = icmp slt i32 %177, %178
br i1 %179, label %139, label %180
180: ; preds = %171, %132
%181 = call i32 @fclose(i32* %59)
%182 = call i32 @fclose(i32* %53)
%183 = call i32 @fclose(i32* %47)
%184 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.22, i64 0, i64 0), double 0x404AFD554FBDAD75)
%185 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.23, i64 0, i64 0), double 0x405F815553EF6B5D)
%186 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.24, i64 0, i64 0), i32 718)
%187 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.25, i64 0, i64 0), i32 1465)
%188 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), double 4.166600e-02)
ret void
}