#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ stderr;
int main() {
  int i, j, k, multiplicationMatrix[25][25];
  int rows1, columns1, matrix1[25][25];
  int rows2, columns2, matrix2[25][25];
  printf("Matrix - Multiplication (Matrix1 * Matrix2) \n");
  printf("Maximum Permissible Rows/Columns = 24 \n");
  printf("\n");
  printf("Rows (Matrix1) = ");
  scanf("%d", &rows1);
  printf("Columns (Matrix1) = ");
  scanf("%d", &columns1);
  if ((rows1 > 24) || (columns1 > 24)) {
    fprintf(stderr, "Rows/Columns > 24 \nAborting! \n");
    return -1;
  }
  printf("\n");
  printf("Input the Matrix1: \n");
  for (i = 0; i < rows1; i++) {
    for (j = 0; j < columns1; j++) {
      scanf("%d", &matrix1[i][j]);
    }
  }
  printf("\n");
  printf("Rows (Matrix2) = ");
  scanf("%d", &rows2);
  printf("Columns (Matrix2) = ");
  scanf("%d", &columns2);
  if ((rows2 > 24) || (columns2 > 24)) {
    fprintf(stderr, "Rows/Columns > 24 \nAborting! \n");
    return -1;
  }
  printf("\n");
  printf("Input the Matrix2: \n");
  for (i = 0; i < rows2; i++) {
    for (j = 0; j < columns2; j++) {
      scanf("%d", &matrix2[i][j]);
    }
  }
  printf("\n");
  if (columns1 != rows2) {
    fprintf(stderr,
            "Matrices are incompatible for Multiplication \nAborting! \n");
    return -1;
  }
  printf("Matrix1: \n");
  for (i = 0; i < rows1; i++) {
    for (j = 0; j < columns1; j++) {
      printf("%d	", matrix1[i][j]);
    }
    printf("\n");
  }
  printf("\n");
  printf("Matrix2: \n");
  for (i = 0; i < rows2; i++) {
    for (j = 0; j < columns2; j++) {
      printf("%d	", matrix2[i][j]);
    }
    printf("\n");
  }
  printf("\n");
  printf("Multiplication (Matrix1 * Matrix2): \n");
  for (i = 0; i < rows1; i++) {
    for (j = 0; j < columns2; j++) {
      multiplicationMatrix[i][j] = 0;
      for (k = 0; k < columns1; k++) {
        multiplicationMatrix[i][j] += matrix1[i][k] * matrix2[k][j];
      }
      printf("%d	", multiplicationMatrix[i][j]);
    }
    printf("\n");
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1d80,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
lea    -0x9e4(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
lea    -0x9e8(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x18,-0x9e4(%rbp)
jg     11c8 <main+0x98>
cmpl   $0x18,-0x9e8(%rbp)
jle    11e9 <main+0xb9>
mov    0x2e11(%rip),%rax
mov    (%rax),%edi
lea    0xea8(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    163b <main+0x50b>
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x9e4(%rbp),%eax
jge    127b <main+0x14b>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x9e8(%rbp),%eax
jge    1268 <main+0x138>
movslq -0x8(%rbp),%rax
lea    -0x13b0(%rbp),%rsi
imul   $0x64,%rax,%rax
add    %rax,%rsi
movslq -0xc(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe13(%rip),%rdi
call   1050 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1222 <main+0xf2>
jmp    126d <main+0x13d>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    120c <main+0xdc>
lea    0xe1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdca(%rip),%rdi
lea    -0x13b4(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xe15(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xda9(%rip),%rdi
lea    -0x13b8(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x18,-0x13b4(%rbp)
jg     12e5 <main+0x1b5>
cmpl   $0x18,-0x13b8(%rbp)
jle    1306 <main+0x1d6>
mov    0x2cf4(%rip),%rax
mov    (%rax),%edi
lea    0xd8b(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    163b <main+0x50b>
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x13b4(%rbp),%eax
jge    1398 <main+0x268>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x13b8(%rbp),%eax
jge    1385 <main+0x255>
movslq -0x8(%rbp),%rax
lea    -0x1d80(%rbp),%rsi
imul   $0x64,%rax,%rax
add    %rax,%rsi
movslq -0xc(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xcf6(%rip),%rdi
call   1050 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    133f <main+0x20f>
jmp    138a <main+0x25a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1329 <main+0x1f9>
lea    0xcfe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x9e8(%rbp),%eax
cmp    -0x13b4(%rbp),%eax
je     13d9 <main+0x2a9>
mov    0x2c21(%rip),%rax
mov    (%rax),%edi
lea    0xd28(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    163b <main+0x50b>
lea    0xcc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x9e4(%rbp),%eax
jge    1464 <main+0x334>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x9e8(%rbp),%eax
jge    1448 <main+0x318>
movslq -0x8(%rbp),%rcx
lea    -0x13b0(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xcf7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1404 <main+0x2d4>
lea    0xc4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    13ee <main+0x2be>
lea    0xc32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x13b4(%rbp),%eax
jge    14fd <main+0x3cd>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x13b8(%rbp),%eax
jge    14e1 <main+0x3b1>
movslq -0x8(%rbp),%rcx
lea    -0x1d80(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    149d <main+0x36d>
lea    0xbb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1487 <main+0x357>
lea    0xb99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x9e4(%rbp),%eax
jge    1626 <main+0x4f6>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x13b8(%rbp),%eax
jge    160a <main+0x4da>
movslq -0x8(%rbp),%rcx
lea    -0x9e0(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x9e8(%rbp),%eax
jge    15d5 <main+0x4a5>
movslq -0x8(%rbp),%rcx
lea    -0x13b0(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
movslq -0x10(%rbp),%rcx
lea    -0x1d80(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
imul   (%rax,%rcx,4),%edx
movslq -0x8(%rbp),%rcx
lea    -0x9e0(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1569 <main+0x439>
movslq -0x8(%rbp),%rcx
lea    -0x9e0(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xb35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1536 <main+0x406>
lea    0xa8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1520 <main+0x3f0>
lea    0xa70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1d80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x13a8,%rsp
lea    0xf46(%rip),%rdi
call   1040 <puts@plt>
lea    0xf67(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe76(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe7a(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    0xe69(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
cmpl   $0x18,0x8(%rsp)
jg     1332 <main+0x1e2>
cmpl   $0x19,0x4(%rsp)
jge    1332 <main+0x1e2>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf1b(%rip),%rdi
call   1040 <puts@plt>
mov    0x8(%rsp),%ecx
test   %ecx,%ecx
jle    1253 <main+0x103>
lea    0x10(%rsp),%r15
mov    0x4(%rsp),%eax
xor    %r12d,%r12d
lea    0xe0b(%rip),%r14
jmp    1220 <main+0xd0>
nopl   0x0(%rax)
add    $0x1,%r12
movslq %ecx,%rdx
add    $0x64,%r15
cmp    %rdx,%r12
jge    1253 <main+0x103>
test   %eax,%eax
jle    1210 <main+0xc0>
mov    %r15,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <scanf@plt>
add    $0x1,%rbp
movslq 0x4(%rsp),%rax
add    $0x4,%rbx
cmp    %rax,%rbp
jl     1230 <main+0xe0>
mov    0x8(%rsp),%ecx
jmp    1210 <main+0xc0>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xde5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xda0(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    0xdd5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
cmpl   $0x18,0xc(%rsp)
jg     1332 <main+0x1e2>
cmpl   $0x19,(%rsp)
jge    1332 <main+0x1e2>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe58(%rip),%rdi
call   1040 <puts@plt>
mov    0xc(%rsp),%ecx
test   %ecx,%ecx
jle    135e <main+0x20e>
lea    0x9e0(%rsp),%r15
mov    (%rsp),%eax
xor    %r12d,%r12d
lea    0xd2e(%rip),%r14
jmp    1300 <main+0x1b0>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r12
movslq %ecx,%rdx
add    $0x64,%r15
cmp    %rdx,%r12
jge    135e <main+0x20e>
test   %eax,%eax
jle    12f0 <main+0x1a0>
mov    %r15,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <scanf@plt>
add    $0x1,%rbp
movslq (%rsp),%rax
add    $0x4,%rbx
cmp    %rax,%rbp
jl     1310 <main+0x1c0>
mov    0xc(%rsp),%ecx
jmp    12f0 <main+0x1a0>
mov    0x2ca7(%rip),%rax
mov    (%rax),%edi
lea    0xce8(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0xffffffff,%eax
add    $0x13a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x4(%rsp),%eax
cmp    0xc(%rsp),%eax
jne    13ee <main+0x29e>
lea    0xd93(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0x8(%rsp)
jle    1403 <main+0x2b3>
lea    0x10(%rsp),%rbp
lea    0xd19(%rip),%r15
xor    %r14d,%r14d
jmp    13bc <main+0x26c>
cs nopw 0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14
movslq 0x8(%rsp),%rax
add    $0x64,%rbp
cmp    %rax,%r14
jge    1403 <main+0x2b3>
cmpl   $0x0,0x4(%rsp)
jle    13a0 <main+0x250>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x0(%rbp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq 0x4(%rsp),%rax
cmp    %rax,%rbx
jl     13d0 <main+0x280>
jmp    13a0 <main+0x250>
mov    0x2beb(%rip),%rax
mov    (%rax),%edi
lea    0xc72(%rip),%rsi
jmp    1342 <main+0x1f2>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd0c(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    148d <main+0x33d>
lea    0x9e0(%rsp),%rbp
lea    0xc7b(%rip),%r15
xor    %r14d,%r14d
jmp    145c <main+0x30c>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14
movslq 0xc(%rsp),%rax
add    $0x64,%rbp
cmp    %rax,%r14
jge    148d <main+0x33d>
cmpl   $0x0,(%rsp)
jle    1440 <main+0x2f0>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x0(%rbp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq (%rsp),%rax
cmp    %rax,%rbx
jl     1470 <main+0x320>
jmp    1440 <main+0x2f0>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xc8c(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0x8(%rsp)
jle    167b <main+0x52b>
lea    0x20(%rsp),%rbx
lea    0x10(%rsp),%r15
lea    0xbeb(%rip),%r14
xor    %r13d,%r13d
jmp    14f4 <main+0x3a4>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r13
movslq 0x8(%rsp),%rax
add    $0x64,%rbx
add    $0x64,%r15
cmp    %rax,%r13
jge    167b <main+0x52b>
cmpl   $0x0,(%rsp)
jle    14d0 <main+0x380>
lea    0x9e0(%rsp),%rbp
xor    %r12d,%r12d
jmp    152d <main+0x3dd>
nopw   0x0(%rax,%rax,1)
xor    %esi,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%r12
movslq (%rsp),%rax
add    $0x4,%rbp
cmp    %rax,%r12
jge    14d0 <main+0x380>
mov    0x4(%rsp),%eax
test   %eax,%eax
jle    1510 <main+0x3c0>
cmp    $0x8,%eax
jae    1550 <main+0x400>
xor    %ecx,%ecx
xor    %esi,%esi
jmp    164b <main+0x4fb>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %eax,%ecx
and    $0xfffffff8,%ecx
lea    0x0(,%rax,4),%rdx
and    $0xffffffffffffffe0,%rdx
pxor   %xmm0,%xmm0
xor    %esi,%esi
mov    %rbp,%rdi
pxor   %xmm1,%xmm1
xchg   %ax,%ax
movdqu -0x10(%rbx,%rsi,1),%xmm3
movdqu (%rbx,%rsi,1),%xmm2
movd   0x12c(%rdi),%xmm4
movd   0xc8(%rdi),%xmm5
punpckldq %xmm4,%xmm5
movd   0x64(%rdi),%xmm4
movd   (%rdi),%xmm6
punpckldq %xmm4,%xmm6
punpcklqdq %xmm5,%xmm6
movd   0x2bc(%rdi),%xmm4
movd   0x258(%rdi),%xmm5
punpckldq %xmm4,%xmm5
movd   0x1f4(%rdi),%xmm4
movd   0x190(%rdi),%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,%xmm0
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,%xmm1
add    $0x320,%rdi
add    $0x20,%rsi
cmp    %rsi,%rdx
jne    1570 <main+0x420>
paddd  %xmm0,%xmm1
pshufd $0xee,%xmm1,%xmm0
paddd  %xmm1,%xmm0
pshufd $0x55,%xmm0,%xmm1
paddd  %xmm0,%xmm1
movd   %xmm1,%esi
cmp    %rax,%rcx
je     1512 <main+0x3c2>
imul   $0x64,%rcx,%rdx
add    %rbp,%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%rdx),%edi
imul   (%r15,%rcx,4),%edi
add    %edi,%esi
add    $0x1,%rcx
add    $0x64,%rdx
cmp    %rcx,%rax
jne    1660 <main+0x510>
jmp    1512 <main+0x3c2>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
jmp    134c <main+0x1fc>

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

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