#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*/ pause();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ system(char *);
void prob5(void) {
  system("clear");
  int arraysize;
  int loop1;
  int loop2;
  int loop3;
  printf(
      "Please enter the number of columns and rows the arrays should have: ");
  scanf("%d", &arraysize);
  system("clear");
  int array1[arraysize][arraysize];
  int array2[arraysize][arraysize];
  int array3[arraysize][arraysize];
  for (loop1 = 0; loop1 < arraysize; loop1++) {
    for (loop2 = 0; loop2 < arraysize; loop2++) {
      array1[loop1][loop2] = (2 * ((loop1 + 1) * (loop2 + 1)));
      array2[loop1][loop2] = (4 * ((loop1 + 1) * (loop2 + 2)));
      array3[loop1][loop2] = 0;
    }
  }
  printf("This is array 1:\n");
  for (loop1 = 0; loop1 < arraysize; loop1++) {
    for (loop2 = 0; loop2 < arraysize; loop2++) {
      printf("%d 	", array1[loop1][loop2]);
    }
    printf("\n");
  }
  printf("\nThis is array 2:\n");
  for (loop1 = 0; loop1 < arraysize; loop1++) {
    for (loop2 = 0; loop2 < arraysize; loop2++) {
      printf("%d 	", array2[loop1][loop2]);
    }
    printf("\n");
  }
  for (loop1 = 0; loop1 < arraysize; loop1++) {
    for (loop2 = 0; loop2 < arraysize; loop2++) {
      for (loop3 = 0; loop3 < arraysize; loop3++) {
        array3[loop1][loop2] += (array1[loop1][loop3] * array2[loop3][loop2]);
      }
    }
  }
  printf("\nThis is array 3, which is the result of matrix multiplication on ");
  printf("array 1 and 2:\n");
  for (loop1 = 0; loop1 < arraysize; loop1++) {
    for (loop2 = 0; loop2 < arraysize; loop2++) {
      printf("%d 	", array3[loop1][loop2]);
    }
    printf("\n");
  }
  pause();
}


x86 assembly (clang, -O0):
<prob5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
lea    0xeae(%rip),%rdi
mov    %rdi,-0x80(%rbp)
call   1030 <system@plt>
lea    0xea4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedb(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x80(%rbp),%rdi
call   1030 <system@plt>
mov    -0x4(%rbp),%eax
mov    %rax,-0x78(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
mov    %rax,%rcx
imul   %rcx,%rcx
lea    0xf(,%rcx,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x70(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
mov    %rax,-0x28(%rbp)
mov    -0x4(%rbp),%eax
mov    %rax,-0x68(%rbp)
mov    %rax,%rcx
imul   %rcx,%rcx
lea    0xf(,%rcx,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
mov    %rax,-0x38(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,%ecx
mov    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    %rcx,%rdx
imul   %rdx,%rdx
lea    0xf(,%rdx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x50(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x40(%rbp)
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12e9 <prob5+0x1a9>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12d6 <prob5+0x196>
mov    -0x50(%rbp),%rax
mov    -0x58(%rbp),%rdx
mov    -0x60(%rbp),%rcx
mov    -0x68(%rbp),%r8
mov    -0x70(%rbp),%rsi
mov    -0x78(%rbp),%r10
mov    -0x8(%rbp),%r9d
add    $0x1,%r9d
mov    -0xc(%rbp),%edi
add    $0x1,%edi
imul   %edi,%r9d
shl    $0x1,%r9d
movslq -0x8(%rbp),%rdi
imul   %r10,%rdi
shl    $0x2,%rdi
add    %rdi,%rsi
movslq -0xc(%rbp),%rdi
mov    %r9d,(%rsi,%rdi,4)
mov    -0x8(%rbp),%edi
add    $0x1,%edi
mov    -0xc(%rbp),%esi
add    $0x2,%esi
imul   %esi,%edi
shl    $0x2,%edi
movslq -0x8(%rbp),%rsi
imul   %r8,%rsi
shl    $0x2,%rsi
add    %rsi,%rcx
movslq -0xc(%rbp),%rsi
mov    %edi,(%rcx,%rsi,4)
movslq -0x8(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1235 <prob5+0xf5>
jmp    12db <prob5+0x19b>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1222 <prob5+0xe2>
lea    0xd5e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1373 <prob5+0x233>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1357 <prob5+0x217>
mov    -0x70(%rbp),%rax
mov    -0x78(%rbp),%rdx
movslq -0x8(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd1e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1311 <prob5+0x1d1>
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12fe <prob5+0x1be>
lea    0xceb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13fd <prob5+0x2bd>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13e1 <prob5+0x2a1>
mov    -0x60(%rbp),%rax
mov    -0x68(%rbp),%rdx
movslq -0x8(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc94(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    139b <prob5+0x25b>
lea    0xc76(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1388 <prob5+0x248>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    14c8 <prob5+0x388>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    14b5 <prob5+0x375>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    14a2 <prob5+0x362>
mov    -0x50(%rbp),%rax
mov    -0x58(%rbp),%rsi
mov    -0x60(%rbp),%rcx
mov    -0x68(%rbp),%r8
mov    -0x70(%rbp),%rdx
mov    -0x78(%rbp),%r9
movslq -0x8(%rbp),%rdi
imul   %r9,%rdi
shl    $0x2,%rdi
add    %rdi,%rdx
movslq -0x10(%rbp),%rdi
mov    (%rdx,%rdi,4),%edx
movslq -0x10(%rbp),%rdi
imul   %r8,%rdi
shl    $0x2,%rdi
add    %rdi,%rcx
movslq -0xc(%rbp),%rdi
imul   (%rcx,%rdi,4),%edx
movslq -0x8(%rbp),%rcx
imul   %rsi,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    142a <prob5+0x2ea>
jmp    14a7 <prob5+0x367>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1417 <prob5+0x2d7>
jmp    14ba <prob5+0x37a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1404 <prob5+0x2c4>
lea    0xba9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xbde(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1560 <prob5+0x420>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1544 <prob5+0x404>
mov    -0x50(%rbp),%rax
mov    -0x58(%rbp),%rdx
movslq -0x8(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xb31(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    14fe <prob5+0x3be>
lea    0xb13(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    14eb <prob5+0x3ab>
mov    $0x0,%al
call   1050 <pause@plt>
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prob5>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
lea    0xef5(%rip),%rbx
mov    %rbx,%rdi
call   1050 <system@plt>
lea    0xeec(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xf23(%rip),%rdi
lea    -0x2c(%rbp),%rsi
call   1090 <scanf@plt>
mov    %rbx,%rdi
call   1050 <system@plt>
mov    %rsp,-0xb0(%rbp)
mov    -0x2c(%rbp),%eax
mov    %rax,%rcx
mov    %rax,-0x58(%rbp)
imul   %rax,%rax
mov    %rsp,%rcx
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
mov    -0x2c(%rbp),%r9d
mov    %r9,%rax
imul   %r9,%rax
mov    %rsp,%rcx
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rcx,%rsp
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x70(%rbp)
mov    %rcx,%rsp
test   %r9d,%r9d
mov    %r9,-0x38(%rbp)
jle    1595 <prob5+0x425>
lea    0x0(,%r9,4),%r8
mov    %r9d,%eax
and    $0xfffffffc,%eax
mov    %rax,-0x98(%rbp)
add    $0xfffffffffffffffc,%rax
mov    %rax,-0x90(%rbp)
mov    %rax,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,-0x88(%rbp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,-0x80(%rbp)
mov    -0x50(%rbp),%rbx
lea    0x10(%rbx),%r11
mov    -0x58(%rbp),%rax
lea    0x0(,%rax,4),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x48(%rbp),%r13
lea    0x10(%r13),%rdi
mov    $0x4,%r14d
mov    $0x2,%r15d
xor    %ecx,%ecx
mov    %r8,-0x60(%rbp)
jmp    12c7 <prob5+0x157>
nopl   0x0(%rax)
mov    -0xa0(%rbp),%rax
add    %rax,%r11
add    %r8,%rdi
add    $0x4,%r14d
add    %r8,%r13
add    %rax,%rbx
add    $0x2,%r15d
mov    %r10,%rcx
cmp    %r9,%r10
je     1595 <prob5+0x425>
mov    %rcx,-0xa8(%rbp)
mov    %rdi,-0x40(%rbp)
mov    %r11,-0x68(%rbp)
mov    %rcx,%r12
imul   %r9,%r12
mov    -0x70(%rbp),%rax
lea    (%rax,%r12,4),%rdi
lea    0x1(%rcx),%rax
mov    %rax,-0x78(%rbp)
xor    %esi,%esi
mov    %r8,%rdx
call   1070 <memset@plt>
mov    -0x38(%rbp),%r9
cmp    $0x4,%r9d
jae    1320 <prob5+0x1b0>
xor    %eax,%eax
mov    -0x60(%rbp),%r8
mov    -0x68(%rbp),%r11
mov    -0x78(%rbp),%r10
mov    -0x40(%rbp),%rdi
jmp    151e <prob5+0x3ae>
nopl   0x0(%rax,%rax,1)
mov    -0xa8(%rbp),%rdx
mov    -0x78(%rbp),%r10
lea    0x0(,%r10,4),%eax
lea    (%r10,%r10,1),%ecx
movd   %ecx,%xmm0
pshufd $0x0,%xmm0,%xmm1
movd   %eax,%xmm0
pshufd $0x0,%xmm0,%xmm9
pshufd $0xf5,%xmm1,%xmm2
pshufd $0xf5,%xmm9,%xmm8
cmpq   $0x0,-0x90(%rbp)
je     154f <prob5+0x3df>
mov    -0x80(%rbp),%rcx
xor    %eax,%eax
movaps 0xca0(%rip),%xmm0
movaps 0xc89(%rip),%xmm6
movdqa 0xca1(%rip),%xmm4
mov    -0x60(%rbp),%r8
mov    -0x68(%rbp),%r11
pcmpeqd %xmm10,%xmm10
movdqa 0xc9b(%rip),%xmm11
movdqa 0xca2(%rip),%xmm12
movdqa 0xca9(%rip),%xmm13
movdqa 0xcb0(%rip),%xmm14
movdqa 0xcb7(%rip),%xmm15
mov    -0x40(%rbp),%rdi
nopl   (%rax)
movaps %xmm0,%xmm5
shufps $0x88,%xmm6,%xmm5
movaps %xmm5,%xmm7
psubd  %xmm10,%xmm7
movdqa %xmm1,%xmm3
pmuludq %xmm7,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pshufd $0xf5,%xmm7,%xmm7
pmuludq %xmm2,%xmm7
pshufd $0xe8,%xmm7,%xmm7
punpckldq %xmm7,%xmm3
movdqu %xmm3,-0x10(%r11,%rax,4)
movdqa %xmm4,%xmm3
paddd  %xmm11,%xmm3
movdqa %xmm9,%xmm7
pmuludq %xmm3,%xmm7
pshufd $0xe8,%xmm7,%xmm7
pshufd $0xf5,%xmm3,%xmm3
pmuludq %xmm8,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm7
movdqu %xmm7,-0x10(%rdi,%rax,4)
paddd  %xmm12,%xmm5
movdqa %xmm1,%xmm3
pmuludq %xmm5,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pshufd $0xf5,%xmm5,%xmm5
pmuludq %xmm2,%xmm5
pshufd $0xe8,%xmm5,%xmm5
punpckldq %xmm5,%xmm3
movdqu %xmm3,(%r11,%rax,4)
movdqa %xmm4,%xmm3
paddd  %xmm13,%xmm3
movdqa %xmm9,%xmm5
pmuludq %xmm3,%xmm5
pshufd $0xe8,%xmm5,%xmm5
pshufd $0xf5,%xmm3,%xmm3
pmuludq %xmm8,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm5
movdqu %xmm5,(%rdi,%rax,4)
add    $0x8,%rax
paddq  %xmm14,%xmm0
paddq  %xmm14,%xmm6
paddd  %xmm15,%xmm4
add    $0xfffffffffffffffe,%rcx
jne    13c0 <prob5+0x250>
testb  $0x1,-0x88(%rbp)
je     150b <prob5+0x39b>
imul   -0x58(%rbp),%rdx
mov    -0x50(%rbp),%rcx
lea    (%rcx,%rdx,4),%rcx
mov    -0x48(%rbp),%rdx
lea    (%rdx,%r12,4),%rdx
shufps $0x88,%xmm6,%xmm0
psubd  %xmm10,%xmm0
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pshufd $0xf5,%xmm0,%xmm0
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm0
punpckldq %xmm0,%xmm1
movdqu %xmm1,(%rcx,%rax,4)
paddd  %xmm11,%xmm4
pmuludq %xmm4,%xmm9
pshufd $0xe8,%xmm9,%xmm0
pshufd $0xf5,%xmm4,%xmm1
pmuludq %xmm1,%xmm8
pshufd $0xe8,%xmm8,%xmm1
punpckldq %xmm1,%xmm0
movdqu %xmm0,(%rdx,%rax,4)
mov    -0x98(%rbp),%rcx
mov    %rcx,%rax
cmp    %r9,%rcx
je     12a0 <prob5+0x130>
lea    0x2(%rax),%ecx
imul   %r14d,%ecx
lea    0x1(%rax),%edx
imul   %r15d,%edx
nopl   0x0(%rax)
mov    %edx,(%rbx,%rax,4)
mov    %ecx,0x0(%r13,%rax,4)
lea    0x1(%rax),%rsi
add    %r14d,%ecx
add    %r15d,%edx
mov    %rsi,%rax
cmp    %rsi,%r9
jne    1530 <prob5+0x3c0>
jmp    12a0 <prob5+0x130>
xor    %eax,%eax
movdqa 0xab7(%rip),%xmm0
movdqa 0xa9f(%rip),%xmm6
movdqa 0xab7(%rip),%xmm4
mov    -0x60(%rbp),%r8
mov    -0x68(%rbp),%r11
pcmpeqd %xmm10,%xmm10
movdqa 0xab1(%rip),%xmm11
mov    -0x40(%rbp),%rdi
testb  $0x1,-0x88(%rbp)
jne    14a4 <prob5+0x334>
jmp    150b <prob5+0x39b>
lea    0xb7a(%rip),%rdi
call   1040 <puts@plt>
mov    -0x2c(%rbp),%eax
test   %eax,%eax
jle    160e <prob5+0x49e>
mov    -0x58(%rbp),%rcx
lea    0x0(,%rcx,4),%r14
lea    0xb13(%rip),%r15
mov    -0x50(%rbp),%r13
xor    %r12d,%r12d
jmp    15ea <prob5+0x47a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r12
movslq -0x2c(%rbp),%rax
add    %r14,%r13
cmp    %rax,%r12
jge    160e <prob5+0x49e>
test   %eax,%eax
jle    15d0 <prob5+0x460>
xor    %ebx,%ebx
mov    0x0(%r13,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbx
movslq -0x2c(%rbp),%rax
cmp    %rax,%rbx
jl     15f0 <prob5+0x480>
jmp    15d0 <prob5+0x460>
lea    0xb12(%rip),%rdi
call   1040 <puts@plt>
mov    -0x2c(%rbp),%eax
test   %eax,%eax
mov    -0x70(%rbp),%r13
jle    1a7f <prob5+0x90f>
mov    -0x38(%rbp),%rcx
lea    0x0(,%rcx,4),%r14
lea    0xa92(%rip),%r15
mov    -0x48(%rbp),%r13
xor    %r12d,%r12d
jmp    166a <prob5+0x4fa>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r12
movslq -0x2c(%rbp),%rax
add    %r14,%r13
cmp    %rax,%r12
jge    168e <prob5+0x51e>
test   %eax,%eax
jle    1650 <prob5+0x4e0>
xor    %ebx,%ebx
mov    0x0(%r13,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbx
movslq -0x2c(%rbp),%rax
cmp    %rax,%rbx
jl     1670 <prob5+0x500>
jmp    1650 <prob5+0x4e0>
test   %eax,%eax
mov    -0x70(%rbp),%r13
jle    1a7f <prob5+0x90f>
mov    %eax,%r9d
mov    %r9d,%ecx
and    $0xfffffff8,%ecx
mov    %rcx,-0x98(%rbp)
add    $0xfffffffffffffff8,%rcx
mov    %rcx,-0x90(%rbp)
mov    %rcx,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
cmp    $0x8,%eax
setae  %al
mov    -0x38(%rbp),%rcx
cmp    $0x1,%ecx
sete   %bl
and    %al,%bl
mov    %bl,-0xa0(%rbp)
mov    %rdx,%rax
mov    %rdx,-0x88(%rbp)
and    $0xfffffffffffffffe,%rdx
mov    %rdx,-0x80(%rbp)
mov    %r9d,%eax
and    $0x3,%eax
mov    %rax,-0x60(%rbp)
mov    -0x50(%rbp),%r10
lea    0x30(%r10),%r15
mov    -0x58(%rbp),%rax
lea    0x0(,%rax,4),%rax
mov    %rax,-0xc0(%rbp)
mov    %rcx,%r11
shl    $0x5,%r11
mov    -0x48(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0xb8(%rbp)
mov    %rcx,%rax
shl    $0x6,%rax
mov    %rax,-0xd8(%rbp)
mov    %rcx,%r12
shl    $0x4,%r12
xor    %edx,%edx
jmp    1761 <prob5+0x5f1>
xchg   %ax,%ax
mov    -0xc8(%rbp),%rdx
add    $0x1,%rdx
mov    -0xc0(%rbp),%rax
add    %rax,%r15
add    %rax,%r10
cmp    %r9,%rdx
je     1a7f <prob5+0x90f>
mov    %rdx,%rax
imul   -0x58(%rbp),%rax
mov    -0x50(%rbp),%rcx
lea    (%rcx,%rax,4),%rax
mov    %rax,-0xd0(%rbp)
mov    %rdx,-0xc8(%rbp)
mov    %rdx,%rax
imul   -0x38(%rbp),%rax
lea    0x0(,%rax,4),%rax
add    %r13,%rax
mov    -0x48(%rbp),%rcx
mov    %rcx,-0x40(%rbp)
mov    -0xb8(%rbp),%r8
xor    %esi,%esi
mov    %rax,-0xa8(%rbp)
jmp    17dc <prob5+0x66c>
nopl   0x0(%rax)
mov    -0xa8(%rbp),%rax
mov    -0x68(%rbp),%rsi
mov    %ebx,(%rax,%rsi,4)
add    $0x1,%rsi
mov    -0x78(%rbp),%r8
add    $0x4,%r8
addq   $0x4,-0x40(%rbp)
cmp    %r9,%rsi
mov    -0x70(%rbp),%r13
je     1740 <prob5+0x5d0>
mov    (%rax,%rsi,4),%ebx
cmpb   $0x0,-0xa0(%rbp)
mov    %r8,-0x78(%rbp)
mov    %rsi,-0x68(%rbp)
je     19a0 <prob5+0x830>
movd   %ebx,%xmm0
cmpq   $0x0,-0x90(%rbp)
je     1a67 <prob5+0x8f7>
pxor   %xmm1,%xmm1
mov    -0x80(%rbp),%rbx
xor    %ecx,%ecx
mov    -0xd8(%rbp),%rax
nopw   0x0(%rax,%rax,1)
movdqu -0x10(%r8),%xmm3
movdqu (%r8),%xmm4
movdqu -0x30(%r15,%rcx,4),%xmm5
movdqu -0x20(%r15,%rcx,4),%xmm6
movdqu -0x10(%r15,%rcx,4),%xmm7
movdqu (%r15,%rcx,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(%r8,%r11,1),%xmm0
movdqu (%r8,%r11,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,%rcx
add    %rax,%r8
add    $0xfffffffffffffffe,%rbx
jne    1820 <prob5+0x6b0>
testb  $0x1,-0x88(%rbp)
je     1971 <prob5+0x801>
mov    -0x48(%rbp),%rax
lea    (%rax,%rsi,4),%rax
mov    -0xd0(%rbp),%rdx
movdqu (%rdx,%rcx,4),%xmm2
movdqu 0x10(%rdx,%rcx,4),%xmm3
imul   -0x38(%rbp),%rcx
movdqu (%rax,%rcx,4),%xmm4
movdqu 0x10(%rax,%rcx,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,%ebx
mov    -0x98(%rbp),%rax
mov    %rax,%rcx
cmp    %r9,%rax
je     17b0 <prob5+0x640>
jmp    19a2 <prob5+0x832>
xor    %ecx,%ecx
mov    %rcx,%rdi
not    %rdi
add    %r9,%rdi
mov    -0x60(%rbp),%rdx
test   %rdx,%rdx
je     19e6 <prob5+0x876>
mov    -0x38(%rbp),%rax
imul   %rcx,%rax
mov    -0x40(%rbp),%rsi
lea    (%rsi,%rax,4),%rax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rax),%esi
imul   (%r10,%rcx,4),%esi
add    %esi,%ebx
add    $0x1,%rcx
add    %r14,%rax
add    $0xffffffffffffffff,%rdx
jne    19d0 <prob5+0x860>
cmp    $0x3,%rdi
jb     17b0 <prob5+0x640>
lea    0x3(%rcx),%r8
imul   %r14,%r8
lea    0x1(%rcx),%r13
imul   %r14,%r13
lea    0x2(%rcx),%rsi
imul   %r14,%rsi
mov    %r14,%rdx
imul   %rcx,%rdx
mov    -0x40(%rbp),%rdi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r12,%rax
mov    (%rdi,%rdx,1),%r12d
imul   (%r10,%rcx,4),%r12d
add    %ebx,%r12d
mov    (%rdi,%r13,1),%ebx
imul   0x4(%r10,%rcx,4),%ebx
add    %r12d,%ebx
mov    %rax,%r12
mov    (%rdi,%rsi,1),%eax
imul   0x8(%r10,%rcx,4),%eax
add    %ebx,%eax
mov    (%rdi,%r8,1),%ebx
imul   0xc(%r10,%rcx,4),%ebx
add    %eax,%ebx
add    $0x4,%rcx
add    %r12,%rdi
cmp    %rcx,%r9
jne    1a20 <prob5+0x8b0>
jmp    17b0 <prob5+0x640>
pxor   %xmm1,%xmm1
xor    %ecx,%ecx
testb  $0x1,-0x88(%rbp)
jne    18ff <prob5+0x78f>
jmp    1971 <prob5+0x801>
lea    0x64d(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x6a5(%rip),%rdi
call   1040 <puts@plt>
mov    -0x2c(%rbp),%eax
test   %eax,%eax
mov    -0x38(%rbp),%r12
jle    1afe <prob5+0x98e>
shl    $0x2,%r12
lea    0x61f(%rip),%r15
xor    %r14d,%r14d
jmp    1ada <prob5+0x96a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14
movslq -0x2c(%rbp),%rax
add    %r12,%r13
cmp    %rax,%r14
jge    1afe <prob5+0x98e>
test   %eax,%eax
jle    1ac0 <prob5+0x950>
xor    %ebx,%ebx
mov    0x0(%r13,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbx
movslq -0x2c(%rbp),%rax
cmp    %rax,%rbx
jl     1ae0 <prob5+0x970>
jmp    1ac0 <prob5+0x950>
xor    %eax,%eax
call   1080 <pause@plt>
mov    -0xb0(%rbp),%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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