#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*/ argv;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
float atof(char *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sscanf(char *, char *, ...);
int main(int argc, char *argv[]) {
  int n;
  sscanf(argv[2], "%d", &n);
  float sys[n][n];
  float results[n];
  char target[sizeof(argv[1]) / sizeof(char) + 1];
  sscanf(argv[1], "%s", target);
  FILE *mtrx_source;
  mtrx_source = fopen(target, "r");
  for (int i = 0; i < (n); i++) {
    for (int j = 0; j < (n); j++) {
      char buffer[225];
      fscanf(mtrx_source, "%s", buffer);
      sys[i][j] = atof(buffer);
    }
    char buffer[225];
    fscanf(mtrx_source, "%s", buffer);
    results[i] = atof(buffer);
  }
  for (int k = 1; k < (n); k++) {
    for (int i = k + 1; i < (n + 1); i++) {
      float ratio = (sys[i - 1][k - 1] / sys[k - 1][k - 1]);
      for (int j = k; j < (n + 1); j++) {
        sys[i - 1][j - 1] = sys[i - 1][j - 1] - ratio * sys[k - 1][j - 1];
      }
      results[i - 1] = results[i - 1] - ratio * results[k - 1];
    }
  }
  for (int i = 0; i < (n); i++) {
    for (int j = 0; j < (n); j++) {
      printf("%f       ", sys[i][j]);
    }
    printf("%f", results[i]);
    printf("\n");
  }
  float sum;
  float computed[n];
  int iterloop = 1;
  computed[n - 1] = results[n - 1] / sys[n - 1][n - 1];
  for (int i = n - 2; i > -1; i--) {
    sum = results[i];
    for (int j = 0; j < iterloop; j++) {
      sum -= sys[i][n - 1 - j] * computed[n - 1 - j];
    }
    computed[i] = sum / sys[i][i];
    iterloop++;
  }
  for (int i = 0; i < n; i++) {
    printf("x%d = %f\n", i + 1, computed[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x290,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe88(%rip),%rsi
xor    %eax,%eax
lea    -0x14(%rbp),%rdx
call   1060 <sscanf@plt>
mov    -0x14(%rbp),%eax
mov    %rax,-0x280(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,%rcx
imul   %rcx,%rcx
lea    0xf(,%rcx,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x278(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
mov    %rax,-0x30(%rbp)
mov    -0x14(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x270(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x41(%rbp),%rdx
lea    0xe0e(%rip),%rsi
mov    $0x0,%al
call   1060 <sscanf@plt>
lea    -0x41(%rbp),%rdi
lea    0xdff(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12ce <main+0x17e>
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    128d <main+0x13d>
mov    -0x50(%rbp),%rdi
lea    -0x140(%rbp),%rdx
lea    0xdbb(%rip),%rsi
call   1050 <fscanf@plt>
lea    -0x140(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x280(%rbp),%rdx
mov    -0x278(%rbp),%rax
movslq -0x54(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0x58(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    122a <main+0xda>
mov    -0x50(%rbp),%rdi
lea    -0x230(%rbp),%rdx
lea    0xd64(%rip),%rsi
call   1050 <fscanf@plt>
lea    -0x230(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x270(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1217 <main+0xc7>
movl   $0x1,-0x234(%rbp)
mov    -0x234(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14d6 <main+0x386>
mov    -0x234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x238(%rbp)
mov    -0x238(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    14bd <main+0x36d>
mov    -0x278(%rbp),%rax
mov    -0x280(%rbp),%rdx
mov    -0x238(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rsi
imul   %rdx,%rsi
shl    $0x2,%rsi
mov    %rax,%rcx
add    %rsi,%rcx
mov    -0x234(%rbp),%esi
sub    $0x1,%esi
movslq %esi,%rsi
movss  (%rcx,%rsi,4),%xmm0
mov    -0x234(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    -0x234(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
divss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x23c(%rbp)
ff
mov    -0x234(%rbp),%eax
mov    %eax,-0x240(%rbp)
mov    -0x240(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1451 <main+0x301>
mov    -0x278(%rbp),%rax
mov    -0x280(%rbp),%rdx
mov    -0x238(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rsi
imul   %rdx,%rsi
shl    $0x2,%rsi
mov    %rax,%rcx
add    %rsi,%rcx
mov    -0x240(%rbp),%esi
sub    $0x1,%esi
movslq %esi,%rsi
movss  (%rcx,%rsi,4),%xmm1
movss  -0x23c(%rbp),%xmm0
ff
mov    -0x234(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rsi
imul   %rdx,%rsi
shl    $0x2,%rsi
mov    %rax,%rcx
add    %rsi,%rcx
mov    -0x240(%rbp),%esi
sub    $0x1,%esi
movslq %esi,%rsi
movss  (%rcx,%rsi,4),%xmm2
movd   %xmm0,%ecx
xor    $0x80000000,%ecx
movd   %ecx,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x238(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    -0x240(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x240(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x240(%rbp)
jmp    137f <main+0x22f>
mov    -0x270(%rbp),%rax
mov    -0x238(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm1
movss  -0x23c(%rbp),%xmm0
ff
mov    -0x234(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm2
movd   %xmm0,%ecx
xor    $0x80000000,%ecx
movd   %ecx,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x238(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x238(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x238(%rbp)
jmp    12f6 <main+0x1a6>
jmp    14c2 <main+0x372>
mov    -0x234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x234(%rbp)
jmp    12d8 <main+0x188>
movl   $0x0,-0x244(%rbp)
mov    -0x244(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15a1 <main+0x451>
movl   $0x0,-0x248(%rbp)
mov    -0x248(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    155a <main+0x40a>
mov    -0x278(%rbp),%rax
mov    -0x280(%rbp),%rdx
movslq -0x244(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0x248(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xac9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x248(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x248(%rbp)
jmp    14f9 <main+0x3a9>
mov    -0x270(%rbp),%rax
movslq -0x244(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xa9a(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xa97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x244(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x244(%rbp)
jmp    14e0 <main+0x390>
mov    -0x278(%rbp),%rcx
mov    -0x280(%rbp),%rsi
mov    -0x270(%rbp),%rdx
mov    -0x14(%rbp),%eax
mov    %eax,%edi
lea    0xf(,%rdi,4),%r8
and    $0xfffffffffffffff0,%r8
mov    %rsp,%rax
sub    %r8,%rax
mov    %rax,-0x288(%rbp)
mov    %rax,%rsp
mov    %rdi,-0x258(%rbp)
movl   $0x1,-0x25c(%rbp)
mov    -0x14(%rbp),%edi
sub    $0x1,%edi
movslq %edi,%rdi
movss  (%rdx,%rdi,4),%xmm0
mov    -0x14(%rbp),%edx
sub    $0x1,%edx
movslq %edx,%rdx
imul   %rsi,%rdx
shl    $0x2,%rdx
add    %rdx,%rcx
mov    -0x14(%rbp),%edx
sub    $0x1,%edx
movslq %edx,%rdx
divss  (%rcx,%rdx,4),%xmm0
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x260(%rbp)
cmpl   $0xffffffff,-0x260(%rbp)
jle    1768 <main+0x618>
mov    -0x270(%rbp),%rax
movslq -0x260(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x24c(%rbp)
ff
movl   $0x0,-0x264(%rbp)
mov    -0x264(%rbp),%eax
cmp    -0x25c(%rbp),%eax
jge    16fe <main+0x5ae>
mov    -0x288(%rbp),%rax
mov    -0x278(%rbp),%rcx
mov    -0x280(%rbp),%rsi
movslq -0x260(%rbp),%rdx
imul   %rsi,%rdx
shl    $0x2,%rdx
add    %rdx,%rcx
mov    -0x14(%rbp),%edx
sub    $0x1,%edx
sub    -0x264(%rbp),%edx
movslq %edx,%rdx
movss  (%rcx,%rdx,4),%xmm0
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
sub    -0x264(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x24c(%rbp),%xmm1
ff
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x24c(%rbp)
ff
mov    -0x264(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x264(%rbp)
jmp    1664 <main+0x514>
mov    -0x288(%rbp),%rax
mov    -0x278(%rbp),%rcx
mov    -0x280(%rbp),%rsi
movss  -0x24c(%rbp),%xmm0
ff
movslq -0x260(%rbp),%rdx
imul   %rsi,%rdx
shl    $0x2,%rdx
add    %rdx,%rcx
movslq -0x260(%rbp),%rdx
divss  (%rcx,%rdx,4),%xmm0
movslq -0x260(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x25c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x25c(%rbp)
mov    -0x260(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x260(%rbp)
jmp    1632 <main+0x4e2>
movl   $0x0,-0x268(%rbp)
mov    -0x268(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    17c3 <main+0x673>
mov    -0x288(%rbp),%rax
mov    -0x268(%rbp),%esi
add    $0x1,%esi
movslq -0x268(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x86d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x268(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x268(%rbp)
jmp    1772 <main+0x622>
movl   $0x0,-0x4(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1e8,%rsp
mov    %rsi,%r15
mov    0x10(%rsi),%rdi
lea    0xe8e(%rip),%rsi
lea    -0x2c(%rbp),%rdx
xor    %eax,%eax
call   1070 <sscanf@plt>
mov    %rsp,%r14
mov    -0x2c(%rbp),%ebx
mov    %rbx,%rax
imul   %rbx,%rax
mov    %rsp,%r13
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r13
mov    %r13,%rsp
mov    -0x2c(%rbp),%eax
mov    %rsp,%rcx
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rcx,%rsp
mov    0x8(%r15),%rdi
lea    0xe3d(%rip),%rsi
lea    -0x129(%rbp),%r15
mov    %r15,%rdx
xor    %eax,%eax
call   1070 <sscanf@plt>
lea    0xe28(%rip),%rsi
mov    %r15,%rdi
call   1080 <fopen@plt>
mov    -0x2c(%rbp),%edx
test   %edx,%edx
mov    %rbx,-0x50(%rbp)
mov    %r13,-0x40(%rbp)
mov    %r14,-0x78(%rbp)
jle    1784 <main+0x624>
mov    %rax,%r15
lea    0x0(,%rbx,4),%rax
mov    %rax,-0x58(%rbp)
xor    %eax,%eax
lea    0xdee(%rip),%r14
lea    -0x210(%rbp),%rbx
jmp    1267 <main+0x107>
xchg   %ax,%ax
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1060 <fscanf@plt>
mov    %rbx,%rdi
call   1040 <atof@plt>
mov    -0x48(%rbp),%rax
mov    -0x38(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    %rcx,%rax
add    $0x1,%rax
movslq -0x2c(%rbp),%rdx
add    -0x58(%rbp),%r13
cmp    %rdx,%rax
jge    12ac <main+0x14c>
mov    %rax,-0x38(%rbp)
test   %edx,%edx
jle    1230 <main+0xd0>
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1060 <fscanf@plt>
mov    %rbx,%rdi
call   1040 <atof@plt>
movss  %xmm0,0x0(%r13,%r12,4)
add    $0x1,%r12
movslq -0x2c(%rbp),%rax
cmp    %rax,%r12
jl     1280 <main+0x120>
jmp    1230 <main+0xd0>
mov    %rdx,-0x60(%rbp)
cmp    $0x2,%edx
mov    -0x50(%rbp),%r12
jl     16f9 <main+0x599>
mov    -0x60(%rbp),%eax
lea    0x1(%rax),%rbx
lea    0x1(%r12),%rcx
mov    %rcx,-0x100(%rbp)
lea    0x4(,%r12,4),%r8
lea    (%r12,%rax,1),%rdx
add    $0x1,%rdx
add    $0xffffffffffffffff,%rdx
mov    %rdx,-0x90(%rbp)
mov    -0x40(%rbp),%r11
lea    0x4(%r11),%rdx
mov    %rdx,-0x88(%rbp)
lea    -0x1(%rax),%rdx
mov    %rdx,-0x80(%rbp)
mov    %rax,%r15
not    %r15
lea    0x34(%r11),%r13
lea    0x34(%r11,%r12,4),%rdi
mov    %rax,-0xa0(%rbp)
lea    -0x9(%rax),%rdx
lea    -0x4(%r11,%r12,4),%rsi
mov    $0x1,%eax
mov    %rax,-0x38(%rbp)
movaps 0xccf(%rip),%xmm0
mov    $0x2,%r9d
xor    %eax,%eax
mov    %rbx,-0x70(%rbp)
mov    %r8,-0x98(%rbp)
jmp    139f <main+0x23f>
cs nopw 0x0(%rax,%rax,1)
mov    -0xb0(%rbp),%r9
add    $0x1,%r9
mov    -0xa8(%rbp),%rax
add    $0x1,%rax
mov    -0x98(%rbp),%r8
add    %r8,%r13
mov    -0xc8(%rbp),%rdi
add    %r8,%rdi
mov    -0xc0(%rbp),%rdx
add    $0xffffffffffffffff,%rdx
mov    -0x58(%rbp),%rcx
mov    -0xb8(%rbp),%rsi
add    %rcx,%rsi
add    %rcx,%r11
cmp    %rbx,%r9
je     16f9 <main+0x599>
mov    -0x38(%rbp),%r14
mov    %rdx,-0xc0(%rbp)
shr    $0x3,%rdx
add    $0x1,%rdx
and    $0xfffffffffffffffe,%rdx
mov    %rdx,-0xd0(%rbp)
mov    -0x80(%rbp),%rdx
sub    %rax,%rdx
lea    -0x8(%rdx),%rcx
mov    %rcx,-0xf8(%rbp)
shr    $0x3,%rcx
add    $0x1,%rcx
mov    %rcx,-0xf0(%rbp)
imul   %rax,%r8
mov    %rax,-0xa8(%rbp)
imul   %r12,%rax
mov    -0x90(%rbp),%rcx
add    %rax,%rcx
mov    %rcx,-0x118(%rbp)
mov    -0x88(%rbp),%rcx
mov    %r8,-0x120(%rbp)
add    %r8,%rcx
mov    %rcx,-0x110(%rbp)
add    -0xa0(%rbp),%rax
mov    -0x40(%rbp),%rcx
lea    (%rcx,%rax,4),%rax
mov    %rax,-0x108(%rbp)
lea    0x1(%r14),%rax
mov    %rax,-0x38(%rbp)
lea    -0x1(%r14),%rax
imul   %r12,%rax
lea    (%rcx,%rax,4),%r10
mov    %rdx,-0x68(%rbp)
and    $0xfffffffffffffff8,%rdx
lea    (%r14,%rdx,1),%rax
add    $0x1,%rax
mov    %rax,-0xe0(%rbp)
mov    %rdx,-0xe8(%rbp)
lea    (%r14,%rdx,1),%rax
mov    %rax,-0xd8(%rbp)
mov    %rsi,-0xb8(%rbp)
mov    %rdi,-0xc8(%rbp)
xor    %eax,%eax
mov    %r9,-0xb0(%rbp)
jmp    14c8 <main+0x368>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    -0x48(%rbp),%rcx
mulss  -0x4(%rcx,%r14,4),%xmm1
addss  -0x4(%rcx,%r9,4),%xmm1
movss  %xmm1,-0x4(%rcx,%r9,4)
add    $0x1,%r9
add    $0x1,%rax
mov    -0x58(%rbp),%rcx
add    %rcx,%rdi
add    %rcx,%rsi
mov    -0x70(%rbp),%rbx
cmp    %rbx,%r9
je     1350 <main+0x1f0>
lea    -0x1(%r9),%rcx
imul   %r12,%rcx
mov    -0x40(%rbp),%rdx
lea    (%rdx,%rcx,4),%r8
movss  -0x4(%r8,%r14,4),%xmm2
movss  -0x4(%r10,%r14,4),%xmm3
movaps %xmm2,%xmm1
xorps  %xmm0,%xmm1
divss  %xmm3,%xmm1
mulss  %xmm1,%xmm3
addss  %xmm2,%xmm3
movss  %xmm3,-0x4(%r8,%r14,4)
cmp    %rbx,-0x38(%rbp)
je     1490 <main+0x330>
mov    -0x38(%rbp),%rbx
mov    %r14,%rdx
cmpq   $0x8,-0x68(%rbp)
jae    1530 <main+0x3d0>
mov    -0x70(%rbp),%rcx
sub    %ebx,%ecx
test   $0x1,%cl
jne    15b0 <main+0x450>
mov    %rbx,%rcx
jmp    15ce <main+0x46e>
nopw   0x0(%rax,%rax,1)
mov    %rax,%rcx
imul   %r12,%rcx
mov    -0x100(%rbp),%rdx
add    %rcx,%rdx
mov    -0x40(%rbp),%rbx
lea    (%rbx,%rdx,4),%r12
add    -0x120(%rbp),%r12
add    -0x118(%rbp),%rcx
lea    (%rbx,%rcx,4),%rcx
cmp    -0x108(%rbp),%r12
setb   -0x2e(%rbp)
cmp    %rcx,-0x110(%rbp)
setb   -0x2d(%rbp)
mov    -0x38(%rbp),%rbx
mov    %r14,%rdx
cmp    %rcx,%r12
mov    -0x50(%rbp),%r12
jb     1513 <main+0x3b3>
mov    -0x38(%rbp),%rbx
mov    %r14,%rdx
mov    -0x2d(%rbp),%cl
and    %cl,-0x2e(%rbp)
jne    1513 <main+0x3b3>
movaps %xmm1,%xmm2
shufps $0x0,%xmm1,%xmm2
cmpq   $0x8,-0xf8(%rbp)
08
jae    1625 <main+0x4c5>
xor    %r12d,%r12d
jmp    1698 <main+0x538>
nopl   (%rax)
movss  (%r10,%rdx,4),%xmm2
mulss  %xmm1,%xmm2
addss  (%r8,%rdx,4),%xmm2
movss  %xmm2,-0x4(%r8,%rbx,4)
lea    0x1(%rbx),%rcx
mov    %rbx,%rdx
not    %rbx
cmp    %r15,%rbx
je     1490 <main+0x330>
add    $0x1,%rcx
xchg   %ax,%ax
movss  (%r10,%rdx,4),%xmm2
mulss  %xmm1,%xmm2
addss  (%r8,%rdx,4),%xmm2
movss  %xmm2,-0x4(%rsi,%rcx,4)
movss  -0x4(%r11,%rcx,4),%xmm2
mulss  %xmm1,%xmm2
addss  (%rsi,%rcx,4),%xmm2
movss  %xmm2,(%rsi,%rcx,4)
lea    (%r15,%rcx,1),%rbx
add    $0x2,%rbx
mov    %rcx,%rdx
add    $0x2,%rcx
cmp    $0x1,%rbx
jne    15e0 <main+0x480>
jmp    1490 <main+0x330>
mov    -0xd0(%rbp),%rcx
xor    %r12d,%r12d
nop
movups -0x30(%r13,%r12,4),%xmm3
movups -0x20(%r13,%r12,4),%xmm4
mulps  %xmm2,%xmm3
movups -0x30(%rdi,%r12,4),%xmm5
addps  %xmm3,%xmm5
movups -0x20(%rdi,%r12,4),%xmm3
movups -0x10(%rdi,%r12,4),%xmm6
movups (%rdi,%r12,4),%xmm7
mulps  %xmm2,%xmm4
addps  %xmm3,%xmm4
movups %xmm5,-0x30(%rdi,%r12,4)
movups %xmm4,-0x20(%rdi,%r12,4)
movups -0x10(%r13,%r12,4),%xmm3
movups 0x0(%r13,%r12,4),%xmm4
mulps  %xmm2,%xmm3
addps  %xmm6,%xmm3
mulps  %xmm2,%xmm4
addps  %xmm7,%xmm4
movups %xmm3,-0x10(%rdi,%r12,4)
movups %xmm4,(%rdi,%r12,4)
add    $0x10,%r12
add    $0xfffffffffffffffe,%rcx
jne    1630 <main+0x4d0>
testb  $0x1,-0xf0(%rbp)
je     16d1 <main+0x571>
add    %r14,%r12
movups (%r8,%r12,4),%xmm3
movups 0x10(%r8,%r12,4),%xmm4
movups (%r10,%r12,4),%xmm5
movups 0x10(%r10,%r12,4),%xmm6
mulps  %xmm2,%xmm5
addps  %xmm3,%xmm5
mulps  %xmm2,%xmm6
addps  %xmm4,%xmm6
movups %xmm5,(%r8,%r12,4)
movups %xmm6,0x10(%r8,%r12,4)
mov    -0xe0(%rbp),%rbx
mov    -0xd8(%rbp),%rdx
mov    -0xe8(%rbp),%rcx
cmp    %rcx,-0x68(%rbp)
mov    -0x50(%rbp),%r12
je     1490 <main+0x330>
jmp    1513 <main+0x3b3>
mov    -0x60(%rbp),%rdx
test   %edx,%edx
jle    1784 <main+0x624>
xor    %r15d,%r15d
lea    0x909(%rip),%r12
lea    0x90c(%rip),%r14
mov    -0x40(%rbp),%r13
jmp    1753 <main+0x5f3>
nopl   0x0(%rax)
mov    -0x48(%rbp),%rax
movss  (%rax,%r15,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15
movslq -0x2c(%rbp),%rdx
add    -0x58(%rbp),%r13
cmp    %rdx,%r15
jge    1784 <main+0x624>
test   %edx,%edx
jle    1720 <main+0x5c0>
xor    %ebx,%ebx
nopl   0x0(%rax)
movss  0x0(%r13,%rbx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
add    $0x1,%rbx
movslq -0x2c(%rbp),%rax
cmp    %rax,%rbx
jl     1760 <main+0x600>
jmp    1720 <main+0x5c0>
mov    %edx,%r14d
mov    %rsp,%rbx
lea    0xf(,%r14,4),%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%rbx
mov    %rbx,%rsp
movslq %edx,%rcx
lea    -0x1(%rcx),%rdx
mov    -0x48(%rbp),%rax
movss  -0x4(%rax,%rcx,4),%xmm0
mov    -0x50(%rbp),%r15
imul   %r15,%rdx
mov    -0x40(%rbp),%r12
lea    (%r12,%rdx,4),%rdx
divss  -0x4(%rdx,%rcx,4),%xmm0
movss  %xmm0,-0x4(%rbx,%rcx,4)
cmp    $0x2,%ecx
jl     18b7 <main+0x757>
lea    -0x2(%r14),%r11d
lea    -0x1(%r14),%r8d
mov    $0x1,%r10d
xor    %r9d,%r9d
jmp    1811 <main+0x6b1>
cs nopw 0x0(%rax,%rax,1)
nop
divss  (%rdx,%r11,4),%xmm0
movss  %xmm0,(%rbx,%r11,4)
add    $0x1,%r10
add    $0xffffffffffffffff,%r11
add    $0x1,%r9
cmp    %r14,%r10
je     18b7 <main+0x757>
mov    -0x48(%rbp),%rax
movss  (%rax,%r11,4),%xmm0
mov    %r11,%rcx
imul   %r15,%rcx
lea    (%r12,%rcx,4),%rdx
test   %r9,%r9
je     1890 <main+0x730>
mov    %r10,%rsi
and    $0xfffffffffffffffe,%rsi
mov    %r8d,%ecx
xor    %edi,%edi
nopw   0x0(%rax,%rax,1)
movslq %ecx,%rcx
movss  (%rdx,%rcx,4),%xmm1
mulss  (%rbx,%rcx,4),%xmm1
subss  %xmm1,%xmm0
mov    %edi,%eax
xor    $0xfffffffe,%eax
add    %r14d,%eax
cltq
movss  (%rdx,%rax,4),%xmm1
mulss  (%rbx,%rax,4),%xmm1
subss  %xmm1,%xmm0
add    $0x2,%rdi
add    $0xfffffffe,%ecx
cmp    %rdi,%rsi
jne    1840 <main+0x6e0>
test   $0x1,%r10b
je     17f0 <main+0x690>
jmp    189c <main+0x73c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
test   $0x1,%r10b
je     17f0 <main+0x690>
not    %edi
add    %r14d,%edi
movslq %edi,%rcx
movss  (%rdx,%rcx,4),%xmm1
mulss  (%rbx,%rcx,4),%xmm1
subss  %xmm1,%xmm0
jmp    17f0 <main+0x690>
test   %r14d,%r14d
jle    18f4 <main+0x794>
xor    %r15d,%r15d
lea    0x75f(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
movss  (%rbx,%r15,4),%xmm0
add    $0x1,%r15
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x1,%al
call   1050 <printf@plt>
movslq -0x2c(%rbp),%rax
cmp    %rax,%r15
jl     18d0 <main+0x770>
mov    -0x78(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [10 x i8] c"%f \00"
@.str.4 = [3 x i8] c"%f\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [10 x i8] c"x%d = %f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca [9 x i8]
%12 = alloca i32*
%13 = alloca i32
%14 = alloca i32
%15 = alloca [225 x i8]
%16 = alloca [225 x i8]
%17 = alloca i32
%18 = alloca i32
%19 = alloca float
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca float
%24 = alloca i64
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 2
%31 = load i8*, i8** %30
%32 = call i32 (i8*, i8*, ...) @sscanf(i8* %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %6)
%33 = load i32, i32* %6
%34 = zext i32 %33 to i64
%35 = load i32, i32* %6
%36 = zext i32 %35 to i64
%37 = call i8* @llvm.stacksave()
store i8* %37, i8** %7
%38 = mul nuw i64 %34, %36
%39 = alloca float, i64 %38
store i64 %34, i64* %8
store i64 %36, i64* %9
%40 = load i32, i32* %6
%41 = zext i32 %40 to i64
%42 = alloca float, i64 %41
store i64 %41, i64* %10
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 1
%45 = load i8*, i8** %44
%46 = getelementptr inbounds [9 x i8], [9 x i8]* %11, i64 0, i64 0
%47 = call i32 (i8*, i8*, ...) @sscanf(i8* %45, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %46)
%48 = getelementptr inbounds [9 x i8], [9 x i8]* %11, i64 0, i64 0
%49 = call i32* @fopen(i8* %48, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %49, i32** %12
store i32 0, i32* %13
br label %50
50: ; preds = %84, %2
%51 = load i32, i32* %13
%52 = load i32, i32* %6
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %87
54: ; preds = %50
store i32 0, i32* %14
br label %55
55: ; preds = %72, %54
%56 = load i32, i32* %14
%57 = load i32, i32* %6
%58 = icmp slt i32 %56, %57
br i1 %58, label %59, label %75
59: ; preds = %55
%60 = load i32*, i32** %12
%61 = getelementptr inbounds [225 x i8], [225 x i8]* %15, i64 0, i64 0
%62 = call i32 @fscanf(i32* %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %61)
%63 = getelementptr inbounds [225 x i8], [225 x i8]* %15, i64 0, i64 0
%64 = call float @atof(i8* %63)
%65 = load i32, i32* %13
%66 = sext i32 %65 to i64
%67 = mul nsw i64 %66, %36
%68 = getelementptr inbounds float, float* %39, i64 %67
%69 = load i32, i32* %14
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds float, float* %68, i64 %70
store float %64, float* %71
br label %72
72: ; preds = %59
%73 = load i32, i32* %14
%74 = add nsw i32 %73, 1
store i32 %74, i32* %14
br label %55
75: ; preds = %55
%76 = load i32*, i32** %12
%77 = getelementptr inbounds [225 x i8], [225 x i8]* %16, i64 0, i64 0
%78 = call i32 @fscanf(i32* %76, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %77)
%79 = getelementptr inbounds [225 x i8], [225 x i8]* %16, i64 0, i64 0
%80 = call float @atof(i8* %79)
%81 = load i32, i32* %13
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds float, float* %42, i64 %82
store float %80, float* %83
br label %84
84: ; preds = %75
%85 = load i32, i32* %13
%86 = add nsw i32 %85, 1
store i32 %86, i32* %13
br label %50
87: ; preds = %50
store i32 1, i32* %17
br label %88
88: ; preds = %186, %87
%89 = load i32, i32* %17
%90 = load i32, i32* %6
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %189
92: ; preds = %88
%93 = load i32, i32* %17
%94 = add nsw i32 %93, 1
store i32 %94, i32* %18
br label %95
95: ; preds = %182, %92
%96 = load i32, i32* %18
%97 = load i32, i32* %6
%98 = add nsw i32 %97, 1
%99 = icmp slt i32 %96, %98
br i1 %99, label %100, label %185
100: ; preds = %95
%101 = load i32, i32* %18
%102 = sub nsw i32 %101, 1
%103 = sext i32 %102 to i64
%104 = mul nsw i64 %103, %36
%105 = getelementptr inbounds float, float* %39, i64 %104
%106 = load i32, i32* %17
%107 = sub nsw i32 %106, 1
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds float, float* %105, i64 %108
%110 = load float, float* %109
%111 = load i32, i32* %17
%112 = sub nsw i32 %111, 1
%113 = sext i32 %112 to i64
%114 = mul nsw i64 %113, %36
%115 = getelementptr inbounds float, float* %39, i64 %114
%116 = load i32, i32* %17
%117 = sub nsw i32 %116, 1
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds float, float* %115, i64 %118
%120 = load float, float* %119
%121 = fdiv float %110, %120
store float %121, float* %19
%122 = load i32, i32* %17
store i32 %122, i32* %20
br label %123
123: ; preds = %161, %100
%124 = load i32, i32* %20
%125 = load i32, i32* %6
%126 = add nsw i32 %125, 1
%127 = icmp slt i32 %124, %126
br i1 %127, label %128, label %164
128: ; preds = %123
%129 = load i32, i32* %18
%130 = sub nsw i32 %129, 1
%131 = sext i32 %130 to i64
%132 = mul nsw i64 %131, %36
%133 = getelementptr inbounds float, float* %39, i64 %132
%134 = load i32, i32* %20
%135 = sub nsw i32 %134, 1
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds float, float* %133, i64 %136
%138 = load float, float* %137
%139 = load float, float* %19
%140 = load i32, i32* %17
%141 = sub nsw i32 %140, 1
%142 = sext i32 %141 to i64
%143 = mul nsw i64 %142, %36
%144 = getelementptr inbounds float, float* %39, i64 %143
%145 = load i32, i32* %20
%146 = sub nsw i32 %145, 1
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds float, float* %144, i64 %147
%149 = load float, float* %148
%150 = fneg float %139
%151 = call float @llvm.fmuladd.f32(float %150, float %149, float %138)
%152 = load i32, i32* %18
%153 = sub nsw i32 %152, 1
%154 = sext i32 %153 to i64
%155 = mul nsw i64 %154, %36
%156 = getelementptr inbounds float, float* %39, i64 %155
%157 = load i32, i32* %20
%158 = sub nsw i32 %157, 1
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds float, float* %156, i64 %159
store float %151, float* %160
br label %161
161: ; preds = %128
%162 = load i32, i32* %20
%163 = add nsw i32 %162, 1
store i32 %163, i32* %20
br label %123
164: ; preds = %123
%165 = load i32, i32* %18
%166 = sub nsw i32 %165, 1
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds float, float* %42, i64 %167
%169 = load float, float* %168
%170 = load float, float* %19
%171 = load i32, i32* %17
%172 = sub nsw i32 %171, 1
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds float, float* %42, i64 %173
%175 = load float, float* %174
%176 = fneg float %170
%177 = call float @llvm.fmuladd.f32(float %176, float %175, float %169)
%178 = load i32, i32* %18
%179 = sub nsw i32 %178, 1
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds float, float* %42, i64 %180
store float %177, float* %181
br label %182
182: ; preds = %164
%183 = load i32, i32* %18
%184 = add nsw i32 %183, 1
store i32 %184, i32* %18
br label %95
185: ; preds = %95
br label %186
186: ; preds = %185
%187 = load i32, i32* %17
%188 = add nsw i32 %187, 1
store i32 %188, i32* %17
br label %88
189: ; preds = %88
store i32 0, i32* %21
br label %190
190: ; preds = %221, %189
%191 = load i32, i32* %21
%192 = load i32, i32* %6
%193 = icmp slt i32 %191, %192
br i1 %193, label %194, label %224
194: ; preds = %190
store i32 0, i32* %22
br label %195
195: ; preds = %210, %194
%196 = load i32, i32* %22
%197 = load i32, i32* %6
%198 = icmp slt i32 %196, %197
br i1 %198, label %199, label %213
199: ; preds = %195
%200 = load i32, i32* %21
%201 = sext i32 %200 to i64
%202 = mul nsw i64 %201, %36
%203 = getelementptr inbounds float, float* %39, i64 %202
%204 = load i32, i32* %22
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds float, float* %203, i64 %205
%207 = load float, float* %206
%208 = fpext float %207 to double
%209 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %208)
br label %210
210: ; preds = %199
%211 = load i32, i32* %22
%212 = add nsw i32 %211, 1
store i32 %212, i32* %22
br label %195
213: ; preds = %195
%214 = load i32, i32* %21
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds float, float* %42, i64 %215
%217 = load float, float* %216
%218 = fpext float %217 to double
%219 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), double %218)
%220 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %221
221: ; preds = %213
%222 = load i32, i32* %21
%223 = add nsw i32 %222, 1
store i32 %223, i32* %21
br label %190
224: ; preds = %190
%225 = load i32, i32* %6
%226 = zext i32 %225 to i64
%227 = alloca float, i64 %226
store i64 %226, i64* %24
store i32 1, i32* %25
%228 = load i32, i32* %6
%229 = sub nsw i32 %228, 1
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds float, float* %42, i64 %230
%232 = load float, float* %231
%233 = load i32, i32* %6
%234 = sub nsw i32 %233, 1
%235 = sext i32 %234 to i64
%236 = mul nsw i64 %235, %36
%237 = getelementptr inbounds float, float* %39, i64 %236
%238 = load i32, i32* %6
%239 = sub nsw i32 %238, 1
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds float, float* %237, i64 %240
%242 = load float, float* %241
%243 = fdiv float %232, %242
%244 = load i32, i32* %6
%245 = sub nsw i32 %244, 1
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds float, float* %227, i64 %246
store float %243, float* %247
%248 = load i32, i32* %6
%249 = sub nsw i32 %248, 2
store i32 %249, i32* %26
br label %250
250: ; preds = %303, %224
%251 = load i32, i32* %26
%252 = icmp sgt i32 %251, -1
br i1 %252, label %253, label %306
253: ; preds = %250
%254 = load i32, i32* %26
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds float, float* %42, i64 %255
%257 = load float, float* %256
store float %257, float* %23
store i32 0, i32* %27
br label %258
258: ; preds = %284, %253
%259 = load i32, i32* %27
%260 = load i32, i32* %25
%261 = icmp slt i32 %259, %260
br i1 %261, label %262, label %287
262: ; preds = %258
%263 = load i32, i32* %26
%264 = sext i32 %263 to i64
%265 = mul nsw i64 %264, %36
%266 = getelementptr inbounds float, float* %39, i64 %265
%267 = load i32, i32* %6
%268 = sub nsw i32 %267, 1
%269 = load i32, i32* %27
%270 = sub nsw i32 %268, %269
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds float, float* %266, i64 %271
%273 = load float, float* %272
%274 = load i32, i32* %6
%275 = sub nsw i32 %274, 1
%276 = load i32, i32* %27
%277 = sub nsw i32 %275, %276
%278 = sext i32 %277 to i64
%279 = getelementptr inbounds float, float* %227, i64 %278
%280 = load float, float* %279
%281 = load float, float* %23
%282 = fneg float %273
%283 = call float @llvm.fmuladd.f32(float %282, float %280, float %281)
store float %283, float* %23
br label %284
284: ; preds = %262
%285 = load i32, i32* %27
%286 = add nsw i32 %285, 1
store i32 %286, i32* %27
br label %258
287: ; preds = %258
%288 = load float, float* %23
%289 = load i32, i32* %26
%290 = sext i32 %289 to i64
%291 = mul nsw i64 %290, %36
%292 = getelementptr inbounds float, float* %39, i64 %291
%293 = load i32, i32* %26
%294 = sext i32 %293 to i64
%295 = getelementptr inbounds float, float* %292, i64 %294
%296 = load float, float* %295
%297 = fdiv float %288, %296
%298 = load i32, i32* %26
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds float, float* %227, i64 %299
store float %297, float* %300
%301 = load i32, i32* %25
%302 = add nsw i32 %301, 1
store i32 %302, i32* %25
br label %303
303: ; preds = %287
%304 = load i32, i32* %26
%305 = add nsw i32 %304, -1
store i32 %305, i32* %26
br label %250
306: ; preds = %250
store i32 0, i32* %28
br label %307
307: ; preds = %320, %306
%308 = load i32, i32* %28
%309 = load i32, i32* %6
%310 = icmp slt i32 %308, %309
br i1 %310, label %311, label %323
311: ; preds = %307
%312 = load i32, i32* %28
%313 = add nsw i32 %312, 1
%314 = load i32, i32* %28
%315 = sext i32 %314 to i64
%316 = getelementptr inbounds float, float* %227, i64 %315
%317 = load float, float* %316
%318 = fpext float %317 to double
%319 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 %313, double %318)
br label %320
320: ; preds = %311
%321 = load i32, i32* %28
%322 = add nsw i32 %321, 1
store i32 %322, i32* %28
br label %307
323: ; preds = %307
store i32 0, i32* %3
%324 = load i8*, i8** %7
%325 = load i32, i32* %3
ret i32 %325
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [10 x i8] c"%f \00"
@.str.4 = [3 x i8] c"%f\00"
@.str.6 = [10 x i8] c"x%d = %f\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca [9 x i8]
%5 = alloca [225 x i8]
%6 = alloca [225 x i8]
%7 = bitcast i32* %3 to i8*
%8 = getelementptr inbounds i8*, i8** %1, i64 2
%9 = load i8*, i8** %8
%10 = call i32 (i8*, i8*, ...) @sscanf(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%11 = load i32, i32* %3
%12 = zext i32 %11 to i64
%13 = call i8* @llvm.stacksave()
%14 = mul nuw i64 %12, %12
%15 = alloca float, i64 %14
%16 = load i32, i32* %3
%17 = zext i32 %16 to i64
%18 = alloca float, i64 %17
%19 = getelementptr inbounds [9 x i8], [9 x i8]* %4, i64 0, i64 0
%20 = getelementptr inbounds i8*, i8** %1, i64 1
%21 = load i8*, i8** %20
%22 = call i32 (i8*, i8*, ...) @sscanf(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %19)
%23 = call i32* @fopen(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%24 = load i32, i32* %3
%25 = icmp sgt i32 %24, 0
br i1 %25, label %26, label %266
26: ; preds = %2
%27 = getelementptr inbounds [225 x i8], [225 x i8]* %5, i64 0, i64 0
%28 = getelementptr inbounds [225 x i8], [225 x i8]* %6, i64 0, i64 0
br label %29
29: ; preds = %26, %51
%30 = phi i32 [ %24, %26 ], [ %56, %51 ]
%31 = phi i64 [ 0, %26 ], [ %55, %51 ]
%32 = icmp sgt i32 %30, 0
br i1 %32, label %33, label %51
33: ; preds = %29
%34 = mul nuw nsw i64 %31, %12
%35 = getelementptr inbounds float, float* %15, i64 %34
br label %59
36: ; preds = %51
%37 = icmp sgt i32 %56, 1
br i1 %37, label %38, label %72
38: ; preds = %36
%39 = add nuw i32 %56, 1
%40 = zext i32 %39 to i64
%41 = add nuw nsw i64 %12, 1
%42 = shl nuw nsw i64 %12, 2
%43 = add nuw nsw i64 %42, 4
%44 = add nuw nsw i64 %12, %40
%45 = add nsw i64 %44, -1
%46 = getelementptr inbounds float, float* %15, i64 1
%47 = bitcast float* %46 to i8*
%48 = add nsw i64 %40, -1
%49 = add nsw i64 %40, -2
%50 = sub nsw i64 0, %40
br label %74
51: ; preds = %59, %29
%52 = call i32 @fscanf(i32* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %28)
%53 = call float @atof(i8* %28)
%54 = getelementptr inbounds float, float* %18, i64 %31
store float %53, float* %54
%55 = add nuw nsw i64 %31, 1
%56 = load i32, i32* %3
%57 = sext i32 %56 to i64
%58 = icmp slt i64 %55, %57
br i1 %58, label %29, label %36
59: ; preds = %33, %59
%60 = phi i64 [ 0, %33 ], [ %64, %59 ]
%61 = call i32 @fscanf(i32* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %27)
%62 = call float @atof(i8* %27)
%63 = getelementptr inbounds float, float* %35, i64 %60
store float %62, float* %63
%64 = add nuw nsw i64 %60, 1
%65 = load i32, i32* %3
%66 = sext i32 %65 to i64
%67 = icmp slt i64 %64, %66
br i1 %67, label %59, label %51
68: ; preds = %232
%69 = add nuw nsw i64 %76, 1
%70 = icmp eq i64 %69, %40
%71 = add i64 %75, 1
br i1 %70, label %72, label %74
72: ; preds = %68, %36
%73 = icmp sgt i32 %56, 0
br i1 %73, label %259, label %266
74: ; preds = %68, %38
%75 = phi i64 [ %71, %68 ], [ 0, %38 ]
%76 = phi i64 [ %69, %68 ], [ 2, %38 ]
%77 = phi i64 [ %90, %68 ], [ 1, %38 ]
%78 = sub i64 %49, %75
%79 = add i64 %78, -8
%80 = lshr i64 %79, 3
%81 = add nuw nsw i64 %80, 1
%82 = sub i64 %49, %75
%83 = mul i64 %43, %75
%84 = mul i64 %75, %12
%85 = add i64 %45, %84
%86 = getelementptr i8, i8* %47, i64 %83
%87 = add i64 %48, %84
%88 = getelementptr float, float* %15, i64 %87
%89 = bitcast float* %88 to i8*
%90 = add nuw nsw i64 %77, 1
%91 = add nsw i64 %77, -1
%92 = mul nuw nsw i64 %91, %12
%93 = getelementptr inbounds float, float* %15, i64 %92
%94 = getelementptr inbounds float, float* %93, i64 %91
%95 = getelementptr inbounds float, float* %18, i64 %91
%96 = add nsw i64 %77, -1
%97 = add nuw nsw i64 %77, 1
%98 = icmp eq i64 %97, %40
%99 = icmp ult i64 %82, 8
%100 = and i64 %82, -8
%101 = add i64 %97, %100
%102 = add i64 %77, %100
%103 = and i64 %81, 1
%104 = icmp ult i64 %79, 8
%105 = and i64 %81, 4611686018427387902
%106 = icmp eq i64 %103, 0
%107 = icmp eq i64 %82, %100
br label %108
108: ; preds = %232, %74
%109 = phi i64 [ %239, %232 ], [ 0, %74 ]
%110 = phi i64 [ %237, %232 ], [ %76, %74 ]
%111 = mul i64 %109, %12
%112 = add i64 %41, %111
%113 = getelementptr float, float* %15, i64 %112
%114 = bitcast float* %113 to i8*
%115 = getelementptr i8, i8* %114, i64 %83
%116 = add i64 %85, %111
%117 = getelementptr float, float* %15, i64 %116
%118 = bitcast float* %117 to i8*
%119 = add nsw i64 %110, -1
%120 = mul nuw nsw i64 %119, %12
%121 = getelementptr inbounds float, float* %15, i64 %120
%122 = getelementptr inbounds float, float* %121, i64 %91
%123 = load float, float* %122
%124 = load float, float* %94
%125 = fneg float %123
%126 = fdiv float %125, %124
%127 = getelementptr inbounds float, float* %121, i64 %96
%128 = call float @llvm.fmuladd.f32(float %126, float %124, float %123)
store float %128, float* %127
br i1 %98, label %232, label %129
129: ; preds = %108
br i1 %99, label %212, label %130
130: ; preds = %129
%131 = icmp ult i8* %115, %118
%132 = icmp ult i8* %115, %89
%133 = icmp ult i8* %86, %118
%134 = and i1 %132, %133
%135 = or i1 %131, %134
br i1 %135, label %212, label %136
136: ; preds = %130
%137 = insertelement <4 x float> poison, float %126, i64 0
%138 = shufflevector <4 x float> %137, <4 x float> poison, <4 x i32> zeroinitializer
%139 = insertelement <4 x float> poison, float %126, i64 0
%140 = shufflevector <4 x float> %139, <4 x float> poison, <4 x i32> zeroinitializer
br i1 %104, label %188, label %141
141: ; preds = %136, %141
%142 = phi i64 [ %185, %141 ], [ 0, %136 ]
%143 = phi i64 [ %186, %141 ], [ 0, %136 ]
%144 = add i64 %77, %142
%145 = getelementptr inbounds float, float* %121, i64 %144
%146 = bitcast float* %145 to <4 x float>*
%147 = load <4 x float>, <4 x float>* %146
%148 = getelementptr inbounds float, float* %145, i64 4
%149 = bitcast float* %148 to <4 x float>*
%150 = load <4 x float>, <4 x float>* %149
%151 = getelementptr inbounds float, float* %93, i64 %144
%152 = bitcast float* %151 to <4 x float>*
%153 = load <4 x float>, <4 x float>* %152
%154 = getelementptr inbounds float, float* %151, i64 4
%155 = bitcast float* %154 to <4 x float>*
%156 = load <4 x float>, <4 x float>* %155
%157 = add i64 %77, %142
%158 = getelementptr inbounds float, float* %121, i64 %157
%159 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %138, <4 x float> %153, <4 x float> %147)
%160 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %140, <4 x float> %156, <4 x float> %150)
%161 = bitcast float* %158 to <4 x float>*
store <4 x float> %159, <4 x float>* %161
%162 = getelementptr inbounds float, float* %158, i64 4
%163 = bitcast float* %162 to <4 x float>*
store <4 x float> %160, <4 x float>* %163
%164 = or i64 %142, 8
%165 = add i64 %77, %164
%166 = getelementptr inbounds float, float* %121, i64 %165
%167 = bitcast float* %166 to <4 x float>*
%168 = load <4 x float>, <4 x float>* %167
%169 = getelementptr inbounds float, float* %166, i64 4
%170 = bitcast float* %169 to <4 x float>*
%171 = load <4 x float>, <4 x float>* %170
%172 = getelementptr inbounds float, float* %93, i64 %165
%173 = bitcast float* %172 to <4 x float>*
%174 = load <4 x float>, <4 x float>* %173
%175 = getelementptr inbounds float, float* %172, i64 4
%176 = bitcast float* %175 to <4 x float>*
%177 = load <4 x float>, <4 x float>* %176
%178 = add i64 %77, %164
%179 = getelementptr inbounds float, float* %121, i64 %178
%180 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %138, <4 x float> %174, <4 x float> %168)
%181 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %140, <4 x float> %177, <4 x float> %171)
%182 = bitcast float* %179 to <4 x float>*
store <4 x float> %180, <4 x float>* %182
%183 = getelementptr inbounds float, float* %179, i64 4
%184 = bitcast float* %183 to <4 x float>*
store <4 x float> %181, <4 x float>* %184
%185 = add nuw i64 %142, 16
%186 = add i64 %143, 2
%187 = icmp eq i64 %186, %105
br i1 %187, label %188, label %141
188: ; preds = %141, %136
%189 = phi i64 [ 0, %136 ], [ %185, %141 ]
br i1 %106, label %211, label %190
190: ; preds = %188
%191 = add i64 %77, %189
%192 = getelementptr inbounds float, float* %121, i64 %191
%193 = bitcast float* %192 to <4 x float>*
%194 = load <4 x float>, <4 x float>* %193
%195 = getelementptr inbounds float, float* %192, i64 4
%196 = bitcast float* %195 to <4 x float>*
%197 = load <4 x float>, <4 x float>* %196
%198 = getelementptr inbounds float, float* %93, i64 %191
%199 = bitcast float* %198 to <4 x float>*
%200 = load <4 x float>, <4 x float>* %199
%201 = getelementptr inbounds float, float* %198, i64 4
%202 = bitcast float* %201 to <4 x float>*
%203 = load <4 x float>, <4 x float>* %202
%204 = add i64 %77, %189
%205 = getelementptr inbounds float, float* %121, i64 %204
%206 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %138, <4 x float> %200, <4 x float> %194)
%207 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %140, <4 x float> %203, <4 x float> %197)
%208 = bitcast float* %205 to <4 x float>*
store <4 x float> %206, <4 x float>* %208
%209 = getelementptr inbounds float, float* %205, i64 4
%210 = bitcast float* %209 to <4 x float>*
store <4 x float> %207, <4 x float>* %210
br label %211
211: ; preds = %188, %190
br i1 %107, label %232, label %212
212: ; preds = %130, %129, %211
%213 = phi i64 [ %97, %130 ], [ %97, %129 ], [ %101, %211 ]
%214 = phi i64 [ %77, %130 ], [ %77, %129 ], [ %102, %211 ]
%215 = sub i64 %40, %213
%216 = xor i64 %213, -1
%217 = and i64 %215, 1
%218 = icmp eq i64 %217, 0
br i1 %218, label %228, label %219
219: ; preds = %212
%220 = getelementptr inbounds float, float* %121, i64 %214
%221 = load float, float* %220
%222 = getelementptr inbounds float, float* %93, i64 %214
%223 = load float, float* %222
%224 = add nsw i64 %213, -1
%225 = getelementptr inbounds float, float* %121, i64 %224
%226 = call float @llvm.fmuladd.f32(float %126, float %223, float %221)
store float %226, float* %225
%227 = add nuw nsw i64 %213, 1
br label %228
228: ; preds = %219, %212
%229 = phi i64 [ %213, %212 ], [ %227, %219 ]
%230 = phi i64 [ %214, %212 ], [ %213, %219 ]
%231 = icmp eq i64 %216, %50
br i1 %231, label %232, label %240
232: ; preds = %228, %240, %211, %108
%233 = getelementptr inbounds float, float* %18, i64 %119
%234 = load float, float* %233
%235 = load float, float* %95
%236 = call float @llvm.fmuladd.f32(float %126, float %235, float %234)
store float %236, float* %233
%237 = add nuw nsw i64 %110, 1
%238 = icmp eq i64 %237, %40
%239 = add i64 %109, 1
br i1 %238, label %68, label %108
240: ; preds = %228, %240
%241 = phi i64 [ %257, %240 ], [ %229, %228 ]
%242 = phi i64 [ %250, %240 ], [ %230, %228 ]
%243 = getelementptr inbounds float, float* %121, i64 %242
%244 = load float, float* %243
%245 = getelementptr inbounds float, float* %93, i64 %242
%246 = load float, float* %245
%247 = add nsw i64 %241, -1
%248 = getelementptr inbounds float, float* %121, i64 %247
%249 = call float @llvm.fmuladd.f32(float %126, float %246, float %244)
store float %249, float* %248
%250 = add nuw nsw i64 %241, 1
%251 = getelementptr inbounds float, float* %121, i64 %241
%252 = load float, float* %251
%253 = getelementptr inbounds float, float* %93, i64 %241
%254 = load float, float* %253
%255 = getelementptr inbounds float, float* %121, i64 %241
%256 = call float @llvm.fmuladd.f32(float %126, float %254, float %252)
store float %256, float* %255
%257 = add nuw nsw i64 %241, 2
%258 = icmp eq i64 %257, %40
br i1 %258, label %232, label %240
259: ; preds = %72, %284
%260 = phi i32 [ %291, %284 ], [ %56, %72 ]
%261 = phi i64 [ %290, %284 ], [ 0, %72 ]
%262 = icmp sgt i32 %260, 0
br i1 %262, label %263, label %284
263: ; preds = %259
%264 = mul nuw nsw i64 %261, %12
%265 = getelementptr inbounds float, float* %15, i64 %264
br label %294
266: ; preds = %284, %2, %72
%267 = phi i32 [ %56, %72 ], [ %24, %2 ], [ %291, %284 ]
%268 = zext i32 %267 to i64
%269 = alloca float, i64 %268
%270 = add nsw i32 %267, -1
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds float, float* %18, i64 %271
%273 = load float, float* %272
%274 = mul nsw i64 %271, %12
%275 = getelementptr inbounds float, float* %15, i64 %274
%276 = getelementptr inbounds float, float* %275, i64 %271
%277 = load float, float* %276
%278 = fdiv float %273, %277
%279 = getelementptr inbounds float, float* %269, i64 %271
store float %278, float* %279
%280 = icmp sgt i32 %267, 1
br i1 %280, label %281, label %304
281: ; preds = %266
%282 = add nsw i32 %267, -2
%283 = zext i32 %282 to i64
br label %306
284: ; preds = %294, %259
%285 = getelementptr inbounds float, float* %18, i64 %261
%286 = load float, float* %285
%287 = fpext float %286 to double
%288 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), double %287)
%289 = call i32 @putchar(i32 10)
%290 = add nuw nsw i64 %261, 1
%291 = load i32, i32* %3
%292 = sext i32 %291 to i64
%293 = icmp slt i64 %290, %292
br i1 %293, label %259, label %266
294: ; preds = %263, %294
%295 = phi i64 [ 0, %263 ], [ %300, %294 ]
%296 = getelementptr inbounds float, float* %265, i64 %295
%297 = load float, float* %296
%298 = fpext float %297 to double
%299 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %298)
%300 = add nuw nsw i64 %295, 1
%301 = load i32, i32* %3
%302 = sext i32 %301 to i64
%303 = icmp slt i64 %300, %302
br i1 %303, label %294, label %284
304: ; preds = %334, %266
%305 = icmp sgt i32 %267, 0
br i1 %305, label %372, label %371
306: ; preds = %281, %334
%307 = phi i64 [ 0, %281 ], [ %343, %334 ]
%308 = phi i64 [ 1, %281 ], [ %340, %334 ]
%309 = phi i64 [ %283, %281 ], [ %341, %334 ]
%310 = getelementptr inbounds float, float* %18, i64 %309
%311 = load float, float* %310
%312 = mul nuw nsw i64 %309, %12
%313 = getelementptr inbounds float, float* %15, i64 %312
%314 = and i64 %308, 1
%315 = icmp eq i64 %307, 0
br i1 %315, label %318, label %316
316: ; preds = %306
%317 = and i64 %308, 9223372036854775806
br label %344
318: ; preds = %344, %306
%319 = phi float [ undef, %306 ], [ %367, %344 ]
%320 = phi i64 [ 0, %306 ], [ %368, %344 ]
%321 = phi float [ %311, %306 ], [ %367, %344 ]
%322 = icmp eq i64 %314, 0
br i1 %322, label %334, label %323
323: ; preds = %318
%324 = trunc i64 %320 to i32
%325 = xor i32 %324, -1
%326 = add i32 %267, %325
%327 = sext i32 %326 to i64
%328 = getelementptr inbounds float, float* %313, i64 %327
%329 = load float, float* %328
%330 = getelementptr inbounds float, float* %269, i64 %327
%331 = load float, float* %330
%332 = fneg float %329
%333 = call float @llvm.fmuladd.f32(float %332, float %331, float %321)
br label %334
334: ; preds = %318, %323
%335 = phi float [ %319, %318 ], [ %333, %323 ]
%336 = getelementptr inbounds float, float* %313, i64 %309
%337 = load float, float* %336
%338 = fdiv float %335, %337
%339 = getelementptr inbounds float, float* %269, i64 %309
store float %338, float* %339
%340 = add nuw nsw i64 %308, 1
%341 = add nsw i64 %309, -1
%342 = icmp eq i64 %340, %268
%343 = add i64 %307, 1
br i1 %342, label %304, label %306
344: ; preds = %344, %316
%345 = phi i64 [ 0, %316 ], [ %368, %344 ]
%346 = phi float [ %311, %316 ], [ %367, %344 ]
%347 = phi i64 [ 0, %316 ], [ %369, %344 ]
%348 = trunc i64 %345 to i32
%349 = xor i32 %348, -1
%350 = add i32 %267, %349
%351 = sext i32 %350 to i64
%352 = getelementptr inbounds float, float* %313, i64 %351
%353 = load float, float* %352
%354 = getelementptr inbounds float, float* %269, i64 %351
%355 = load float, float* %354
%356 = fneg float %353
%357 = call float @llvm.fmuladd.f32(float %356, float %355, float %346)
%358 = trunc i64 %345 to i32
%359 = xor i32 %358, -2
%360 = add i32 %267, %359
%361 = sext i32 %360 to i64
%362 = getelementptr inbounds float, float* %313, i64 %361
%363 = load float, float* %362
%364 = getelementptr inbounds float, float* %269, i64 %361
%365 = load float, float* %364
%366 = fneg float %363
%367 = call float @llvm.fmuladd.f32(float %366, float %365, float %357)
%368 = add nuw nsw i64 %345, 2
%369 = add i64 %347, 2
%370 = icmp eq i64 %369, %317
br i1 %370, label %318, label %344
371: ; preds = %372, %304
ret i32 0
372: ; preds = %304, %372
%373 = phi i64 [ %374, %372 ], [ 0, %304 ]
%374 = add nuw nsw i64 %373, 1
%375 = getelementptr inbounds float, float* %269, i64 %373
%376 = load float, float* %375
%377 = fpext float %376 to double
%378 = trunc i64 %374 to i32
%379 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 %378, double %377)
%380 = load i32, i32* %3
%381 = sext i32 %380 to i64
%382 = icmp slt i64 %374, %381
br i1 %382, label %372, label %371
}