#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*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *, ...);
int main() {
  int m, n, p, q, i, j, k, temp = 0;
  printf("Enter the order of first matrix (m*n): ");
  scanf("%d*%d", &m, &n);
  int first[m][n];
  printf("Enter the elements of first matrix\n");
  for (i = 0; i < m; i++)
    for (j = 0; j < n; j++)
      scanf("%d", &first[i][j]);
  printf("Enter the order of second matrix (m*n): ");
  scanf("%d*%d", &p, &q);
  if (n != p)
    printf("Given matrices can't be multiplied");
  else {
    int second[p][q], product[m][q];
    printf("Enter the elements of second matrix\n");
    for (i = 0; i < p; i++)
      for (j = 0; j < q; j++)
        scanf("%d", &second[i][j]);
    for (i = 0; i < m; i++) {
      for (j = 0; j < q; j++) {
        for (k = 0; k < p; k++) {
          temp += first[i][k] * second[k][j];
        }
        product[i][j] = temp;
      }
    }
    printf("Multiplied matrix: \n");
    for (i = 0; i < m; i++) {
      for (j = 0; j < q; j++) {
        printf("%2d ", product[i][j]);
      }
      printf("\n");
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x24(%rbp)
lea    0xec0(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x79(%rbp)
call   1030 <printf@plt>
mov    -0x79(%rbp),%al
lea    0xed4(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
mov    %rax,-0x78(%rbp)
mov    %rsp,%rdx
mov    %rdx,-0x30(%rbp)
mov    %rcx,%rdx
imul   %rax,%rdx
lea    0xf(,%rdx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x70(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x38(%rbp)
mov    %rax,-0x40(%rbp)
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1221 <main+0x101>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    120e <main+0xee>
mov    -0x70(%rbp),%rsi
mov    -0x78(%rbp),%rcx
movslq -0x18(%rbp),%rax
imul   %rcx,%rax
shl    $0x2,%rax
add    %rax,%rsi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11c4 <main+0xa4>
jmp    1213 <main+0xf3>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11b1 <main+0x91>
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf2(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
je     1264 <main+0x144>
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14d9 <main+0x3b9>
mov    -0x10(%rbp),%eax
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
mov    %rax,-0xa0(%rbp)
mov    %rsp,%rdx
mov    %rdx,-0x48(%rbp)
mov    %rcx,%rdx
imul   %rax,%rdx
lea    0xf(,%rdx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x98(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x50(%rbp)
mov    %rax,-0x58(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
mov    %rax,-0x90(%rbp)
mov    %rcx,%rdx
imul   %rax,%rdx
lea    0xf(,%rdx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x88(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x60(%rbp)
mov    %rax,-0x68(%rbp)
lea    0xdb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    136a <main+0x24a>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1357 <main+0x237>
mov    -0x98(%rbp),%rsi
mov    -0xa0(%rbp),%rcx
movslq -0x18(%rbp),%rax
imul   %rcx,%rax
shl    $0x2,%rax
add    %rax,%rsi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1307 <main+0x1e7>
jmp    135c <main+0x23c>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12f4 <main+0x1d4>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1442 <main+0x322>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    142f <main+0x30f>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    13fa <main+0x2da>
mov    -0x98(%rbp),%rcx
mov    -0xa0(%rbp),%rsi
mov    -0x70(%rbp),%rax
mov    -0x78(%rbp),%rdi
movslq -0x18(%rbp),%rdx
imul   %rdi,%rdx
shl    $0x2,%rdx
add    %rdx,%rax
movslq -0x20(%rbp),%rdx
mov    (%rax,%rdx,4),%eax
movslq -0x20(%rbp),%rdx
imul   %rsi,%rdx
shl    $0x2,%rdx
add    %rdx,%rcx
movslq -0x1c(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
add    -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1397 <main+0x277>
mov    -0x88(%rbp),%rax
mov    -0x90(%rbp),%rsi
mov    -0x24(%rbp),%edx
movslq -0x18(%rbp),%rcx
imul   %rsi,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1384 <main+0x264>
jmp    1434 <main+0x314>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1371 <main+0x251>
lea    0xc7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    14d2 <main+0x3b2>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14b6 <main+0x396>
mov    -0x88(%rbp),%rax
mov    -0x90(%rbp),%rdx
movslq -0x18(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc37(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    146a <main+0x34a>
lea    0xc19(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1457 <main+0x337>
mov    -0x48(%rbp),%rax
mov    %rax,%rsp
mov    -0x30(%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    $0xe8,%rsp
lea    0xea5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xebf(%rip),%rdi
lea    -0x30(%rbp),%rsi
lea    -0x3c(%rbp),%rdx
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %rsp,-0x98(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x3c(%rbp),%edx
mov    %rdx,-0x58(%rbp)
imul   %rdx,%rax
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
lea    0xed2(%rip),%rdi
call   1040 <puts@plt>
mov    -0x30(%rbp),%ecx
test   %ecx,%ecx
jle    1223 <main+0xe3>
mov    -0x3c(%rbp),%eax
mov    -0x58(%rbp),%rdx
lea    0x0(,%rdx,4),%rdx
mov    %rdx,-0x48(%rbp)
lea    0xe58(%rip),%r14
mov    -0x50(%rbp),%r12
xor    %r13d,%r13d
jmp    11f0 <main+0xb0>
nopl   0x0(%rax)
add    $0x1,%r13
movslq %ecx,%rdx
add    -0x48(%rbp),%r12
cmp    %rdx,%r13
jge    1223 <main+0xe3>
test   %eax,%eax
jle    11e0 <main+0xa0>
mov    %r12,%rbx
xor    %r15d,%r15d
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
add    $0x1,%r15
movslq -0x3c(%rbp),%rax
add    $0x4,%rbx
cmp    %rax,%r15
jl     1200 <main+0xc0>
mov    -0x30(%rbp),%ecx
jmp    11e0 <main+0xa0>
lea    0xe04(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdf0(%rip),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x2c(%rbp),%rdx
xor    %eax,%eax
call   1060 <scanf@plt>
mov    -0x3c(%rbp),%eax
cmp    -0x40(%rbp),%eax
jne    1326 <main+0x1e6>
mov    %rsp,-0x90(%rbp)
mov    -0x2c(%rbp),%ebx
imul   %rbx,%rax
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%r12
sub    %rax,%r12
mov    %r12,%rsp
mov    -0x30(%rbp),%eax
mov    -0x2c(%rbp),%ecx
mov    %rcx,-0x80(%rbp)
imul   %rcx,%rax
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x78(%rbp)
mov    %rcx,%rsp
lea    0xdfe(%rip),%rdi
call   1040 <puts@plt>
mov    -0x40(%rbp),%eax
mov    %eax,%ecx
test   %eax,%eax
mov    %rbx,-0x68(%rbp)
mov    %r12,-0x60(%rbp)
mov    %eax,-0x38(%rbp)
jle    1339 <main+0x1f9>
mov    -0x2c(%rbp),%eax
lea    0x0(,%rbx,4),%rdx
mov    %rdx,-0x48(%rbp)
lea    0xd58(%rip),%r14
xor    %r13d,%r13d
jmp    12f1 <main+0x1b1>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r13
movslq -0x38(%rbp),%rcx
add    -0x48(%rbp),%r12
cmp    %rcx,%r13
jge    1339 <main+0x1f9>
test   %eax,%eax
jle    12e0 <main+0x1a0>
mov    %r12,%rbx
xor    %r15d,%r15d
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
add    $0x1,%r15
movslq -0x2c(%rbp),%rax
add    $0x4,%rbx
cmp    %rax,%r15
jl     1300 <main+0x1c0>
mov    -0x40(%rbp),%ecx
mov    %ecx,-0x38(%rbp)
jmp    12e0 <main+0x1a0>
lea    0xd2a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1805 <main+0x6c5>
mov    -0x30(%rbp),%eax
mov    %rax,-0xb0(%rbp)
test   %eax,%eax
jle    177c <main+0x63c>
mov    -0x2c(%rbp),%eax
mov    %rax,-0x88(%rbp)
mov    -0x38(%rbp),%ecx
mov    %ecx,%esi
mov    %esi,%eax
and    $0xfffffff8,%eax
mov    %rax,-0xe0(%rbp)
add    $0xfffffffffffffff8,%rax
mov    %rax,-0xd8(%rbp)
mov    %rax,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
cmp    $0x8,%ecx
setae  %dil
mov    -0x68(%rbp),%rcx
cmp    $0x1,%ecx
sete   %al
and    %dil,%al
mov    %al,-0x31(%rbp)
mov    %rdx,%rax
mov    %rdx,-0xd0(%rbp)
and    $0xfffffffffffffffe,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %esi,%eax
and    $0x3,%eax
mov    %rax,-0xf0(%rbp)
mov    -0x50(%rbp),%r11
lea    0x30(%r11),%rdi
mov    -0x58(%rbp),%rax
lea    0x0(,%rax,4),%rax
mov    %rax,-0xa8(%rbp)
mov    %rcx,%r13
shl    $0x5,%r13
mov    %rcx,%rbx
shl    $0x6,%rbx
mov    %rcx,%rax
shl    $0x4,%rax
mov    %rax,-0xe8(%rbp)
mov    -0x60(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0xa0(%rbp)
lea    0x0(,%rcx,4),%r9
xor    %r8d,%r8d
xor    %eax,%eax
mov    %rsi,-0x48(%rbp)
mov    %rbx,-0xf8(%rbp)
jmp    1445 <main+0x305>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    -0xb8(%rbp),%r8
add    $0x1,%r8
mov    -0xa8(%rbp),%rcx
add    %rcx,%rdi
add    %rcx,%r11
cmp    -0xb0(%rbp),%r8
je     177c <main+0x63c>
cmpl   $0x0,-0x88(%rbp)
mov    %r8,-0xb8(%rbp)
jle    1420 <main+0x2e0>
mov    %r8,%rcx
imul   -0x58(%rbp),%rcx
mov    -0x50(%rbp),%rdx
lea    (%rdx,%rcx,4),%rcx
mov    %rcx,-0xc0(%rbp)
mov    %r8,%rcx
imul   -0x80(%rbp),%rcx
mov    -0x78(%rbp),%rdx
lea    (%rdx,%rcx,4),%rcx
mov    %rcx,-0x100(%rbp)
mov    -0x60(%rbp),%rcx
mov    %rcx,-0x70(%rbp)
mov    -0xa0(%rbp),%rcx
xor    %r8d,%r8d
jmp    14d3 <main+0x393>
nopw   0x0(%rax,%rax,1)
mov    -0x100(%rbp),%rcx
mov    %eax,(%rcx,%r8,4)
add    $0x1,%r8
mov    -0x108(%rbp),%rcx
add    $0x4,%rcx
addq   $0x4,-0x70(%rbp)
cmp    -0x88(%rbp),%r8
mov    -0xf8(%rbp),%rbx
je     1420 <main+0x2e0>
cmpl   $0x0,-0x38(%rbp)
mov    %rcx,-0x108(%rbp)
jle    14a0 <main+0x360>
cmpb   $0x0,-0x31(%rbp)
je     1690 <main+0x550>
movd   %eax,%xmm0
cmpq   $0x0,-0xd8(%rbp)
je     1764 <main+0x624>
pxor   %xmm1,%xmm1
mov    -0xc8(%rbp),%rdx
xor    %eax,%eax
nopl   0x0(%rax)
movdqu -0x10(%rcx),%xmm3
movdqu (%rcx),%xmm4
movdqu -0x30(%rdi,%rax,4),%xmm5
movdqu -0x20(%rdi,%rax,4),%xmm6
movdqu -0x10(%rdi,%rax,4),%xmm7
movdqu (%rdi,%rax,4),%xmm8
pshufd $0xf5,%xmm3,%xmm2
pmuludq %xmm5,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pshufd $0xf5,%xmm5,%xmm5
pmuludq %xmm2,%xmm5
pshufd $0xe8,%xmm5,%xmm2
punpckldq %xmm2,%xmm3
paddd  %xmm0,%xmm3
pshufd $0xf5,%xmm4,%xmm0
pmuludq %xmm6,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pshufd $0xf5,%xmm6,%xmm2
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm0
punpckldq %xmm0,%xmm4
paddd  %xmm1,%xmm4
movdqu -0x10(%rcx,%r13,1),%xmm0
movdqu (%rcx,%r13,1),%xmm1
pshufd $0xf5,%xmm0,%xmm2
pmuludq %xmm7,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pshufd $0xf5,%xmm7,%xmm5
pmuludq %xmm2,%xmm5
pshufd $0xe8,%xmm5,%xmm2
punpckldq %xmm2,%xmm0
paddd  %xmm3,%xmm0
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm8,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pshufd $0xf5,%xmm8,%xmm3
pmuludq %xmm2,%xmm3
pshufd $0xe8,%xmm3,%xmm2
punpckldq %xmm2,%xmm1
paddd  %xmm4,%xmm1
add    $0x10,%rax
add    %rbx,%rcx
add    $0xfffffffffffffffe,%rdx
jne    1510 <main+0x3d0>
testb  $0x1,-0xd0(%rbp)
je     165c <main+0x51c>
mov    -0x60(%rbp),%rcx
lea    (%rcx,%r8,4),%rcx
mov    -0xc0(%rbp),%rdx
movdqu (%rdx,%rax,4),%xmm2
movdqu 0x10(%rdx,%rax,4),%xmm3
imul   -0x68(%rbp),%rax
movdqu (%rcx,%rax,4),%xmm4
movdqu 0x10(%rcx,%rax,4),%xmm5
pshufd $0xf5,%xmm4,%xmm6
pmuludq %xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm6,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm4
paddd  %xmm4,%xmm0
pshufd $0xf5,%xmm5,%xmm2
pmuludq %xmm3,%xmm5
pshufd $0xe8,%xmm5,%xmm4
pshufd $0xf5,%xmm3,%xmm3
pmuludq %xmm2,%xmm3
pshufd $0xe8,%xmm3,%xmm2
punpckldq %xmm2,%xmm4
paddd  %xmm4,%xmm1
paddd  %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%eax
mov    -0xe0(%rbp),%rcx
mov    %rcx,%r12
cmp    %rsi,%rcx
je     14a0 <main+0x360>
jmp    1693 <main+0x553>
nopl   0x0(%rax,%rax,1)
xor    %r12d,%r12d
mov    %r12,%rcx
not    %rcx
add    %rsi,%rcx
mov    -0xf0(%rbp),%rsi
test   %rsi,%rsi
je     16d6 <main+0x596>
mov    -0x68(%rbp),%rdx
imul   %r12,%rdx
mov    -0x70(%rbp),%rbx
lea    (%rbx,%rdx,4),%rdx
nopl   0x0(%rax,%rax,1)
mov    (%rdx),%ebx
imul   (%r11,%r12,4),%ebx
add    %ebx,%eax
add    $0x1,%r12
add    %r9,%rdx
add    $0xffffffffffffffff,%rsi
jne    16c0 <main+0x580>
cmp    $0x3,%rcx
mov    -0x48(%rbp),%rsi
mov    -0xe8(%rbp),%rbx
jb     14a0 <main+0x360>
lea    0x3(%r12),%rcx
imul   %r9,%rcx
lea    0x1(%r12),%rdx
imul   %r9,%rdx
lea    0x2(%r12),%r15
imul   %r9,%r15
mov    %r9,%r10
imul   %r12,%r10
mov    -0x70(%rbp),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%r10,1),%esi
imul   (%r11,%r12,4),%esi
add    %eax,%esi
mov    (%r14,%rdx,1),%eax
imul   0x4(%r11,%r12,4),%eax
add    %esi,%eax
mov    (%r14,%r15,1),%esi
imul   0x8(%r11,%r12,4),%esi
add    %eax,%esi
mov    (%r14,%rcx,1),%eax
imul   0xc(%r11,%r12,4),%eax
add    %esi,%eax
mov    -0x48(%rbp),%rsi
add    $0x4,%r12
add    %rbx,%r14
cmp    %r12,%rsi
jne    1720 <main+0x5e0>
jmp    14a0 <main+0x360>
pxor   %xmm1,%xmm1
xor    %eax,%eax
testb  $0x1,-0xd0(%rbp)
jne    15ea <main+0x4aa>
jmp    165c <main+0x51c>
lea    0x943(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,-0x30(%rbp)
mov    -0x80(%rbp),%r12
mov    -0x78(%rbp),%r13
jle    17fe <main+0x6be>
shl    $0x2,%r12
lea    0x8d9(%rip),%r15
xor    %r14d,%r14d
jmp    17ca <main+0x68a>
cs nopw 0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14
movslq -0x30(%rbp),%rax
add    %r12,%r13
cmp    %rax,%r14
jge    17fe <main+0x6be>
cmpl   $0x0,-0x2c(%rbp)
jle    17b0 <main+0x670>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x0(%r13,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq -0x2c(%rbp),%rax
cmp    %rax,%rbx
jl     17e0 <main+0x6a0>
jmp    17b0 <main+0x670>
mov    -0x90(%rbp),%rsp
mov    -0x98(%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 = [40 x i8] c"Enter the order of first matrix (m*n): \00"
@.str.1 = [6 x i8] c"%d*%d\00"
@.str.2 = [36 x i8] c"Enter the elements of first matrix\0A\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [41 x i8] c"Enter the order of second matrix (m*n): \00"
@.str.5 = [35 x i8] c"Given matrices can't be multiplied\00"
@.str.6 = [37 x i8] c"Enter the elements of second matrix\0A\00"
@.str.7 = [21 x i8] c"Multiplied matrix: \0A\00"
@.str.8 = [5 x i8] c"%2d \00"
@.str.9 = [2 x i8] c"\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 i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i64
%13 = alloca i8*
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
%17 = alloca i64
store i32 0, i32* %1
store i32 0, i32* %9
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%19 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3)
%20 = load i32, i32* %2
%21 = zext i32 %20 to i64
%22 = load i32, i32* %3
%23 = zext i32 %22 to i64
%24 = call i8* @llvm.stacksave()
store i8* %24, i8** %10
%25 = mul nuw i64 %21, %23
%26 = alloca i32, i64 %25
store i64 %21, i64* %11
store i64 %23, i64* %12
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %6
br label %28
28: ; preds = %50, %0
%29 = load i32, i32* %6
%30 = load i32, i32* %2
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %53
32: ; preds = %28
store i32 0, i32* %7
br label %33
33: ; preds = %46, %32
%34 = load i32, i32* %7
%35 = load i32, i32* %3
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %49
37: ; preds = %33
%38 = load i32, i32* %6
%39 = sext i32 %38 to i64
%40 = mul nsw i64 %39, %23
%41 = getelementptr inbounds i32, i32* %26, i64 %40
%42 = load i32, i32* %7
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, i32* %41, i64 %43
%45 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %44)
br label %46
46: ; preds = %37
%47 = load i32, i32* %7
%48 = add nsw i32 %47, 1
store i32 %48, i32* %7
br label %33
49: ; preds = %33
br label %50
50: ; preds = %49
%51 = load i32, i32* %6
%52 = add nsw i32 %51, 1
store i32 %52, i32* %6
br label %28
53: ; preds = %28
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
%55 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %4, i32* %5)
%56 = load i32, i32* %3
%57 = load i32, i32* %4
%58 = icmp ne i32 %56, %57
br i1 %58, label %59, label %61
59: ; preds = %53
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
br label %186
61: ; preds = %53
%62 = load i32, i32* %4
%63 = zext i32 %62 to i64
%64 = load i32, i32* %5
%65 = zext i32 %64 to i64
%66 = call i8* @llvm.stacksave()
store i8* %66, i8** %13
%67 = mul nuw i64 %63, %65
%68 = alloca i32, i64 %67
store i64 %63, i64* %14
store i64 %65, i64* %15
%69 = load i32, i32* %2
%70 = zext i32 %69 to i64
%71 = load i32, i32* %5
%72 = zext i32 %71 to i64
%73 = mul nuw i64 %70, %72
%74 = alloca i32, i64 %73
store i64 %70, i64* %16
store i64 %72, i64* %17
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %6
br label %76
76: ; preds = %98, %61
%77 = load i32, i32* %6
%78 = load i32, i32* %4
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %101
80: ; preds = %76
store i32 0, i32* %7
br label %81
81: ; preds = %94, %80
%82 = load i32, i32* %7
%83 = load i32, i32* %5
%84 = icmp slt i32 %82, %83
br i1 %84, label %85, label %97
85: ; preds = %81
%86 = load i32, i32* %6
%87 = sext i32 %86 to i64
%88 = mul nsw i64 %87, %65
%89 = getelementptr inbounds i32, i32* %68, i64 %88
%90 = load i32, i32* %7
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i32, i32* %89, i64 %91
%93 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %92)
br label %94
94: ; preds = %85
%95 = load i32, i32* %7
%96 = add nsw i32 %95, 1
store i32 %96, i32* %7
br label %81
97: ; preds = %81
br label %98
98: ; preds = %97
%99 = load i32, i32* %6
%100 = add nsw i32 %99, 1
store i32 %100, i32* %6
br label %76
101: ; preds = %76
store i32 0, i32* %6
br label %102
102: ; preds = %152, %101
%103 = load i32, i32* %6
%104 = load i32, i32* %2
%105 = icmp slt i32 %103, %104
br i1 %105, label %106, label %155
106: ; preds = %102
store i32 0, i32* %7
br label %107
107: ; preds = %148, %106
%108 = load i32, i32* %7
%109 = load i32, i32* %5
%110 = icmp slt i32 %108, %109
br i1 %110, label %111, label %151
111: ; preds = %107
store i32 0, i32* %8
br label %112
112: ; preds = %136, %111
%113 = load i32, i32* %8
%114 = load i32, i32* %4
%115 = icmp slt i32 %113, %114
br i1 %115, label %116, label %139
116: ; preds = %112
%117 = load i32, i32* %6
%118 = sext i32 %117 to i64
%119 = mul nsw i64 %118, %23
%120 = getelementptr inbounds i32, i32* %26, i64 %119
%121 = load i32, i32* %8
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i32, i32* %120, i64 %122
%124 = load i32, i32* %123
%125 = load i32, i32* %8
%126 = sext i32 %125 to i64
%127 = mul nsw i64 %126, %65
%128 = getelementptr inbounds i32, i32* %68, i64 %127
%129 = load i32, i32* %7
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i32, i32* %128, i64 %130
%132 = load i32, i32* %131
%133 = mul nsw i32 %124, %132
%134 = load i32, i32* %9
%135 = add nsw i32 %134, %133
store i32 %135, i32* %9
br label %136
136: ; preds = %116
%137 = load i32, i32* %8
%138 = add nsw i32 %137, 1
store i32 %138, i32* %8
br label %112
139: ; preds = %112
%140 = load i32, i32* %9
%141 = load i32, i32* %6
%142 = sext i32 %141 to i64
%143 = mul nsw i64 %142, %72
%144 = getelementptr inbounds i32, i32* %74, i64 %143
%145 = load i32, i32* %7
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i32, i32* %144, i64 %146
store i32 %140, i32* %147
br label %148
148: ; preds = %139
%149 = load i32, i32* %7
%150 = add nsw i32 %149, 1
store i32 %150, i32* %7
br label %107
151: ; preds = %107
br label %152
152: ; preds = %151
%153 = load i32, i32* %6
%154 = add nsw i32 %153, 1
store i32 %154, i32* %6
br label %102
155: ; preds = %102
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %6
br label %157
157: ; preds = %181, %155
%158 = load i32, i32* %6
%159 = load i32, i32* %2
%160 = icmp slt i32 %158, %159
br i1 %160, label %161, label %184
161: ; preds = %157
store i32 0, i32* %7
br label %162
162: ; preds = %176, %161
%163 = load i32, i32* %7
%164 = load i32, i32* %5
%165 = icmp slt i32 %163, %164
br i1 %165, label %166, label %179
166: ; preds = %162
%167 = load i32, i32* %6
%168 = sext i32 %167 to i64
%169 = mul nsw i64 %168, %72
%170 = getelementptr inbounds i32, i32* %74, i64 %169
%171 = load i32, i32* %7
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds i32, i32* %170, i64 %172
%174 = load i32, i32* %173
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 %174)
br label %176
176: ; preds = %166
%177 = load i32, i32* %7
%178 = add nsw i32 %177, 1
store i32 %178, i32* %7
br label %162
179: ; preds = %162
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %181
181: ; preds = %179
%182 = load i32, i32* %6
%183 = add nsw i32 %182, 1
store i32 %183, i32* %6
br label %157
184: ; preds = %157
%185 = load i8*, i8** %13
br label %186
186: ; preds = %184, %59
%187 = load i8*, i8** %10
%188 = load i32, i32* %1
ret i32 %188
}

LLVM IR (-O2):
@.str = [40 x i8] c"Enter the order of first matrix (m*n): \00"
@.str.1 = [6 x i8] c"%d*%d\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [41 x i8] c"Enter the order of second matrix (m*n): \00"
@.str.5 = [35 x i8] c"Given matrices can't be multiplied\00"
@.str.8 = [5 x i8] c"%2d \00"
@str = [35 x i8] c"Enter the elements of first matrix\00"
@str.10 = [36 x i8] c"Enter the elements of second matrix\00"
@str.11 = [20 x i8] c"Multiplied matrix: \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 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%10 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2)
%11 = load i32, i32* %1
%12 = zext i32 %11 to i64
%13 = load i32, i32* %2
%14 = zext i32 %13 to i64
%15 = call i8* @llvm.stacksave()
%16 = mul nuw i64 %14, %12
%17 = alloca i32, i64 %16
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%19 = load i32, i32* %1
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %47
21: ; preds = %0
%22 = load i32, i32* %2
br label %23
23: ; preds = %21, %41
%24 = phi i32 [ %19, %21 ], [ %42, %41 ]
%25 = phi i32 [ %22, %21 ], [ %43, %41 ]
%26 = phi i64 [ 0, %21 ], [ %44, %41 ]
%27 = icmp sgt i32 %25, 0
br i1 %27, label %28, label %41
28: ; preds = %23
%29 = mul nuw nsw i64 %26, %14
%30 = getelementptr inbounds i32, i32* %17, i64 %29
br label %31
31: ; preds = %28, %31
%32 = phi i64 [ 0, %28 ], [ %35, %31 ]
%33 = getelementptr inbounds i32, i32* %30, i64 %32
%34 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %33)
%35 = add nuw nsw i64 %32, 1
%36 = load i32, i32* %2
%37 = sext i32 %36 to i64
%38 = icmp slt i64 %35, %37
br i1 %38, label %31, label %39
39: ; preds = %31
%40 = load i32, i32* %1
br label %41
41: ; preds = %39, %23
%42 = phi i32 [ %40, %39 ], [ %24, %23 ]
%43 = phi i32 [ %36, %39 ], [ %25, %23 ]
%44 = add nuw nsw i64 %26, 1
%45 = sext i32 %42 to i64
%46 = icmp slt i64 %44, %45
br i1 %46, label %23, label %47
47: ; preds = %41, %0
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
%49 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %3, i32* %4)
%50 = load i32, i32* %2
%51 = load i32, i32* %3
%52 = icmp eq i32 %50, %51
br i1 %52, label %55, label %53
53: ; preds = %47
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
br label %306
55: ; preds = %47
%56 = zext i32 %50 to i64
%57 = load i32, i32* %4
%58 = zext i32 %57 to i64
%59 = call i8* @llvm.stacksave()
%60 = mul nuw i64 %58, %56
%61 = alloca i32, i64 %60
%62 = load i32, i32* %1
%63 = zext i32 %62 to i64
%64 = load i32, i32* %4
%65 = zext i32 %64 to i64
%66 = mul nuw i64 %65, %63
%67 = alloca i32, i64 %66
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.10, i64 0, i64 0))
%69 = load i32, i32* %3
%70 = icmp sgt i32 %69, 0
br i1 %70, label %71, label %81
71: ; preds = %55
%72 = load i32, i32* %4
br label %73
73: ; preds = %71, %117
%74 = phi i32 [ %69, %71 ], [ %118, %117 ]
%75 = phi i32 [ %72, %71 ], [ %119, %117 ]
%76 = phi i64 [ 0, %71 ], [ %120, %117 ]
%77 = icmp sgt i32 %75, 0
br i1 %77, label %78, label %117
78: ; preds = %73
%79 = mul nuw nsw i64 %76, %58
%80 = getelementptr inbounds i32, i32* %61, i64 %79
br label %107
81: ; preds = %117, %55
%82 = phi i32 [ %69, %55 ], [ %118, %117 ]
%83 = load i32, i32* %1
%84 = icmp sgt i32 %83, 0
br i1 %84, label %85, label %279
85: ; preds = %81
%86 = load i32, i32* %4
%87 = icmp sgt i32 %86, 0
%88 = icmp sgt i32 %82, 0
%89 = zext i32 %83 to i64
%90 = zext i32 %86 to i64
%91 = zext i32 %82 to i64
%92 = and i64 %91, 4294967288
%93 = add nsw i64 %92, -8
%94 = lshr exact i64 %93, 3
%95 = add nuw nsw i64 %94, 1
%96 = icmp ugt i32 %82, 7
%97 = icmp eq i32 %57, 1
%98 = select i1 %96, i1 %97, i1 false
%99 = and i64 %91, 4294967288
%100 = and i64 %95, 1
%101 = icmp eq i64 %93, 0
%102 = and i64 %95, 4611686018427387902
%103 = icmp eq i64 %100, 0
%104 = icmp eq i64 %99, %91
%105 = and i64 %91, 3
%106 = icmp eq i64 %105, 0
br label %123
107: ; preds = %78, %107
%108 = phi i64 [ 0, %78 ], [ %111, %107 ]
%109 = getelementptr inbounds i32, i32* %80, i64 %108
%110 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %109)
%111 = add nuw nsw i64 %108, 1
%112 = load i32, i32* %4
%113 = sext i32 %112 to i64
%114 = icmp slt i64 %111, %113
br i1 %114, label %107, label %115
115: ; preds = %107
%116 = load i32, i32* %3
br label %117
117: ; preds = %115, %73
%118 = phi i32 [ %116, %115 ], [ %74, %73 ]
%119 = phi i32 [ %112, %115 ], [ %75, %73 ]
%120 = add nuw nsw i64 %76, 1
%121 = sext i32 %118 to i64
%122 = icmp slt i64 %120, %121
br i1 %122, label %73, label %81
123: ; preds = %85, %275
%124 = phi i64 [ 0, %85 ], [ %277, %275 ]
%125 = phi i32 [ 0, %85 ], [ %276, %275 ]
br i1 %87, label %126, label %275
126: ; preds = %123
%127 = mul nuw nsw i64 %124, %14
%128 = getelementptr inbounds i32, i32* %17, i64 %127
%129 = mul nuw nsw i64 %124, %65
%130 = getelementptr inbounds i32, i32* %67, i64 %129
br label %131
131: ; preds = %126, %270
%132 = phi i64 [ 0, %126 ], [ %273, %270 ]
%133 = phi i32 [ %125, %126 ], [ %271, %270 ]
br i1 %88, label %134, label %270
134: ; preds = %131
%135 = getelementptr inbounds i32, i32* %61, i64 %132
br i1 %98, label %136, label %210
136: ; preds = %134
%137 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %133, i64 0
br i1 %101, label %181, label %138
138: ; preds = %136, %138
%139 = phi i64 [ %178, %138 ], [ 0, %136 ]
%140 = phi <4 x i32> [ %176, %138 ], [ %137, %136 ]
%141 = phi <4 x i32> [ %177, %138 ], [ zeroinitializer, %136 ]
%142 = phi i64 [ %179, %138 ], [ 0, %136 ]
%143 = getelementptr inbounds i32, i32* %128, i64 %139
%144 = bitcast i32* %143 to <4 x i32>*
%145 = load <4 x i32>, <4 x i32>* %144
%146 = getelementptr inbounds i32, i32* %143, i64 4
%147 = bitcast i32* %146 to <4 x i32>*
%148 = load <4 x i32>, <4 x i32>* %147
%149 = mul nuw nsw i64 %139, %58
%150 = getelementptr inbounds i32, i32* %135, i64 %149
%151 = bitcast i32* %150 to <4 x i32>*
%152 = load <4 x i32>, <4 x i32>* %151
%153 = getelementptr inbounds i32, i32* %150, i64 4
%154 = bitcast i32* %153 to <4 x i32>*
%155 = load <4 x i32>, <4 x i32>* %154
%156 = mul nsw <4 x i32> %152, %145
%157 = mul nsw <4 x i32> %155, %148
%158 = add <4 x i32> %156, %140
%159 = add <4 x i32> %157, %141
%160 = or i64 %139, 8
%161 = getelementptr inbounds i32, i32* %128, i64 %160
%162 = bitcast i32* %161 to <4 x i32>*
%163 = load <4 x i32>, <4 x i32>* %162
%164 = getelementptr inbounds i32, i32* %161, i64 4
%165 = bitcast i32* %164 to <4 x i32>*
%166 = load <4 x i32>, <4 x i32>* %165
%167 = mul nuw nsw i64 %160, %58
%168 = getelementptr inbounds i32, i32* %135, i64 %167
%169 = bitcast i32* %168 to <4 x i32>*
%170 = load <4 x i32>, <4 x i32>* %169
%171 = getelementptr inbounds i32, i32* %168, i64 4
%172 = bitcast i32* %171 to <4 x i32>*
%173 = load <4 x i32>, <4 x i32>* %172
%174 = mul nsw <4 x i32> %170, %163
%175 = mul nsw <4 x i32> %173, %166
%176 = add <4 x i32> %174, %158
%177 = add <4 x i32> %175, %159
%178 = add nuw i64 %139, 16
%179 = add i64 %142, 2
%180 = icmp eq i64 %179, %102
br i1 %180, label %181, label %138
181: ; preds = %138, %136
%182 = phi <4 x i32> [ undef, %136 ], [ %176, %138 ]
%183 = phi <4 x i32> [ undef, %136 ], [ %177, %138 ]
%184 = phi i64 [ 0, %136 ], [ %178, %138 ]
%185 = phi <4 x i32> [ %137, %136 ], [ %176, %138 ]
%186 = phi <4 x i32> [ zeroinitializer, %136 ], [ %177, %138 ]
br i1 %103, label %205, label %187
187: ; preds = %181
%188 = getelementptr inbounds i32, i32* %128, i64 %184
%189 = bitcast i32* %188 to <4 x i32>*
%190 = load <4 x i32>, <4 x i32>* %189
%191 = getelementptr inbounds i32, i32* %188, i64 4
%192 = bitcast i32* %191 to <4 x i32>*
%193 = load <4 x i32>, <4 x i32>* %192
%194 = mul nuw nsw i64 %184, %58
%195 = getelementptr inbounds i32, i32* %135, i64 %194
%196 = bitcast i32* %195 to <4 x i32>*
%197 = load <4 x i32>, <4 x i32>* %196
%198 = getelementptr inbounds i32, i32* %195, i64 4
%199 = bitcast i32* %198 to <4 x i32>*
%200 = load <4 x i32>, <4 x i32>* %199
%201 = mul nsw <4 x i32> %197, %190
%202 = mul nsw <4 x i32> %200, %193
%203 = add <4 x i32> %201, %185
%204 = add <4 x i32> %202, %186
br label %205
205: ; preds = %181, %187
%206 = phi <4 x i32> [ %182, %181 ], [ %203, %187 ]
%207 = phi <4 x i32> [ %183, %181 ], [ %204, %187 ]
%208 = add <4 x i32> %207, %206
%209 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %208)
br i1 %104, label %270, label %210
210: ; preds = %134, %205
%211 = phi i64 [ 0, %134 ], [ %99, %205 ]
%212 = phi i32 [ %133, %134 ], [ %209, %205 ]
%213 = xor i64 %211, -1
%214 = add nsw i64 %213, %91
br i1 %106, label %229, label %215
215: ; preds = %210, %215
%216 = phi i64 [ %226, %215 ], [ %211, %210 ]
%217 = phi i32 [ %225, %215 ], [ %212, %210 ]
%218 = phi i64 [ %227, %215 ], [ 0, %210 ]
%219 = getelementptr inbounds i32, i32* %128, i64 %216
%220 = load i32, i32* %219
%221 = mul nuw nsw i64 %216, %58
%222 = getelementptr inbounds i32, i32* %135, i64 %221
%223 = load i32, i32* %222
%224 = mul nsw i32 %223, %220
%225 = add nsw i32 %224, %217
%226 = add nuw nsw i64 %216, 1
%227 = add i64 %218, 1
%228 = icmp eq i64 %227, %105
br i1 %228, label %229, label %215
229: ; preds = %215, %210
%230 = phi i32 [ undef, %210 ], [ %225, %215 ]
%231 = phi i64 [ %211, %210 ], [ %226, %215 ]
%232 = phi i32 [ %212, %210 ], [ %225, %215 ]
%233 = icmp ult i64 %214, 3
br i1 %233, label %270, label %234
234: ; preds = %229, %234
%235 = phi i64 [ %268, %234 ], [ %231, %229 ]
%236 = phi i32 [ %267, %234 ], [ %232, %229 ]
%237 = getelementptr inbounds i32, i32* %128, i64 %235
%238 = load i32, i32* %237
%239 = mul nuw nsw i64 %235, %58
%240 = getelementptr inbounds i32, i32* %135, i64 %239
%241 = load i32, i32* %240
%242 = mul nsw i32 %241, %238
%243 = add nsw i32 %242, %236
%244 = add nuw nsw i64 %235, 1
%245 = getelementptr inbounds i32, i32* %128, i64 %244
%246 = load i32, i32* %245
%247 = mul nuw nsw i64 %244, %58
%248 = getelementptr inbounds i32, i32* %135, i64 %247
%249 = load i32, i32* %248
%250 = mul nsw i32 %249, %246
%251 = add nsw i32 %250, %243
%252 = add nuw nsw i64 %235, 2
%253 = getelementptr inbounds i32, i32* %128, i64 %252
%254 = load i32, i32* %253
%255 = mul nuw nsw i64 %252, %58
%256 = getelementptr inbounds i32, i32* %135, i64 %255
%257 = load i32, i32* %256
%258 = mul nsw i32 %257, %254
%259 = add nsw i32 %258, %251
%260 = add nuw nsw i64 %235, 3
%261 = getelementptr inbounds i32, i32* %128, i64 %260
%262 = load i32, i32* %261
%263 = mul nuw nsw i64 %260, %58
%264 = getelementptr inbounds i32, i32* %135, i64 %263
%265 = load i32, i32* %264
%266 = mul nsw i32 %265, %262
%267 = add nsw i32 %266, %259
%268 = add nuw nsw i64 %235, 4
%269 = icmp eq i64 %268, %91
br i1 %269, label %270, label %234
270: ; preds = %229, %234, %205, %131
%271 = phi i32 [ %133, %131 ], [ %209, %205 ], [ %230, %229 ], [ %267, %234 ]
%272 = getelementptr inbounds i32, i32* %130, i64 %132
store i32 %271, i32* %272
%273 = add nuw nsw i64 %132, 1
%274 = icmp eq i64 %273, %90
br i1 %274, label %275, label %131
275: ; preds = %270, %123
%276 = phi i32 [ %125, %123 ], [ %271, %270 ]
%277 = add nuw nsw i64 %124, 1
%278 = icmp eq i64 %277, %89
br i1 %278, label %279, label %123
279: ; preds = %275, %81
%280 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.11, i64 0, i64 0))
%281 = load i32, i32* %1
%282 = icmp sgt i32 %281, 0
br i1 %282, label %283, label %305
283: ; preds = %279, %299
%284 = phi i64 [ %301, %299 ], [ 0, %279 ]
%285 = load i32, i32* %4
%286 = icmp sgt i32 %285, 0
br i1 %286, label %287, label %299
287: ; preds = %283
%288 = mul nuw nsw i64 %284, %65
%289 = getelementptr inbounds i32, i32* %67, i64 %288
br label %290
290: ; preds = %287, %290
%291 = phi i64 [ 0, %287 ], [ %295, %290 ]
%292 = getelementptr inbounds i32, i32* %289, i64 %291
%293 = load i32, i32* %292
%294 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 %293)
%295 = add nuw nsw i64 %291, 1
%296 = load i32, i32* %4
%297 = sext i32 %296 to i64
%298 = icmp slt i64 %295, %297
br i1 %298, label %290, label %299
299: ; preds = %290, %283
%300 = call i32 @putchar(i32 10)
%301 = add nuw nsw i64 %284, 1
%302 = load i32, i32* %1
%303 = sext i32 %302 to i64
%304 = icmp slt i64 %301, %303
br i1 %304, label %283, label %305
305: ; preds = %299, %279
br label %306
306: ; preds = %305, %53
ret i32 0
}