#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 */
struct timespec {
  long tv_sec;
  long tv_nsec;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ CLOCK_MONOTONIC;
int atoi(char *);
int /*<<< orphan*/ clock_gettime(int /*<<< orphan*/, struct timespec *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, float *);
int getopt(int, char **, char *);
int /*<<< orphan*/ isprint(char);
float *malloc(int);
char *optarg;
scalar_t__ opterr;
char optopt;
int /*<<< orphan*/ printUsage();
int /*<<< orphan*/ snprintf(char *, int, char *, char *, int, int);
int /*<<< orphan*/ *stderr;
int /*<<< orphan*/ stdout;
int main(int argc, char *argv[]) {
  int c;
  int i, j;
  int m, n;
  struct timespec tStart, tEnd;
  unsigned long int tDuration;
  char *in;
  char *out;
  FILE *fpIn = NULL;
  FILE *fpOut = NULL;
  FILE *fpMeas = NULL;
  fprintf(stdout, "checking paramters ...\n");
  opterr = 0;
  while ((c = getopt(argc, argv, "m:n:i:o:")) != -1)
    switch (c) {
    case 'm':
      m = atoi(optarg);
      break;
    case 'n':
      n = atoi(optarg);
      break;
    case 'i':
      in = optarg;
      break;
    case 'o':
      out = optarg;
      break;
    case '?':
      if (optopt == 'm' || optopt == 'n' || optopt == 'i' || optopt == 'o')
        fprintf(stderr, "Option -%c requires an argument.\n", optopt);
      else if (isprint(optopt))
        fprintf(stderr, "Unknown option `-%c´.\n", optopt);
      else
        fprintf(stderr, "Unknown option characer `\\x%x´.\n", optopt);
      printUsage();
    default:
      printUsage();
    }
  fprintf(stdout, "Values: m=%d, n=%d, in=%s, out=%s\n", m, n, in, out);
  fflush(stdout);
  int tmp = (m - 2);
  if (!((tmp > 0) && ((tmp & (tmp - 1)) == 0))) {
    fprintf(stderr,
            "Input-error: m has to be of power of 2 plus 2 (e.g. 6, 10, 18) "
            "but is '%d' instead! (tmp=%d)\n",
            m, tmp);
    exit(1);
  }
  tmp = (n - 2);
  if (!((tmp > 0) && ((tmp & (tmp - 1)) == 0))) {
    fprintf(stderr,
            "Input-error: n has to be of power of 2 plus 2 (e.g. 6, 10, 18) "
            "but is '%d' instead!\n",
            n);
    exit(1);
  }
  float *A = malloc(sizeof(float) * m * n);
  fprintf(stdout, "reading input\n");
  clock_gettime(CLOCK_MONOTONIC, &tStart);
  fpIn = fopen(in, "r");
  if (fpIn == NULL) {
    fprintf(stderr, "Could not open input-file '%s'!\n", in);
    exit(1);
  }
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      if (fscanf(fpIn, "%f;", &A[i * n + j]) == 0) {
        fprintf(stderr, "Error: input does not match expected format!\n");
        exit(1);
      }
    }
  }
  fclose(fpIn);
  fprintf(stdout, "processing values ...\n");
  for (i = 1; i < (m - 1); i++) {
    for (j = 1; j < (n - 1); j++) {
      A[(i - 1) * n + (j - 1)] =
          0.25 * (A[(i - 1) * n + j] + A[i * n + (j - 1)] + A[i * n + (j + 1)] +
                  A[(i + 1) * n + j]);
    }
  }
  fprintf(stdout, "writing results back ...\n");
  fpOut = fopen(out, "w");
  if (fpOut == NULL) {
    fprintf(stderr, "Could not write to output-file '%s'!\n", out);
    exit(1);
  }
  for (i = 0; i < (m - 2); i++) {
    for (j = 0; j < (n - 2); j++) {
      fprintf(fpOut, "%f, ", A[i * n + j]);
    }
    fprintf(fpOut, "\n");
  }
  fclose(fpOut);
  clock_gettime(CLOCK_MONOTONIC, &tEnd);
  tDuration = (tEnd.tv_sec - tStart.tv_sec) * 1000000000L +
              (tEnd.tv_nsec - tStart.tv_nsec);
  fprintf(stdout, "%d x %d - Matrix processed in %lu ns\n", m, n, tDuration);
  char measFile[255];
  snprintf(measFile, 255, "../output/%s_%d_%d.txt", argv[0], m, n);
  fpMeas = fopen(measFile, "a");
  fprintf(fpMeas, "%lu\n", tDuration);
  fclose(fpMeas);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x68(%rbp)
movq   $0x0,-0x70(%rbp)
movq   $0x0,-0x78(%rbp)
mov    0x2db0(%rip),%rax
movslq (%rax),%rdi
lea    0xeba(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2da0(%rip),%rax
movq   $0x0,(%rax)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xeaf(%rip),%rdx
call   10d0 <getopt@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xffffffff,%eax
je     13b5 <main+0x1e5>
mov    -0x14(%rbp),%eax
add    $0xffffffc1,%eax
mov    %eax,%ecx
mov    %rcx,-0x198(%rbp)
sub    $0x30,%eax
ja     13a9 <main+0x1d9>
mov    -0x198(%rbp),%rax
lea    0xd9c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2d7c(%rip),%rax
mov    (%rax),%rdi
call   10e0 <atoi@plt>
mov    %eax,-0x20(%rbp)
jmp    13b0 <main+0x1e0>
mov    0x2d65(%rip),%rax
mov    (%rax),%rdi
call   10e0 <atoi@plt>
mov    %eax,-0x24(%rbp)
jmp    13b0 <main+0x1e0>
mov    0x2d4e(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x58(%rbp)
jmp    13b0 <main+0x1e0>
mov    0x2d3b(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x60(%rbp)
jmp    13b0 <main+0x1e0>
mov    0x2d08(%rip),%rax
movsbl (%rax),%eax
cmp    $0x6d,%eax
je     1315 <main+0x145>
mov    0x2cf5(%rip),%rax
movsbl (%rax),%eax
cmp    $0x6e,%eax
je     1315 <main+0x145>
mov    0x2ce2(%rip),%rax
movsbl (%rax),%eax
cmp    $0x69,%eax
je     1315 <main+0x145>
mov    0x2ccf(%rip),%rax
movsbl (%rax),%eax
cmp    $0x6f,%eax
jne    133c <main+0x16c>
mov    0x2cac(%rip),%rax
mov    (%rax),%rdi
mov    0x2cb2(%rip),%rax
movsbl (%rax),%edx
lea    0xdbd(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    13a2 <main+0x1d2>
mov    0x2c95(%rip),%rax
movsbl (%rax),%edi
call   10a0 <isprint@plt>
cmp    $0x0,%eax
je     137b <main+0x1ab>
mov    0x2c6d(%rip),%rax
mov    (%rax),%rdi
mov    0x2c73(%rip),%rax
movsbl (%rax),%edx
lea    0xda0(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    139d <main+0x1cd>
mov    0x2c46(%rip),%rax
mov    (%rax),%rdi
mov    0x2c4c(%rip),%rax
movsbl (%rax),%edx
lea    0xd91(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    13a2 <main+0x1d2>
mov    $0x0,%al
call   10b0 <printUsage@plt>
mov    $0x0,%al
call   10b0 <printUsage@plt>
jmp    1227 <main+0x57>
mov    0x2bfc(%rip),%rax
movslq (%rax),%rdi
mov    -0x20(%rbp),%edx
mov    -0x24(%rbp),%ecx
mov    -0x58(%rbp),%r8
mov    -0x60(%rbp),%r9
lea    0xd75(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2bd6(%rip),%rax
mov    (%rax),%edi
call   1090 <fflush@plt>
mov    -0x20(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x7c(%rbp)
cmpl   $0x0,-0x7c(%rbp)
jle    1410 <main+0x240>
mov    -0x7c(%rbp),%eax
mov    -0x7c(%rbp),%ecx
sub    $0x1,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1438 <main+0x268>
mov    0x2bb1(%rip),%rax
mov    (%rax),%rdi
mov    -0x20(%rbp),%edx
mov    -0x7c(%rbp),%ecx
lea    0xd45(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
mov    -0x24(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x7c(%rbp)
cmpl   $0x0,-0x7c(%rbp)
jle    145f <main+0x28f>
mov    -0x7c(%rbp),%eax
mov    -0x7c(%rbp),%ecx
sub    $0x1,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1484 <main+0x2b4>
mov    0x2b62(%rip),%rax
mov    (%rax),%rdi
mov    -0x24(%rbp),%edx
lea    0xd57(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
movslq -0x20(%rbp),%rax
shl    $0x2,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x88(%rbp)
mov    0x2b0f(%rip),%rax
movslq (%rax),%rdi
lea    0xd6c(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2b1f(%rip),%rax
mov    (%rax),%edi
lea    -0x38(%rbp),%rsi
call   1030 <clock_gettime@plt>
mov    -0x58(%rbp),%rdi
lea    0xd57(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x68(%rbp)
cmpq   $0x0,-0x68(%rbp)
jne    1511 <main+0x341>
mov    0x2ad6(%rip),%rax
mov    (%rax),%rdi
mov    -0x58(%rbp),%rdx
lea    0xd30(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    15b3 <main+0x3e3>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    15a0 <main+0x3d0>
mov    -0x68(%rbp),%rdi
mov    -0x88(%rbp),%rdx
mov    -0x18(%rbp),%eax
imul   -0x24(%rbp),%eax
add    -0x1c(%rbp),%eax
cltq
shl    $0x2,%rax
add    %rax,%rdx
lea    0xcf5(%rip),%rsi
call   1060 <fscanf@plt>
cmp    $0x0,%rax
jne    158d <main+0x3bd>
mov    0x2a56(%rip),%rax
mov    (%rax),%rdi
lea    0xcd9(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
jmp    1592 <main+0x3c2>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    152b <main+0x35b>
jmp    15a5 <main+0x3d5>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1518 <main+0x348>
mov    -0x68(%rbp),%rdi
call   1040 <fclose@plt>
mov    0x29f5(%rip),%rax
movslq (%rax),%rdi
lea    0xcb6(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    16ce <main+0x4fe>
movl   $0x1,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    16bb <main+0x4eb>
mov    -0x88(%rbp),%rax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
imul   -0x24(%rbp),%ecx
add    -0x1c(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x88(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x24(%rbp),%ecx
mov    -0x1c(%rbp),%edx
sub    $0x1,%edx
add    %edx,%ecx
movslq %ecx,%rcx
addss  (%rax,%rcx,4),%xmm0
mov    -0x88(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x24(%rbp),%ecx
mov    -0x1c(%rbp),%edx
add    $0x1,%edx
add    %edx,%ecx
movslq %ecx,%rcx
addss  (%rax,%rcx,4),%xmm0
mov    -0x88(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
imul   -0x24(%rbp),%ecx
add    -0x1c(%rbp),%ecx
movslq %ecx,%rcx
addss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0x97c(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x88(%rbp),%rax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
imul   -0x24(%rbp),%ecx
mov    -0x1c(%rbp),%edx
sub    $0x1,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    15f3 <main+0x423>
jmp    16c0 <main+0x4f0>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    15db <main+0x40b>
mov    0x28e3(%rip),%rax
movslq (%rax),%rdi
lea    0xbbb(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x60(%rbp),%rdi
lea    0xbc3(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x70(%rbp)
cmpq   $0x0,-0x70(%rbp)
jne    172b <main+0x55b>
mov    0x28bc(%rip),%rax
mov    (%rax),%rdi
mov    -0x60(%rbp),%rdx
lea    0xb9c(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x20(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jge    17b8 <main+0x5e8>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x24(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jge    1798 <main+0x5c8>
mov    -0x70(%rbp),%rdi
mov    -0x88(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x24(%rbp),%ecx
add    -0x1c(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb59(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    174a <main+0x57a>
mov    -0x70(%rbp),%rdi
lea    0xaac(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1732 <main+0x562>
mov    -0x70(%rbp),%rdi
call   1040 <fclose@plt>
mov    0x2818(%rip),%rax
mov    (%rax),%edi
lea    -0x48(%rbp),%rsi
call   1030 <clock_gettime@plt>
mov    -0x48(%rbp),%rax
sub    -0x38(%rbp),%rax
imul   $0x3b9aca00,%rax,%rax
mov    -0x40(%rbp),%rcx
sub    -0x30(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    0x27c0(%rip),%rax
movslq (%rax),%rdi
mov    -0x20(%rbp),%edx
mov    -0x24(%rbp),%ecx
mov    -0x50(%rbp),%r8
lea    0xad5(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
lea    -0x190(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
mov    -0x20(%rbp),%r8d
mov    -0x24(%rbp),%r9d
mov    $0xff,%esi
lea    0xad2(%rip),%rdx
call   1050 <snprintf@plt>
lea    -0x190(%rbp),%rdi
lea    0xad6(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
mov    -0x50(%rbp),%rdx
lea    0xac0(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x78(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1b8,%rsp
mov    %rsi,%rbp
mov    %edi,%ebx
mov    0x2dab(%rip),%rax
movslq (%rax),%rcx
lea    0xec1(%rip),%rdi
mov    $0x17,%esi
mov    $0x1,%edx
call   1110 <fwrite@plt>
mov    0x2d93(%rip),%rax
movq   $0x0,(%rax)
lea    0xeb5(%rip),%r13
lea    0xdd2(%rip),%r12
mov    0x2d8f(%rip),%r15
mov    $0x71,%r14d
mov    %rax,0x28(%rsp)
mov    %rax,0x20(%rsp)
jmp    1270 <main+0x80>
nopl   0x0(%rax,%rax,1)
cmp    $0xffffffff,%eax
je     1349 <main+0x159>
xor    %eax,%eax
call   10c0 <printUsage@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    %r13,%rdx
call   10e0 <getopt@plt>
lea    -0x3f(%rax),%ecx
cmp    $0x30,%ecx
ja     1260 <main+0x70>
movslq (%r12,%rcx,4),%rax
add    %r12,%rax
jmp    *%rax
movzbl (%r15),%edx
lea    -0x69(%rdx),%eax
cmp    $0x6,%al
ja     12c3 <main+0xd3>
movzbl %al,%eax
bt     %eax,%r14d
jae    12c3 <main+0xd3>
mov    0x2d1f(%rip),%rax
mov    (%rax),%rdi
lea    0xe46(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
xor    %eax,%eax
call   10c0 <printUsage@plt>
jmp    1269 <main+0x79>
movsbl %dl,%edi
call   10b0 <isprint@plt>
mov    0x2cf6(%rip),%rcx
mov    (%rcx),%rdi
movsbl (%r15),%edx
test   %eax,%eax
je     12e6 <main+0xf6>
lea    0xe37(%rip),%rsi
jmp    12b3 <main+0xc3>
lea    0xe46(%rip),%rsi
jmp    12b3 <main+0xc3>
mov    0x2d02(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x10(%rsp)
jmp    1270 <main+0x80>
mov    0x2cee(%rip),%rax
mov    (%rax),%rdi
call   10f0 <atoi@plt>
mov    %rax,0x28(%rsp)
jmp    1270 <main+0x80>
mov    0x2cd5(%rip),%rax
mov    (%rax),%rdi
call   10f0 <atoi@plt>
mov    %rax,0x20(%rsp)
jmp    1270 <main+0x80>
mov    0x2cbc(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x48(%rsp)
jmp    1270 <main+0x80>
mov    0x2c68(%rip),%r14
movslq (%r14),%rdi
lea    0xdfb(%rip),%rsi
mov    0x28(%rsp),%rbx
mov    %ebx,%edx
mov    0x20(%rsp),%r15
mov    %r15d,%ecx
mov    0x10(%rsp),%r12
mov    %r12,%r8
mov    0x48(%rsp),%r9
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%r14),%edi
call   10a0 <fflush@plt>
lea    -0x2(%rbx),%ecx
cmp    $0x3,%ebx
jl     1906 <main+0x716>
lea    -0x3(%rbx),%eax
test   %eax,%ecx
jne    1906 <main+0x716>
mov    %rbp,0x58(%rsp)
cmp    $0x3,%r15d
jl     192a <main+0x73a>
lea    -0x2(%r15),%edx
lea    -0x3(%r15),%eax
test   %eax,%edx
jne    192a <main+0x73a>
mov    %edx,0x40(%rsp)
mov    %ecx,0x44(%rsp)
mov    %ebx,%edi
imul   %r15d,%edi
shl    $0x2,%edi
call   1090 <malloc@plt>
mov    %rax,%r13
mov    0x2bdd(%rip),%rax
movslq (%rax),%rcx
lea    0xe46(%rip),%rdi
mov    $0xe,%esi
mov    $0x1,%edx
call   1110 <fwrite@plt>
mov    0x2be5(%rip),%rax
mov    (%rax),%edi
lea    0xa0(%rsp),%rsi
call   1030 <clock_gettime@plt>
lea    0xe29(%rip),%rsi
mov    %r12,%rdi
call   10d0 <fopen@plt>
test   %rax,%rax
je     194f <main+0x75f>
mov    %rax,%rbp
mov    %ebx,%eax
mov    %rax,0x38(%rsp)
mov    %r15d,%eax
mov    %rax,0x18(%rsp)
lea    0x0(,%rax,4),%rax
mov    %rax,0x30(%rsp)
xor    %eax,%eax
lea    0xe13(%rip),%rbx
mov    %r13,%r12
nopl   (%rax)
mov    %rax,0x10(%rsp)
mov    0x18(%rsp),%r15
mov    %r12,%r14
nopl   (%rax)
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1060 <fscanf@plt>
test   %rax,%rax
je     18dc <main+0x6ec>
add    $0x4,%r14
add    $0xffffffffffffffff,%r15
jne    1460 <main+0x270>
mov    0x10(%rsp),%rax
add    $0x1,%rax
add    0x30(%rsp),%r12
cmp    0x38(%rsp),%rax
jne    1450 <main+0x260>
mov    %rbp,%rdi
call   1040 <fclose@plt>
mov    0x2b13(%rip),%rax
movslq (%rax),%rcx
lea    0xde0(%rip),%rdi
mov    $0x1,%ebx
mov    $0x16,%esi
mov    $0x1,%edx
call   1110 <fwrite@plt>
mov    0x28(%rsp),%rax
add    $0xffffffff,%eax
mov    %rax,0x18(%rsp)
mov    0x20(%rsp),%rax
lea    -0x1(%rax),%ecx
movslq %eax,%rdx
lea    -0x1(%rcx),%r11
lea    -0x1(%rdx,%rcx,1),%rax
mov    %rax,0x88(%rsp)
lea    0x2(%rdx),%rax
mov    %rax,0x80(%rsp)
lea    0x1(%rdx,%rcx,1),%rax
mov    %rax,0x78(%rsp)
lea    0x1(%rdx,%rdx,1),%rax
mov    %rax,0x70(%rsp)
lea    (%rcx,%rdx,2),%rax
mov    %rax,0x68(%rsp)
mov    %r11,%rax
and    $0xfffffffffffffffc,%rax
mov    %rax,0x50(%rsp)
add    $0x1,%rax
mov    %rax,0x60(%rsp)
lea    0x0(,%rdx,4),%rax
mov    %rax,0x10(%rsp)
lea    0x0(,%rdx,8),%r15
add    %r13,%r15
lea    -0x4(,%rdx,4),%r8
ff
add    %r13,%r8
xor    %r9d,%r9d
movss  0xab8(%rip),%xmm0
movaps 0xaa1(%rip),%xmm1
mov    %r13,%r12
jmp    158d <main+0x39d>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%r9
mov    0x10(%rsp),%rax
add    %rax,%r12
add    %rax,%r15
add    %rax,%r8
cmp    0x18(%rsp),%rbx
je     1752 <main+0x562>
add    $0x1,%rbx
mov    $0x1,%r10d
cmp    $0x4,%r11
jae    15e0 <main+0x3f0>
nopl   (%rax)
movss  (%r12,%r10,4),%xmm2
addss  (%r8,%r10,4),%xmm2
addss  0x8(%r8,%r10,4),%xmm2
addss  (%r15,%r10,4),%xmm2
mulss  %xmm0,%xmm2
movss  %xmm2,-0x4(%r12,%r10,4)
lea    0x1(%r10),%rax
mov    %rax,%r10
cmp    %rax,%rcx
jne    15a0 <main+0x3b0>
jmp    1570 <main+0x380>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r9,%rdi
imul   %rdx,%rdi
lea    (%r11,%rdi,1),%rax
lea    0x0(,%rdi,4),%rbp
add    %r13,%rbp
lea    0x0(%r13,%rax,4),%rsi
mov    0x78(%rsp),%rax
lea    (%rax,%rdi,1),%rax
lea    0x0(%r13,%rax,4),%r14
mov    0x88(%rsp),%rax
add    %rdi,%rax
mov    %r11,%r10
lea    0x0(%r13,%rax,4),%r11
mov    %rbx,0x38(%rsp)
lea    (%rdi,%rcx,1),%rbx
lea    0x0(,%rbx,4),%rbx
add    %r13,%rbx
lea    0x4(,%rdi,4),%rax
add    %r13,%rax
cmp    %rbx,%rbp
setb   0x30(%rsp)
cmp    %rsi,%rax
lea    (%rdi,%rdx,1),%rax
lea    0x0(%r13,%rax,4),%rbx
setb   0xf(%rsp)
cmp    %r11,%rbp
setb   %al
cmp    %rsi,%rbx
mov    0x80(%rsp),%rbx
lea    (%rbx,%rdi,1),%rbx
lea    0x0(%r13,%rbx,4),%r11
setb   0xe(%rsp)
cmp    %r14,%rbp
setb   %r14b
cmp    %rsi,%r11
mov    %r10,%r11
mov    0x68(%rsp),%rbx
lea    (%rbx,%rdi,1),%rbx
lea    0x0(%r13,%rbx,4),%rbx
setb   0xd(%rsp)
cmp    %rbx,%rbp
mov    0x38(%rsp),%rbx
mov    0x70(%rsp),%rbp
lea    0x0(%rbp,%rdi,1),%rdi
lea    0x0(%r13,%rdi,4),%rdi
setb   %bpl
cmp    %rsi,%rdi
setb   %dil
mov    $0x1,%r10d
mov    0xf(%rsp),%sil
test   %sil,0x30(%rsp)
jne    15a0 <main+0x3b0>
mov    $0x1,%r10d
and    0xe(%rsp),%al
jne    15a0 <main+0x3b0>
mov    $0x1,%r10d
and    0xd(%rsp),%r14b
jne    15a0 <main+0x3b0>
mov    $0x1,%r10d
and    %dil,%bpl
jne    15a0 <main+0x3b0>
mov    0x50(%rsp),%rdi
mov    %r12,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups 0x4(%rbp),%xmm2
movups 0x0(%rbp,%rdx,4),%xmm3
addps  %xmm2,%xmm3
movups 0x8(%rbp,%rdx,4),%xmm2
addps  %xmm3,%xmm2
movups 0x4(%rbp,%rdx,8),%xmm3
addps  %xmm2,%xmm3
mulps  %xmm1,%xmm3
movups %xmm3,0x0(%rbp)
add    $0x10,%rbp
add    $0xfffffffffffffffc,%rdi
jne    1710 <main+0x520>
mov    0x60(%rsp),%r10
cmp    0x50(%rsp),%r11
jne    15a0 <main+0x3b0>
jmp    1570 <main+0x380>
mov    0x285f(%rip),%rax
movslq (%rax),%rcx
lea    0xb43(%rip),%rdi
mov    $0x19,%esi
mov    $0x1,%edx
call   1110 <fwrite@plt>
lea    0xb47(%rip),%rsi
mov    0x48(%rsp),%rbx
mov    %rbx,%rdi
call   10d0 <fopen@plt>
test   %rax,%rax
je     1965 <main+0x775>
mov    %rax,%rbp
mov    0x44(%rsp),%eax
mov    %rax,0x18(%rsp)
mov    0x40(%rsp),%ebx
xor    %r15d,%r15d
lea    0xb3f(%rip),%r12
nopl   0x0(%rax)
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movss  0x0(%r13,%r14,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    %r12,%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
add    $0x1,%r14
cmp    %r14,%rbx
jne    17c0 <main+0x5d0>
mov    $0xa,%edi
mov    %rbp,%rsi
call   1070 <fputc@plt>
add    $0x1,%r15
add    0x10(%rsp),%r13
cmp    0x18(%rsp),%r15
jne    17b0 <main+0x5c0>
mov    %rbp,%rdi
call   1040 <fclose@plt>
mov    0x27d3(%rip),%rax
mov    (%rax),%edi
lea    0x90(%rsp),%rsi
call   1030 <clock_gettime@plt>
mov    0x90(%rsp),%rax
mov    0x98(%rsp),%rbx
sub    0xa0(%rsp),%rax
imul   $0x3b9aca00,%rax,%rax
sub    0xa8(%rsp),%rbx
add    %rax,%rbx
mov    0x276b(%rip),%rax
movslq (%rax),%rdi
lea    0xa96(%rip),%rsi
mov    0x28(%rsp),%rbp
mov    %ebp,%edx
mov    0x20(%rsp),%r15
mov    %r15d,%ecx
mov    %rbx,%r8
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x58(%rsp),%rax
mov    (%rax),%rcx
lea    0xa94(%rip),%rdx
lea    0xb0(%rsp),%r14
mov    %r14,%rdi
mov    $0xff,%esi
mov    %ebp,%r8d
mov    %r15d,%r9d
call   1050 <snprintf@plt>
lea    0xa89(%rip),%rsi
mov    %r14,%rdi
call   10d0 <fopen@plt>
mov    %rax,%rbp
lea    0xa79(%rip),%rsi
mov    %rax,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %rbp,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x1b8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x26e5(%rip),%rax
mov    (%rax),%rcx
lea    0x974(%rip),%rdi
mov    $0x2d,%esi
mov    $0x1,%edx
call   1110 <fwrite@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    0x26bb(%rip),%rax
mov    (%rax),%rdi
lea    0x861(%rip),%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    0x2697(%rip),%rax
mov    (%rax),%rdi
lea    0x89b(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    0x2672(%rip),%rax
mov    (%rax),%rdi
lea    0x8dc(%rip),%rsi
mov    %r12,%rdx
jmp    1979 <main+0x789>
mov    0x265c(%rip),%rax
mov    (%rax),%rdi
lea    0x94c(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
%struct.timespec = type { i64, i64 }
@stdout = global i32 0
@.str = [24 x i8] c"checking paramters ...\0A\00"
@opterr = global i64 0
@.str.1 = [9 x i8] c"m:n:i:o:\00"
@optarg = global i8* null
@optopt = global i8 0
@stderr = global i32* null
@.str.2 = [34 x i8] c"Option -%c requires an argument.\0A\00"
@.str.3 = [24 x i8] c"Unknown option `-%c\C2\B4.\0A\00"
@.str.4 = [34 x i8] c"Unknown option characer `\\x%x\C2\B4.\0A\00"
@.str.5 = [35 x i8] c"Values: m=%d, n=%d, in=%s, out=%s\0A\00"
@.str.6 = [94 x i8] c"Input-error: m has to be of power of 2 plus 2 (e.g. 6, 10, 18) but is '%d' instead! (tmp=%d)\0A\00"
@.str.7 = [85 x i8] c"Input-error: n has to be of power of 2 plus 2 (e.g. 6, 10, 18) but is '%d' instead!\0A\00"
@.str.8 = [15 x i8] c"reading input\0A\00"
@CLOCK_MONOTONIC = global i32 0
@.str.9 = [2 x i8] c"r\00"
@.str.10 = [33 x i8] c"Could not open input-file '%s'!\0A\00"
@.str.11 = [4 x i8] c"%f;\00"
@.str.12 = [46 x i8] c"Error: input does not match expected format!\0A\00"
@.str.13 = [23 x i8] c"processing values ...\0A\00"
@.str.14 = [26 x i8] c"writing results back ...\0A\00"
@.str.15 = [2 x i8] c"w\00"
@.str.16 = [38 x i8] c"Could not write to output-file '%s'!\0A\00"
@.str.17 = [5 x i8] c"%f, \00"
@.str.18 = [2 x i8] c"\0A\00"
@.str.19 = [38 x i8] c"%d x %d - Matrix processed in %lu ns\0A\00"
@.str.20 = [23 x i8] c"../output/%s_%d_%d.txt\00"
@.str.21 = [2 x i8] c"a\00"
@.str.22 = [5 x i8] c"%lu\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca %struct.timespec
%12 = alloca %struct.timespec
%13 = alloca i64
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca i32
%20 = alloca float*
%21 = alloca [255 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32* null, i32** %16
store i32* null, i32** %17
store i32* null, i32** %18
%22 = load i32, i32* @stdout
%23 = sext i32 %22 to i64
%24 = inttoptr i64 %23 to i32*
%25 = call i32 (i32*, i8*, ...) @fprintf(i32* %24, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
store i64 0, i64* @opterr
br label %26
26: ; preds = %83, %2
%27 = load i32, i32* %4
%28 = load i8**, i8*** %5
%29 = call i32 @getopt(i32 %27, i8** %28, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 %29, i32* %6
%30 = icmp ne i32 %29, -1
br i1 %30, label %31, label %84
31: ; preds = %26
%32 = load i32, i32* %6
switch i32 %32, label %81 [
i32 109, label %33
i32 110, label %36
i32 105, label %39
i32 111, label %41
i32 63, label %43
]
33: ; preds = %31
%34 = load i8*, i8** @optarg
%35 = call i32 @atoi(i8* %34)
store i32 %35, i32* %9
br label %83
36: ; preds = %31
%37 = load i8*, i8** @optarg
%38 = call i32 @atoi(i8* %37)
store i32 %38, i32* %10
br label %83
39: ; preds = %31
%40 = load i8*, i8** @optarg
store i8* %40, i8** %14
br label %83
41: ; preds = %31
%42 = load i8*, i8** @optarg
store i8* %42, i8** %15
br label %83
43: ; preds = %31
%44 = load i8, i8* @optopt
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 109
br i1 %46, label %59, label %47
47: ; preds = %43
%48 = load i8, i8* @optopt
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 110
br i1 %50, label %59, label %51
51: ; preds = %47
%52 = load i8, i8* @optopt
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 105
br i1 %54, label %59, label %55
55: ; preds = %51
%56 = load i8, i8* @optopt
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 111
br i1 %58, label %59, label %64
59: ; preds = %55, %51, %47, %43
%60 = load i32*, i32** @stderr
%61 = load i8, i8* @optopt
%62 = sext i8 %61 to i32
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %60, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i32 %62)
br label %79
64: ; preds = %55
%65 = load i8, i8* @optopt
%66 = call i32 @isprint(i8 signext %65)
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %64
%69 = load i32*, i32** @stderr
%70 = load i8, i8* @optopt
%71 = sext i8 %70 to i32
%72 = call i32 (i32*, i8*, ...) @fprintf(i32* %69, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i32 %71)
br label %78
73: ; preds = %64
%74 = load i32*, i32** @stderr
%75 = load i8, i8* @optopt
%76 = sext i8 %75 to i32
%77 = call i32 (i32*, i8*, ...) @fprintf(i32* %74, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i32 %76)
br label %78
78: ; preds = %73, %68
br label %79
79: ; preds = %78, %59
%80 = call i32 (...) @printUsage()
br label %81
81: ; preds = %31, %79
%82 = call i32 (...) @printUsage()
br label %83
83: ; preds = %81, %41, %39, %36, %33
br label %26
84: ; preds = %26
%85 = load i32, i32* @stdout
%86 = sext i32 %85 to i64
%87 = inttoptr i64 %86 to i32*
%88 = load i32, i32* %9
%89 = load i32, i32* %10
%90 = load i8*, i8** %14
%91 = load i8*, i8** %15
%92 = call i32 (i32*, i8*, ...) @fprintf(i32* %87, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %88, i32 %89, i8* %90, i8* %91)
%93 = load i32, i32* @stdout
%94 = call i32 @fflush(i32 %93)
%95 = load i32, i32* %9
%96 = sub nsw i32 %95, 2
store i32 %96, i32* %19
%97 = load i32, i32* %19
%98 = icmp sgt i32 %97, 0
br i1 %98, label %99, label %105
99: ; preds = %84
%100 = load i32, i32* %19
%101 = load i32, i32* %19
%102 = sub nsw i32 %101, 1
%103 = and i32 %100, %102
%104 = icmp eq i32 %103, 0
br i1 %104, label %111, label %105
105: ; preds = %99, %84
%106 = load i32*, i32** @stderr
%107 = load i32, i32* %9
%108 = load i32, i32* %19
%109 = call i32 (i32*, i8*, ...) @fprintf(i32* %106, i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.6, i64 0, i64 0), i32 %107, i32 %108)
%110 = call i32 @exit(i32 1)
unreachable
111: ; preds = %99
%112 = load i32, i32* %10
%113 = sub nsw i32 %112, 2
store i32 %113, i32* %19
%114 = load i32, i32* %19
%115 = icmp sgt i32 %114, 0
br i1 %115, label %116, label %122
116: ; preds = %111
%117 = load i32, i32* %19
%118 = load i32, i32* %19
%119 = sub nsw i32 %118, 1
%120 = and i32 %117, %119
%121 = icmp eq i32 %120, 0
br i1 %121, label %127, label %122
122: ; preds = %116, %111
%123 = load i32*, i32** @stderr
%124 = load i32, i32* %10
%125 = call i32 (i32*, i8*, ...) @fprintf(i32* %123, i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.7, i64 0, i64 0), i32 %124)
%126 = call i32 @exit(i32 1)
unreachable
127: ; preds = %116
%128 = load i32, i32* %9
%129 = sext i32 %128 to i64
%130 = mul i64 4, %129
%131 = load i32, i32* %10
%132 = sext i32 %131 to i64
%133 = mul i64 %130, %132
%134 = trunc i64 %133 to i32
%135 = call float* @malloc(i32 %134)
store float* %135, float** %20
%136 = load i32, i32* @stdout
%137 = sext i32 %136 to i64
%138 = inttoptr i64 %137 to i32*
%139 = call i32 (i32*, i8*, ...) @fprintf(i32* %138, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%140 = load i32, i32* @CLOCK_MONOTONIC
%141 = call i32 @clock_gettime(i32 %140, %struct.timespec* %11)
%142 = load i8*, i8** %14
%143 = call i32* @fopen(i8* %142, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
store i32* %143, i32** %16
%144 = load i32*, i32** %16
%145 = icmp eq i32* %144, null
br i1 %145, label %146, label %151
146: ; preds = %127
%147 = load i32*, i32** @stderr
%148 = load i8*, i8** %14
%149 = call i32 (i32*, i8*, ...) @fprintf(i32* %147, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i8* %148)
%150 = call i32 @exit(i32 1)
unreachable
151: ; preds = %127
store i32 0, i32* %7
br label %152
152: ; preds = %182, %151
%153 = load i32, i32* %7
%154 = load i32, i32* %9
%155 = icmp slt i32 %153, %154
br i1 %155, label %156, label %185
156: ; preds = %152
store i32 0, i32* %8
br label %157
157: ; preds = %178, %156
%158 = load i32, i32* %8
%159 = load i32, i32* %10
%160 = icmp slt i32 %158, %159
br i1 %160, label %161, label %181
161: ; preds = %157
%162 = load i32*, i32** %16
%163 = load float*, float** %20
%164 = load i32, i32* %7
%165 = load i32, i32* %10
%166 = mul nsw i32 %164, %165
%167 = load i32, i32* %8
%168 = add nsw i32 %166, %167
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds float, float* %163, i64 %169
%171 = call i64 @fscanf(i32* %162, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), float* %170)
%172 = icmp eq i64 %171, 0
br i1 %172, label %173, label %177
173: ; preds = %161
%174 = load i32*, i32** @stderr
%175 = call i32 (i32*, i8*, ...) @fprintf(i32* %174, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.12, i64 0, i64 0))
%176 = call i32 @exit(i32 1)
unreachable
177: ; preds = %161
br label %178
178: ; preds = %177
%179 = load i32, i32* %8
%180 = add nsw i32 %179, 1
store i32 %180, i32* %8
br label %157
181: ; preds = %157
br label %182
182: ; preds = %181
%183 = load i32, i32* %7
%184 = add nsw i32 %183, 1
store i32 %184, i32* %7
br label %152
185: ; preds = %152
%186 = load i32*, i32** %16
%187 = call i32 @fclose(i32* %186)
%188 = load i32, i32* @stdout
%189 = sext i32 %188 to i64
%190 = inttoptr i64 %189 to i32*
%191 = call i32 (i32*, i8*, ...) @fprintf(i32* %190, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0))
store i32 1, i32* %7
br label %192
192: ; preds = %264, %185
%193 = load i32, i32* %7
%194 = load i32, i32* %9
%195 = sub nsw i32 %194, 1
%196 = icmp slt i32 %193, %195
br i1 %196, label %197, label %267
197: ; preds = %192
store i32 1, i32* %8
br label %198
198: ; preds = %260, %197
%199 = load i32, i32* %8
%200 = load i32, i32* %10
%201 = sub nsw i32 %200, 1
%202 = icmp slt i32 %199, %201
br i1 %202, label %203, label %263
203: ; preds = %198
%204 = load float*, float** %20
%205 = load i32, i32* %7
%206 = sub nsw i32 %205, 1
%207 = load i32, i32* %10
%208 = mul nsw i32 %206, %207
%209 = load i32, i32* %8
%210 = add nsw i32 %208, %209
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds float, float* %204, i64 %211
%213 = load float, float* %212
%214 = load float*, float** %20
%215 = load i32, i32* %7
%216 = load i32, i32* %10
%217 = mul nsw i32 %215, %216
%218 = load i32, i32* %8
%219 = sub nsw i32 %218, 1
%220 = add nsw i32 %217, %219
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds float, float* %214, i64 %221
%223 = load float, float* %222
%224 = fadd float %213, %223
%225 = load float*, float** %20
%226 = load i32, i32* %7
%227 = load i32, i32* %10
%228 = mul nsw i32 %226, %227
%229 = load i32, i32* %8
%230 = add nsw i32 %229, 1
%231 = add nsw i32 %228, %230
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds float, float* %225, i64 %232
%234 = load float, float* %233
%235 = fadd float %224, %234
%236 = load float*, float** %20
%237 = load i32, i32* %7
%238 = add nsw i32 %237, 1
%239 = load i32, i32* %10
%240 = mul nsw i32 %238, %239
%241 = load i32, i32* %8
%242 = add nsw i32 %240, %241
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds float, float* %236, i64 %243
%245 = load float, float* %244
%246 = fadd float %235, %245
%247 = fpext float %246 to double
%248 = fmul double 2.500000e-01, %247
%249 = fptrunc double %248 to float
%250 = load float*, float** %20
%251 = load i32, i32* %7
%252 = sub nsw i32 %251, 1
%253 = load i32, i32* %10
%254 = mul nsw i32 %252, %253
%255 = load i32, i32* %8
%256 = sub nsw i32 %255, 1
%257 = add nsw i32 %254, %256
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds float, float* %250, i64 %258
store float %249, float* %259
br label %260
260: ; preds = %203
%261 = load i32, i32* %8
%262 = add nsw i32 %261, 1
store i32 %262, i32* %8
br label %198
263: ; preds = %198
br label %264
264: ; preds = %263
%265 = load i32, i32* %7
%266 = add nsw i32 %265, 1
store i32 %266, i32* %7
br label %192
267: ; preds = %192
%268 = load i32, i32* @stdout
%269 = sext i32 %268 to i64
%270 = inttoptr i64 %269 to i32*
%271 = call i32 (i32*, i8*, ...) @fprintf(i32* %270, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0))
%272 = load i8*, i8** %15
%273 = call i32* @fopen(i8* %272, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
store i32* %273, i32** %17
%274 = load i32*, i32** %17
%275 = icmp eq i32* %274, null
br i1 %275, label %276, label %281
276: ; preds = %267
%277 = load i32*, i32** @stderr
%278 = load i8*, i8** %15
%279 = call i32 (i32*, i8*, ...) @fprintf(i32* %277, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), i8* %278)
%280 = call i32 @exit(i32 1)
unreachable
281: ; preds = %267
store i32 0, i32* %7
br label %282
282: ; preds = %312, %281
%283 = load i32, i32* %7
%284 = load i32, i32* %9
%285 = sub nsw i32 %284, 2
%286 = icmp slt i32 %283, %285
br i1 %286, label %287, label %315
287: ; preds = %282
store i32 0, i32* %8
br label %288
288: ; preds = %306, %287
%289 = load i32, i32* %8
%290 = load i32, i32* %10
%291 = sub nsw i32 %290, 2
%292 = icmp slt i32 %289, %291
br i1 %292, label %293, label %309
293: ; preds = %288
%294 = load i32*, i32** %17
%295 = load float*, float** %20
%296 = load i32, i32* %7
%297 = load i32, i32* %10
%298 = mul nsw i32 %296, %297
%299 = load i32, i32* %8
%300 = add nsw i32 %298, %299
%301 = sext i32 %300 to i64
%302 = getelementptr inbounds float, float* %295, i64 %301
%303 = load float, float* %302
%304 = fpext float %303 to double
%305 = call i32 (i32*, i8*, ...) @fprintf(i32* %294, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), double %304)
br label %306
306: ; preds = %293
%307 = load i32, i32* %8
%308 = add nsw i32 %307, 1
store i32 %308, i32* %8
br label %288
309: ; preds = %288
%310 = load i32*, i32** %17
%311 = call i32 (i32*, i8*, ...) @fprintf(i32* %310, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
br label %312
312: ; preds = %309
%313 = load i32, i32* %7
%314 = add nsw i32 %313, 1
store i32 %314, i32* %7
br label %282
315: ; preds = %282
%316 = load i32*, i32** %17
%317 = call i32 @fclose(i32* %316)
%318 = load i32, i32* @CLOCK_MONOTONIC
%319 = call i32 @clock_gettime(i32 %318, %struct.timespec* %12)
%320 = getelementptr inbounds %struct.timespec, %struct.timespec* %12, i32 0, i32 0
%321 = load i64, i64* %320
%322 = getelementptr inbounds %struct.timespec, %struct.timespec* %11, i32 0, i32 0
%323 = load i64, i64* %322
%324 = sub nsw i64 %321, %323
%325 = mul nsw i64 %324, 1000000000
%326 = getelementptr inbounds %struct.timespec, %struct.timespec* %12, i32 0, i32 1
%327 = load i64, i64* %326
%328 = getelementptr inbounds %struct.timespec, %struct.timespec* %11, i32 0, i32 1
%329 = load i64, i64* %328
%330 = sub nsw i64 %327, %329
%331 = add nsw i64 %325, %330
store i64 %331, i64* %13
%332 = load i32, i32* @stdout
%333 = sext i32 %332 to i64
%334 = inttoptr i64 %333 to i32*
%335 = load i32, i32* %9
%336 = load i32, i32* %10
%337 = load i64, i64* %13
%338 = call i32 (i32*, i8*, ...) @fprintf(i32* %334, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.19, i64 0, i64 0), i32 %335, i32 %336, i64 %337)
%339 = getelementptr inbounds [255 x i8], [255 x i8]* %21, i64 0, i64 0
%340 = load i8**, i8*** %5
%341 = getelementptr inbounds i8*, i8** %340, i64 0
%342 = load i8*, i8** %341
%343 = load i32, i32* %9
%344 = load i32, i32* %10
%345 = call i32 @snprintf(i8* %339, i32 255, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), i8* %342, i32 %343, i32 %344)
%346 = getelementptr inbounds [255 x i8], [255 x i8]* %21, i64 0, i64 0
%347 = call i32* @fopen(i8* %346, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
store i32* %347, i32** %18
%348 = load i32*, i32** %18
%349 = load i64, i64* %13
%350 = call i32 (i32*, i8*, ...) @fprintf(i32* %348, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0), i64 %349)
%351 = load i32*, i32** %18
%352 = call i32 @fclose(i32* %351)
ret i32 0
}

LLVM IR (-O2):
%struct.timespec = type { i64, i64 }
@stdout = global i32 0
@.str = [24 x i8] c"checking paramters ...\0A\00"
@opterr = global i64 0
@.str.1 = [9 x i8] c"m:n:i:o:\00"
@optarg = global i8* null
@optopt = global i8 0
@stderr = global i32* null
@.str.2 = [34 x i8] c"Option -%c requires an argument.\0A\00"
@.str.3 = [24 x i8] c"Unknown option `-%c\C2\B4.\0A\00"
@.str.4 = [34 x i8] c"Unknown option characer `\\x%x\C2\B4.\0A\00"
@.str.5 = [35 x i8] c"Values: m=%d, n=%d, in=%s, out=%s\0A\00"
@.str.6 = [94 x i8] c"Input-error: m has to be of power of 2 plus 2 (e.g. 6, 10, 18) but is '%d' instead! (tmp=%d)\0A\00"
@.str.7 = [85 x i8] c"Input-error: n has to be of power of 2 plus 2 (e.g. 6, 10, 18) but is '%d' instead!\0A\00"
@.str.8 = [15 x i8] c"reading input\0A\00"
@CLOCK_MONOTONIC = global i32 0
@.str.9 = [2 x i8] c"r\00"
@.str.10 = [33 x i8] c"Could not open input-file '%s'!\0A\00"
@.str.11 = [4 x i8] c"%f;\00"
@.str.12 = [46 x i8] c"Error: input does not match expected format!\0A\00"
@.str.13 = [23 x i8] c"processing values ...\0A\00"
@.str.14 = [26 x i8] c"writing results back ...\0A\00"
@.str.15 = [2 x i8] c"w\00"
@.str.16 = [38 x i8] c"Could not write to output-file '%s'!\0A\00"
@.str.17 = [5 x i8] c"%f, \00"
@.str.19 = [38 x i8] c"%d x %d - Matrix processed in %lu ns\0A\00"
@.str.20 = [23 x i8] c"../output/%s_%d_%d.txt\00"
@.str.21 = [2 x i8] c"a\00"
@.str.22 = [5 x i8] c"%lu\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca %struct.timespec
%4 = alloca %struct.timespec
%5 = alloca [255 x i8]
%6 = bitcast %struct.timespec* %3 to i8*
%7 = bitcast %struct.timespec* %4 to i8*
%8 = load i32, i32* @stdout
%9 = sext i32 %8 to i64
%10 = inttoptr i64 %9 to i32*
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i64 23, i64 1, i32* %10)
store i64 0, i64* @opterr
br label %12
12: ; preds = %28, %2
%13 = phi i32 [ %30, %28 ], [ undef, %2 ]
%14 = phi i32 [ %18, %28 ], [ undef, %2 ]
%15 = phi i8* [ %22, %28 ], [ undef, %2 ]
%16 = phi i8* [ %25, %28 ], [ undef, %2 ]
br label %17
17: ; preds = %12, %31
%18 = phi i32 [ %14, %12 ], [ %33, %31 ]
%19 = phi i8* [ %15, %12 ], [ %22, %31 ]
%20 = phi i8* [ %16, %12 ], [ %25, %31 ]
br label %21
21: ; preds = %17, %34
%22 = phi i8* [ %19, %17 ], [ %35, %34 ]
%23 = phi i8* [ %20, %17 ], [ %25, %34 ]
br label %24
24: ; preds = %21, %36
%25 = phi i8* [ %23, %21 ], [ %37, %36 ]
br label %26
26: ; preds = %24, %56
%27 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
switch i32 %27, label %56 [
i32 -1, label %58
i32 109, label %28
i32 110, label %31
i32 105, label %34
i32 111, label %36
i32 63, label %38
]
28: ; preds = %26
%29 = load i8*, i8** @optarg
%30 = tail call i32 @atoi(i8* %29)
br label %12
31: ; preds = %26
%32 = load i8*, i8** @optarg
%33 = tail call i32 @atoi(i8* %32)
br label %17
34: ; preds = %26
%35 = load i8*, i8** @optarg
br label %21
36: ; preds = %26
%37 = load i8*, i8** @optarg
br label %24
38: ; preds = %26
%39 = load i8, i8* @optopt
switch i8 %39, label %44 [
i8 111, label %40
i8 110, label %40
i8 109, label %40
i8 105, label %40
]
40: ; preds = %38, %38, %38, %38
%41 = zext i8 %39 to i32
%42 = load i32*, i32** @stderr
%43 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %42, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i32 %41)
br label %54
44: ; preds = %38
%45 = tail call i32 @isprint(i8 signext %39)
%46 = icmp eq i32 %45, 0
%47 = load i32*, i32** @stderr
%48 = load i8, i8* @optopt
%49 = sext i8 %48 to i32
br i1 %46, label %52, label %50
50: ; preds = %44
%51 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %47, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i32 %49)
br label %54
52: ; preds = %44
%53 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %47, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i32 %49)
br label %54
54: ; preds = %50, %52, %40
%55 = tail call i32 (...) @printUsage()
br label %56
56: ; preds = %26, %54
%57 = tail call i32 (...) @printUsage()
br label %26
58: ; preds = %26
%59 = load i32, i32* @stdout
%60 = sext i32 %59 to i64
%61 = inttoptr i64 %60 to i32*
%62 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %61, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %13, i32 %18, i8* %22, i8* %25)
%63 = load i32, i32* @stdout
%64 = tail call i32 @fflush(i32 %63)
%65 = add i32 %13, -2
%66 = icmp sgt i32 %13, 2
br i1 %66, label %67, label %71
67: ; preds = %58
%68 = add nsw i32 %13, -3
%69 = and i32 %65, %68
%70 = icmp eq i32 %69, 0
br i1 %70, label %75, label %71
71: ; preds = %67, %58
%72 = load i32*, i32** @stderr
%73 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %72, i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.6, i64 0, i64 0), i32 %13, i32 %65)
%74 = tail call i32 @exit(i32 1)
unreachable
75: ; preds = %67
%76 = add i32 %18, -2
%77 = icmp sgt i32 %18, 2
br i1 %77, label %78, label %82
78: ; preds = %75
%79 = add nsw i32 %18, -3
%80 = and i32 %76, %79
%81 = icmp eq i32 %80, 0
br i1 %81, label %86, label %82
82: ; preds = %78, %75
%83 = load i32*, i32** @stderr
%84 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.7, i64 0, i64 0), i32 %18)
%85 = tail call i32 @exit(i32 1)
unreachable
86: ; preds = %78
%87 = shl i32 %13, 2
%88 = mul i32 %87, %18
%89 = tail call float* @malloc(i32 %88)
%90 = load i32, i32* @stdout
%91 = sext i32 %90 to i64
%92 = inttoptr i64 %91 to i32*
%93 = tail call i64 @fwrite(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i64 14, i64 1, i32* %92)
%94 = load i32, i32* @CLOCK_MONOTONIC
%95 = call i32 @clock_gettime(i32 %94, %struct.timespec* %3)
%96 = call i32* @fopen(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%97 = icmp eq i32* %96, null
br i1 %97, label %102, label %98
98: ; preds = %86
%99 = zext i32 %18 to i64
%100 = zext i32 %13 to i64
%101 = zext i32 %18 to i64
br label %106
102: ; preds = %86
%103 = load i32*, i32** @stderr
%104 = call i32 (i32*, i8*, ...) @fprintf(i32* %103, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i8* %22)
%105 = call i32 @exit(i32 1)
unreachable
106: ; preds = %98, %122
%107 = phi i64 [ 0, %98 ], [ %123, %122 ]
%108 = mul nsw i64 %107, %99
br label %111
109: ; preds = %111
%110 = icmp eq i64 %117, %101
br i1 %110, label %122, label %111
111: ; preds = %106, %109
%112 = phi i64 [ 0, %106 ], [ %117, %109 ]
%113 = add nuw nsw i64 %112, %108
%114 = getelementptr inbounds float, float* %89, i64 %113
%115 = call i64 @fscanf(i32* %96, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), float* %114)
%116 = icmp eq i64 %115, 0
%117 = add nuw nsw i64 %112, 1
br i1 %116, label %118, label %109
118: ; preds = %111
%119 = load i32*, i32** @stderr
%120 = call i64 @fwrite(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.12, i64 0, i64 0), i64 45, i64 1, i32* %119)
%121 = call i32 @exit(i32 1)
unreachable
122: ; preds = %109
%123 = add nuw nsw i64 %107, 1
%124 = icmp eq i64 %123, %100
br i1 %124, label %125, label %106
125: ; preds = %122
%126 = call i32 @fclose(i32* %96)
%127 = load i32, i32* @stdout
%128 = sext i32 %127 to i64
%129 = inttoptr i64 %128 to i32*
%130 = call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0), i64 22, i64 1, i32* %129)
%131 = add i32 %13, -1
%132 = add i32 %18, -1
%133 = sext i32 %18 to i64
%134 = zext i32 %131 to i64
%135 = zext i32 %132 to i64
%136 = add nsw i64 %135, -1
%137 = add nsw i64 %133, %135
%138 = add nsw i64 %137, -1
%139 = add nsw i64 %133, 2
%140 = add nsw i64 %137, 1
%141 = shl nsw i64 %133, 1
%142 = or i64 %141, 1
%143 = add nsw i64 %141, %135
%144 = add nsw i64 %135, -1
%145 = icmp ult i64 %144, 4
%146 = and i64 %144, -4
%147 = or i64 %146, 1
%148 = icmp eq i64 %144, %146
br label %149
149: ; preds = %248, %125
%150 = phi i64 [ %250, %248 ], [ 0, %125 ]
%151 = phi i64 [ %159, %248 ], [ 1, %125 ]
%152 = mul i64 %150, %133
%153 = getelementptr float, float* %89, i64 %152
%154 = add i64 %136, %152
%155 = getelementptr float, float* %89, i64 %154
%156 = add nsw i64 %151, -1
%157 = mul nsw i64 %156, %133
%158 = mul nsw i64 %151, %133
%159 = add nuw nsw i64 %151, 1
%160 = mul nsw i64 %159, %133
br i1 %145, label %223, label %161
161: ; preds = %149
%162 = add i64 %143, %152
%163 = getelementptr float, float* %89, i64 %162
%164 = add i64 %142, %152
%165 = getelementptr float, float* %89, i64 %164
%166 = add i64 %140, %152
%167 = getelementptr float, float* %89, i64 %166
%168 = add i64 %139, %152
%169 = getelementptr float, float* %89, i64 %168
%170 = add i64 %138, %152
%171 = getelementptr float, float* %89, i64 %170
%172 = add i64 %152, %133
%173 = getelementptr float, float* %89, i64 %172
%174 = add i64 %152, %135
%175 = getelementptr float, float* %89, i64 %174
%176 = add i64 %152, 1
%177 = getelementptr float, float* %89, i64 %176
%178 = icmp ult float* %153, %175
%179 = icmp ult float* %177, %155
%180 = and i1 %178, %179
%181 = icmp ult float* %153, %171
%182 = icmp ult float* %173, %155
%183 = and i1 %181, %182
%184 = or i1 %180, %183
%185 = icmp ult float* %153, %167
%186 = icmp ult float* %169, %155
%187 = and i1 %185, %186
%188 = or i1 %184, %187
%189 = icmp ult float* %153, %163
%190 = icmp ult float* %165, %155
%191 = and i1 %189, %190
%192 = or i1 %188, %191
br i1 %192, label %223, label %193
193: ; preds = %161, %193
%194 = phi i64 [ %220, %193 ], [ 0, %161 ]
%195 = or i64 %194, 1
%196 = add nsw i64 %195, %157
%197 = getelementptr inbounds float, float* %89, i64 %196
%198 = bitcast float* %197 to <4 x float>*
%199 = load <4 x float>, <4 x float>* %198
%200 = add nsw i64 %194, %158
%201 = getelementptr inbounds float, float* %89, i64 %200
%202 = bitcast float* %201 to <4 x float>*
%203 = load <4 x float>, <4 x float>* %202
%204 = fadd <4 x float> %199, %203
%205 = or i64 %194, 2
%206 = add nsw i64 %205, %158
%207 = getelementptr inbounds float, float* %89, i64 %206
%208 = bitcast float* %207 to <4 x float>*
%209 = load <4 x float>, <4 x float>* %208
%210 = fadd <4 x float> %204, %209
%211 = add nsw i64 %195, %160
%212 = getelementptr inbounds float, float* %89, i64 %211
%213 = bitcast float* %212 to <4 x float>*
%214 = load <4 x float>, <4 x float>* %213
%215 = fadd <4 x float> %210, %214
%216 = fmul <4 x float> %215, <float 2.500000e-01, float 2.500000e-01, float 2.500000e-01, float 2.500000e-01>
%217 = add nsw i64 %194, %157
%218 = getelementptr inbounds float, float* %89, i64 %217
%219 = bitcast float* %218 to <4 x float>*
store <4 x float> %216, <4 x float>* %219
%220 = add nuw i64 %194, 4
%221 = icmp eq i64 %220, %146
br i1 %221, label %222, label %193
222: ; preds = %193
br i1 %148, label %248, label %223
223: ; preds = %161, %149, %222
%224 = phi i64 [ 1, %161 ], [ 1, %149 ], [ %147, %222 ]
br label %225
225: ; preds = %223, %225
%226 = phi i64 [ %235, %225 ], [ %224, %223 ]
%227 = add nsw i64 %226, %157
%228 = getelementptr inbounds float, float* %89, i64 %227
%229 = load float, float* %228
%230 = add nsw i64 %226, -1
%231 = add nsw i64 %230, %158
%232 = getelementptr inbounds float, float* %89, i64 %231
%233 = load float, float* %232
%234 = fadd float %229, %233
%235 = add nuw nsw i64 %226, 1
%236 = add nsw i64 %235, %158
%237 = getelementptr inbounds float, float* %89, i64 %236
%238 = load float, float* %237
%239 = fadd float %234, %238
%240 = add nsw i64 %226, %160
%241 = getelementptr inbounds float, float* %89, i64 %240
%242 = load float, float* %241
%243 = fadd float %239, %242
%244 = fmul float %243, 2.500000e-01
%245 = add nsw i64 %230, %157
%246 = getelementptr inbounds float, float* %89, i64 %245
store float %244, float* %246
%247 = icmp eq i64 %235, %135
br i1 %247, label %248, label %225
248: ; preds = %225, %222
%249 = icmp eq i64 %159, %134
%250 = add i64 %150, 1
br i1 %249, label %251, label %149
251: ; preds = %248
%252 = load i32, i32* @stdout
%253 = sext i32 %252 to i64
%254 = inttoptr i64 %253 to i32*
%255 = call i64 @fwrite(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0), i64 25, i64 1, i32* %254)
%256 = call i32* @fopen(i8* %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%257 = icmp eq i32* %256, null
br i1 %257, label %262, label %258
258: ; preds = %251
%259 = sext i32 %18 to i64
%260 = zext i32 %65 to i64
%261 = zext i32 %76 to i64
br label %266
262: ; preds = %251
%263 = load i32*, i32** @stderr
%264 = call i32 (i32*, i8*, ...) @fprintf(i32* %263, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), i8* %25)
%265 = call i32 @exit(i32 1)
unreachable
266: ; preds = %278, %258
%267 = phi i64 [ 0, %258 ], [ %280, %278 ]
%268 = mul nsw i64 %267, %259
br label %269
269: ; preds = %266, %269
%270 = phi i64 [ 0, %266 ], [ %276, %269 ]
%271 = add nsw i64 %270, %268
%272 = getelementptr inbounds float, float* %89, i64 %271
%273 = load float, float* %272
%274 = fpext float %273 to double
%275 = call i32 (i32*, i8*, ...) @fprintf(i32* %256, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), double %274)
%276 = add nuw nsw i64 %270, 1
%277 = icmp eq i64 %276, %261
br i1 %277, label %278, label %269
278: ; preds = %269
%279 = call i32 @fputc(i32 10, i32* %256)
%280 = add nuw nsw i64 %267, 1
%281 = icmp eq i64 %280, %260
br i1 %281, label %282, label %266
282: ; preds = %278
%283 = call i32 @fclose(i32* %256)
%284 = load i32, i32* @CLOCK_MONOTONIC
%285 = call i32 @clock_gettime(i32 %284, %struct.timespec* %4)
%286 = getelementptr inbounds %struct.timespec, %struct.timespec* %4, i64 0, i32 0
%287 = load i64, i64* %286
%288 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i64 0, i32 0
%289 = load i64, i64* %288
%290 = sub nsw i64 %287, %289
%291 = mul nsw i64 %290, 1000000000
%292 = getelementptr inbounds %struct.timespec, %struct.timespec* %4, i64 0, i32 1
%293 = load i64, i64* %292
%294 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i64 0, i32 1
%295 = load i64, i64* %294
%296 = sub nsw i64 %293, %295
%297 = add nsw i64 %296, %291
%298 = load i32, i32* @stdout
%299 = sext i32 %298 to i64
%300 = inttoptr i64 %299 to i32*
%301 = call i32 (i32*, i8*, ...) @fprintf(i32* %300, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.19, i64 0, i64 0), i32 %13, i32 %18, i64 %297)
%302 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%303 = load i8*, i8** %1
%304 = call i32 @snprintf(i8* %302, i32 255, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), i8* %303, i32 %13, i32 %18)
%305 = call i32* @fopen(i8* %302, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
%306 = call i32 (i32*, i8*, ...) @fprintf(i32* %305, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0), i64 %297)
%307 = call i32 @fclose(i32* %305)
ret i32 0
}