#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 row_1, column_1;
  int row_2, column_2;
  int a[10][10];
  int b[10][10];
  int answer[10][10];
  int i, j, k;
  printf("Enter number of rows and columns in 1st matrix: ");
  scanf("%d %d", &row_1, &column_1);
  printf("Enter number of rows and columns in 2nd matrx: ");
  scanf("%d %d", &row_2, &column_2);
  if (row_1 != column_2) {
    printf("Multiplication not possible.\n");
  } else {
    printf("Enter elements of 1st matrix: \n");
    for (i = 0; i < row_1; i++) {
      for (j = 0; j < column_1; j++) {
        scanf("%d", &a[i][j]);
      }
    }
    printf("Enter elements of 2nd matrix: \n");
    for (i = 0; i < row_2; i++) {
      for (j = 0; j < column_2; j++) {
        scanf("%d", &b[i][j]);
      }
    }
    printf("Matrix 1:\n");
    for (i = 0; i < row_1; i++) {
      for (j = 0; j < column_1; j++) {
        printf("%d ", a[i][j]);
      }
      printf("\n");
    }
    printf("Matrix 2:\n");
    for (i = 0; i < row_2; i++) {
      for (j = 0; j < column_2; j++) {
        printf("%d ", b[i][j]);
      }
      printf("\n");
    }
    for (i = 0; i < 10; i++) {
      for (j = 0; j < 10; j++) {
        answer[i][j] = 0;
      }
    }
    for (i = 0; i < row_1; i++) {
      for (j = 0; j < column_2; j++) {
        for (k = 0; k < column_1; k++) {
          answer[i][j] += a[i][k] * b[k][j];
        }
      }
    }
    printf("Answer is:\n");
    for (i = 0; i < row_1; i++) {
      for (j = 0; j < column_2; j++) {
        printf("%d ", answer[i][j]);
      }
      printf("\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    0xeea(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0x14(%rbp),%eax
je     1199 <main+0x79>
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1633 <main+0x513>
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1237 <main+0x117>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    121e <main+0xfe>
movslq -0x4d4(%rbp),%rax
lea    -0x1b0(%rbp),%rsi
imul   $0x28,%rax,%rax
add    %rax,%rsi
movslq -0x4d8(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    11ca <main+0xaa>
jmp    1223 <main+0x103>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    11b1 <main+0x91>
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    12d5 <main+0x1b5>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12bc <main+0x19c>
movslq -0x4d4(%rbp),%rax
lea    -0x340(%rbp),%rsi
imul   $0x28,%rax,%rax
add    %rax,%rsi
movslq -0x4d8(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    1268 <main+0x148>
jmp    12c1 <main+0x1a1>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    124f <main+0x12f>
lea    0xde9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1378 <main+0x258>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1356 <main+0x236>
movslq -0x4d4(%rbp),%rcx
lea    -0x1b0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x4d8(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    1306 <main+0x1e6>
lea    0xd66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    12ed <main+0x1cd>
lea    0xd55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    141b <main+0x2fb>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13f9 <main+0x2d9>
movslq -0x4d4(%rbp),%rcx
lea    -0x340(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x4d8(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xcf2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    13a9 <main+0x289>
lea    0xcc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    1390 <main+0x270>
movl   $0x0,-0x4d4(%rbp)
cmpl   $0xa,-0x4d4(%rbp)
jge    1499 <main+0x379>
movl   $0x0,-0x4d8(%rbp)
cmpl   $0xa,-0x4d8(%rbp)
jge    1480 <main+0x360>
movslq -0x4d4(%rbp),%rcx
lea    -0x4d0(%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    143c <main+0x31c>
jmp    1485 <main+0x365>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    1425 <main+0x305>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    158b <main+0x46b>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1572 <main+0x452>
movl   $0x0,-0x4dc(%rbp)
mov    -0x4dc(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1559 <main+0x439>
movslq -0x4d4(%rbp),%rcx
lea    -0x1b0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x4dc(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
movslq -0x4dc(%rbp),%rcx
lea    -0x340(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x4d8(%rbp),%rcx
imul   (%rax,%rcx,4),%edx
movslq -0x4d4(%rbp),%rcx
lea    -0x4d0(%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    14d5 <main+0x3b5>
jmp    155e <main+0x43e>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    14bc <main+0x39c>
jmp    1577 <main+0x457>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    14a3 <main+0x383>
lea    0xb4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    162e <main+0x50e>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    160c <main+0x4ec>
movslq -0x4d4(%rbp),%rcx
lea    -0x4d0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x4d8(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xadf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    15bc <main+0x49c>
lea    0xab0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    15a3 <main+0x483>
jmp    1633 <main+0x513>
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    0xe98(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xebb(%rip),%rbx
lea    0xc(%rsp),%rsi
lea    0x10(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xea6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x14(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    0x8(%rsp),%eax
jne    1225 <main+0xd5>
lea    0xeae(%rip),%rdi
call   1040 <puts@plt>
mov    0xc(%rsp),%ecx
test   %ecx,%ecx
jle    1236 <main+0xe6>
lea    0x20(%rsp),%r15
mov    0x10(%rsp),%eax
lea    0xe5a(%rip),%r14
xor    %r12d,%r12d
jmp    11f0 <main+0xa0>
nop
add    $0x1,%r12
movslq %ecx,%rdx
add    $0x28,%r15
cmp    %rdx,%r12
jge    1236 <main+0xe6>
test   %eax,%eax
jle    11e0 <main+0x90>
mov    %r15,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r14,%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     1200 <main+0xb0>
mov    0xc(%rsp),%ecx
jmp    11e0 <main+0x90>
lea    0xe9c(%rip),%rdi
call   1040 <puts@plt>
jmp    160e <main+0x4be>
lea    0xe4d(%rip),%rdi
call   1040 <puts@plt>
mov    0x14(%rsp),%ecx
test   %ecx,%ecx
jle    12b5 <main+0x165>
lea    0x1b0(%rsp),%r15
mov    0x8(%rsp),%eax
lea    0xdd7(%rip),%r14
xor    %r12d,%r12d
jmp    1280 <main+0x130>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r12
movslq %ecx,%rdx
add    $0x28,%r15
cmp    %rdx,%r12
jge    12b5 <main+0x165>
test   %eax,%eax
jle    1270 <main+0x120>
mov    %r15,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r14,%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     1290 <main+0x140>
mov    0x14(%rsp),%ecx
jmp    1270 <main+0x120>
lea    0xded(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    132e <main+0x1de>
lea    0x20(%rsp),%rbp
lea    0xd93(%rip),%r15
xor    %r14d,%r14d
jmp    12fc <main+0x1ac>
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14
movslq 0xc(%rsp),%rax
add    $0x28,%rbp
cmp    %rax,%r14
jge    132e <main+0x1de>
cmpl   $0x0,0x10(%rsp)
jle    12e0 <main+0x190>
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 0x10(%rsp),%rax
cmp    %rax,%rbx
jl     1310 <main+0x1c0>
jmp    12e0 <main+0x190>
lea    0xd7e(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0x14(%rsp)
jle    13ae <main+0x25e>
lea    0x1b0(%rsp),%rbp
lea    0xd17(%rip),%r15
xor    %r14d,%r14d
jmp    137c <main+0x22c>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14
movslq 0x14(%rsp),%rax
add    $0x28,%rbp
cmp    %rax,%r14
jge    13ae <main+0x25e>
cmpl   $0x0,0x8(%rsp)
jle    1360 <main+0x210>
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 0x8(%rsp),%rax
cmp    %rax,%rbx
jl     1390 <main+0x240>
jmp    1360 <main+0x210>
lea    0x340(%rsp),%r14
mov    $0x190,%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1060 <memset@plt>
mov    0xc(%rsp),%eax
mov    %rax,0x18(%rsp)
test   %eax,%eax
jle    159b <main+0x44b>
mov    0x8(%rsp),%r15d
mov    0x10(%rsp),%edx
mov    %edx,%r9d
and    $0xfffffff8,%r9d
lea    0x30(%rsp),%rdi
lea    0x0(,%rdx,4),%rbx
and    $0xffffffffffffffe0,%rbx
lea    0x20(%rsp),%rax
xor    %r11d,%r11d
jmp    1427 <main+0x2d7>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r11
add    $0x28,%rdi
add    $0x28,%rax
cmp    0x18(%rsp),%r11
je     159b <main+0x44b>
test   %r15d,%r15d
jle    1410 <main+0x2c0>
lea    0x1b0(%rsp),%r13
xor    %r8d,%r8d
jmp    1453 <main+0x303>
nopl   0x0(%rax)
lea    (%r12,%r8,4),%rcx
mov    %esi,(%rcx)
add    $0x1,%r8
add    $0x4,%r13
cmp    %r15,%r8
je     1410 <main+0x2c0>
test   %edx,%edx
jle    1446 <main+0x2f6>
lea    (%r11,%r11,4),%rsi
lea    (%rsp,%rsi,8),%r12
add    $0x340,%r12
mov    (%r12,%r8,4),%esi
cmp    $0x8,%edx
jae    1480 <main+0x330>
xor    %ebp,%ebp
jmp    1569 <main+0x419>
cs nopw 0x0(%rax,%rax,1)
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    1490 <main+0x340>
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     1440 <main+0x2f0>
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    1580 <main+0x430>
jmp    1440 <main+0x2f0>
lea    0xb1b(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    160e <main+0x4be>
lea    0xab2(%rip),%rbx
xor    %r15d,%r15d
jmp    15dc <main+0x48c>
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    160e <main+0x4be>
cmpl   $0x0,0x8(%rsp)
jle    15c0 <main+0x470>
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     15f0 <main+0x4a0>
jmp    15c0 <main+0x470>
xor    %eax,%eax
add    $0x4d8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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