#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 a[10][10], b[10][10], mult[10][10], r1, c1, r2, c2, i, j, k;
  printf("Enter rows and column for first matrix: ");
  scanf("%d%d", &r1, &c1);
  printf("Enter rows and column for second matrix: ");
  scanf("%d%d", &r2, &c2);
  while (c1 != r2) {
    printf("Error! column of first matrix not equal to row of second.\n");
    printf("Enter rows and column for first matrix: ");
    scanf("%d%d", &r1, &c1);
    printf("Enter rows and column for second matrix: ");
    scanf("%d%d", &r2, &c2);
  }
  printf("\nEnter elements of matrix 1:\n");
  for (i = 0; i < r1; ++i)
    for (j = 0; j < c1; ++j) {
      printf("Enter elements a%d%d: ", i + 1, j + 1);
      scanf("%d", &a[i][j]);
    }
  printf("\nEnter elements of matrix 2:\n");
  for (i = 0; i < r2; ++i)
    for (j = 0; j < c2; ++j) {
      printf("Enter elements b%d%d: ", i + 1, j + 1);
      scanf("%d", &b[i][j]);
    }
  for (i = 0; i < r1; ++i)
    for (j = 0; j < c2; ++j) {
      mult[i][j] = 0;
    }
  for (i = 0; i < r1; ++i)
    for (j = 0; j < c2; ++j)
      for (k = 0; k < c1; ++k) {
        mult[i][j] += a[i][k] * b[k][j];
      }
  printf("\nOutput Matrix:\n");
  for (i = 0; i < r1; ++i)
    for (j = 0; j < c2; ++j) {
      printf("%d  ", mult[i][j]);
      if (j == c2 - 1)
        printf("\n\n");
    }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4e0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
lea    -0x4c4(%rbp),%rsi
lea    -0x4c8(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb8(%rip),%rdi
lea    -0x4cc(%rbp),%rsi
lea    -0x4d0(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x4c8(%rbp),%eax
cmp    -0x4cc(%rbp),%eax
je     11ff <main+0xdf>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe6e(%rip),%rdi
lea    -0x4c4(%rbp),%rsi
lea    -0x4c8(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe44(%rip),%rdi
lea    -0x4cc(%rbp),%rsi
lea    -0x4d0(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1186 <main+0x66>
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x4c4(%rbp),%eax
jge    12c3 <main+0x1a3>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x4c8(%rbp),%eax
jge    12aa <main+0x18a>
mov    -0x4d4(%rbp),%esi
add    $0x1,%esi
mov    -0x4d8(%rbp),%edx
add    $0x1,%edx
lea    0xe53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x4d4(%rbp),%rax
lea    -0x1a0(%rbp),%rsi
imul   $0x28,%rax,%rax
add    %rax,%rsi
movslq -0x4d8(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xd9c(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    1233 <main+0x113>
jmp    12af <main+0x18f>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    1217 <main+0xf7>
lea    0xdfe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x4cc(%rbp),%eax
jge    1387 <main+0x267>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x4d0(%rbp),%eax
jge    136e <main+0x24e>
mov    -0x4d4(%rbp),%esi
add    $0x1,%esi
mov    -0x4d8(%rbp),%edx
add    $0x1,%edx
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x4d4(%rbp),%rax
lea    -0x330(%rbp),%rsi
imul   $0x28,%rax,%rax
add    %rax,%rsi
movslq -0x4d8(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xcd8(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    12f7 <main+0x1d7>
jmp    1373 <main+0x253>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    12db <main+0x1bb>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x4c4(%rbp),%eax
jge    140f <main+0x2ef>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x4d0(%rbp),%eax
jge    13f6 <main+0x2d6>
movslq -0x4d4(%rbp),%rcx
lea    -0x4c0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x4d8(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    13ad <main+0x28d>
jmp    13fb <main+0x2db>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    1391 <main+0x271>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x4c4(%rbp),%eax
jge    150a <main+0x3ea>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x4d0(%rbp),%eax
jge    14f1 <main+0x3d1>
movl   $0x0,-0x4dc(%rbp)
mov    -0x4dc(%rbp),%eax
cmp    -0x4c8(%rbp),%eax
jge    14d8 <main+0x3b8>
movslq -0x4d4(%rbp),%rcx
lea    -0x1a0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x4dc(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
movslq -0x4dc(%rbp),%rcx
lea    -0x330(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x4d8(%rbp),%rcx
imul   (%rax,%rcx,4),%edx
movslq -0x4d4(%rbp),%rcx
lea    -0x4c0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x4d8(%rbp),%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x4dc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4dc(%rbp)
jmp    1451 <main+0x331>
jmp    14dd <main+0x3bd>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    1435 <main+0x315>
jmp    14f6 <main+0x3d6>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    1419 <main+0x2f9>
lea    0xbec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x4c4(%rbp),%eax
jge    15d4 <main+0x4b4>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x4d0(%rbp),%eax
jge    15bb <main+0x49b>
movslq -0x4d4(%rbp),%rcx
lea    -0x4c0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x4d8(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xb98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4d8(%rbp),%eax
mov    -0x4d0(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    15a2 <main+0x482>
lea    0xb78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    15a7 <main+0x487>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    153e <main+0x41e>
jmp    15c0 <main+0x4a0>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    1522 <main+0x402>
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    0xea8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec3(%rip),%rbx
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xead(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x14(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    0x14(%rsp),%eax
je     121e <main+0xde>
lea    0xe7c(%rip),%rbx
lea    0x10(%rsp),%r12
lea    0xc(%rsp),%r13
lea    0xe70(%rip),%rbp
lea    0x14(%rsp),%r14
lea    0x8(%rsp),%r15
nopl   0x0(%rax,%rax,1)
lea    0xf00(%rip),%rdi
call   1030 <puts@plt>
lea    0xe1d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    0x14(%rsp),%eax
jne    11d0 <main+0x90>
lea    0xe66(%rip),%rdi
call   1030 <puts@plt>
mov    0x10(%rsp),%ecx
test   %ecx,%ecx
jle    12b4 <main+0x174>
lea    0x1b0(%rsp),%r13
mov    0xc(%rsp),%eax
lea    0xe0f(%rip),%r14
lea    0xddb(%rip),%r15
xor    %r12d,%r12d
jmp    126c <main+0x12c>
cs nopw 0x0(%rax,%rax,1)
nop
movslq %ecx,%rdx
add    $0x28,%r13
cmp    %rdx,%r12
jge    12b4 <main+0x174>
add    $0x1,%r12
test   %eax,%eax
jle    1260 <main+0x120>
mov    %r13,%rbp
xor    %ebx,%ebx
nopl   0x0(%rax)
add    $0x1,%rbx
mov    %r14,%rdi
mov    %r12d,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movslq 0xc(%rsp),%rax
add    $0x4,%rbp
cmp    %rax,%rbx
jl     1280 <main+0x140>
mov    0x10(%rsp),%ecx
jmp    1260 <main+0x120>
lea    0xded(%rip),%rdi
call   1030 <puts@plt>
mov    0x14(%rsp),%ecx
test   %ecx,%ecx
jle    1344 <main+0x204>
lea    0x340(%rsp),%r13
mov    0x8(%rsp),%eax
lea    0xd94(%rip),%r14
lea    0xd49(%rip),%r15
xor    %r12d,%r12d
jmp    12fc <main+0x1bc>
nopw   0x0(%rax,%rax,1)
movslq %ecx,%rdx
add    $0x28,%r13
cmp    %rdx,%r12
jge    1344 <main+0x204>
add    $0x1,%r12
test   %eax,%eax
jle    12f0 <main+0x1b0>
mov    %r13,%rbp
xor    %ebx,%ebx
nopl   0x0(%rax)
add    $0x1,%rbx
mov    %r14,%rdi
mov    %r12d,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movslq 0x8(%rsp),%rax
add    $0x4,%rbp
cmp    %rax,%rbx
jl     1310 <main+0x1d0>
mov    0x14(%rsp),%ecx
jmp    12f0 <main+0x1b0>
mov    0x10(%rsp),%ecx
test   %ecx,%ecx
jle    158b <main+0x44b>
mov    0x8(%rsp),%r13d
mov    %r13,%r14
shl    $0x2,%r14
lea    -0x1(%rcx),%rax
mov    %ecx,%r12d
and    $0x3,%r12d
cmp    $0x3,%rax
mov    %rcx,0x18(%rsp)
jae    1628 <main+0x4e8>
xor    %ebp,%ebp
test   %r12,%r12
je     13be <main+0x27e>
lea    0x0(,%rbp,4),%rax
add    %rbp,%rax
lea    (%rsp,%rax,8),%r15
add    $0x20,%r15
shl    $0x3,%r12
lea    (%r12,%r12,4),%rbp
xor    %ebx,%ebx
jmp    13a9 <main+0x269>
nopl   0x0(%rax)
add    $0x28,%rbx
cmp    %rbx,%rbp
je     13be <main+0x27e>
test   %r13d,%r13d
jle    13a0 <main+0x260>
lea    (%r15,%rbx,1),%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1050 <memset@plt>
jmp    13a0 <main+0x260>
cmpl   $0x0,0x18(%rsp)
jle    158b <main+0x44b>
mov    0x8(%rsp),%r11d
mov    0xc(%rsp),%ecx
mov    %ecx,%r9d
and    $0xfffffff8,%r9d
lea    0x1c0(%rsp),%rsi
lea    0x0(,%rcx,4),%r13
and    $0xffffffffffffffe0,%r13
lea    0x1b0(%rsp),%rbx
xor    %r10d,%r10d
lea    0x340(%rsp),%r8
jmp    1427 <main+0x2e7>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r10
add    $0x28,%rsi
add    $0x28,%rbx
cmp    0x18(%rsp),%r10
je     158b <main+0x44b>
test   %r11d,%r11d
jle    1410 <main+0x2d0>
mov    %r8,%r12
xor    %r15d,%r15d
jmp    1453 <main+0x313>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    (%r14,%r15,4),%rdx
mov    %eax,(%rdx)
add    $0x1,%r15
add    $0x4,%r12
cmp    %r11,%r15
je     1410 <main+0x2d0>
test   %ecx,%ecx
jle    1446 <main+0x306>
lea    (%r10,%r10,4),%rax
lea    (%rsp,%rax,8),%r14
add    $0x20,%r14
mov    (%r14,%r15,4),%eax
cmp    $0x8,%ecx
jae    1480 <main+0x340>
xor    %edx,%edx
jmp    1568 <main+0x428>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movd   %eax,%xmm1
pxor   %xmm0,%xmm0
xor    %eax,%eax
mov    %r12,%rdx
nopl   (%rax)
movdqu -0x10(%rsi,%rax,1),%xmm3
movdqu (%rsi,%rax,1),%xmm2
movd   0x78(%rdx),%xmm4
movd   0x50(%rdx),%xmm5
punpckldq %xmm4,%xmm5
movd   0x28(%rdx),%xmm4
movd   (%rdx),%xmm6
punpckldq %xmm4,%xmm6
punpcklqdq %xmm5,%xmm6
movd   0x118(%rdx),%xmm4
movd   0xf0(%rdx),%xmm5
punpckldq %xmm4,%xmm5
movd   0xc8(%rdx),%xmm4
movd   0xa0(%rdx),%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,%rdx
add    $0x20,%rax
cmp    %rax,%r13
jne    1490 <main+0x350>
paddd  %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%eax
mov    %r9,%rdx
cmp    %rcx,%r9
je     1440 <main+0x300>
lea    (%rdx,%rdx,4),%rbp
lea    (%r12,%rbp,8),%rbp
mov    0x0(%rbp),%edi
imul   (%rbx,%rdx,4),%edi
add    %edi,%eax
add    $0x1,%rdx
add    $0x28,%rbp
cmp    %rdx,%rcx
jne    1570 <main+0x430>
jmp    1440 <main+0x300>
lea    0xb33(%rip),%rdi
call   1030 <puts@plt>
mov    0x10(%rsp),%ecx
test   %ecx,%ecx
jle    1614 <main+0x4d4>
lea    0x20(%rsp),%rbp
mov    0x8(%rsp),%eax
lea    0xad7(%rip),%r12
lea    0xb1f(%rip),%r14
xor    %r15d,%r15d
jmp    15d4 <main+0x494>
nopl   0x0(%rax,%rax,1)
mov    0x10(%rsp),%ecx
add    $0x1,%r15
movslq %ecx,%rdx
add    $0x28,%rbp
cmp    %rdx,%r15
jge    1614 <main+0x4d4>
test   %eax,%eax
jle    15c4 <main+0x484>
xor    %ebx,%ebx
jmp    15ec <main+0x4ac>
nopl   0x0(%rax)
add    $0x1,%rbx
movslq %eax,%rcx
cmp    %rcx,%rbx
jge    15c0 <main+0x480>
mov    0x0(%rbp,%rbx,4),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
lea    -0x1(%rax),%ecx
cmp    %rcx,%rbx
jne    15e0 <main+0x4a0>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    0x8(%rsp),%eax
jmp    15e0 <main+0x4a0>
xor    %eax,%eax
add    $0x4d8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rcx,%r15
and    $0xfffffffc,%r15d
lea    0x20(%rsp),%rbx
xor    %ebp,%ebp
jmp    1654 <main+0x514>
nopl   0x0(%rax,%rax,1)
add    $0x4,%rbp
add    $0xa0,%rbx
cmp    %rbp,%r15
je     1378 <main+0x238>
test   %r13d,%r13d
jle    1640 <main+0x500>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1050 <memset@plt>
lea    0x28(%rbx),%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1050 <memset@plt>
lea    0x50(%rbx),%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1050 <memset@plt>
lea    0x78(%rbx),%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1050 <memset@plt>
jmp    1640 <main+0x500>

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

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