#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *, ...);
int main(void) {
  int iM, iN, iP, iQ, i, j, k, iTrace = 0, iaMat1[10][10], iaMat2[10][10];
  int iaProd[10][10] = {0};
  printf("\n*********************************************************");
  printf("\n*\tPROGRAM TO IMPLEMENT MATRIX MULIPLICATION\t*\n");
  printf("*********************************************************");
  printf("\nEnter the order of Matrix1\n");
  scanf("%d%d", &iM, &iN);
  printf("\nEnter the order of Matrix2\n");
  scanf("%d%d", &iP, &iQ);
  if (iN != iP) {
    printf("\nMatrix Multiplication not possible\n");
    exit(0);
  }
  printf("\nEnter the elements of Matrix 1\n");
  for (i = 0; i < iM; i++)
    for (j = 0; j < iN; j++)
      scanf("%d", &iaMat1[i][j]);
  printf("\nEnter the elements of Matrix 2\n");
  for (i = 0; i < iP; i++)
    for (j = 0; j < iQ; j++)
      scanf("%d", &iaMat2[i][j]);
  for (i = 0; i < iM; i++) {
    for (j = 0; j < iQ; j++) {
      for (k = 0; k < iN; k++) {
        iaProd[i][j] += iaMat1[i][k] * iaMat2[k][j];
      }
    }
  }
  printf("\nMatrix 1\n");
  for (i = 0; i < iM; i++) {
    for (j = 0; j < iN; j++) {
      printf("%d\t", iaMat1[i][j]);
    }
    printf("\n");
  }
  printf("\n");
  printf("\nMatrix 2\n");
  for (i = 0; i < iP; i++) {
    for (j = 0; j < iQ; j++) {
      printf("%d\t", iaMat2[i][j]);
    }
    printf("\n");
  }
  printf("\n");
  printf("\nThe Product matrix is is \n");
  for (i = 0; i < iM; i++) {
    for (j = 0; j < iQ; j++) {
      printf("%d\t", iaProd[i][j]);
    }
    printf("\n");
  }
  printf("\n");
  if (iM == iQ) {
    for (i = 0; i < iM; i++)
      iTrace += iaProd[i][i];
    printf("\nTrace of the Product Matrix is : %d\n", iTrace);
  } else
    printf("\nTrace does not exist for the Product Matrix\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4e0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x24(%rbp)
lea    -0x4e0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1040 <memset@plt>
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb9(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
je     11ff <main+0xbf>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    127f <main+0x13f>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    126c <main+0x12c>
movslq -0x18(%rbp),%rax
lea    -0x1c0(%rbp),%rsi
imul   $0x28,%rax,%rax
add    %rax,%rsi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1227 <main+0xe7>
jmp    1271 <main+0x131>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1214 <main+0xd4>
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    12ff <main+0x1bf>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12ec <main+0x1ac>
movslq -0x18(%rbp),%rax
lea    -0x350(%rbp),%rsi
imul   $0x28,%rax,%rax
add    %rax,%rsi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12a7 <main+0x167>
jmp    12f1 <main+0x1b1>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1294 <main+0x154>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13bb <main+0x27b>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13a8 <main+0x268>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1395 <main+0x255>
movslq -0x18(%rbp),%rcx
lea    -0x1c0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
movslq -0x20(%rbp),%rcx
lea    -0x350(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
imul   (%rax,%rcx,4),%edx
movslq -0x18(%rbp),%rcx
lea    -0x4e0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    132c <main+0x1ec>
jmp    139a <main+0x25a>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1319 <main+0x1d9>
jmp    13ad <main+0x26d>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1306 <main+0x1c6>
lea    0xd4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1440 <main+0x300>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1424 <main+0x2e4>
movslq -0x18(%rbp),%rcx
lea    -0x1c0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13e3 <main+0x2a3>
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13d0 <main+0x290>
lea    0xcfe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xccb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    14d3 <main+0x393>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14b7 <main+0x377>
movslq -0x18(%rbp),%rcx
lea    -0x350(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1476 <main+0x336>
lea    0xc87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1463 <main+0x323>
lea    0xc6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1566 <main+0x426>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    154a <main+0x40a>
movslq -0x18(%rbp),%rcx
lea    -0x4e0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xbe7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1509 <main+0x3c9>
lea    0xbf4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    14f6 <main+0x3b6>
lea    0xbd8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jne    15d6 <main+0x496>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    15c0 <main+0x480>
movslq -0x18(%rbp),%rcx
lea    -0x4e0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1587 <main+0x447>
mov    -0x24(%rbp),%esi
lea    0xb7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    15e4 <main+0x4a4>
lea    0xb90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x4e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x4d8,%rsp
lea    0x20(%rsp),%r14
mov    $0x190,%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1060 <memset@plt>
lea    0xe74(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xed0(%rip),%rdi
call   1040 <puts@plt>
lea    0xe5b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xee5(%rip),%rdi
call   1040 <puts@plt>
lea    0xe7b(%rip),%rbx
lea    0xc(%rsp),%rsi
lea    0x10(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xeda(%rip),%rdi
call   1040 <puts@plt>
lea    0x14(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x10(%rsp),%eax
cmp    0x14(%rsp),%eax
jne    177e <main+0x61e>
lea    0xec8(%rip),%rdi
call   1040 <puts@plt>
mov    0xc(%rsp),%ecx
test   %ecx,%ecx
jle    1275 <main+0x115>
lea    0x1b0(%rsp),%r12
mov    0x10(%rsp),%eax
lea    0xe14(%rip),%r15
xor    %r13d,%r13d
jmp    1240 <main+0xe0>
xchg   %ax,%ax
add    $0x1,%r13
movslq %ecx,%rdx
add    $0x28,%r12
cmp    %rdx,%r13
jge    1275 <main+0x115>
test   %eax,%eax
jle    1230 <main+0xd0>
mov    %r12,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
add    $0x1,%rbp
movslq 0x10(%rsp),%rax
add    $0x4,%rbx
cmp    %rax,%rbp
jl     1250 <main+0xf0>
mov    0xc(%rsp),%ecx
jmp    1230 <main+0xd0>
lea    0xe75(%rip),%rdi
call   1040 <puts@plt>
mov    0x14(%rsp),%ecx
test   %ecx,%ecx
jle    12f5 <main+0x195>
lea    0x340(%rsp),%r12
mov    0x8(%rsp),%eax
lea    0xda1(%rip),%r15
xor    %r13d,%r13d
jmp    12c0 <main+0x160>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r13
movslq %ecx,%rdx
add    $0x28,%r12
cmp    %rdx,%r13
jge    12f5 <main+0x195>
test   %eax,%eax
jle    12b0 <main+0x150>
mov    %r12,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
add    $0x1,%rbp
movslq 0x8(%rsp),%rax
add    $0x4,%rbx
cmp    %rax,%rbp
jl     12d0 <main+0x170>
mov    0x14(%rsp),%ecx
jmp    12b0 <main+0x150>
mov    0xc(%rsp),%eax
mov    %rax,0x18(%rsp)
test   %eax,%eax
jle    14cb <main+0x36b>
mov    0x8(%rsp),%r15d
mov    0x10(%rsp),%edx
mov    %edx,%r9d
and    $0xfffffff8,%r9d
lea    0x1c0(%rsp),%rdi
lea    0x0(,%rdx,4),%rbx
and    $0xffffffffffffffe0,%rbx
lea    0x1b0(%rsp),%rax
xor    %r11d,%r11d
jmp    1357 <main+0x1f7>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r11
add    $0x28,%rdi
add    $0x28,%rax
cmp    0x18(%rsp),%r11
je     14cb <main+0x36b>
test   %r15d,%r15d
jle    1340 <main+0x1e0>
lea    0x340(%rsp),%r13
xor    %r8d,%r8d
jmp    1383 <main+0x223>
nopl   0x0(%rax)
lea    (%r12,%r8,4),%rcx
mov    %esi,(%rcx)
add    $0x1,%r8
add    $0x4,%r13
cmp    %r15,%r8
je     1340 <main+0x1e0>
test   %edx,%edx
jle    1376 <main+0x216>
lea    (%r11,%r11,4),%rsi
lea    (%rsp,%rsi,8),%r12
add    $0x20,%r12
mov    (%r12,%r8,4),%esi
cmp    $0x8,%edx
jae    13b0 <main+0x250>
xor    %ebp,%ebp
jmp    1499 <main+0x339>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movd   %esi,%xmm1
pxor   %xmm0,%xmm0
xor    %esi,%esi
mov    %r13,%rbp
nopl   (%rax)
movdqu -0x10(%rdi,%rsi,1),%xmm3
movdqu (%rdi,%rsi,1),%xmm2
movd   0x78(%rbp),%xmm4
movd   0x50(%rbp),%xmm5
punpckldq %xmm4,%xmm5
movd   0x28(%rbp),%xmm4
movd   0x0(%rbp),%xmm6
punpckldq %xmm4,%xmm6
punpcklqdq %xmm5,%xmm6
movd   0x118(%rbp),%xmm4
movd   0xf0(%rbp),%xmm5
punpckldq %xmm4,%xmm5
movd   0xc8(%rbp),%xmm4
movd   0xa0(%rbp),%xmm7
punpckldq %xmm4,%xmm7
punpcklqdq %xmm5,%xmm7
pshufd $0xf5,%xmm6,%xmm4
pmuludq %xmm3,%xmm6
pshufd $0xe8,%xmm6,%xmm5
pshufd $0xf5,%xmm3,%xmm3
pmuludq %xmm4,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm5
paddd  %xmm5,%xmm1
pshufd $0xf5,%xmm7,%xmm3
pmuludq %xmm2,%xmm7
pshufd $0xe8,%xmm7,%xmm4
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm3,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm4
paddd  %xmm4,%xmm0
add    $0x140,%rbp
add    $0x20,%rsi
cmp    %rsi,%rbx
jne    13c0 <main+0x260>
paddd  %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%esi
mov    %r9,%rbp
cmp    %rdx,%r9
je     1370 <main+0x210>
lea    0x0(,%rbp,4),%rcx
add    %rbp,%rcx
lea    0x0(,%rcx,8),%r10
add    %r13,%r10
nop
mov    (%r10),%ecx
imul   (%rax,%rbp,4),%ecx
add    %ecx,%esi
add    $0x1,%rbp
add    $0x28,%r10
cmp    %rbp,%rdx
jne    14b0 <main+0x350>
jmp    1370 <main+0x210>
lea    0xc3f(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    154e <main+0x3ee>
lea    0x1b0(%rsp),%rbp
lea    0xb53(%rip),%r12
xor    %r15d,%r15d
jmp    151c <main+0x3bc>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15
movslq 0xc(%rsp),%rax
add    $0x28,%rbp
cmp    %rax,%r15
jge    154e <main+0x3ee>
cmpl   $0x0,0x10(%rsp)
jle    1500 <main+0x3a0>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x0(%rbp,%rbx,4),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq 0x10(%rsp),%rax
cmp    %rax,%rbx
jl     1530 <main+0x3d0>
jmp    1500 <main+0x3a0>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xbbc(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0x14(%rsp)
jle    15ce <main+0x46e>
lea    0x340(%rsp),%rbp
lea    0xac6(%rip),%r12
xor    %r15d,%r15d
jmp    159c <main+0x43c>
nop
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15
movslq 0x14(%rsp),%rax
add    $0x28,%rbp
cmp    %rax,%r15
jge    15ce <main+0x46e>
cmpl   $0x0,0x8(%rsp)
jle    1580 <main+0x420>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x0(%rbp,%rbx,4),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq 0x8(%rsp),%rax
cmp    %rax,%rbx
jl     15b0 <main+0x450>
jmp    1580 <main+0x420>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xb46(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    164e <main+0x4ee>
lea    0xa4e(%rip),%rbx
xor    %r15d,%r15d
jmp    161c <main+0x4bc>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15
movslq 0xc(%rsp),%rax
add    $0x28,%r14
cmp    %rax,%r15
jge    164e <main+0x4ee>
cmpl   $0x0,0x8(%rsp)
jle    1600 <main+0x4a0>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%r14,%rbp,4),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbp
movslq 0x8(%rsp),%rax
cmp    %rax,%rbp
jl     1630 <main+0x4d0>
jmp    1600 <main+0x4a0>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%eax
cmp    0x8(%rsp),%eax
jne    1674 <main+0x514>
test   %eax,%eax
jle    1685 <main+0x525>
cmp    $0x8,%eax
jae    168c <main+0x52c>
xor    %ecx,%ecx
xor    %esi,%esi
jmp    173a <main+0x5da>
lea    0xac5(%rip),%rdi
call   1040 <puts@plt>
jmp    176a <main+0x60a>
xor    %esi,%esi
jmp    175c <main+0x5fc>
mov    %eax,%ecx
and    $0xfffffff8,%ecx
mov    %rax,%rdx
shr    $0x3,%rdx
imul   $0x160,%rdx,%rdx
pxor   %xmm0,%xmm0
xor    %esi,%esi
pxor   %xmm1,%xmm1
nopl   0x0(%rax)
movd   0xa4(%rsp,%rsi,1),%xmm2
movd   0x78(%rsp,%rsi,1),%xmm3
punpckldq %xmm2,%xmm3
movd   0x4c(%rsp,%rsi,1),%xmm2
movd   0x20(%rsp,%rsi,1),%xmm4
punpckldq %xmm2,%xmm4
punpcklqdq %xmm3,%xmm4
paddd  %xmm4,%xmm0
movd   0x154(%rsp,%rsi,1),%xmm2
movd   0x128(%rsp,%rsi,1),%xmm3
punpckldq %xmm2,%xmm3
movd   0xfc(%rsp,%rsi,1),%xmm2
movd   0xd0(%rsp,%rsi,1),%xmm4
punpckldq %xmm2,%xmm4
punpcklqdq %xmm3,%xmm4
paddd  %xmm4,%xmm1
add    $0x160,%rsi
cmp    %rsi,%rdx
jne    16b0 <main+0x550>
paddd  %xmm0,%xmm1
pshufd $0xee,%xmm1,%xmm0
paddd  %xmm1,%xmm0
pshufd $0x55,%xmm0,%xmm1
paddd  %xmm0,%xmm1
movd   %xmm1,%esi
cmp    %rax,%rcx
je     175c <main+0x5fc>
imul   $0x2c,%rcx,%rdx
add    %rsp,%rdx
add    $0x20,%rdx
sub    %rcx,%rax
nopl   0x0(%rax,%rax,1)
add    (%rdx),%esi
add    $0x2c,%rdx
add    $0xffffffffffffffff,%rax
jne    1750 <main+0x5f0>
lea    0x8e1(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x4d8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x9e8(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1080 <exit@plt>

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

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