#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 */

/* Variables and functions */
int /*<<< orphan*/ clrscr();
int /*<<< orphan*/ getch();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
main() {
  int i, j, k, m = 0, n;
  float a[9][10], x[10], total;
  clrscr();
  printf("If two columns of your equation or more reveal coefficients linear "
         "nearly.");
  printf(
      "\nYou mustn't perform this program.And then press 'ctrl+c' to escape.");
  printf("\nOr unkown values over 10.Yor have to expand your array's size.");
  getch();
  clrscr();
  printf("How many unkown values would you like to calculate.");
  scanf("%d", &n);
  printf("\nPlease input your coefficients column by column.\n");
  for (i = 0; i <= n - 1; i++)
    for (j = 0; j <= n; j++)
      scanf("%f", &a[i][j]);
  clrscr();
  for (i = 0; i <= n - 1; i++) {
    for (j = 0; j <= n; j++)
      printf("%f ", a[i][j]);
    printf("\n");
  }
  printf("Original array makes become to the below array.\n");
  for (k = m; k <= n - 2; k++) {
    for (i = m + 1; i <= n - 1; i++) {
      for (j = m; j <= n; j++)
        a[i][j + 1] = a[k][j + 1] - a[i][j + 1] * (a[k][k] / a[i][k]);
      a[i][k] = 0;
    }
    m = m + 1;
  }
  for (i = 0; i <= n - 1; i++) {
    for (j = 0; j <= n; j++)
      printf("%f ", a[i][j]);
    printf("\n");
  }
  for (i = n - 1; i >= 0; i--) {
    total = 0;
    for (j = n - 1; j >= i + 1; j--)
      total += a[i][j] * x[j];
    a[i][n] = a[i][n] - total;
    x[i] = a[i][n] / a[i][i];
    printf("x%d=%f\n", i, x[i]);
  }
  getch();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1c0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x14(%rbp)
mov    $0x0,%al
call   1030 <clrscr@plt>
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf0d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <getch@plt>
mov    $0x0,%al
call   1030 <clrscr@plt>
lea    0xf31(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf57(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xf48(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     123d <main+0xfd>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     122a <main+0xea>
movslq -0x8(%rbp),%rax
lea    -0x180(%rbp),%rsi
imul   $0x28,%rax,%rax
add    %rax,%rsi
movslq -0xc(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xf25(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11e5 <main+0xa5>
jmp    122f <main+0xef>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11cd <main+0x8d>
mov    $0x0,%al
call   1030 <clrscr@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     12c6 <main+0x186>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     12aa <main+0x16a>
movslq -0x8(%rbp),%rcx
lea    -0x180(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xea8(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1263 <main+0x123>
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    124b <main+0x10b>
lea    0xe74(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jg     1413 <main+0x2d3>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     13fc <main+0x2bc>
mov    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     13d0 <main+0x290>
movslq -0x10(%rbp),%rcx
lea    -0x180(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm1
movslq -0x8(%rbp),%rcx
lea    -0x180(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
movslq -0x10(%rbp),%rcx
lea    -0x180(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movslq -0x8(%rbp),%rcx
lea    -0x180(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
divss  (%rax,%rcx,4),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movslq -0x8(%rbp),%rcx
lea    -0x180(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    130b <main+0x1cb>
movslq -0x8(%rbp),%rcx
lea    -0x180(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12f4 <main+0x1b4>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12da <main+0x19a>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1495 <main+0x355>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     1479 <main+0x339>
movslq -0x8(%rbp),%rcx
lea    -0x180(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcd9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1432 <main+0x2f2>
lea    0xcb8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    141a <main+0x2da>
mov    -0x18(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     15cc <main+0x48c>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1b4(%rbp)
ff
mov    -0x18(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jl     151b <main+0x3db>
movslq -0x8(%rbp),%rcx
lea    -0x180(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movslq -0xc(%rbp),%rax
movss  -0x1b0(%rbp,%rax,4),%xmm2
ff ff
movss  -0x1b4(%rbp),%xmm1
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x1b4(%rbp)
ff
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    14bc <main+0x37c>
movslq -0x8(%rbp),%rcx
lea    -0x180(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
subss  -0x1b4(%rbp),%xmm0
ff
movslq -0x8(%rbp),%rcx
lea    -0x180(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movslq -0x8(%rbp),%rcx
lea    -0x180(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movslq -0x8(%rbp),%rcx
lea    -0x180(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x8(%rbp),%rcx
divss  (%rax,%rcx,4),%xmm0
movslq -0x8(%rbp),%rax
movss  %xmm0,-0x1b0(%rbp,%rax,4)
ff ff
mov    -0x8(%rbp),%esi
movslq -0x8(%rbp),%rax
movss  -0x1b0(%rbp,%rax,4),%xmm0
ff ff
cvtss2sd %xmm0,%xmm0
lea    0xbbb(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    149e <main+0x35e>
mov    $0x0,%al
call   1060 <getch@plt>
mov    -0x4(%rbp),%eax
add    $0x1c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x218,%rsp
xor    %eax,%eax
call   1040 <clrscr@plt>
lea    0xe81(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xebe(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xef5(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   1080 <getch@plt>
xor    %eax,%eax
call   1040 <clrscr@plt>
lea    0xf19(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xf3f(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xf40(%rip),%rdi
call   1050 <puts@plt>
mov    (%rsp),%eax
test   %eax,%eax
jle    1240 <main+0xe0>
lea    0xb0(%rsp),%r15
lea    0xf16(%rip),%r14
xor    %r12d,%r12d
jmp    1210 <main+0xb0>
cs nopw 0x0(%rax,%rax,1)
movslq %eax,%rcx
add    $0x1,%r12
add    $0x28,%r15
cmp    %rcx,%r12
jge    1240 <main+0xe0>
test   %eax,%eax
js     1200 <main+0xa0>
mov    $0xffffffffffffffff,%rbp
mov    %r15,%rbx
xchg   %ax,%ax
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
movslq (%rsp),%rax
add    $0x1,%rbp
add    $0x4,%rbx
cmp    %rax,%rbp
jl     1220 <main+0xc0>
jmp    1200 <main+0xa0>
xor    %eax,%eax
call   1040 <clrscr@plt>
mov    (%rsp),%eax
test   %eax,%eax
jle    12c3 <main+0x163>
lea    0xb0(%rsp),%rbp
xor    %r14d,%r14d
lea    0xeaa(%rip),%r15
jmp    128b <main+0x12b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14
movslq (%rsp),%rax
add    $0x28,%rbp
cmp    %rax,%r14
jge    12c3 <main+0x163>
test   %eax,%eax
js     1270 <main+0x110>
mov    $0xffffffffffffffff,%rbx
cs nopw 0x0(%rax,%rax,1)
movss  0x4(%rbp,%rbx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movslq (%rsp),%rax
add    $0x1,%rbx
cmp    %rax,%rbx
jl     12a0 <main+0x140>
jmp    1270 <main+0x110>
lea    0xe7e(%rip),%rdi
call   1050 <puts@plt>
mov    (%rsp),%edi
cmp    $0x2,%edi
jge    142d <main+0x2cd>
test   %edi,%edi
jle    1412 <main+0x2b2>
lea    0xb0(%rsp),%rbp
xor    %r14d,%r14d
lea    0xe15(%rip),%r15
jmp    131b <main+0x1bb>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14
movslq (%rsp),%rdi
add    $0x28,%rbp
cmp    %rdi,%r14
jge    1353 <main+0x1f3>
test   %edi,%edi
js     1300 <main+0x1a0>
mov    $0xffffffffffffffff,%rbx
cs nopw 0x0(%rax,%rax,1)
movss  0x4(%rbp,%rbx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movslq (%rsp),%rax
add    $0x1,%rbx
cmp    %rax,%rbx
jl     1330 <main+0x1d0>
jmp    1300 <main+0x1a0>
test   %edi,%edi
jle    1412 <main+0x2b2>
mov    %edi,%ebx
lea    (%rbx,%rbx,4),%rax
lea    (%rsp,%rax,8),%rbp
add    $0x84,%rbp
lea    0xd9b(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    -0x1(%rbx),%r15
movslq %edi,%rax
xorps  %xmm0,%xmm0
cmp    %rax,%rbx
jge    13bc <main+0x25c>
xorps  %xmm0,%xmm0
mov    %rax,%rcx
cs nopw 0x0(%rax,%rax,1)
nop
movss  0x0(%rbp,%rcx,4),%xmm1
mulss  0x7c(%rsp,%rcx,4),%xmm1
lea    -0x1(%rcx),%rdx
addss  %xmm1,%xmm0
mov    %rdx,%rcx
cmp    %rbx,%rdx
jg     13a0 <main+0x240>
lea    (%r15,%r15,4),%rcx
lea    (%rsp,%rcx,8),%rcx
add    $0xb0,%rcx
movss  (%rcx,%rax,4),%xmm1
subss  %xmm0,%xmm1
movss  %xmm1,(%rcx,%rax,4)
divss  (%rcx,%r15,4),%xmm1
movss  %xmm1,0x80(%rsp,%r15,4)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x1,%al
call   1060 <printf@plt>
cmp    $0x2,%rbx
jl     1412 <main+0x2b2>
mov    (%rsp),%edi
add    $0xffffffffffffffd8,%rbp
mov    %r15,%rbx
jmp    1380 <main+0x220>
xor    %eax,%eax
call   1080 <getch@plt>
xor    %eax,%eax
add    $0x218,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x1(%rdi),%rcx
lea    -0x1(%rdi),%eax
mov    %rax,0x38(%rsp)
lea    0x2(%rdi),%rax
mov    %rax,0x28(%rsp)
lea    0xdc(%rsp),%rax
lea    0xb4(%rsp),%rbx
mov    $0x1,%edx
mov    %rdx,0x18(%rsp)
xor    %r8d,%r8d
mov    %rbx,%rsi
mov    %rax,0x20(%rsp)
mov    %rax,0x10(%rsp)
mov    %rcx,0x8(%rsp)
mov    %rdi,0x78(%rsp)
jmp    14b3 <main+0x353>
nopl   0x0(%rax,%rax,1)
addq   $0x1,0x18(%rsp)
addq   $0xffffffffffffffff,0x8(%rsp)
addq   $0x2c,0x10(%rsp)
add    $0x2c,%rsi
add    $0x28,%rbx
addq   $0x28,0x20(%rsp)
mov    0x40(%rsp),%rax
mov    %rax,%r8
cmp    0x38(%rsp),%rax
je     12db <main+0x17b>
lea    0x1(%r8),%rax
mov    %rax,0x40(%rsp)
cmp    %eax,%edi
jle    1480 <main+0x320>
mov    0x8(%rsp),%rdx
and    $0xfffffffffffffffc,%rdx
mov    %rcx,%rax
sub    %r8,%rax
lea    (%r8,%r8,4),%r10
lea    (%r8,%r10,2),%r9
lea    (%r8,%r10,2),%rbp
add    $0x1,%rbp
mov    %rbp,0x70(%rsp)
lea    0xb4(%rsp,%r9,4),%rbp
mov    %rbp,0x68(%rsp)
lea    0xb0(%rsp,%r10,8),%r10
mov    0x28(%rsp),%rbp
lea    (%r10,%rbp,4),%rbp
mov    %rbp,0x60(%rsp)
lea    0xb0(%rsp,%r9,4),%rbp
mov    %rbp,0x58(%rsp)
lea    (%r10,%r8,4),%rbp
mov    %rax,0x30(%rsp)
and    $0xfffffffffffffffc,%rax
mov    %rax,0x50(%rsp)
add    %r8,%rax
mov    %rax,0x48(%rsp)
mov    0x20(%rsp),%r10
mov    0x10(%rsp),%r14
xor    %r15d,%r15d
mov    0x18(%rsp),%r11
jmp    1576 <main+0x416>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movl   $0x0,(%r9,%r8,4)
add    $0x1,%r11
add    $0x1,%r15
add    $0x28,%r14
add    $0x28,%r10
mov    0x78(%rsp),%rdi
cmp    %rdi,%r11
je     1480 <main+0x320>
lea    (%r11,%r11,4),%rax
lea    (%rsp,%rax,8),%r9
add    $0xb0,%r9
cmp    %r8d,%edi
jl     1550 <main+0x3f0>
lea    (%r9,%r8,4),%r12
mov    %r8,%rdi
cmpq   $0x4,0x30(%rsp)
jae    15d0 <main+0x470>
nopl   0x0(%rax)
movss  (%rbx,%rdi,4),%xmm0
movss  0x0(%rbp),%xmm1
divss  (%r12),%xmm1
mulss  (%r10,%rdi,4),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,(%r10,%rdi,4)
lea    0x1(%rdi),%rax
mov    %rax,%rdi
cmp    %rax,%rcx
jne    15a0 <main+0x440>
jmp    1550 <main+0x3f0>
xchg   %ax,%ax
lea    (%r15,%r15,4),%rax
lea    (%rsp,%rax,8),%rax
add    $0xb0,%rax
mov    0x70(%rsp),%rdi
lea    (%rax,%rdi,4),%rax
add    $0x28,%rax
mov    0x28(%rsp),%rdi
lea    (%r9,%rdi,4),%rdi
cmp    0x60(%rsp),%rax
setb   0x7(%rsp)
mov    0x68(%rsp),%r13
cmp    %rdi,%r13
setb   0x6(%rsp)
cmp    %r13,%rax
setb   %al
cmp    %rdi,0x58(%rsp)
setb   0x5(%rsp)
mov    %r8,%rdi
mov    0x6(%rsp),%r13b
test   %r13b,0x7(%rsp)
jne    15a0 <main+0x440>
mov    %r8,%rdi
and    0x5(%rsp),%al
jne    15a0 <main+0x440>
movss  0x0(%rbp),%xmm0
divss  (%r12),%xmm0
shufps $0x0,%xmm0,%xmm0
xor    %edi,%edi
nopl   0x0(%rax)
movups (%rsi,%rdi,4),%xmm1
movups (%r14,%rdi,4),%xmm2
mulps  %xmm0,%xmm2
subps  %xmm2,%xmm1
movups %xmm1,(%r14,%rdi,4)
add    $0x4,%rdi
cmp    %rdi,%rdx
jne    1650 <main+0x4f0>
mov    0x48(%rsp),%rdi
mov    0x50(%rsp),%rax
cmp    %rax,0x30(%rsp)
jne    15a0 <main+0x440>
jmp    1550 <main+0x3f0>

LLVM IR (-O0):
@.str = [75 x i8] c"If two columns of your equation or more reveal coefficients linear nearly.\00"
@.str.1 = [69 x i8] c"\0AYou mustn't perform this program.And then press 'ctrl+c' to escape.\00"
@.str.2 = [64 x i8] c"\0AOr unkown values over 10.Yor have to expand your array's size.\00"
@.str.3 = [52 x i8] c"How many unkown values would you like to calculate.\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [51 x i8] c"\0APlease input your coefficients column by column.\0A\00"
@.str.6 = [3 x i8] c"%f\00"
@.str.7 = [4 x i8] c"%f \00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [49 x i8] c"Original array makes become to the below array.\0A\00"
@.str.10 = [8 x i8] c"x%d=%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [9 x [10 x float]]
%8 = alloca [10 x float]
%9 = alloca float
store i32 0, i32* %1
store i32 0, i32* %5
%10 = call i32 (...) @clrscr()
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 (...) @getch()
%15 = call i32 (...) @clrscr()
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0))
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %6)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %2
br label %19
19: ; preds = %41, %0
%20 = load i32, i32* %2
%21 = load i32, i32* %6
%22 = sub nsw i32 %21, 1
%23 = icmp sle i32 %20, %22
br i1 %23, label %24, label %44
24: ; preds = %19
store i32 0, i32* %3
br label %25
25: ; preds = %37, %24
%26 = load i32, i32* %3
%27 = load i32, i32* %6
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %40
29: ; preds = %25
%30 = load i32, i32* %2
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %31
%33 = load i32, i32* %3
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [10 x float], [10 x float]* %32, i64 0, i64 %34
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %35)
br label %37
37: ; preds = %29
%38 = load i32, i32* %3
%39 = add nsw i32 %38, 1
store i32 %39, i32* %3
br label %25
40: ; preds = %25
br label %41
41: ; preds = %40
%42 = load i32, i32* %2
%43 = add nsw i32 %42, 1
store i32 %43, i32* %2
br label %19
44: ; preds = %19
%45 = call i32 (...) @clrscr()
store i32 0, i32* %2
br label %46
46: ; preds = %71, %44
%47 = load i32, i32* %2
%48 = load i32, i32* %6
%49 = sub nsw i32 %48, 1
%50 = icmp sle i32 %47, %49
br i1 %50, label %51, label %74
51: ; preds = %46
store i32 0, i32* %3
br label %52
52: ; preds = %66, %51
%53 = load i32, i32* %3
%54 = load i32, i32* %6
%55 = icmp sle i32 %53, %54
br i1 %55, label %56, label %69
56: ; preds = %52
%57 = load i32, i32* %2
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %58
%60 = load i32, i32* %3
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10 x float], [10 x float]* %59, i64 0, i64 %61
%63 = load float, float* %62
%64 = fpext float %63 to double
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double %64)
br label %66
66: ; preds = %56
%67 = load i32, i32* %3
%68 = add nsw i32 %67, 1
store i32 %68, i32* %3
br label %52
69: ; preds = %52
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %71
71: ; preds = %69
%72 = load i32, i32* %2
%73 = add nsw i32 %72, 1
store i32 %73, i32* %2
br label %46
74: ; preds = %46
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0))
%76 = load i32, i32* %5
store i32 %76, i32* %4
br label %77
77: ; preds = %153, %74
%78 = load i32, i32* %4
%79 = load i32, i32* %6
%80 = sub nsw i32 %79, 2
%81 = icmp sle i32 %78, %80
br i1 %81, label %82, label %156
82: ; preds = %77
%83 = load i32, i32* %5
%84 = add nsw i32 %83, 1
store i32 %84, i32* %2
br label %85
85: ; preds = %147, %82
%86 = load i32, i32* %2
%87 = load i32, i32* %6
%88 = sub nsw i32 %87, 1
%89 = icmp sle i32 %86, %88
br i1 %89, label %90, label %150
90: ; preds = %85
%91 = load i32, i32* %5
store i32 %91, i32* %3
br label %92
92: ; preds = %137, %90
%93 = load i32, i32* %3
%94 = load i32, i32* %6
%95 = icmp sle i32 %93, %94
br i1 %95, label %96, label %140
96: ; preds = %92
%97 = load i32, i32* %4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %98
%100 = load i32, i32* %3
%101 = add nsw i32 %100, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [10 x float], [10 x float]* %99, i64 0, i64 %102
%104 = load float, float* %103
%105 = load i32, i32* %2
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %106
%108 = load i32, i32* %3
%109 = add nsw i32 %108, 1
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [10 x float], [10 x float]* %107, i64 0, i64 %110
%112 = load float, float* %111
%113 = load i32, i32* %4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %114
%116 = load i32, i32* %4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [10 x float], [10 x float]* %115, i64 0, i64 %117
%119 = load float, float* %118
%120 = load i32, i32* %2
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %121
%123 = load i32, i32* %4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [10 x float], [10 x float]* %122, i64 0, i64 %124
%126 = load float, float* %125
%127 = fdiv float %119, %126
%128 = fneg float %112
%129 = call float @llvm.fmuladd.f32(float %128, float %127, float %104)
%130 = load i32, i32* %2
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %131
%133 = load i32, i32* %3
%134 = add nsw i32 %133, 1
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [10 x float], [10 x float]* %132, i64 0, i64 %135
store float %129, float* %136
br label %137
137: ; preds = %96
%138 = load i32, i32* %3
%139 = add nsw i32 %138, 1
store i32 %139, i32* %3
br label %92
140: ; preds = %92
%141 = load i32, i32* %2
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %142
%144 = load i32, i32* %4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds [10 x float], [10 x float]* %143, i64 0, i64 %145
store float 0.000000e+00, float* %146
br label %147
147: ; preds = %140
%148 = load i32, i32* %2
%149 = add nsw i32 %148, 1
store i32 %149, i32* %2
br label %85
150: ; preds = %85
%151 = load i32, i32* %5
%152 = add nsw i32 %151, 1
store i32 %152, i32* %5
br label %153
153: ; preds = %150
%154 = load i32, i32* %4
%155 = add nsw i32 %154, 1
store i32 %155, i32* %4
br label %77
156: ; preds = %77
store i32 0, i32* %2
br label %157
157: ; preds = %182, %156
%158 = load i32, i32* %2
%159 = load i32, i32* %6
%160 = sub nsw i32 %159, 1
%161 = icmp sle i32 %158, %160
br i1 %161, label %162, label %185
162: ; preds = %157
store i32 0, i32* %3
br label %163
163: ; preds = %177, %162
%164 = load i32, i32* %3
%165 = load i32, i32* %6
%166 = icmp sle i32 %164, %165
br i1 %166, label %167, label %180
167: ; preds = %163
%168 = load i32, i32* %2
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %169
%171 = load i32, i32* %3
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [10 x float], [10 x float]* %170, i64 0, i64 %172
%174 = load float, float* %173
%175 = fpext float %174 to double
%176 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double %175)
br label %177
177: ; preds = %167
%178 = load i32, i32* %3
%179 = add nsw i32 %178, 1
store i32 %179, i32* %3
br label %163
180: ; preds = %163
%181 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %182
182: ; preds = %180
%183 = load i32, i32* %2
%184 = add nsw i32 %183, 1
store i32 %184, i32* %2
br label %157
185: ; preds = %157
%186 = load i32, i32* %6
%187 = sub nsw i32 %186, 1
store i32 %187, i32* %2
br label %188
188: ; preds = %257, %185
%189 = load i32, i32* %2
%190 = icmp sge i32 %189, 0
br i1 %190, label %191, label %260
191: ; preds = %188
store float 0.000000e+00, float* %9
%192 = load i32, i32* %6
%193 = sub nsw i32 %192, 1
store i32 %193, i32* %3
br label %194
194: ; preds = %213, %191
%195 = load i32, i32* %3
%196 = load i32, i32* %2
%197 = add nsw i32 %196, 1
%198 = icmp sge i32 %195, %197
br i1 %198, label %199, label %216
199: ; preds = %194
%200 = load i32, i32* %2
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %201
%203 = load i32, i32* %3
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [10 x float], [10 x float]* %202, i64 0, i64 %204
%206 = load float, float* %205
%207 = load i32, i32* %3
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds [10 x float], [10 x float]* %8, i64 0, i64 %208
%210 = load float, float* %209
%211 = load float, float* %9
%212 = call float @llvm.fmuladd.f32(float %206, float %210, float %211)
store float %212, float* %9
br label %213
213: ; preds = %199
%214 = load i32, i32* %3
%215 = add nsw i32 %214, -1
store i32 %215, i32* %3
br label %194
216: ; preds = %194
%217 = load i32, i32* %2
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %218
%220 = load i32, i32* %6
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds [10 x float], [10 x float]* %219, i64 0, i64 %221
%223 = load float, float* %222
%224 = load float, float* %9
%225 = fsub float %223, %224
%226 = load i32, i32* %2
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %227
%229 = load i32, i32* %6
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds [10 x float], [10 x float]* %228, i64 0, i64 %230
store float %225, float* %231
%232 = load i32, i32* %2
%233 = sext i32 %232 to i64
%234 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %233
%235 = load i32, i32* %6
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds [10 x float], [10 x float]* %234, i64 0, i64 %236
%238 = load float, float* %237
%239 = load i32, i32* %2
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %7, i64 0, i64 %240
%242 = load i32, i32* %2
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds [10 x float], [10 x float]* %241, i64 0, i64 %243
%245 = load float, float* %244
%246 = fdiv float %238, %245
%247 = load i32, i32* %2
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds [10 x float], [10 x float]* %8, i64 0, i64 %248
store float %246, float* %249
%250 = load i32, i32* %2
%251 = load i32, i32* %2
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds [10 x float], [10 x float]* %8, i64 0, i64 %252
%254 = load float, float* %253
%255 = fpext float %254 to double
%256 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 %250, double %255)
br label %257
257: ; preds = %216
%258 = load i32, i32* %2
%259 = add nsw i32 %258, -1
store i32 %259, i32* %2
br label %188
260: ; preds = %188
%261 = call i32 (...) @getch()
%262 = load i32, i32* %1
ret i32 %262
}

LLVM IR (-O2):
@.str = [75 x i8] c"If two columns of your equation or more reveal coefficients linear nearly.\00"
@.str.1 = [69 x i8] c"\0AYou mustn't perform this program.And then press 'ctrl+c' to escape.\00"
@.str.2 = [64 x i8] c"\0AOr unkown values over 10.Yor have to expand your array's size.\00"
@.str.3 = [52 x i8] c"How many unkown values would you like to calculate.\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.6 = [3 x i8] c"%f\00"
@.str.7 = [4 x i8] c"%f \00"
@.str.10 = [8 x i8] c"x%d=%f\0A\00"
@str = [50 x i8] c"\0APlease input your coefficients column by column.\00"
@str.11 = [48 x i8] c"Original array makes become to the below array.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [9 x [10 x float]]
%3 = alloca [10 x float]
%4 = bitcast i32* %1 to i8*
%5 = bitcast [9 x [10 x float]]* %2 to i8*
%6 = bitcast [10 x float]* %3 to i8*
%7 = tail call i32 (...) @clrscr()
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 (...) @getch()
%12 = tail call i32 (...) @clrscr()
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
%16 = load i32, i32* %1
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %35
18: ; preds = %0, %30
%19 = phi i32 [ %31, %30 ], [ %16, %0 ]
%20 = phi i64 [ %33, %30 ], [ 0, %0 ]
%21 = icmp slt i32 %19, 0
br i1 %21, label %30, label %22
22: ; preds = %18, %22
%23 = phi i64 [ %26, %22 ], [ 0, %18 ]
%24 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %20, i64 %23
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %24)
%26 = add nuw nsw i64 %23, 1
%27 = load i32, i32* %1
%28 = sext i32 %27 to i64
%29 = icmp slt i64 %23, %28
br i1 %29, label %22, label %30
30: ; preds = %22, %18
%31 = phi i32 [ %19, %18 ], [ %27, %22 ]
%32 = sext i32 %31 to i64
%33 = add nuw nsw i64 %20, 1
%34 = icmp slt i64 %33, %32
br i1 %34, label %18, label %35
35: ; preds = %30, %0
%36 = call i32 (...) @clrscr()
%37 = load i32, i32* %1
%38 = icmp sgt i32 %37, 0
br i1 %38, label %39, label %59
39: ; preds = %35, %53
%40 = phi i32 [ %56, %53 ], [ %37, %35 ]
%41 = phi i64 [ %55, %53 ], [ 0, %35 ]
%42 = icmp slt i32 %40, 0
br i1 %42, label %53, label %43
43: ; preds = %39, %43
%44 = phi i64 [ %49, %43 ], [ 0, %39 ]
%45 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %41, i64 %44
%46 = load float, float* %45
%47 = fpext float %46 to double
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double %47)
%49 = add nuw nsw i64 %44, 1
%50 = load i32, i32* %1
%51 = sext i32 %50 to i64
%52 = icmp slt i64 %44, %51
br i1 %52, label %43, label %53
53: ; preds = %43, %39
%54 = call i32 @putchar(i32 10)
%55 = add nuw nsw i64 %41, 1
%56 = load i32, i32* %1
%57 = sext i32 %56 to i64
%58 = icmp slt i64 %55, %57
br i1 %58, label %39, label %59
59: ; preds = %53, %35
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.11, i64 0, i64 0))
%61 = load i32, i32* %1
%62 = icmp slt i32 %61, 2
br i1 %62, label %70, label %63
63: ; preds = %59
%64 = add nuw i32 %61, 1
%65 = add nsw i32 %61, -1
%66 = zext i32 %65 to i64
%67 = zext i32 %61 to i64
%68 = zext i32 %64 to i64
%69 = add nuw nsw i64 %68, 1
br label %72
70: ; preds = %150, %59
%71 = icmp sgt i32 %61, 0
br i1 %71, label %153, label %208
72: ; preds = %63, %150
%73 = phi i64 [ 1, %63 ], [ %151, %150 ]
%74 = phi i64 [ 0, %63 ], [ %81, %150 ]
%75 = sub nsw i64 %68, %74
%76 = mul nuw nsw i64 %74, 11
%77 = add nuw i64 %76, 1
%78 = getelementptr [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 0, i64 %77
%79 = getelementptr [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %74, i64 %69
%80 = getelementptr [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 0, i64 %76
%81 = add nuw nsw i64 %74, 1
%82 = trunc i64 %81 to i32
%83 = icmp sgt i32 %61, %82
br i1 %83, label %84, label %150
84: ; preds = %72
%85 = trunc i64 %74 to i32
%86 = icmp slt i32 %61, %85
%87 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %74, i64 %74
%88 = icmp ult i64 %75, 4
%89 = and i64 %75, -4
%90 = add i64 %74, %89
%91 = icmp eq i64 %75, %89
br label %92
92: ; preds = %84, %145
%93 = phi i64 [ 0, %84 ], [ %149, %145 ]
%94 = phi i64 [ %73, %84 ], [ %147, %145 ]
%95 = add i64 %93, 1
%96 = getelementptr [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %95, i64 %77
%97 = getelementptr [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %94, i64 %69
br i1 %86, label %145, label %98
98: ; preds = %92
%99 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %94, i64 %74
br i1 %88, label %130, label %100
100: ; preds = %98
%101 = icmp ult float* %96, %79
%102 = icmp ult float* %78, %97
%103 = and i1 %101, %102
%104 = icmp ult float* %96, %78
%105 = icmp ult float* %80, %97
%106 = and i1 %104, %105
%107 = or i1 %103, %106
br i1 %107, label %130, label %108
108: ; preds = %100
%109 = load float, float* %87
%110 = load float, float* %99
%111 = fdiv float %109, %110
%112 = insertelement <4 x float> poison, float %111, i64 0
%113 = shufflevector <4 x float> %112, <4 x float> poison, <4 x i32> zeroinitializer
br label %114
114: ; preds = %114, %108
%115 = phi i64 [ 0, %108 ], [ %127, %114 ]
%116 = add i64 %74, %115
%117 = add nuw nsw i64 %116, 1
%118 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %74, i64 %117
%119 = bitcast float* %118 to <4 x float>*
%120 = load <4 x float>, <4 x float>* %119
%121 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %94, i64 %117
%122 = bitcast float* %121 to <4 x float>*
%123 = load <4 x float>, <4 x float>* %122
%124 = fneg <4 x float> %123
%125 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %124, <4 x float> %113, <4 x float> %120)
%126 = bitcast float* %121 to <4 x float>*
store <4 x float> %125, <4 x float>* %126
%127 = add nuw i64 %115, 4
%128 = icmp eq i64 %127, %89
br i1 %128, label %129, label %114
129: ; preds = %114
br i1 %91, label %145, label %130
130: ; preds = %100, %98, %129
%131 = phi i64 [ %74, %100 ], [ %74, %98 ], [ %90, %129 ]
br label %132
132: ; preds = %130, %132
%133 = phi i64 [ %134, %132 ], [ %131, %130 ]
%134 = add nuw nsw i64 %133, 1
%135 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %74, i64 %134
%136 = load float, float* %135
%137 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %94, i64 %134
%138 = load float, float* %137
%139 = load float, float* %87
%140 = load float, float* %99
%141 = fdiv float %139, %140
%142 = fneg float %138
%143 = call float @llvm.fmuladd.f32(float %142, float %141, float %136)
store float %143, float* %137
%144 = icmp eq i64 %134, %68
br i1 %144, label %145, label %132
145: ; preds = %132, %129, %92
%146 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %94, i64 %74
store float 0.000000e+00, float* %146
%147 = add nuw nsw i64 %94, 1
%148 = icmp eq i64 %147, %67
%149 = add i64 %93, 1
br i1 %148, label %150, label %92
150: ; preds = %145, %72
%151 = add nuw nsw i64 %73, 1
%152 = icmp eq i64 %81, %66
br i1 %152, label %70, label %72
153: ; preds = %70, %171
%154 = phi i32 [ %174, %171 ], [ %61, %70 ]
%155 = phi i64 [ %173, %171 ], [ 0, %70 ]
%156 = icmp slt i32 %154, 0
br i1 %156, label %171, label %161
157: ; preds = %171
%158 = icmp sgt i32 %174, 0
br i1 %158, label %159, label %208
159: ; preds = %157
%160 = zext i32 %174 to i64
br label %177
161: ; preds = %153, %161
%162 = phi i64 [ %167, %161 ], [ 0, %153 ]
%163 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %155, i64 %162
%164 = load float, float* %163
%165 = fpext float %164 to double
%166 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double %165)
%167 = add nuw nsw i64 %162, 1
%168 = load i32, i32* %1
%169 = sext i32 %168 to i64
%170 = icmp slt i64 %162, %169
br i1 %170, label %161, label %171
171: ; preds = %161, %153
%172 = call i32 @putchar(i32 10)
%173 = add nuw nsw i64 %155, 1
%174 = load i32, i32* %1
%175 = sext i32 %174 to i64
%176 = icmp slt i64 %173, %175
br i1 %176, label %153, label %157
177: ; preds = %206, %159
%178 = phi i32 [ %174, %159 ], [ %207, %206 ]
%179 = phi i64 [ %160, %159 ], [ %180, %206 ]
%180 = add nsw i64 %179, -1
%181 = sext i32 %178 to i64
%182 = icmp slt i64 %179, %181
br i1 %182, label %183, label %193
183: ; preds = %177, %183
%184 = phi i64 [ %186, %183 ], [ %181, %177 ]
%185 = phi float [ %191, %183 ], [ 0.000000e+00, %177 ]
%186 = add nsw i64 %184, -1
%187 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %180, i64 %186
%188 = load float, float* %187
%189 = getelementptr inbounds [10 x float], [10 x float]* %3, i64 0, i64 %186
%190 = load float, float* %189
%191 = call float @llvm.fmuladd.f32(float %188, float %190, float %185)
%192 = icmp sgt i64 %186, %179
br i1 %192, label %183, label %193
193: ; preds = %183, %177
%194 = phi float [ 0.000000e+00, %177 ], [ %191, %183 ]
%195 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %180, i64 %181
%196 = load float, float* %195
%197 = fsub float %196, %194
store float %197, float* %195
%198 = getelementptr inbounds [9 x [10 x float]], [9 x [10 x float]]* %2, i64 0, i64 %180, i64 %180
%199 = load float, float* %198
%200 = fdiv float %197, %199
%201 = getelementptr inbounds [10 x float], [10 x float]* %3, i64 0, i64 %180
store float %200, float* %201
%202 = fpext float %200 to double
%203 = trunc i64 %180 to i32
%204 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 %203, double %202)
%205 = icmp sgt i64 %179, 1
br i1 %205, label %206, label %208
206: ; preds = %193
%207 = load i32, i32* %1
br label %177
208: ; preds = %193, %70, %157
%209 = call i32 (...) @getch()
ret i32 0
}