#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], c[10][10];
  int m, n, p, q, i, j, k;
  printf("\n Enter the order of the matrix A :");
  scanf("%d%d", &m, &n);
  printf("\n Enter the order of the matrix B :");
  scanf("%d%d", &p, &q);
  if (n == p) {
    printf("\n Enter the elements of matrix A \n");
    for (i = 0; i < m; i++) {
      for (j = 0; j < n; j++)
        scanf("%d", &a[i][j]);
    }
    printf("\n Enter the elements of matrix B \n");
    for (i = 0; i < p; i++) {
      for (j = 0; j < q; j++)
        scanf("%d", &b[i][j]);
    }
    for (i = 0; i < m; i++) {
      for (j = 0; j < q; j++) {
        c[i][j] = 0;
        for (k = 0; k < n; k++)
          c[i][j] += a[i][k] * b[k][j];
      }
    }
    printf("\n MATRIX A \n");
    for (i = 0; i < m; i++) {
      for (j = 0; j < n; j++) {
        printf(" %d \t", a[i][j]);
      }
      printf("\n");
    }
    printf("\n MATRIX B \n");
    for (i = 0; i < p; i++) {
      for (j = 0; j < q; j++) {
        printf(" %d \t", b[i][j]);
      }
      printf("\n");
    }
    printf("\n MATRIX C \n");
    for (i = 0; i < m; i++) {
      for (j = 0; j < q; j++) {
        printf(" %d \t", c[i][j]);
      }
      printf("\n");
    }
  } else
    printf("Matrix A & B is not multiplicable");
  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    0xedd(%rip),%rdi
lea    -0x4c4(%rbp),%rsi
lea    -0x4c8(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb3(%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
jne    15fe <main+0x4de>
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x4c4(%rbp),%eax
jge    123c <main+0x11c>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x4c8(%rbp),%eax
jge    1223 <main+0x103>
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    0xe1e(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    11cc <main+0xac>
jmp    1228 <main+0x108>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    11b0 <main+0x90>
lea    0xe2d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x4cc(%rbp),%eax
jge    12e0 <main+0x1c0>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x4d0(%rbp),%eax
jge    12c7 <main+0x1a7>
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    0xd7a(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    1270 <main+0x150>
jmp    12cc <main+0x1ac>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    1254 <main+0x134>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x4c4(%rbp),%eax
jge    13fe <main+0x2de>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x4d0(%rbp),%eax
jge    13e5 <main+0x2c5>
movslq -0x4d4(%rbp),%rcx
lea    -0x4c0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x4d8(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
movl   $0x0,-0x4dc(%rbp)
mov    -0x4dc(%rbp),%eax
cmp    -0x4c8(%rbp),%eax
jge    13cc <main+0x2ac>
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    1345 <main+0x225>
jmp    13d1 <main+0x2b1>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    1306 <main+0x1e6>
jmp    13ea <main+0x2ca>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    12ea <main+0x1ca>
lea    0xc8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x4c4(%rbp),%eax
jge    14a7 <main+0x387>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x4c8(%rbp),%eax
jge    1485 <main+0x365>
movslq -0x4d4(%rbp),%rcx
lea    -0x1a0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x4d8(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    1432 <main+0x312>
lea    0xc12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    1416 <main+0x2f6>
lea    0xbf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x4cc(%rbp),%eax
jge    1550 <main+0x430>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x4d0(%rbp),%eax
jge    152e <main+0x40e>
movslq -0x4d4(%rbp),%rcx
lea    -0x330(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x4d8(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xb8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    14db <main+0x3bb>
lea    0xb69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    14bf <main+0x39f>
lea    0xb5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x4c4(%rbp),%eax
jge    15f9 <main+0x4d9>
movl   $0x0,-0x4d8(%rbp)
mov    -0x4d8(%rbp),%eax
cmp    -0x4d0(%rbp),%eax
jge    15d7 <main+0x4b7>
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    0xae4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    1584 <main+0x464>
lea    0xac0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    1568 <main+0x448>
jmp    160c <main+0x4ec>
lea    0xabb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x4e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x4c8,%rsp
lea    0xea8(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xebe(%rip),%rbx
lea    0x4(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xea8(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rsp,%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x8(%rsp),%eax
cmp    0xc(%rsp),%eax
jne    1215 <main+0xd5>
lea    0xeca(%rip),%rdi
call   1040 <puts@plt>
mov    0x4(%rsp),%ecx
test   %ecx,%ecx
jle    1228 <main+0xe8>
lea    0x10(%rsp),%r15
mov    0x8(%rsp),%eax
lea    0xe5e(%rip),%r14
xor    %r12d,%r12d
jmp    11e0 <main+0xa0>
nopl   (%rax)
add    $0x1,%r12
movslq %ecx,%rdx
add    $0x28,%r15
cmp    %rdx,%r12
jge    1228 <main+0xe8>
test   %eax,%eax
jle    11d0 <main+0x90>
mov    %r15,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
add    $0x1,%rbp
movslq 0x8(%rsp),%rax
add    $0x4,%rbx
cmp    %rax,%rbp
jl     11f0 <main+0xb0>
mov    0x4(%rsp),%ecx
jmp    11d0 <main+0x90>
lea    0xe37(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    15dc <main+0x49c>
lea    0xe68(%rip),%rdi
call   1040 <puts@plt>
mov    0xc(%rsp),%ecx
test   %ecx,%ecx
jle    12a4 <main+0x164>
lea    0x1a0(%rsp),%r15
mov    (%rsp),%eax
lea    0xdd8(%rip),%r14
xor    %r12d,%r12d
jmp    1270 <main+0x130>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r12
movslq %ecx,%rdx
add    $0x28,%r15
cmp    %rdx,%r12
jge    12a4 <main+0x164>
test   %eax,%eax
jle    1260 <main+0x120>
mov    %r15,%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
add    $0x1,%rbp
movslq (%rsp),%rax
add    $0x4,%rbx
cmp    %rax,%rbp
jl     1280 <main+0x140>
mov    0xc(%rsp),%ecx
jmp    1260 <main+0x120>
mov    0x4(%rsp),%r8d
test   %r8d,%r8d
jle    145e <main+0x31e>
mov    (%rsp),%r11d
mov    0x8(%rsp),%edx
mov    %edx,%r9d
and    $0xfffffff8,%r9d
lea    0x20(%rsp),%rdi
lea    0x0(,%rdx,4),%r13
and    $0xffffffffffffffe0,%r13
lea    0x10(%rsp),%rax
xor    %r14d,%r14d
jmp    12f5 <main+0x1b5>
nopl   0x0(%rax)
add    $0x1,%r14
add    $0x28,%rdi
add    $0x28,%rax
cmp    %r8,%r14
je     145e <main+0x31e>
test   %r11d,%r11d
jle    12e0 <main+0x1a0>
lea    0x1a0(%rsp),%r12
xor    %esi,%esi
jmp    1324 <main+0x1e4>
cs nopw 0x0(%rax,%rax,1)
lea    (%r15,%rsi,4),%rbp
mov    %ecx,0x0(%rbp)
add    $0x1,%rsi
add    $0x4,%r12
cmp    %r11,%rsi
je     12e0 <main+0x1a0>
lea    (%r14,%r14,4),%rcx
lea    (%rsp,%rcx,8),%r15
add    $0x330,%r15
movl   $0x0,(%r15,%rsi,4)
test   %edx,%edx
jle    1317 <main+0x1d7>
cmp    $0x8,%edx
jae    1350 <main+0x210>
xor    %ebx,%ebx
xor    %ecx,%ecx
jmp    1438 <main+0x2f8>
nopl   (%rax)
pxor   %xmm0,%xmm0
xor    %ecx,%ecx
mov    %r12,%rbx
pxor   %xmm1,%xmm1
nopl   (%rax)
movdqu -0x10(%rdi,%rcx,1),%xmm3
movdqu (%rdi,%rcx,1),%xmm2
movd   0x78(%rbx),%xmm4
movd   0x50(%rbx),%xmm5
punpckldq %xmm4,%xmm5
movd   0x28(%rbx),%xmm4
movd   (%rbx),%xmm6
punpckldq %xmm4,%xmm6
punpcklqdq %xmm5,%xmm6
movd   0x118(%rbx),%xmm4
movd   0xf0(%rbx),%xmm5
punpckldq %xmm4,%xmm5
movd   0xc8(%rbx),%xmm4
movd   0xa0(%rbx),%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    $0x140,%rbx
add    $0x20,%rcx
cmp    %rcx,%r13
jne    1360 <main+0x220>
paddd  %xmm0,%xmm1
pshufd $0xee,%xmm1,%xmm0
paddd  %xmm1,%xmm0
pshufd $0x55,%xmm0,%xmm1
paddd  %xmm0,%xmm1
movd   %xmm1,%ecx
mov    %r9,%rbx
cmp    %rdx,%r9
je     1310 <main+0x1d0>
lea    (%rbx,%rbx,4),%rbp
lea    (%r12,%rbp,8),%rbp
mov    0x0(%rbp),%r10d
imul   (%rax,%rbx,4),%r10d
add    %r10d,%ecx
add    $0x1,%rbx
add    $0x28,%rbp
cmp    %rbx,%rdx
jne    1440 <main+0x300>
jmp    1310 <main+0x1d0>
lea    0xc54(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0x4(%rsp)
jle    14dd <main+0x39d>
lea    0x10(%rsp),%rbx
lea    0xbd0(%rip),%r14
xor    %r15d,%r15d
jmp    14ac <main+0x36c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15
movslq 0x4(%rsp),%rax
add    $0x28,%rbx
cmp    %rax,%r15
jge    14dd <main+0x39d>
cmpl   $0x0,0x8(%rsp)
jle    1490 <main+0x350>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%rbx,%rbp,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbp
movslq 0x8(%rsp),%rax
cmp    %rax,%rbp
jl     14c0 <main+0x380>
jmp    1490 <main+0x350>
lea    0xbe1(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    155c <main+0x41c>
lea    0x1a0(%rsp),%rbx
lea    0xb4e(%rip),%r14
xor    %r15d,%r15d
jmp    152c <main+0x3ec>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15
movslq 0xc(%rsp),%rax
add    $0x28,%rbx
cmp    %rax,%r15
jge    155c <main+0x41c>
cmpl   $0x0,(%rsp)
jle    1510 <main+0x3d0>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rbx,%rbp,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbp
movslq (%rsp),%rax
cmp    %rax,%rbp
jl     1540 <main+0x400>
jmp    1510 <main+0x3d0>
lea    0xb6e(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0x4(%rsp)
jle    15dc <main+0x49c>
lea    0x330(%rsp),%rbx
lea    0xacf(%rip),%r14
xor    %r15d,%r15d
jmp    15ac <main+0x46c>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15
movslq 0x4(%rsp),%rax
add    $0x28,%rbx
cmp    %rax,%r15
jge    15dc <main+0x49c>
cmpl   $0x0,(%rsp)
jle    1590 <main+0x450>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rbx,%rbp,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbp
movslq (%rsp),%rax
cmp    %rax,%rbp
jl     15c0 <main+0x480>
jmp    1590 <main+0x450>
xor    %eax,%eax
add    $0x4c8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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