#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 random(int *, int *);
void main() {
  int matrix_a[4][4];
  int matrix_b[4][4];
  int result[4][4];
  int i, j, k;
  int sum;
  int m_w = 17;
  int m_z = 31;
  for (i = 0; i < 4; i++) {
    for (j = 0; j < 4; j++) {
      matrix_a[i][j] = random(&m_z, &m_w);
      matrix_b[i][j] = random(&m_z, &m_w);
    }
  }
  for (i = 0; i < 4; i++) {
    for (j = 0; j < 4; j++) {
      sum = 0;
      for (k = 0; k < 4; k++) {
        sum = sum + (matrix_a[i][k] * matrix_b[k][j]);
      }
      result[i][j] = sum;
    }
  }
  for (i = 0; i < 4; i++) {
    for (j = 0; j < 4; j++) {
      printf("%08x\n", result[i][j]);
    }
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x11,-0xd4(%rbp)
movl   $0x1f,-0xd8(%rbp)
movl   $0x0,-0xc4(%rbp)
cmpl   $0x4,-0xc4(%rbp)
jge    11fc <main+0xdc>
movl   $0x0,-0xc8(%rbp)
cmpl   $0x4,-0xc8(%rbp)
jge    11e3 <main+0xc3>
lea    -0xd8(%rbp),%rdi
lea    -0xd4(%rbp),%rsi
call   1040 <random@plt>
mov    %eax,%edx
movslq -0xc4(%rbp),%rcx
lea    -0x40(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xc8(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
lea    -0xd8(%rbp),%rdi
lea    -0xd4(%rbp),%rsi
call   1040 <random@plt>
mov    %eax,%edx
movslq -0xc4(%rbp),%rcx
lea    -0x80(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xc8(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc8(%rbp)
jmp    1160 <main+0x40>
jmp    11e8 <main+0xc8>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1149 <main+0x29>
movl   $0x0,-0xc4(%rbp)
cmpl   $0x4,-0xc4(%rbp)
jge    12f8 <main+0x1d8>
movl   $0x0,-0xc8(%rbp)
cmpl   $0x4,-0xc8(%rbp)
jge    12df <main+0x1bf>
movl   $0x0,-0xd0(%rbp)
movl   $0x0,-0xcc(%rbp)
cmpl   $0x4,-0xcc(%rbp)
jge    12a6 <main+0x186>
mov    -0xd0(%rbp),%eax
movslq -0xc4(%rbp),%rdx
lea    -0x40(%rbp),%rcx
shl    $0x4,%rdx
add    %rdx,%rcx
movslq -0xcc(%rbp),%rdx
mov    (%rcx,%rdx,4),%ecx
movslq -0xcc(%rbp),%rsi
lea    -0x80(%rbp),%rdx
shl    $0x4,%rsi
add    %rsi,%rdx
movslq -0xc8(%rbp),%rsi
imul   (%rdx,%rsi,4),%ecx
add    %ecx,%eax
mov    %eax,-0xd0(%rbp)
mov    -0xcc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xcc(%rbp)
jmp    123e <main+0x11e>
mov    -0xd0(%rbp),%edx
movslq -0xc4(%rbp),%rcx
lea    -0xc0(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xc8(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc8(%rbp)
jmp    121d <main+0xfd>
jmp    12e4 <main+0x1c4>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1206 <main+0xe6>
movl   $0x0,-0xc4(%rbp)
cmpl   $0x4,-0xc4(%rbp)
jge    1389 <main+0x269>
movl   $0x0,-0xc8(%rbp)
cmpl   $0x4,-0xc8(%rbp)
jge    1367 <main+0x247>
movslq -0xc4(%rbp),%rcx
lea    -0xc0(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xc8(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xcb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc8(%rbp)
jmp    1319 <main+0x1f9>
lea    0xc96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1302 <main+0x1e2>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0xd0,%rsp
movl   $0x11,0xc(%rsp)
movl   $0x1f,0x8(%rsp)
xor    %ebx,%ebx
lea    0x8(%rsp),%r14
lea    0xc(%rsp),%r15
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <random@plt>
mov    %eax,0x50(%rsp,%rbx,1)
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <random@plt>
mov    %eax,0x90(%rsp,%rbx,1)
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <random@plt>
mov    %eax,0x54(%rsp,%rbx,1)
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <random@plt>
mov    %eax,0x94(%rsp,%rbx,1)
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <random@plt>
mov    %eax,0x58(%rsp,%rbx,1)
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <random@plt>
mov    %eax,0x98(%rsp,%rbx,1)
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <random@plt>
mov    %eax,0x5c(%rsp,%rbx,1)
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <random@plt>
mov    %eax,0x9c(%rsp,%rbx,1)
add    $0x10,%rbx
cmp    $0x40,%rbx
jne    1160 <main+0x30>
movdqa 0x90(%rsp),%xmm3
movdqa 0xa0(%rsp),%xmm2
movdqa 0xb0(%rsp),%xmm9
movdqa 0xc0(%rsp),%xmm8
movd   0x50(%rsp),%xmm4
pshufd $0x0,%xmm4,%xmm5
pshufd $0xf5,%xmm3,%xmm10
movdqa %xmm10,%xmm6
pmuludq %xmm5,%xmm6
pshufd $0xe8,%xmm6,%xmm6
pmuludq %xmm3,%xmm5
pshufd $0xe8,%xmm5,%xmm7
punpckldq %xmm6,%xmm7
movd   0x54(%rsp),%xmm5
pshufd $0x0,%xmm5,%xmm6
pshufd $0xf5,%xmm2,%xmm11
movdqa %xmm11,%xmm5
pmuludq %xmm6,%xmm5
pshufd $0xe8,%xmm5,%xmm5
pmuludq %xmm2,%xmm6
pshufd $0xe8,%xmm6,%xmm1
punpckldq %xmm5,%xmm1
paddd  %xmm7,%xmm1
movd   0x58(%rsp),%xmm5
pshufd $0x0,%xmm5,%xmm5
pshufd $0xf5,%xmm9,%xmm6
movdqa %xmm6,%xmm7
pmuludq %xmm5,%xmm7
pshufd $0xe8,%xmm7,%xmm7
pmuludq %xmm9,%xmm5
pshufd $0xe8,%xmm5,%xmm5
punpckldq %xmm7,%xmm5
movd   0x5c(%rsp),%xmm7
pshufd $0x0,%xmm7,%xmm4
pshufd $0xf5,%xmm8,%xmm0
movdqa %xmm0,%xmm7
pmuludq %xmm4,%xmm7
pshufd $0xe8,%xmm7,%xmm7
pmuludq %xmm8,%xmm4
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm7,%xmm4
paddd  %xmm5,%xmm4
paddd  %xmm1,%xmm4
movdqa %xmm4,0x10(%rsp)
movd   0x60(%rsp),%xmm1
pshufd $0x0,%xmm1,%xmm1
movdqa %xmm10,%xmm4
pmuludq %xmm1,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pmuludq %xmm3,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm4,%xmm1
movd   0x64(%rsp),%xmm4
pshufd $0x0,%xmm4,%xmm4
movdqa %xmm11,%xmm5
pmuludq %xmm4,%xmm5
pshufd $0xe8,%xmm5,%xmm5
pmuludq %xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm5,%xmm4
paddd  %xmm1,%xmm4
movd   0x68(%rsp),%xmm1
pshufd $0x0,%xmm1,%xmm1
movdqa %xmm6,%xmm5
pmuludq %xmm1,%xmm5
pshufd $0xe8,%xmm5,%xmm5
pmuludq %xmm9,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm5,%xmm1
movd   0x6c(%rsp),%xmm5
pshufd $0x0,%xmm5,%xmm5
movdqa %xmm0,%xmm7
pmuludq %xmm5,%xmm7
pshufd $0xe8,%xmm7,%xmm7
pmuludq %xmm8,%xmm5
pshufd $0xe8,%xmm5,%xmm5
punpckldq %xmm7,%xmm5
paddd  %xmm1,%xmm5
paddd  %xmm4,%xmm5
movdqa %xmm5,0x20(%rsp)
movd   0x70(%rsp),%xmm1
pshufd $0x0,%xmm1,%xmm1
movdqa %xmm10,%xmm4
pmuludq %xmm1,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pmuludq %xmm3,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm4,%xmm1
movd   0x74(%rsp),%xmm4
pshufd $0x0,%xmm4,%xmm4
movdqa %xmm11,%xmm5
pmuludq %xmm4,%xmm5
pshufd $0xe8,%xmm5,%xmm5
pmuludq %xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm5,%xmm4
paddd  %xmm1,%xmm4
movd   0x78(%rsp),%xmm1
pshufd $0x0,%xmm1,%xmm1
movdqa %xmm6,%xmm5
pmuludq %xmm1,%xmm5
pshufd $0xe8,%xmm5,%xmm5
pmuludq %xmm9,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm5,%xmm1
movd   0x7c(%rsp),%xmm5
pshufd $0x0,%xmm5,%xmm5
movdqa %xmm0,%xmm7
pmuludq %xmm5,%xmm7
pshufd $0xe8,%xmm7,%xmm7
pmuludq %xmm8,%xmm5
pshufd $0xe8,%xmm5,%xmm5
punpckldq %xmm7,%xmm5
paddd  %xmm1,%xmm5
paddd  %xmm4,%xmm5
movdqa %xmm5,0x30(%rsp)
movd   0x80(%rsp),%xmm1
pshufd $0x0,%xmm1,%xmm1
pmuludq %xmm1,%xmm10
pshufd $0xe8,%xmm10,%xmm4
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm1
punpckldq %xmm4,%xmm1
movd   0x84(%rsp),%xmm3
pshufd $0x0,%xmm3,%xmm3
pmuludq %xmm3,%xmm11
pshufd $0xe8,%xmm11,%xmm4
pmuludq %xmm3,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm4,%xmm2
paddd  %xmm1,%xmm2
movd   0x88(%rsp),%xmm1
pshufd $0x0,%xmm1,%xmm1
pmuludq %xmm1,%xmm6
pshufd $0xe8,%xmm6,%xmm3
pmuludq %xmm1,%xmm9
pshufd $0xe8,%xmm9,%xmm1
punpckldq %xmm3,%xmm1
movd   0x8c(%rsp),%xmm3
pshufd $0x0,%xmm3,%xmm3
pmuludq %xmm3,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pmuludq %xmm3,%xmm8
pshufd $0xe8,%xmm8,%xmm3
punpckldq %xmm0,%xmm3
paddd  %xmm1,%xmm3
paddd  %xmm2,%xmm3
movdqa %xmm3,0x40(%rsp)
mov    0x10(%rsp),%esi
lea    0xb1d(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x28(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x30(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x34(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x38(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x3c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x40(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x44(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x48(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0xd0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%08x\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
define void @main() {
%1 = alloca [4 x [4 x i32]]
%2 = alloca [4 x [4 x i32]]
%3 = alloca [4 x [4 x i32]]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 17, i32* %8
store i32 31, i32* %9
store i32 0, i32* %4
br label %10
10: ; preds = %36, %0
%11 = load i32, i32* %4
%12 = icmp slt i32 %11, 4
br i1 %12, label %13, label %39
13: ; preds = %10
store i32 0, i32* %5
br label %14
14: ; preds = %32, %13
%15 = load i32, i32* %5
%16 = icmp slt i32 %15, 4
br i1 %16, label %17, label %35
17: ; preds = %14
%18 = call i32 @random(i32* %9, i32* %8)
%19 = load i32, i32* %4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 %20
%22 = load i32, i32* %5
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [4 x i32], [4 x i32]* %21, i64 0, i64 %23
store i32 %18, i32* %24
%25 = call i32 @random(i32* %9, i32* %8)
%26 = load i32, i32* %4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %2, i64 0, i64 %27
%29 = load i32, i32* %5
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [4 x i32], [4 x i32]* %28, i64 0, i64 %30
store i32 %25, i32* %31
br label %32
32: ; preds = %17
%33 = load i32, i32* %5
%34 = add nsw i32 %33, 1
store i32 %34, i32* %5
br label %14
35: ; preds = %14
br label %36
36: ; preds = %35
%37 = load i32, i32* %4
%38 = add nsw i32 %37, 1
store i32 %38, i32* %4
br label %10
39: ; preds = %10
store i32 0, i32* %4
br label %40
40: ; preds = %84, %39
%41 = load i32, i32* %4
%42 = icmp slt i32 %41, 4
br i1 %42, label %43, label %87
43: ; preds = %40
store i32 0, i32* %5
br label %44
44: ; preds = %80, %43
%45 = load i32, i32* %5
%46 = icmp slt i32 %45, 4
br i1 %46, label %47, label %83
47: ; preds = %44
store i32 0, i32* %7
store i32 0, i32* %6
br label %48
48: ; preds = %69, %47
%49 = load i32, i32* %6
%50 = icmp slt i32 %49, 4
br i1 %50, label %51, label %72
51: ; preds = %48
%52 = load i32, i32* %7
%53 = load i32, i32* %4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 %54
%56 = load i32, i32* %6
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [4 x i32], [4 x i32]* %55, i64 0, i64 %57
%59 = load i32, i32* %58
%60 = load i32, i32* %6
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %2, i64 0, i64 %61
%63 = load i32, i32* %5
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [4 x i32], [4 x i32]* %62, i64 0, i64 %64
%66 = load i32, i32* %65
%67 = mul nsw i32 %59, %66
%68 = add nsw i32 %52, %67
store i32 %68, i32* %7
br label %69
69: ; preds = %51
%70 = load i32, i32* %6
%71 = add nsw i32 %70, 1
store i32 %71, i32* %6
br label %48
72: ; preds = %48
%73 = load i32, i32* %7
%74 = load i32, i32* %4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 %75
%77 = load i32, i32* %5
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [4 x i32], [4 x i32]* %76, i64 0, i64 %78
store i32 %73, i32* %79
br label %80
80: ; preds = %72
%81 = load i32, i32* %5
%82 = add nsw i32 %81, 1
store i32 %82, i32* %5
br label %44
83: ; preds = %44
br label %84
84: ; preds = %83
%85 = load i32, i32* %4
%86 = add nsw i32 %85, 1
store i32 %86, i32* %4
br label %40
87: ; preds = %40
store i32 0, i32* %4
br label %88
88: ; preds = %109, %87
%89 = load i32, i32* %4
%90 = icmp slt i32 %89, 4
br i1 %90, label %91, label %112
91: ; preds = %88
store i32 0, i32* %5
br label %92
92: ; preds = %104, %91
%93 = load i32, i32* %5
%94 = icmp slt i32 %93, 4
br i1 %94, label %95, label %107
95: ; preds = %92
%96 = load i32, i32* %4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 %97
%99 = load i32, i32* %5
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [4 x i32], [4 x i32]* %98, i64 0, i64 %100
%102 = load i32, i32* %101
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %102)
br label %104
104: ; preds = %95
%105 = load i32, i32* %5
%106 = add nsw i32 %105, 1
store i32 %106, i32* %5
br label %92
107: ; preds = %92
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %109
109: ; preds = %107
%110 = load i32, i32* %4
%111 = add nsw i32 %110, 1
store i32 %111, i32* %4
br label %88
112: ; preds = %88
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"%08x\0A\00"
define void @main() {
%1 = alloca [4 x [4 x i32]]
%2 = alloca [4 x [4 x i32]]
%3 = alloca [4 x [4 x i32]]
%4 = alloca i32
%5 = alloca i32
%6 = bitcast [4 x [4 x i32]]* %1 to i8*
%7 = bitcast [4 x [4 x i32]]* %2 to i8*
%8 = bitcast [4 x [4 x i32]]* %3 to i8*
%9 = bitcast i32* %4 to i8*
store i32 17, i32* %4
%10 = bitcast i32* %5 to i8*
store i32 31, i32* %5
br label %11
11: ; preds = %0, %11
%12 = phi i64 [ 0, %0 ], [ %29, %11 ]
%13 = call i32 @random(i32* %5, i32* %4)
%14 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 %12, i64 0
store i32 %13, i32* %14
%15 = call i32 @random(i32* %5, i32* %4)
%16 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %2, i64 0, i64 %12, i64 0
store i32 %15, i32* %16
%17 = call i32 @random(i32* %5, i32* %4)
%18 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 %12, i64 1
store i32 %17, i32* %18
%19 = call i32 @random(i32* %5, i32* %4)
%20 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %2, i64 0, i64 %12, i64 1
store i32 %19, i32* %20
%21 = call i32 @random(i32* %5, i32* %4)
%22 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 %12, i64 2
store i32 %21, i32* %22
%23 = call i32 @random(i32* %5, i32* %4)
%24 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %2, i64 0, i64 %12, i64 2
store i32 %23, i32* %24
%25 = call i32 @random(i32* %5, i32* %4)
%26 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 %12, i64 3
store i32 %25, i32* %26
%27 = call i32 @random(i32* %5, i32* %4)
%28 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %2, i64 0, i64 %12, i64 3
store i32 %27, i32* %28
%29 = add nuw nsw i64 %12, 1
%30 = icmp eq i64 %29, 4
br i1 %30, label %31, label %11
31: ; preds = %11
%32 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %2, i64 0, i64 1, i64 0
%33 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %2, i64 0, i64 2, i64 0
%34 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %2, i64 0, i64 3, i64 0
%35 = bitcast [4 x [4 x i32]]* %2 to <4 x i32>*
%36 = load <4 x i32>, <4 x i32>* %35
%37 = bitcast i32* %32 to <4 x i32>*
%38 = load <4 x i32>, <4 x i32>* %37
%39 = bitcast i32* %33 to <4 x i32>*
%40 = load <4 x i32>, <4 x i32>* %39
%41 = bitcast i32* %34 to <4 x i32>*
%42 = load <4 x i32>, <4 x i32>* %41
%43 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 0, i64 0
%44 = load i32, i32* %43
%45 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 0, i64 1
%46 = load i32, i32* %45
%47 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 0, i64 2
%48 = load i32, i32* %47
%49 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 0, i64 3
%50 = load i32, i32* %49
%51 = insertelement <4 x i32> poison, i32 %44, i64 0
%52 = shufflevector <4 x i32> %51, <4 x i32> poison, <4 x i32> zeroinitializer
%53 = mul nsw <4 x i32> %36, %52
%54 = insertelement <4 x i32> poison, i32 %46, i64 0
%55 = shufflevector <4 x i32> %54, <4 x i32> poison, <4 x i32> zeroinitializer
%56 = mul nsw <4 x i32> %38, %55
%57 = add nsw <4 x i32> %56, %53
%58 = insertelement <4 x i32> poison, i32 %48, i64 0
%59 = shufflevector <4 x i32> %58, <4 x i32> poison, <4 x i32> zeroinitializer
%60 = mul nsw <4 x i32> %40, %59
%61 = add nsw <4 x i32> %60, %57
%62 = insertelement <4 x i32> poison, i32 %50, i64 0
%63 = shufflevector <4 x i32> %62, <4 x i32> poison, <4 x i32> zeroinitializer
%64 = mul nsw <4 x i32> %42, %63
%65 = add nsw <4 x i32> %64, %61
%66 = bitcast [4 x [4 x i32]]* %3 to <4 x i32>*
store <4 x i32> %65, <4 x i32>* %66
%67 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 1, i64 0
%68 = load i32, i32* %67
%69 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 1, i64 1
%70 = load i32, i32* %69
%71 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 1, i64 2
%72 = load i32, i32* %71
%73 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 1, i64 3
%74 = load i32, i32* %73
%75 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 1, i64 0
%76 = insertelement <4 x i32> poison, i32 %68, i64 0
%77 = shufflevector <4 x i32> %76, <4 x i32> poison, <4 x i32> zeroinitializer
%78 = mul nsw <4 x i32> %36, %77
%79 = insertelement <4 x i32> poison, i32 %70, i64 0
%80 = shufflevector <4 x i32> %79, <4 x i32> poison, <4 x i32> zeroinitializer
%81 = mul nsw <4 x i32> %38, %80
%82 = add nsw <4 x i32> %81, %78
%83 = insertelement <4 x i32> poison, i32 %72, i64 0
%84 = shufflevector <4 x i32> %83, <4 x i32> poison, <4 x i32> zeroinitializer
%85 = mul nsw <4 x i32> %40, %84
%86 = add nsw <4 x i32> %85, %82
%87 = insertelement <4 x i32> poison, i32 %74, i64 0
%88 = shufflevector <4 x i32> %87, <4 x i32> poison, <4 x i32> zeroinitializer
%89 = mul nsw <4 x i32> %42, %88
%90 = add nsw <4 x i32> %89, %86
%91 = bitcast i32* %75 to <4 x i32>*
store <4 x i32> %90, <4 x i32>* %91
%92 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 2, i64 0
%93 = load i32, i32* %92
%94 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 2, i64 1
%95 = load i32, i32* %94
%96 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 2, i64 2
%97 = load i32, i32* %96
%98 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 2, i64 3
%99 = load i32, i32* %98
%100 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 2, i64 0
%101 = insertelement <4 x i32> poison, i32 %93, i64 0
%102 = shufflevector <4 x i32> %101, <4 x i32> poison, <4 x i32> zeroinitializer
%103 = mul nsw <4 x i32> %36, %102
%104 = insertelement <4 x i32> poison, i32 %95, i64 0
%105 = shufflevector <4 x i32> %104, <4 x i32> poison, <4 x i32> zeroinitializer
%106 = mul nsw <4 x i32> %38, %105
%107 = add nsw <4 x i32> %106, %103
%108 = insertelement <4 x i32> poison, i32 %97, i64 0
%109 = shufflevector <4 x i32> %108, <4 x i32> poison, <4 x i32> zeroinitializer
%110 = mul nsw <4 x i32> %40, %109
%111 = add nsw <4 x i32> %110, %107
%112 = insertelement <4 x i32> poison, i32 %99, i64 0
%113 = shufflevector <4 x i32> %112, <4 x i32> poison, <4 x i32> zeroinitializer
%114 = mul nsw <4 x i32> %42, %113
%115 = add nsw <4 x i32> %114, %111
%116 = bitcast i32* %100 to <4 x i32>*
store <4 x i32> %115, <4 x i32>* %116
%117 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 3, i64 0
%118 = load i32, i32* %117
%119 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 3, i64 1
%120 = load i32, i32* %119
%121 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 3, i64 2
%122 = load i32, i32* %121
%123 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %1, i64 0, i64 3, i64 3
%124 = load i32, i32* %123
%125 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 3, i64 0
%126 = insertelement <4 x i32> poison, i32 %118, i64 0
%127 = shufflevector <4 x i32> %126, <4 x i32> poison, <4 x i32> zeroinitializer
%128 = mul nsw <4 x i32> %36, %127
%129 = insertelement <4 x i32> poison, i32 %120, i64 0
%130 = shufflevector <4 x i32> %129, <4 x i32> poison, <4 x i32> zeroinitializer
%131 = mul nsw <4 x i32> %38, %130
%132 = add nsw <4 x i32> %131, %128
%133 = insertelement <4 x i32> poison, i32 %122, i64 0
%134 = shufflevector <4 x i32> %133, <4 x i32> poison, <4 x i32> zeroinitializer
%135 = mul nsw <4 x i32> %40, %134
%136 = add nsw <4 x i32> %135, %132
%137 = insertelement <4 x i32> poison, i32 %124, i64 0
%138 = shufflevector <4 x i32> %137, <4 x i32> poison, <4 x i32> zeroinitializer
%139 = mul nsw <4 x i32> %42, %138
%140 = add nsw <4 x i32> %139, %136
%141 = bitcast i32* %125 to <4 x i32>*
store <4 x i32> %140, <4 x i32>* %141
%142 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 0, i64 0
%143 = load i32, i32* %142
%144 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %143)
%145 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 0, i64 1
%146 = load i32, i32* %145
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %146)
%148 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 0, i64 2
%149 = load i32, i32* %148
%150 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %149)
%151 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 0, i64 3
%152 = load i32, i32* %151
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %152)
%154 = call i32 @putchar(i32 10)
%155 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 1, i64 0
%156 = load i32, i32* %155
%157 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %156)
%158 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 1, i64 1
%159 = load i32, i32* %158
%160 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %159)
%161 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 1, i64 2
%162 = load i32, i32* %161
%163 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %162)
%164 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 1, i64 3
%165 = load i32, i32* %164
%166 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %165)
%167 = call i32 @putchar(i32 10)
%168 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 2, i64 0
%169 = load i32, i32* %168
%170 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %169)
%171 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 2, i64 1
%172 = load i32, i32* %171
%173 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %172)
%174 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 2, i64 2
%175 = load i32, i32* %174
%176 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %175)
%177 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 2, i64 3
%178 = load i32, i32* %177
%179 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %178)
%180 = call i32 @putchar(i32 10)
%181 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 3, i64 0
%182 = load i32, i32* %181
%183 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %182)
%184 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 3, i64 1
%185 = load i32, i32* %184
%186 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %185)
%187 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 3, i64 2
%188 = load i32, i32* %187
%189 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %188)
%190 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 3, i64 3
%191 = load i32, i32* %190
%192 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %191)
%193 = call i32 @putchar(i32 10)
ret void
}