main() {
  int order_r, order_c, p;
  printf("Please enter number of rows:");
  scanf("%d", &order_r);
  printf("Please enter number of columns:");
  scanf("%d", &order_c);
  p = (order_r * order_c) - 1;
  int matrix[p];
  int i;
  int j;
  for (i = 0; i <= p; ++i) {
    scanf("%d\n", &matrix[i]);
  }
  for (i = 0; i <= order_r - 1; ++i) {
    printf("\n");
    for (j = (i * order_c); j <= ((order_c) * (i + 1)) - 1; ++j) {
      printf("%d\t", matrix[j]);
    }
  }
  getch();
  int k;
  int l;
  printf("Which element to be searched for?");
  scanf("%d", &l);
  printf("Please enter row number:");
  scanf("%d", &k);
  cofactor(matrix, l, order_c, k);
  printf("\n-------------------------------------------------\n");
  for (i = 0; i <= order_r - 1; ++i) {
    printf("\n");
    for (j = (i * order_c); j <= ((order_c) * (i + 1)) - 1; ++j) {
      printf("%d\t", matrix[j]);
    }
  }
  getch();
  printf("\n-------------------------------------------------\n");
  int new_order;
  new_order = order_c - 1;
  int m;
  m = (new_order * new_order) - 1;
  int newmatrix[m];
  for (i = 0; i <= order_r - 1; ++i) {
    printf("\n");
    for (j = (i * order_c); j <= ((order_c) * (i + 1)) - 1; ++j) {
      if (matrix[j] != 0) {
        printf("%d\t", matrix[j]);
        int k;
        for (k = 0; k <= m; ++k) {
          newmatrix[k] = matrix[j];
        }
      }
    }
  }
  for (i = 0; i <= new_order - 1; ++i) {
    printf("\n");
    for (j = (i * new_order); j <= ((new_order) * (i + 1)) - 1; ++j) {
      printf("%d\t", newmatrix[j]);
    }
  }
  getch();
  getch();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x51(%rbp)
call   1040 <printf@plt>
mov    -0x51(%rbp),%al
lea    0xeb3(%rip),%rdi
mov    %rdi,-0x60(%rbp)
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x51(%rbp),%al
lea    0xe9f(%rip),%rdi
call   1040 <printf@plt>
mov    -0x60(%rbp),%rdi
mov    -0x51(%rbp),%al
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   %ecx,%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     120a <main+0xca>
mov    -0x50(%rbp),%rsi
movslq -0x24(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11d3 <main+0x93>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     128e <main+0x14e>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0xc(%rbp),%ecx
mov    -0x24(%rbp),%edx
add    $0x1,%edx
imul   %edx,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     127b <main+0x13b>
mov    -0x50(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xdde(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    123a <main+0xfa>
jmp    1280 <main+0x140>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1211 <main+0xd1>
mov    $0x0,%al
call   1060 <getch@plt>
lea    0xdac(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd73(%rip),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xdae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd53(%rip),%rdi
lea    -0x2c(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x50(%rbp),%rdi
mov    -0x30(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x2c(%rbp),%ecx
mov    $0x0,%al
call   1030 <cofactor@plt>
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     137b <main+0x23b>
lea    0xd9f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0xc(%rbp),%ecx
mov    -0x24(%rbp),%edx
add    $0x1,%edx
imul   %edx,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1368 <main+0x228>
mov    -0x50(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xcf1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1327 <main+0x1e7>
jmp    136d <main+0x22d>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12fe <main+0x1be>
xor    %eax,%eax
mov    %al,-0x69(%rbp)
call   1060 <getch@plt>
mov    -0x69(%rbp),%al
lea    0xcf4(%rip),%rdi
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
imul   %eax,%eax
add    $0xffffffff,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x68(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     14a0 <main+0x360>
lea    0xccd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0xc(%rbp),%ecx
mov    -0x24(%rbp),%edx
add    $0x1,%edx
imul   %edx,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     148d <main+0x34d>
mov    -0x50(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
je     147a <main+0x33a>
mov    -0x50(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc0d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x38(%rbp),%eax
jg     1475 <main+0x335>
mov    -0x68(%rbp),%rax
mov    -0x50(%rbp),%rcx
movslq -0x28(%rbp),%rdx
mov    (%rcx,%rdx,4),%edx
movslq -0x44(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1445 <main+0x305>
jmp    147a <main+0x33a>
jmp    147f <main+0x33f>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    13f9 <main+0x2b9>
jmp    1492 <main+0x352>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    13d0 <main+0x290>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1524 <main+0x3e4>
lea    0xbf6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
imul   -0x34(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x34(%rbp),%ecx
mov    -0x24(%rbp),%edx
add    $0x1,%edx
imul   %edx,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1511 <main+0x3d1>
mov    -0x68(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xb48(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    14d0 <main+0x390>
jmp    1516 <main+0x3d6>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    14a7 <main+0x367>
mov    $0x0,%al
call   1060 <getch@plt>
mov    $0x0,%al
call   1060 <getch@plt>
mov    -0x18(%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    $0x68,%rsp
lea    0xe88(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe97(%rip),%rbx
lea    -0x30(%rbp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xe85(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    -0x2c(%rbp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %rsp,-0x60(%rbp)
mov    -0x2c(%rbp),%eax
imul   -0x30(%rbp),%eax
lea    -0x1(%rax),%ecx
mov    %rsp,%r12
lea    0xf(,%rcx,4),%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%r12
mov    %r12,%rsp
test   %eax,%eax
jle    1207 <main+0xa7>
mov    %eax,%r15d
lea    0xe5f(%rip),%r14
mov    %r12,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
add    $0x4,%rbx
add    $0xffffffffffffffff,%r15
jne    11f0 <main+0x90>
cmpl   $0x0,-0x30(%rbp)
jle    1271 <main+0x111>
lea    0xe30(%rip),%r14
xor    %r15d,%r15d
jmp    1226 <main+0xc6>
nopl   0x0(%rax)
cmp    -0x30(%rbp),%r15d
jge    1271 <main+0x111>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    -0x2c(%rbp),%ecx
mov    %ecx,%eax
imul   %r15d,%eax
movslq %r15d,%r15
add    $0x1,%r15
imul   %r15d,%ecx
cmp    %ecx,%eax
jge    1220 <main+0xc0>
movslq %eax,%rbx
nopl   0x0(%rax,%rax,1)
mov    (%r12,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbx
movslq -0x2c(%rbp),%rax
imul   %r15,%rax
cmp    %rax,%rbx
jl     1250 <main+0xf0>
jmp    1220 <main+0xc0>
xor    %eax,%eax
call   1080 <getch@plt>
lea    0xdc9(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd90(%rip),%rbx
lea    -0x4c(%rbp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xdc8(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    -0x50(%rbp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    -0x4c(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    -0x50(%rbp),%ecx
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <cofactor@plt>
lea    0xdb2(%rip),%rdi
call   1050 <puts@plt>
cmpl   $0x0,-0x30(%rbp)
jle    1341 <main+0x1e1>
lea    0xd61(%rip),%r14
xor    %r15d,%r15d
jmp    12f6 <main+0x196>
nopl   0x0(%rax,%rax,1)
cmp    -0x30(%rbp),%r15d
jge    1341 <main+0x1e1>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    -0x2c(%rbp),%ecx
mov    %ecx,%eax
imul   %r15d,%eax
movslq %r15d,%r15
add    $0x1,%r15
imul   %r15d,%ecx
cmp    %ecx,%eax
jge    12f0 <main+0x190>
movslq %eax,%rbx
nopl   0x0(%rax,%rax,1)
mov    (%r12,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbx
movslq -0x2c(%rbp),%rax
imul   %r15,%rax
cmp    %rax,%rbx
jl     1320 <main+0x1c0>
jmp    12f0 <main+0x190>
mov    %r12,-0x48(%rbp)
xor    %eax,%eax
call   1080 <getch@plt>
lea    0xd30(%rip),%rdi
call   1050 <puts@plt>
mov    -0x2c(%rbp),%eax
mov    %rax,-0x58(%rbp)
add    $0xffffffff,%eax
mov    %eax,-0x3c(%rbp)
imul   %eax,%eax
mov    %rax,-0x38(%rbp)
add    $0xffffffff,%eax
mov    %rsp,%r12
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
cmpl   $0x0,-0x30(%rbp)
jle    1572 <main+0x412>
mov    -0x38(%rbp),%r13d
mov    %r13d,%eax
and    $0xfffffff8,%eax
mov    %rax,-0x88(%rbp)
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x80(%rbp)
shr    $0x3,%rax
add    $0x1,%rax
mov    %eax,%r14d
and    $0x7,%r14d
and    $0xfffffffffffffff8,%rax
mov    %rax,-0x68(%rbp)
lea    0x10(%r12),%rax
mov    %rax,-0x70(%rbp)
mov    %r14,-0x78(%rbp)
shl    $0x5,%r14
xor    %ebx,%ebx
jmp    13e9 <main+0x289>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    -0x30(%rbp),%ebx
jge    1572 <main+0x412>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    -0x2c(%rbp),%ecx
mov    %ecx,%eax
imul   %ebx,%eax
movslq %ebx,%rbx
add    $0x1,%rbx
imul   %ebx,%ecx
cmp    %ecx,%eax
jge    13e0 <main+0x280>
movslq %eax,%r15
jmp    1421 <main+0x2c1>
xchg   %ax,%ax
add    $0x1,%r15
movslq -0x2c(%rbp),%rax
imul   %rbx,%rax
cmp    %rax,%r15
jge    13e0 <main+0x280>
mov    -0x48(%rbp),%rax
mov    (%rax,%r15,4),%esi
test   %esi,%esi
je     1410 <main+0x2b0>
lea    0xc10(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmpl   $0x0,-0x38(%rbp)
je     1410 <main+0x2b0>
mov    -0x48(%rbp),%rax
mov    (%rax,%r15,4),%eax
cmpl   $0x8,-0x38(%rbp)
jae    1456 <main+0x2f6>
xor    %ecx,%ecx
jmp    1560 <main+0x400>
movd   %eax,%xmm0
pshufd $0x0,%xmm0,%xmm0
cmpq   $0x38,-0x80(%rbp)
jae    146d <main+0x30d>
xor    %ecx,%ecx
jmp    1515 <main+0x3b5>
mov    -0x68(%rbp),%rdx
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movdqa %xmm0,(%r12,%rcx,4)
movdqa %xmm0,0x10(%r12,%rcx,4)
movdqa %xmm0,0x20(%r12,%rcx,4)
movdqa %xmm0,0x30(%r12,%rcx,4)
movdqa %xmm0,0x40(%r12,%rcx,4)
movdqa %xmm0,0x50(%r12,%rcx,4)
movdqa %xmm0,0x60(%r12,%rcx,4)
movdqa %xmm0,0x70(%r12,%rcx,4)
movdqa %xmm0,0x80(%r12,%rcx,4)
movdqa %xmm0,0x90(%r12,%rcx,4)
movdqa %xmm0,0xa0(%r12,%rcx,4)
movdqa %xmm0,0xb0(%r12,%rcx,4)
movdqa %xmm0,0xc0(%r12,%rcx,4)
movdqa %xmm0,0xd0(%r12,%rcx,4)
movdqa %xmm0,0xe0(%r12,%rcx,4)
movdqa %xmm0,0xf0(%r12,%rcx,4)
add    $0x40,%rcx
add    $0xfffffffffffffff8,%rdx
jne    1480 <main+0x320>
cmpq   $0x0,-0x78(%rbp)
je     1544 <main+0x3e4>
mov    -0x70(%rbp),%rdx
lea    (%rdx,%rcx,4),%rcx
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
movdqa %xmm0,-0x10(%rcx,%rdx,1)
movdqa %xmm0,(%rcx,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%r14
jne    1530 <main+0x3d0>
mov    -0x88(%rbp),%rdx
mov    %rdx,%rcx
cmp    %r13,%rdx
je     1410 <main+0x2b0>
nopw   0x0(%rax,%rax,1)
mov    %eax,(%r12,%rcx,4)
add    $0x1,%rcx
cmp    %rcx,%r13
jne    1560 <main+0x400>
jmp    1410 <main+0x2b0>
cmpl   $0x2,-0x58(%rbp)
mov    -0x3c(%rbp),%r15d
jge    159f <main+0x43f>
xor    %eax,%eax
call   1080 <getch@plt>
xor    %eax,%eax
call   1080 <getch@plt>
mov    -0x60(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r15d,%r14d
movl   $0x0,-0x38(%rbp)
xor    %ebx,%ebx
jmp    15c0 <main+0x460>
nopl   (%rax)
mov    -0x3c(%rbp),%r15d
add    %r15d,-0x38(%rbp)
mov    -0x48(%rbp),%ebx
cmp    %r15d,%ebx
je     157c <main+0x41c>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %ebx,%eax
imul   %r15d,%eax
add    $0x1,%ebx
mov    %ebx,-0x48(%rbp)
mov    %ebx,%ecx
imul   %r15d,%ecx
cmp    %ecx,%eax
lea    0xa5f(%rip),%rbx
jge    15b0 <main+0x450>
movslq -0x38(%rbp),%rax
lea    (%r12,%rax,4),%r13
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x0(%r13,%r15,4),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%r15
cmp    %r15d,%r14d
jne    1600 <main+0x4a0>
jmp    15b0 <main+0x450>

LLVM IR (-O0):
@.str = [29 x i8] c"Please enter number of rows:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [32 x i8] c"Please enter number of columns:\00"
@.str.3 = [4 x i8] c"%d\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [4 x i8] c"%d\09\00"
@.str.6 = [34 x i8] c"Which element to be searched for?\00"
@.str.7 = [25 x i8] c"Please enter row number:\00"
@.str.8 = [52 x i8] c"\0A-------------------------------------------------\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i64
%14 = alloca i32
store i32 0, i32* %1
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = mul nsw i32 %19, %20
%22 = sub nsw i32 %21, 1
store i32 %22, i32* %4
%23 = load i32, i32* %4
%24 = zext i32 %23 to i64
%25 = call i8* @llvm.stacksave()
store i8* %25, i8** %5
%26 = alloca i32, i64 %24
store i64 %24, i64* %6
store i32 0, i32* %7
br label %27
27: ; preds = %36, %0
%28 = load i32, i32* %7
%29 = load i32, i32* %4
%30 = icmp sle i32 %28, %29
br i1 %30, label %31, label %39
31: ; preds = %27
%32 = load i32, i32* %7
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, i32* %26, i64 %33
%35 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32* %34)
br label %36
36: ; preds = %31
%37 = load i32, i32* %7
%38 = add nsw i32 %37, 1
store i32 %38, i32* %7
br label %27
39: ; preds = %27
store i32 0, i32* %7
br label %40
40: ; preds = %68, %39
%41 = load i32, i32* %7
%42 = load i32, i32* %2
%43 = sub nsw i32 %42, 1
%44 = icmp sle i32 %41, %43
br i1 %44, label %45, label %71
45: ; preds = %40
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%47 = load i32, i32* %7
%48 = load i32, i32* %3
%49 = mul nsw i32 %47, %48
store i32 %49, i32* %8
br label %50
50: ; preds = %64, %45
%51 = load i32, i32* %8
%52 = load i32, i32* %3
%53 = load i32, i32* %7
%54 = add nsw i32 %53, 1
%55 = mul nsw i32 %52, %54
%56 = sub nsw i32 %55, 1
%57 = icmp sle i32 %51, %56
br i1 %57, label %58, label %67
58: ; preds = %50
%59 = load i32, i32* %8
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, i32* %26, i64 %60
%62 = load i32, i32* %61
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %62)
br label %64
64: ; preds = %58
%65 = load i32, i32* %8
%66 = add nsw i32 %65, 1
store i32 %66, i32* %8
br label %50
67: ; preds = %50
br label %68
68: ; preds = %67
%69 = load i32, i32* %7
%70 = add nsw i32 %69, 1
store i32 %70, i32* %7
br label %40
71: ; preds = %40
%72 = call i32 (...) @getch()
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%74 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %10)
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%76 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %9)
%77 = load i32, i32* %10
%78 = load i32, i32* %3
%79 = load i32, i32* %9
%80 = call i32 (i32*, i32, i32, i32, ...) bitcast (i32 (...)* @cofactor to i32 (i32*, i32, i32, i32, ...)*)(i32* %26, i32 %77, i32 %78, i32 %79)
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %7
br label %82
82: ; preds = %110, %71
%83 = load i32, i32* %7
%84 = load i32, i32* %2
%85 = sub nsw i32 %84, 1
%86 = icmp sle i32 %83, %85
br i1 %86, label %87, label %113
87: ; preds = %82
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%89 = load i32, i32* %7
%90 = load i32, i32* %3
%91 = mul nsw i32 %89, %90
store i32 %91, i32* %8
br label %92
92: ; preds = %106, %87
%93 = load i32, i32* %8
%94 = load i32, i32* %3
%95 = load i32, i32* %7
%96 = add nsw i32 %95, 1
%97 = mul nsw i32 %94, %96
%98 = sub nsw i32 %97, 1
%99 = icmp sle i32 %93, %98
br i1 %99, label %100, label %109
100: ; preds = %92
%101 = load i32, i32* %8
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, i32* %26, i64 %102
%104 = load i32, i32* %103
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %104)
br label %106
106: ; preds = %100
%107 = load i32, i32* %8
%108 = add nsw i32 %107, 1
store i32 %108, i32* %8
br label %92
109: ; preds = %92
br label %110
110: ; preds = %109
%111 = load i32, i32* %7
%112 = add nsw i32 %111, 1
store i32 %112, i32* %7
br label %82
113: ; preds = %82
%114 = call i32 (...) @getch()
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.8, i64 0, i64 0))
%116 = load i32, i32* %3
%117 = sub nsw i32 %116, 1
store i32 %117, i32* %11
%118 = load i32, i32* %11
%119 = load i32, i32* %11
%120 = mul nsw i32 %118, %119
%121 = sub nsw i32 %120, 1
store i32 %121, i32* %12
%122 = load i32, i32* %12
%123 = zext i32 %122 to i64
%124 = alloca i32, i64 %123
store i64 %123, i64* %13
store i32 0, i32* %7
br label %125
125: ; preds = %176, %113
%126 = load i32, i32* %7
%127 = load i32, i32* %2
%128 = sub nsw i32 %127, 1
%129 = icmp sle i32 %126, %128
br i1 %129, label %130, label %179
130: ; preds = %125
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%132 = load i32, i32* %7
%133 = load i32, i32* %3
%134 = mul nsw i32 %132, %133
store i32 %134, i32* %8
br label %135
135: ; preds = %172, %130
%136 = load i32, i32* %8
%137 = load i32, i32* %3
%138 = load i32, i32* %7
%139 = add nsw i32 %138, 1
%140 = mul nsw i32 %137, %139
%141 = sub nsw i32 %140, 1
%142 = icmp sle i32 %136, %141
br i1 %142, label %143, label %175
143: ; preds = %135
%144 = load i32, i32* %8
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i32, i32* %26, i64 %145
%147 = load i32, i32* %146
%148 = icmp ne i32 %147, 0
br i1 %148, label %149, label %171
149: ; preds = %143
%150 = load i32, i32* %8
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds i32, i32* %26, i64 %151
%153 = load i32, i32* %152
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %153)
store i32 0, i32* %14
br label %155
155: ; preds = %167, %149
%156 = load i32, i32* %14
%157 = load i32, i32* %12
%158 = icmp sle i32 %156, %157
br i1 %158, label %159, label %170
159: ; preds = %155
%160 = load i32, i32* %8
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds i32, i32* %26, i64 %161
%163 = load i32, i32* %162
%164 = load i32, i32* %14
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds i32, i32* %124, i64 %165
store i32 %163, i32* %166
br label %167
167: ; preds = %159
%168 = load i32, i32* %14
%169 = add nsw i32 %168, 1
store i32 %169, i32* %14
br label %155
170: ; preds = %155
br label %171
171: ; preds = %170, %143
br label %172
172: ; preds = %171
%173 = load i32, i32* %8
%174 = add nsw i32 %173, 1
store i32 %174, i32* %8
br label %135
175: ; preds = %135
br label %176
176: ; preds = %175
%177 = load i32, i32* %7
%178 = add nsw i32 %177, 1
store i32 %178, i32* %7
br label %125
179: ; preds = %125
store i32 0, i32* %7
br label %180
180: ; preds = %208, %179
%181 = load i32, i32* %7
%182 = load i32, i32* %11
%183 = sub nsw i32 %182, 1
%184 = icmp sle i32 %181, %183
br i1 %184, label %185, label %211
185: ; preds = %180
%186 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%187 = load i32, i32* %7
%188 = load i32, i32* %11
%189 = mul nsw i32 %187, %188
store i32 %189, i32* %8
br label %190
190: ; preds = %204, %185
%191 = load i32, i32* %8
%192 = load i32, i32* %11
%193 = load i32, i32* %7
%194 = add nsw i32 %193, 1
%195 = mul nsw i32 %192, %194
%196 = sub nsw i32 %195, 1
%197 = icmp sle i32 %191, %196
br i1 %197, label %198, label %207
198: ; preds = %190
%199 = load i32, i32* %8
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds i32, i32* %124, i64 %200
%202 = load i32, i32* %201
%203 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %202)
br label %204
204: ; preds = %198
%205 = load i32, i32* %8
%206 = add nsw i32 %205, 1
store i32 %206, i32* %8
br label %190
207: ; preds = %190
br label %208
208: ; preds = %207
%209 = load i32, i32* %7
%210 = add nsw i32 %209, 1
store i32 %210, i32* %7
br label %180
211: ; preds = %180
%212 = call i32 (...) @getch()
%213 = call i32 (...) @getch()
%214 = load i8*, i8** %5
%215 = load i32, i32* %1
ret i32 %215
}

LLVM IR (-O2):
@.str = [29 x i8] c"Please enter number of rows:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [32 x i8] c"Please enter number of columns:\00"
@.str.3 = [4 x i8] c"%d\0A\00"
@.str.5 = [4 x i8] c"%d\09\00"
@.str.6 = [34 x i8] c"Which element to be searched for?\00"
@.str.7 = [25 x i8] c"Please enter row number:\00"
@str.9 = [51 x i8] c"\0A-------------------------------------------------\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%11 = load i32, i32* %1
%12 = load i32, i32* %2
%13 = mul i32 %12, %11
%14 = add nsw i32 %13, -1
%15 = zext i32 %14 to i64
%16 = call i8* @llvm.stacksave()
%17 = alloca i32, i64 %15
%18 = icmp sgt i32 %13, 0
br i1 %18, label %19, label %21
19: ; preds = %0
%20 = zext i32 %13 to i64
br label %24
21: ; preds = %24, %0
%22 = load i32, i32* %1
%23 = icmp sgt i32 %22, 0
br i1 %23, label %33, label %53
24: ; preds = %19, %24
%25 = phi i64 [ 0, %19 ], [ %28, %24 ]
%26 = getelementptr inbounds i32, i32* %17, i64 %25
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32* %26)
%28 = add nuw nsw i64 %25, 1
%29 = icmp eq i64 %28, %20
br i1 %29, label %21, label %24
30: ; preds = %43, %33
%31 = load i32, i32* %1
%32 = icmp slt i32 %38, %31
br i1 %32, label %33, label %53
33: ; preds = %21, %30
%34 = phi i32 [ %38, %30 ], [ 0, %21 ]
%35 = call i32 @putchar(i32 10)
%36 = load i32, i32* %2
%37 = mul i32 %36, %34
%38 = add nuw nsw i32 %34, 1
%39 = mul nsw i32 %36, %38
%40 = icmp slt i32 %37, %39
br i1 %40, label %41, label %30
41: ; preds = %33
%42 = sext i32 %37 to i64
br label %43
43: ; preds = %41, %43
%44 = phi i64 [ %42, %41 ], [ %48, %43 ]
%45 = getelementptr inbounds i32, i32* %17, i64 %44
%46 = load i32, i32* %45
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %46)
%48 = add nsw i64 %44, 1
%49 = load i32, i32* %2
%50 = mul nsw i32 %49, %38
%51 = sext i32 %50 to i64
%52 = icmp slt i64 %48, %51
br i1 %52, label %43, label %30
53: ; preds = %30, %21
%54 = call i32 (...) @getch()
%55 = bitcast i32* %3 to i8*
%56 = bitcast i32* %4 to i8*
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%58 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%60 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%61 = load i32, i32* %4
%62 = load i32, i32* %2
%63 = load i32, i32* %3
%64 = call i32 (i32*, i32, i32, i32, ...) bitcast (i32 (...)* @cofactor to i32 (i32*, i32, i32, i32, ...)*)(i32* %17, i32 %61, i32 %62, i32 %63)
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.9, i64 0, i64 0))
%66 = load i32, i32* %1
%67 = icmp sgt i32 %66, 0
br i1 %67, label %71, label %91
68: ; preds = %81, %71
%69 = load i32, i32* %1
%70 = icmp slt i32 %76, %69
br i1 %70, label %71, label %91
71: ; preds = %53, %68
%72 = phi i32 [ %76, %68 ], [ 0, %53 ]
%73 = call i32 @putchar(i32 10)
%74 = load i32, i32* %2
%75 = mul i32 %74, %72
%76 = add nuw nsw i32 %72, 1
%77 = mul nsw i32 %74, %76
%78 = icmp slt i32 %75, %77
br i1 %78, label %79, label %68
79: ; preds = %71
%80 = sext i32 %75 to i64
br label %81
81: ; preds = %79, %81
%82 = phi i64 [ %80, %79 ], [ %86, %81 ]
%83 = getelementptr inbounds i32, i32* %17, i64 %82
%84 = load i32, i32* %83
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %84)
%86 = add nsw i64 %82, 1
%87 = load i32, i32* %2
%88 = mul nsw i32 %87, %76
%89 = sext i32 %88 to i64
%90 = icmp slt i64 %86, %89
br i1 %90, label %81, label %68
91: ; preds = %68, %53
%92 = call i32 (...) @getch()
%93 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.9, i64 0, i64 0))
%94 = load i32, i32* %2
%95 = add i32 %94, -1
%96 = mul i32 %95, %95
%97 = add nsw i32 %96, -1
%98 = zext i32 %97 to i64
%99 = alloca i32, i64 %98
%100 = load i32, i32* %1
%101 = icmp sgt i32 %100, 0
br i1 %101, label %102, label %119
102: ; preds = %91
%103 = icmp eq i32 %96, 0
%104 = zext i32 %96 to i64
%105 = and i64 %104, 4294967288
%106 = add nsw i64 %105, -8
%107 = lshr exact i64 %106, 3
%108 = add nuw nsw i64 %107, 1
%109 = icmp ult i32 %96, 8
%110 = and i64 %104, 4294967288
%111 = and i64 %108, 7
%112 = icmp ult i64 %106, 56
%113 = and i64 %108, 4611686018427387896
%114 = icmp eq i64 %111, 0
%115 = icmp eq i64 %110, %104
br label %121
116: ; preds = %210, %121
%117 = load i32, i32* %1
%118 = icmp slt i32 %126, %117
br i1 %118, label %121, label %119
119: ; preds = %116, %91
%120 = icmp slt i32 %94, 2
br i1 %120, label %239, label %220
121: ; preds = %102, %116
%122 = phi i32 [ 0, %102 ], [ %126, %116 ]
%123 = call i32 @putchar(i32 10)
%124 = load i32, i32* %2
%125 = mul i32 %124, %122
%126 = add nuw nsw i32 %122, 1
%127 = mul nsw i32 %124, %126
%128 = icmp slt i32 %125, %127
br i1 %128, label %129, label %116
129: ; preds = %121
%130 = sext i32 %125 to i64
br label %131
131: ; preds = %129, %210
%132 = phi i64 [ %130, %129 ], [ %211, %210 ]
%133 = getelementptr inbounds i32, i32* %17, i64 %132
%134 = load i32, i32* %133
%135 = icmp eq i32 %134, 0
br i1 %135, label %210, label %136
136: ; preds = %131
%137 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %134)
br i1 %103, label %210, label %138
138: ; preds = %136
%139 = load i32, i32* %133
br i1 %109, label %203, label %140
140: ; preds = %138
%141 = insertelement <4 x i32> poison, i32 %139, i64 0
%142 = shufflevector <4 x i32> %141, <4 x i32> poison, <4 x i32> zeroinitializer
%143 = insertelement <4 x i32> poison, i32 %139, i64 0
%144 = shufflevector <4 x i32> %143, <4 x i32> poison, <4 x i32> zeroinitializer
br i1 %112, label %190, label %145
145: ; preds = %140, %145
%146 = phi i64 [ %187, %145 ], [ 0, %140 ]
%147 = phi i64 [ %188, %145 ], [ 0, %140 ]
%148 = getelementptr inbounds i32, i32* %99, i64 %146
%149 = bitcast i32* %148 to <4 x i32>*
store <4 x i32> %142, <4 x i32>* %149
%150 = getelementptr inbounds i32, i32* %148, i64 4
%151 = bitcast i32* %150 to <4 x i32>*
store <4 x i32> %144, <4 x i32>* %151
%152 = or i64 %146, 8
%153 = getelementptr inbounds i32, i32* %99, i64 %152
%154 = bitcast i32* %153 to <4 x i32>*
store <4 x i32> %142, <4 x i32>* %154
%155 = getelementptr inbounds i32, i32* %153, i64 4
%156 = bitcast i32* %155 to <4 x i32>*
store <4 x i32> %144, <4 x i32>* %156
%157 = or i64 %146, 16
%158 = getelementptr inbounds i32, i32* %99, i64 %157
%159 = bitcast i32* %158 to <4 x i32>*
store <4 x i32> %142, <4 x i32>* %159
%160 = getelementptr inbounds i32, i32* %158, i64 4
%161 = bitcast i32* %160 to <4 x i32>*
store <4 x i32> %144, <4 x i32>* %161
%162 = or i64 %146, 24
%163 = getelementptr inbounds i32, i32* %99, i64 %162
%164 = bitcast i32* %163 to <4 x i32>*
store <4 x i32> %142, <4 x i32>* %164
%165 = getelementptr inbounds i32, i32* %163, i64 4
%166 = bitcast i32* %165 to <4 x i32>*
store <4 x i32> %144, <4 x i32>* %166
%167 = or i64 %146, 32
%168 = getelementptr inbounds i32, i32* %99, i64 %167
%169 = bitcast i32* %168 to <4 x i32>*
store <4 x i32> %142, <4 x i32>* %169
%170 = getelementptr inbounds i32, i32* %168, i64 4
%171 = bitcast i32* %170 to <4 x i32>*
store <4 x i32> %144, <4 x i32>* %171
%172 = or i64 %146, 40
%173 = getelementptr inbounds i32, i32* %99, i64 %172
%174 = bitcast i32* %173 to <4 x i32>*
store <4 x i32> %142, <4 x i32>* %174
%175 = getelementptr inbounds i32, i32* %173, i64 4
%176 = bitcast i32* %175 to <4 x i32>*
store <4 x i32> %144, <4 x i32>* %176
%177 = or i64 %146, 48
%178 = getelementptr inbounds i32, i32* %99, i64 %177
%179 = bitcast i32* %178 to <4 x i32>*
store <4 x i32> %142, <4 x i32>* %179
%180 = getelementptr inbounds i32, i32* %178, i64 4
%181 = bitcast i32* %180 to <4 x i32>*
store <4 x i32> %144, <4 x i32>* %181
%182 = or i64 %146, 56
%183 = getelementptr inbounds i32, i32* %99, i64 %182
%184 = bitcast i32* %183 to <4 x i32>*
store <4 x i32> %142, <4 x i32>* %184
%185 = getelementptr inbounds i32, i32* %183, i64 4
%186 = bitcast i32* %185 to <4 x i32>*
store <4 x i32> %144, <4 x i32>* %186
%187 = add nuw i64 %146, 64
%188 = add nuw i64 %147, 8
%189 = icmp eq i64 %188, %113
br i1 %189, label %190, label %145
190: ; preds = %145, %140
%191 = phi i64 [ 0, %140 ], [ %187, %145 ]
br i1 %114, label %202, label %192
192: ; preds = %190, %192
%193 = phi i64 [ %199, %192 ], [ %191, %190 ]
%194 = phi i64 [ %200, %192 ], [ 0, %190 ]
%195 = getelementptr inbounds i32, i32* %99, i64 %193
%196 = bitcast i32* %195 to <4 x i32>*
store <4 x i32> %142, <4 x i32>* %196
%197 = getelementptr inbounds i32, i32* %195, i64 4
%198 = bitcast i32* %197 to <4 x i32>*
store <4 x i32> %144, <4 x i32>* %198
%199 = add nuw i64 %193, 8
%200 = add i64 %194, 1
%201 = icmp eq i64 %200, %111
br i1 %201, label %202, label %192
202: ; preds = %192, %190
br i1 %115, label %210, label %203
203: ; preds = %138, %202
%204 = phi i64 [ 0, %138 ], [ %110, %202 ]
br label %205
205: ; preds = %203, %205
%206 = phi i64 [ %208, %205 ], [ %204, %203 ]
%207 = getelementptr inbounds i32, i32* %99, i64 %206
store i32 %139, i32* %207
%208 = add nuw nsw i64 %206, 1
%209 = icmp eq i64 %208, %104
br i1 %209, label %210, label %205
210: ; preds = %205, %202, %136, %131
%211 = add nsw i64 %132, 1
%212 = load i32, i32* %2
%213 = mul nsw i32 %212, %126
%214 = sext i32 %213 to i64
%215 = icmp slt i64 %211, %214
br i1 %215, label %131, label %116
216: ; preds = %231, %220
%217 = add i32 %222, %95
%218 = add i32 %221, %95
%219 = icmp eq i32 %226, %95
br i1 %219, label %239, label %220
220: ; preds = %119, %216
%221 = phi i32 [ %218, %216 ], [ %95, %119 ]
%222 = phi i32 [ %217, %216 ], [ 0, %119 ]
%223 = phi i32 [ %226, %216 ], [ 0, %119 ]
%224 = call i32 @putchar(i32 10)
%225 = mul nsw i32 %223, %95
%226 = add nuw i32 %223, 1
%227 = mul nsw i32 %226, %95
%228 = icmp slt i32 %225, %227
br i1 %228, label %229, label %216
229: ; preds = %220
%230 = sext i32 %222 to i64
br label %231
231: ; preds = %229, %231
%232 = phi i64 [ %230, %229 ], [ %236, %231 ]
%233 = getelementptr inbounds i32, i32* %99, i64 %232
%234 = load i32, i32* %233
%235 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %234)
%236 = add nsw i64 %232, 1
%237 = trunc i64 %236 to i32
%238 = icmp eq i32 %221, %237
br i1 %238, label %216, label %231
239: ; preds = %216, %119
%240 = call i32 (...) @getch()
%241 = call i32 (...) @getch()
ret i32 0
}