#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 m, n, p, q, y, x, k, sum = 0;
  printf("Wprowadz liczbe wierszy pierwszej macierzy!\n");
  scanf("%d", &m);
  printf("Wprowadz liczbe kolumn pierwszej macierzy!\n");
  scanf("%d", &n);
  int pierwsza[m][n];
  printf("Wprowadz elementy macierzy 1\n");
  for (y = 0; y < m; y++)
    for (x = 0; x < n; x++)
      scanf("%d", &pierwsza[y][x]);
  printf("\nTwoja macierz 1 to:\n");
  for (y = 0; y < m; y++) {
    for (x = 0; x < n; x++) {
      printf("%d ", pierwsza[y][x]);
    }
    printf("\n");
  }
  printf("Wprowadz liczbe wierszy drugiej macierzy!\n");
  scanf("%d", &p);
  printf("Wprowadz liczbe kolumn drugiej macierzy!\n");
  scanf("%d", &q);
  int druga[p][q];
  int mnozenie[m][q];
  if (n != p)
    printf("Macierze nie moga byc pomnozone! Kolumny macierzy 1 nie sa rowne "
           "liczbie wierszy macierzy 2!\n");
  else {
    printf("Wprowadz ilosc elementow macierzy 2\n");
    for (y = 0; y < p; y++)
      for (x = 0; x < q; x++)
        scanf("%d", &druga[y][x]);
    printf("\nTwoja macierz 2 to :\n");
    for (y = 0; y < p; y++) {
      for (x = 0; x < q; x++) {
        printf("%d ", druga[y][x]);
      }
      printf("\n");
    }
    for (y = 0; y < m; y++) {
      for (x = 0; x < q; x++) {
        for (k = 0; k < p; k++) {
          sum = sum + pierwsza[y][k] * druga[k][x];
        }
        mnozenie[y][x] = sum;
        sum = 0;
      }
    }
    printf("Wynik mnozenia macierzy: \n");
    for (y = 0; y < m; y++) {
      for (x = 0; x < q; x++)
        printf("%d\t", mnozenie[y][x]);
      printf("\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x24(%rbp)
lea    0xec0(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x79(%rbp)
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
mov    %rdi,-0x78(%rbp)
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x79(%rbp),%al
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x78(%rbp),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
mov    %rax,-0x70(%rbp)
mov    %rsp,%rdx
mov    %rdx,-0x30(%rbp)
mov    %rcx,%rdx
imul   %rax,%rdx
lea    0xf(,%rdx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x68(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x38(%rbp)
mov    %rax,-0x40(%rbp)
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1238 <main+0x118>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1225 <main+0x105>
mov    -0x68(%rbp),%rsi
mov    -0x70(%rbp),%rcx
movslq -0x18(%rbp),%rax
imul   %rcx,%rax
shl    $0x2,%rax
add    %rax,%rsi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe1b(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11dd <main+0xbd>
jmp    122a <main+0x10a>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11ca <main+0xaa>
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12c2 <main+0x1a2>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12a6 <main+0x186>
mov    -0x68(%rbp),%rax
mov    -0x70(%rbp),%rdx
movslq -0x18(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1260 <main+0x140>
lea    0xeef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    124d <main+0x12d>
lea    0xdcb(%rip),%rdi
xor    %eax,%eax
mov    %al,-0xa9(%rbp)
call   1030 <printf@plt>
lea    0xd50(%rip),%rdi
mov    %rdi,-0xa8(%rbp)
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0xa9(%rbp),%al
lea    0xdc5(%rip),%rdi
call   1030 <printf@plt>
mov    -0xa8(%rbp),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x10(%rbp),%eax
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
mov    %rax,-0xa0(%rbp)
mov    %rcx,%rdx
imul   %rax,%rdx
lea    0xf(,%rdx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x98(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x48(%rbp)
mov    %rax,-0x50(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
mov    %rax,-0x90(%rbp)
mov    %rcx,%rdx
imul   %rax,%rdx
lea    0xf(,%rdx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x88(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x58(%rbp)
mov    %rax,-0x60(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
je     13a2 <main+0x282>
lea    0xd53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1631 <main+0x511>
lea    0xd9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    142b <main+0x30b>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1418 <main+0x2f8>
mov    -0x98(%rbp),%rsi
mov    -0xa0(%rbp),%rcx
movslq -0x18(%rbp),%rax
imul   %rcx,%rax
shl    $0x2,%rax
add    %rax,%rsi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xc28(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13ca <main+0x2aa>
jmp    141d <main+0x2fd>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13b7 <main+0x297>
lea    0xd3a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    14bb <main+0x39b>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    149f <main+0x37f>
mov    -0x98(%rbp),%rax
mov    -0xa0(%rbp),%rdx
movslq -0x18(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1453 <main+0x333>
lea    0xcf6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1440 <main+0x320>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    159c <main+0x47c>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1589 <main+0x469>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    154d <main+0x42d>
mov    -0x98(%rbp),%rdx
mov    -0xa0(%rbp),%rdi
mov    -0x68(%rbp),%rcx
mov    -0x70(%rbp),%r8
mov    -0x24(%rbp),%eax
movslq -0x18(%rbp),%rsi
imul   %r8,%rsi
shl    $0x2,%rsi
add    %rsi,%rcx
movslq -0x20(%rbp),%rsi
mov    (%rcx,%rsi,4),%ecx
movslq -0x20(%rbp),%rsi
imul   %rdi,%rsi
shl    $0x2,%rsi
add    %rsi,%rdx
movslq -0x1c(%rbp),%rsi
imul   (%rdx,%rsi,4),%ecx
add    %ecx,%eax
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    14e8 <main+0x3c8>
mov    -0x88(%rbp),%rax
mov    -0x90(%rbp),%rsi
mov    -0x24(%rbp),%edx
movslq -0x18(%rbp),%rcx
imul   %rsi,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movl   $0x0,-0x24(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    14d5 <main+0x3b5>
jmp    158e <main+0x46e>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    14c2 <main+0x3a2>
lea    0xbe0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    162c <main+0x50c>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1610 <main+0x4f0>
mov    -0x88(%rbp),%rax
mov    -0x90(%rbp),%rdx
movslq -0x18(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xba3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    15c4 <main+0x4a4>
lea    0xb85(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    15b1 <main+0x491>
jmp    1631 <main+0x511>
movl   $0x0,-0x4(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
lea    0xeb0(%rip),%rdi
call   1040 <puts@plt>
lea    0xe99(%rip),%rbx
lea    -0x2c(%rbp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xebd(%rip),%rdi
call   1040 <puts@plt>
lea    -0x38(%rbp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %rsp,-0x98(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x38(%rbp),%edx
mov    %rdx,-0x60(%rbp)
imul   %rdx,%rax
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
lea    0xea2(%rip),%rdi
call   1040 <puts@plt>
mov    -0x2c(%rbp),%ecx
test   %ecx,%ecx
jle    1231 <main+0xf1>
mov    -0x38(%rbp),%eax
mov    -0x60(%rbp),%rdx
lea    0x0(,%rdx,4),%rdx
mov    %rdx,-0x50(%rbp)
xor    %r12d,%r12d
lea    0xe17(%rip),%r14
mov    -0x58(%rbp),%r13
jmp    1200 <main+0xc0>
nop
add    $0x1,%r12
movslq %ecx,%rdx
add    -0x50(%rbp),%r13
cmp    %rdx,%r12
jge    1231 <main+0xf1>
test   %eax,%eax
jle    11f0 <main+0xb0>
mov    %r13,%rbx
xor    %r15d,%r15d
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
add    $0x1,%r15
movslq -0x38(%rbp),%rax
add    $0x4,%rbx
cmp    %rax,%r15
jl     1210 <main+0xd0>
mov    -0x2c(%rbp),%ecx
jmp    11f0 <main+0xb0>
lea    0xe47(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,-0x2c(%rbp)
jle    12ae <main+0x16e>
mov    -0x60(%rbp),%rax
lea    0x0(,%rax,4),%r14
lea    0xdad(%rip),%r15
mov    -0x58(%rbp),%r13
xor    %r12d,%r12d
jmp    127a <main+0x13a>
nop
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r12
movslq -0x2c(%rbp),%rax
add    %r14,%r13
cmp    %rax,%r12
jge    12ae <main+0x16e>
cmpl   $0x0,-0x38(%rbp)
jle    1260 <main+0x120>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x0(%r13,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq -0x38(%rbp),%rax
cmp    %rax,%rbx
jl     1290 <main+0x150>
jmp    1260 <main+0x120>
lea    0xddf(%rip),%rdi
call   1040 <puts@plt>
lea    0xd3f(%rip),%rbx
lea    -0x3c(%rbp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xdea(%rip),%rdi
call   1040 <puts@plt>
lea    -0x30(%rbp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    -0x3c(%rbp),%eax
mov    -0x30(%rbp),%ebx
mov    %rax,%rcx
imul   %rbx,%rcx
lea    0xf(,%rcx,4),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%r13
sub    %rcx,%r13
mov    %r13,%rsp
mov    -0x2c(%rbp),%ecx
imul   %rbx,%rcx
lea    0xf(,%rcx,4),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdx
sub    %rcx,%rdx
mov    %rdx,%rsp
cmp    %eax,-0x38(%rbp)
jne    13b5 <main+0x275>
mov    %rdx,-0x88(%rbp)
lea    0xdad(%rip),%rdi
call   1040 <puts@plt>
mov    -0x3c(%rbp),%ecx
test   %ecx,%ecx
mov    %rbx,-0x48(%rbp)
mov    %r13,-0x68(%rbp)
jle    13c6 <main+0x286>
mov    -0x30(%rbp),%eax
lea    0x0(,%rbx,4),%rdx
mov    %rdx,-0x50(%rbp)
xor    %r12d,%r12d
lea    0xc99(%rip),%r14
jmp    1380 <main+0x240>
nopl   0x0(%rax)
add    $0x1,%r12
movslq %ecx,%rdx
add    -0x50(%rbp),%r13
cmp    %rdx,%r12
jge    13c6 <main+0x286>
test   %eax,%eax
jle    1370 <main+0x230>
mov    %r13,%rbx
xor    %r15d,%r15d
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
add    $0x1,%r15
movslq -0x30(%rbp),%rax
add    $0x4,%rbx
cmp    %rax,%r15
jl     1390 <main+0x250>
mov    -0x3c(%rbp),%ecx
mov    -0x48(%rbp),%rbx
jmp    1370 <main+0x230>
lea    0xd7f(%rip),%rdi
call   1040 <puts@plt>
jmp    191e <main+0x7de>
lea    0xd3e(%rip),%rdi
call   1040 <puts@plt>
mov    -0x3c(%rbp),%edx
test   %edx,%edx
jle    144e <main+0x30e>
lea    0x0(,%rbx,4),%r14
lea    0xc1b(%rip),%r15
mov    -0x68(%rbp),%r13
xor    %r12d,%r12d
jmp    141a <main+0x2da>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r12
movslq -0x3c(%rbp),%rdx
add    %r14,%r13
cmp    %rdx,%r12
jge    144e <main+0x30e>
cmpl   $0x0,-0x30(%rbp)
jle    1400 <main+0x2c0>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x0(%r13,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq -0x30(%rbp),%rax
cmp    %rax,%rbx
jl     1430 <main+0x2f0>
jmp    1400 <main+0x2c0>
mov    -0x2c(%rbp),%eax
mov    %rax,-0xb0(%rbp)
test   %eax,%eax
mov    -0x88(%rbp),%r13
jle    189c <main+0x75c>
mov    -0x30(%rbp),%eax
mov    %rax,-0x90(%rbp)
mov    %edx,%esi
mov    %esi,%eax
and    $0xfffffff8,%eax
mov    %rax,-0xe0(%rbp)
add    $0xfffffffffffffff8,%rax
mov    %rax,-0xd8(%rbp)
mov    %rax,%rcx
shr    $0x3,%rcx
add    $0x1,%rcx
cmp    $0x8,%edx
setae  %dil
mov    -0x48(%rbp),%r8
cmp    $0x1,%r8d
sete   %al
and    %dil,%al
mov    %al,-0x31(%rbp)
mov    %rcx,%rax
mov    %rcx,-0xd0(%rbp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,-0xc8(%rbp)
mov    %esi,%eax
and    $0x3,%eax
mov    %rax,-0xe8(%rbp)
mov    -0x58(%rbp),%r11
lea    0x30(%r11),%rdi
mov    -0x60(%rbp),%rax
lea    0x0(,%rax,4),%rax
mov    %rax,-0xa8(%rbp)
mov    %r8,%r15
shl    $0x5,%r15
mov    %r8,%rax
shl    $0x6,%rax
mov    %rax,-0xc0(%rbp)
mov    %r8,%rbx
shl    $0x4,%rbx
mov    -0x68(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0xa0(%rbp)
lea    0x0(,%r8,4),%r9
xor    %eax,%eax
mov    %rax,-0x70(%rbp)
mov    %rdx,-0xf0(%rbp)
mov    %rsi,-0x50(%rbp)
mov    %rbx,-0x80(%rbp)
jmp    1569 <main+0x429>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    -0x70(%rbp),%rcx
add    $0x1,%rcx
mov    -0xa8(%rbp),%rax
add    %rax,%rdi
add    %rax,%r11
mov    %rcx,%rax
mov    %rcx,-0x70(%rbp)
cmp    -0xb0(%rbp),%rcx
je     189c <main+0x75c>
cmpl   $0x0,-0x90(%rbp)
jle    1540 <main+0x400>
mov    -0x70(%rbp),%r8
mov    %r8,%rax
imul   -0x60(%rbp),%rax
mov    -0x58(%rbp),%rcx
lea    (%rcx,%rax,4),%rax
mov    %rax,-0xb8(%rbp)
mov    %r8,%rax
imul   -0x48(%rbp),%rax
lea    0x0(,%rax,4),%rax
add    %r13,%rax
mov    %rax,-0xf8(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0xa0(%rbp),%rcx
xor    %r8d,%r8d
jmp    15fc <main+0x4bc>
nopl   0x0(%rax,%rax,1)
xor    %edx,%edx
mov    -0xf8(%rbp),%rax
mov    %edx,(%rax,%r8,4)
add    $0x1,%r8
mov    -0x100(%rbp),%rcx
add    $0x4,%rcx
addq   $0x4,-0x78(%rbp)
cmp    -0x90(%rbp),%r8
mov    -0x88(%rbp),%r13
mov    -0xf0(%rbp),%rdx
je     1540 <main+0x400>
test   %edx,%edx
mov    %rcx,-0x100(%rbp)
jle    15c0 <main+0x480>
cmpb   $0x0,-0x31(%rbp)
je     17c0 <main+0x680>
cmpq   $0x0,-0xd8(%rbp)
mov    -0x48(%rbp),%r10
pxor   %xmm0,%xmm0
je     1884 <main+0x744>
mov    -0xc8(%rbp),%rax
xor    %edx,%edx
pxor   %xmm1,%xmm1
mov    -0xc0(%rbp),%rbx
nopl   0x0(%rax,%rax,1)
movdqu -0x10(%rcx),%xmm3
movdqu (%rcx),%xmm4
movdqu -0x30(%rdi,%rdx,4),%xmm5
movdqu -0x20(%rdi,%rdx,4),%xmm6
movdqu -0x10(%rdi,%rdx,4),%xmm7
movdqu (%rdi,%rdx,4),%xmm8
pshufd $0xf5,%xmm3,%xmm2
pmuludq %xmm5,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pshufd $0xf5,%xmm5,%xmm5
pmuludq %xmm2,%xmm5
pshufd $0xe8,%xmm5,%xmm2
punpckldq %xmm2,%xmm3
paddd  %xmm0,%xmm3
pshufd $0xf5,%xmm4,%xmm0
pmuludq %xmm6,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pshufd $0xf5,%xmm6,%xmm2
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm0
punpckldq %xmm0,%xmm4
paddd  %xmm1,%xmm4
movdqu -0x10(%rcx,%r15,1),%xmm0
movdqu (%rcx,%r15,1),%xmm1
pshufd $0xf5,%xmm0,%xmm2
pmuludq %xmm7,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pshufd $0xf5,%xmm7,%xmm5
pmuludq %xmm2,%xmm5
pshufd $0xe8,%xmm5,%xmm2
punpckldq %xmm2,%xmm0
paddd  %xmm3,%xmm0
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm8,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pshufd $0xf5,%xmm8,%xmm3
pmuludq %xmm2,%xmm3
pshufd $0xe8,%xmm3,%xmm2
punpckldq %xmm2,%xmm1
paddd  %xmm4,%xmm1
add    $0x10,%rdx
add    %rbx,%rcx
add    $0xfffffffffffffffe,%rax
jne    1640 <main+0x500>
testb  $0x1,-0xd0(%rbp)
je     178b <main+0x64b>
mov    -0x68(%rbp),%rax
lea    (%rax,%r8,4),%rax
mov    -0xb8(%rbp),%rcx
movdqu (%rcx,%rdx,4),%xmm2
movdqu 0x10(%rcx,%rdx,4),%xmm3
imul   %r10,%rdx
movdqu (%rax,%rdx,4),%xmm4
movdqu 0x10(%rax,%rdx,4),%xmm5
pshufd $0xf5,%xmm4,%xmm6
pmuludq %xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm6,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm4
paddd  %xmm4,%xmm0
pshufd $0xf5,%xmm5,%xmm2
pmuludq %xmm3,%xmm5
pshufd $0xe8,%xmm5,%xmm4
pshufd $0xf5,%xmm3,%xmm3
pmuludq %xmm2,%xmm3
pshufd $0xe8,%xmm3,%xmm2
punpckldq %xmm2,%xmm4
paddd  %xmm4,%xmm1
paddd  %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%edx
mov    -0xe0(%rbp),%rax
mov    %rax,%r12
cmp    %rsi,%rax
mov    -0x80(%rbp),%rbx
je     15c2 <main+0x482>
jmp    17c5 <main+0x685>
xchg   %ax,%ax
xor    %r12d,%r12d
xor    %edx,%edx
mov    %r12,%rax
not    %rax
add    %rsi,%rax
mov    -0xe8(%rbp),%rsi
test   %rsi,%rsi
je     1806 <main+0x6c6>
mov    -0x48(%rbp),%rcx
imul   %r12,%rcx
mov    -0x78(%rbp),%rbx
lea    (%rbx,%rcx,4),%rcx
nopw   0x0(%rax,%rax,1)
mov    (%rcx),%ebx
imul   (%r11,%r12,4),%ebx
add    %ebx,%edx
add    $0x1,%r12
add    %r9,%rcx
add    $0xffffffffffffffff,%rsi
jne    17f0 <main+0x6b0>
cmp    $0x3,%rax
mov    -0x50(%rbp),%rsi
mov    -0x80(%rbp),%rbx
jb     15c2 <main+0x482>
lea    0x3(%r12),%rax
imul   %r9,%rax
lea    0x1(%r12),%rcx
imul   %r9,%rcx
lea    0x2(%r12),%r13
imul   %r9,%r13
mov    %r9,%r10
imul   %r12,%r10
mov    -0x78(%rbp),%r14
xchg   %ax,%ax
mov    (%r14,%r10,1),%esi
imul   (%r11,%r12,4),%esi
add    %edx,%esi
mov    (%r14,%rcx,1),%edx
imul   0x4(%r11,%r12,4),%edx
add    %esi,%edx
mov    (%r14,%r13,1),%esi
imul   0x8(%r11,%r12,4),%esi
add    %edx,%esi
mov    (%r14,%rax,1),%edx
imul   0xc(%r11,%r12,4),%edx
add    %esi,%edx
mov    -0x50(%rbp),%rsi
add    $0x4,%r12
add    %rbx,%r14
cmp    %r12,%rsi
jne    1840 <main+0x700>
jmp    15c2 <main+0x482>
xor    %edx,%edx
pxor   %xmm1,%xmm1
testb  $0x1,-0xd0(%rbp)
jne    171a <main+0x5da>
jmp    178b <main+0x64b>
lea    0x87e(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,-0x2c(%rbp)
mov    -0x48(%rbp),%r12
jle    191e <main+0x7de>
shl    $0x2,%r12
lea    0x74a(%rip),%r15
xor    %r14d,%r14d
jmp    18ea <main+0x7aa>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14
movslq -0x2c(%rbp),%rax
add    %r12,%r13
cmp    %rax,%r14
jge    191e <main+0x7de>
cmpl   $0x0,-0x30(%rbp)
jle    18d0 <main+0x790>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x0(%r13,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq -0x30(%rbp),%rax
cmp    %rax,%rbx
jl     1900 <main+0x7c0>
jmp    18d0 <main+0x790>
mov    -0x98(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.5 = [4 x i8] c"%d \00"
@.str.13 = [4 x i8] c"%d\09\00"
@str = [44 x i8] c"Wprowadz liczbe wierszy pierwszej macierzy!\00"
@str.14 = [43 x i8] c"Wprowadz liczbe kolumn pierwszej macierzy!\00"
@str.15 = [29 x i8] c"Wprowadz elementy macierzy 1\00"
@str.16 = [21 x i8] c"\0ATwoja macierz 1 to:\00"
@str.17 = [42 x i8] c"Wprowadz liczbe wierszy drugiej macierzy!\00"
@str.18 = [41 x i8] c"Wprowadz liczbe kolumn drugiej macierzy!\00"
@str.19 = [36 x i8] c"Wprowadz ilosc elementow macierzy 2\00"
@str.20 = [22 x i8] c"\0ATwoja macierz 2 to :\00"
@str.21 = [26 x i8] c"Wynik mnozenia macierzy: \00"
@str.22 = [93 x i8] c"Macierze nie moga byc pomnozone! Kolumny macierzy 1 nie sa rowne liczbie wierszy macierzy 2!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.14, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%13 = load i32, i32* %1
%14 = zext i32 %13 to i64
%15 = load i32, i32* %2
%16 = zext i32 %15 to i64
%17 = call i8* @llvm.stacksave()
%18 = mul nuw i64 %16, %14
%19 = alloca i32, i64 %18
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.15, i64 0, i64 0))
%21 = load i32, i32* %1
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %49
23: ; preds = %0
%24 = load i32, i32* %2
br label %25
25: ; preds = %23, %43
%26 = phi i32 [ %21, %23 ], [ %44, %43 ]
%27 = phi i32 [ %24, %23 ], [ %45, %43 ]
%28 = phi i64 [ 0, %23 ], [ %46, %43 ]
%29 = icmp sgt i32 %27, 0
br i1 %29, label %30, label %43
30: ; preds = %25
%31 = mul nuw nsw i64 %28, %16
%32 = getelementptr inbounds i32, i32* %19, i64 %31
br label %33
33: ; preds = %30, %33
%34 = phi i64 [ 0, %30 ], [ %37, %33 ]
%35 = getelementptr inbounds i32, i32* %32, i64 %34
%36 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %35)
%37 = add nuw nsw i64 %34, 1
%38 = load i32, i32* %2
%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* %1
br label %43
43: ; preds = %41, %25
%44 = phi i32 [ %42, %41 ], [ %26, %25 ]
%45 = phi i32 [ %38, %41 ], [ %27, %25 ]
%46 = add nuw nsw i64 %28, 1
%47 = sext i32 %44 to i64
%48 = icmp slt i64 %46, %47
br i1 %48, label %25, label %49
49: ; preds = %43, %0
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.16, i64 0, i64 0))
%51 = load i32, i32* %1
%52 = icmp sgt i32 %51, 0
br i1 %52, label %53, label %75
53: ; preds = %49, %69
%54 = phi i64 [ %71, %69 ], [ 0, %49 ]
%55 = load i32, i32* %2
%56 = icmp sgt i32 %55, 0
br i1 %56, label %57, label %69
57: ; preds = %53
%58 = mul nuw nsw i64 %54, %16
%59 = getelementptr inbounds i32, i32* %19, i64 %58
br label %60
60: ; preds = %57, %60
%61 = phi i64 [ 0, %57 ], [ %65, %60 ]
%62 = getelementptr inbounds i32, i32* %59, i64 %61
%63 = load i32, i32* %62
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %63)
%65 = add nuw nsw i64 %61, 1
%66 = load i32, i32* %2
%67 = sext i32 %66 to i64
%68 = icmp slt i64 %65, %67
br i1 %68, label %60, label %69
69: ; preds = %60, %53
%70 = call i32 @putchar(i32 10)
%71 = add nuw nsw i64 %54, 1
%72 = load i32, i32* %1
%73 = sext i32 %72 to i64
%74 = icmp slt i64 %71, %73
br i1 %74, label %53, label %75
75: ; preds = %69, %49
%76 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.17, i64 0, i64 0))
%77 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.18, i64 0, i64 0))
%79 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%80 = load i32, i32* %3
%81 = zext i32 %80 to i64
%82 = load i32, i32* %4
%83 = zext i32 %82 to i64
%84 = mul nuw i64 %83, %81
%85 = alloca i32, i64 %84
%86 = load i32, i32* %1
%87 = zext i32 %86 to i64
%88 = mul nuw i64 %87, %83
%89 = alloca i32, i64 %88
%90 = load i32, i32* %2
%91 = icmp eq i32 %90, %80
br i1 %91, label %94, label %92
92: ; preds = %75
%93 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.22, i64 0, i64 0))
br label %354
94: ; preds = %75
%95 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.19, i64 0, i64 0))
%96 = load i32, i32* %3
%97 = icmp sgt i32 %96, 0
br i1 %97, label %98, label %124
98: ; preds = %94
%99 = load i32, i32* %4
br label %100
100: ; preds = %98, %118
%101 = phi i32 [ %96, %98 ], [ %119, %118 ]
%102 = phi i32 [ %99, %98 ], [ %120, %118 ]
%103 = phi i64 [ 0, %98 ], [ %121, %118 ]
%104 = icmp sgt i32 %102, 0
br i1 %104, label %105, label %118
105: ; preds = %100
%106 = mul nuw nsw i64 %103, %83
%107 = getelementptr inbounds i32, i32* %85, i64 %106
br label %108
108: ; preds = %105, %108
%109 = phi i64 [ 0, %105 ], [ %112, %108 ]
%110 = getelementptr inbounds i32, i32* %107, i64 %109
%111 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %110)
%112 = add nuw nsw i64 %109, 1
%113 = load i32, i32* %4
%114 = sext i32 %113 to i64
%115 = icmp slt i64 %112, %114
br i1 %115, label %108, label %116
116: ; preds = %108
%117 = load i32, i32* %3
br label %118
118: ; preds = %116, %100
%119 = phi i32 [ %117, %116 ], [ %101, %100 ]
%120 = phi i32 [ %113, %116 ], [ %102, %100 ]
%121 = add nuw nsw i64 %103, 1
%122 = sext i32 %119 to i64
%123 = icmp slt i64 %121, %122
br i1 %123, label %100, label %124
124: ; preds = %118, %94
%125 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.20, i64 0, i64 0))
%126 = load i32, i32* %3
%127 = icmp sgt i32 %126, 0
br i1 %127, label %128, label %135
128: ; preds = %124, %170
%129 = phi i64 [ %172, %170 ], [ 0, %124 ]
%130 = load i32, i32* %4
%131 = icmp sgt i32 %130, 0
br i1 %131, label %132, label %170
132: ; preds = %128
%133 = mul nuw nsw i64 %129, %83
%134 = getelementptr inbounds i32, i32* %85, i64 %133
br label %161
135: ; preds = %170, %124
%136 = phi i32 [ %126, %124 ], [ %173, %170 ]
%137 = load i32, i32* %1
%138 = icmp sgt i32 %137, 0
br i1 %138, label %139, label %328
139: ; preds = %135
%140 = load i32, i32* %4
%141 = icmp sgt i32 %140, 0
%142 = icmp sgt i32 %136, 0
%143 = zext i32 %137 to i64
%144 = zext i32 %140 to i64
%145 = zext i32 %136 to i64
%146 = and i64 %145, 4294967288
%147 = add nsw i64 %146, -8
%148 = lshr exact i64 %147, 3
%149 = add nuw nsw i64 %148, 1
%150 = icmp ugt i32 %136, 7
%151 = icmp eq i32 %82, 1
%152 = select i1 %150, i1 %151, i1 false
%153 = and i64 %145, 4294967288
%154 = and i64 %149, 1
%155 = icmp eq i64 %147, 0
%156 = and i64 %149, 4611686018427387902
%157 = icmp eq i64 %154, 0
%158 = icmp eq i64 %153, %145
%159 = and i64 %145, 3
%160 = icmp eq i64 %159, 0
br label %176
161: ; preds = %132, %161
%162 = phi i64 [ 0, %132 ], [ %166, %161 ]
%163 = getelementptr inbounds i32, i32* %134, i64 %162
%164 = load i32, i32* %163
%165 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %164)
%166 = add nuw nsw i64 %162, 1
%167 = load i32, i32* %4
%168 = sext i32 %167 to i64
%169 = icmp slt i64 %166, %168
br i1 %169, label %161, label %170
170: ; preds = %161, %128
%171 = call i32 @putchar(i32 10)
%172 = add nuw nsw i64 %129, 1
%173 = load i32, i32* %3
%174 = sext i32 %173 to i64
%175 = icmp slt i64 %172, %174
br i1 %175, label %128, label %135
176: ; preds = %139, %325
%177 = phi i64 [ 0, %139 ], [ %326, %325 ]
br i1 %141, label %178, label %325
178: ; preds = %176
%179 = mul nuw nsw i64 %177, %16
%180 = getelementptr inbounds i32, i32* %19, i64 %179
%181 = mul nuw nsw i64 %177, %83
%182 = getelementptr inbounds i32, i32* %89, i64 %181
br label %183
183: ; preds = %178, %320
%184 = phi i64 [ 0, %178 ], [ %323, %320 ]
br i1 %142, label %185, label %320
185: ; preds = %183
%186 = getelementptr inbounds i32, i32* %85, i64 %184
br i1 %152, label %187, label %260
187: ; preds = %185
br i1 %155, label %231, label %188
188: ; preds = %187, %188
%189 = phi i64 [ %228, %188 ], [ 0, %187 ]
%190 = phi <4 x i32> [ %226, %188 ], [ zeroinitializer, %187 ]
%191 = phi <4 x i32> [ %227, %188 ], [ zeroinitializer, %187 ]
%192 = phi i64 [ %229, %188 ], [ 0, %187 ]
%193 = getelementptr inbounds i32, i32* %180, i64 %189
%194 = bitcast i32* %193 to <4 x i32>*
%195 = load <4 x i32>, <4 x i32>* %194
%196 = getelementptr inbounds i32, i32* %193, i64 4
%197 = bitcast i32* %196 to <4 x i32>*
%198 = load <4 x i32>, <4 x i32>* %197
%199 = mul nuw nsw i64 %189, %83
%200 = getelementptr inbounds i32, i32* %186, i64 %199
%201 = bitcast i32* %200 to <4 x i32>*
%202 = load <4 x i32>, <4 x i32>* %201
%203 = getelementptr inbounds i32, i32* %200, i64 4
%204 = bitcast i32* %203 to <4 x i32>*
%205 = load <4 x i32>, <4 x i32>* %204
%206 = mul nsw <4 x i32> %202, %195
%207 = mul nsw <4 x i32> %205, %198
%208 = add <4 x i32> %206, %190
%209 = add <4 x i32> %207, %191
%210 = or i64 %189, 8
%211 = getelementptr inbounds i32, i32* %180, i64 %210
%212 = bitcast i32* %211 to <4 x i32>*
%213 = load <4 x i32>, <4 x i32>* %212
%214 = getelementptr inbounds i32, i32* %211, i64 4
%215 = bitcast i32* %214 to <4 x i32>*
%216 = load <4 x i32>, <4 x i32>* %215
%217 = mul nuw nsw i64 %210, %83
%218 = getelementptr inbounds i32, i32* %186, i64 %217
%219 = bitcast i32* %218 to <4 x i32>*
%220 = load <4 x i32>, <4 x i32>* %219
%221 = getelementptr inbounds i32, i32* %218, i64 4
%222 = bitcast i32* %221 to <4 x i32>*
%223 = load <4 x i32>, <4 x i32>* %222
%224 = mul nsw <4 x i32> %220, %213
%225 = mul nsw <4 x i32> %223, %216
%226 = add <4 x i32> %224, %208
%227 = add <4 x i32> %225, %209
%228 = add nuw i64 %189, 16
%229 = add i64 %192, 2
%230 = icmp eq i64 %229, %156
br i1 %230, label %231, label %188
231: ; preds = %188, %187
%232 = phi <4 x i32> [ undef, %187 ], [ %226, %188 ]
%233 = phi <4 x i32> [ undef, %187 ], [ %227, %188 ]
%234 = phi i64 [ 0, %187 ], [ %228, %188 ]
%235 = phi <4 x i32> [ zeroinitializer, %187 ], [ %226, %188 ]
%236 = phi <4 x i32> [ zeroinitializer, %187 ], [ %227, %188 ]
br i1 %157, label %255, label %237
237: ; preds = %231
%238 = getelementptr inbounds i32, i32* %180, i64 %234
%239 = bitcast i32* %238 to <4 x i32>*
%240 = load <4 x i32>, <4 x i32>* %239
%241 = getelementptr inbounds i32, i32* %238, i64 4
%242 = bitcast i32* %241 to <4 x i32>*
%243 = load <4 x i32>, <4 x i32>* %242
%244 = mul nuw nsw i64 %234, %83
%245 = getelementptr inbounds i32, i32* %186, i64 %244
%246 = bitcast i32* %245 to <4 x i32>*
%247 = load <4 x i32>, <4 x i32>* %246
%248 = getelementptr inbounds i32, i32* %245, i64 4
%249 = bitcast i32* %248 to <4 x i32>*
%250 = load <4 x i32>, <4 x i32>* %249
%251 = mul nsw <4 x i32> %247, %240
%252 = mul nsw <4 x i32> %250, %243
%253 = add <4 x i32> %251, %235
%254 = add <4 x i32> %252, %236
br label %255
255: ; preds = %231, %237
%256 = phi <4 x i32> [ %232, %231 ], [ %253, %237 ]
%257 = phi <4 x i32> [ %233, %231 ], [ %254, %237 ]
%258 = add <4 x i32> %257, %256
%259 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %258)
br i1 %158, label %320, label %260
260: ; preds = %185, %255
%261 = phi i64 [ 0, %185 ], [ %153, %255 ]
%262 = phi i32 [ 0, %185 ], [ %259, %255 ]
%263 = xor i64 %261, -1
%264 = add nsw i64 %263, %145
br i1 %160, label %279, label %265
265: ; preds = %260, %265
%266 = phi i64 [ %276, %265 ], [ %261, %260 ]
%267 = phi i32 [ %275, %265 ], [ %262, %260 ]
%268 = phi i64 [ %277, %265 ], [ 0, %260 ]
%269 = getelementptr inbounds i32, i32* %180, i64 %266
%270 = load i32, i32* %269
%271 = mul nuw nsw i64 %266, %83
%272 = getelementptr inbounds i32, i32* %186, i64 %271
%273 = load i32, i32* %272
%274 = mul nsw i32 %273, %270
%275 = add nsw i32 %274, %267
%276 = add nuw nsw i64 %266, 1
%277 = add i64 %268, 1
%278 = icmp eq i64 %277, %159
br i1 %278, label %279, label %265
279: ; preds = %265, %260
%280 = phi i32 [ undef, %260 ], [ %275, %265 ]
%281 = phi i64 [ %261, %260 ], [ %276, %265 ]
%282 = phi i32 [ %262, %260 ], [ %275, %265 ]
%283 = icmp ult i64 %264, 3
br i1 %283, label %320, label %284
284: ; preds = %279, %284
%285 = phi i64 [ %318, %284 ], [ %281, %279 ]
%286 = phi i32 [ %317, %284 ], [ %282, %279 ]
%287 = getelementptr inbounds i32, i32* %180, i64 %285
%288 = load i32, i32* %287
%289 = mul nuw nsw i64 %285, %83
%290 = getelementptr inbounds i32, i32* %186, i64 %289
%291 = load i32, i32* %290
%292 = mul nsw i32 %291, %288
%293 = add nsw i32 %292, %286
%294 = add nuw nsw i64 %285, 1
%295 = getelementptr inbounds i32, i32* %180, i64 %294
%296 = load i32, i32* %295
%297 = mul nuw nsw i64 %294, %83
%298 = getelementptr inbounds i32, i32* %186, i64 %297
%299 = load i32, i32* %298
%300 = mul nsw i32 %299, %296
%301 = add nsw i32 %300, %293
%302 = add nuw nsw i64 %285, 2
%303 = getelementptr inbounds i32, i32* %180, i64 %302
%304 = load i32, i32* %303
%305 = mul nuw nsw i64 %302, %83
%306 = getelementptr inbounds i32, i32* %186, i64 %305
%307 = load i32, i32* %306
%308 = mul nsw i32 %307, %304
%309 = add nsw i32 %308, %301
%310 = add nuw nsw i64 %285, 3
%311 = getelementptr inbounds i32, i32* %180, i64 %310
%312 = load i32, i32* %311
%313 = mul nuw nsw i64 %310, %83
%314 = getelementptr inbounds i32, i32* %186, i64 %313
%315 = load i32, i32* %314
%316 = mul nsw i32 %315, %312
%317 = add nsw i32 %316, %309
%318 = add nuw nsw i64 %285, 4
%319 = icmp eq i64 %318, %145
br i1 %319, label %320, label %284
320: ; preds = %279, %284, %255, %183
%321 = phi i32 [ 0, %183 ], [ %259, %255 ], [ %280, %279 ], [ %317, %284 ]
%322 = getelementptr inbounds i32, i32* %182, i64 %184
store i32 %321, i32* %322
%323 = add nuw nsw i64 %184, 1
%324 = icmp eq i64 %323, %144
br i1 %324, label %325, label %183
325: ; preds = %320, %176
%326 = add nuw nsw i64 %177, 1
%327 = icmp eq i64 %326, %143
br i1 %327, label %328, label %176
328: ; preds = %325, %135
%329 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.21, i64 0, i64 0))
%330 = load i32, i32* %1
%331 = icmp sgt i32 %330, 0
br i1 %331, label %332, label %354
332: ; preds = %328, %348
%333 = phi i64 [ %350, %348 ], [ 0, %328 ]
%334 = load i32, i32* %4
%335 = icmp sgt i32 %334, 0
br i1 %335, label %336, label %348
336: ; preds = %332
%337 = mul nuw nsw i64 %333, %83
%338 = getelementptr inbounds i32, i32* %89, i64 %337
br label %339
339: ; preds = %336, %339
%340 = phi i64 [ 0, %336 ], [ %344, %339 ]
%341 = getelementptr inbounds i32, i32* %338, i64 %340
%342 = load i32, i32* %341
%343 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 %342)
%344 = add nuw nsw i64 %340, 1
%345 = load i32, i32* %4
%346 = sext i32 %345 to i64
%347 = icmp slt i64 %344, %346
br i1 %347, label %339, label %348
348: ; preds = %339, %332
%349 = call i32 @putchar(i32 10)
%350 = add nuw nsw i64 %333, 1
%351 = load i32, i32* %1
%352 = sext i32 %351 to i64
%353 = icmp slt i64 %350, %352
br i1 %353, label %332, label %354
354: ; preds = %348, %328, %92
ret i32 0
}