#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);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ scanf(char *, int *, int *, int *, ...);
int main(void) {
  int i = 0;
  int j = 0;
  int k = 0;
  int x[4][3];
  int y[3][4];
  int z[4][4];
  puts("输入4*3矩阵");
  for (i = 0; i < 4; i++) {
    printf("请输入第%d行三个整数: ", i + 1);
    scanf("%d%d%d", &x[i][0], &x[i][1], &x[i][2]);
  }
  puts("输入3*4矩阵");
  for (i = 0; i < 3; i++) {
    printf("请输入第%d行四个整数: ", i + 1);
    scanf("%d%d%d%d", &y[i][0], &y[i][1], &y[i][2], &y[i][3]);
  }
  for (i = 0; i < 4; i++) {
    for (j = 0; j < 4; j++) {
      int t = 0;
      for (k = 0; k < 3; k++) {
        t += x[i][k] * y[k][j];
      }
      z[i][j] = t;
    }
  }
  for (i = 0; i < 4; i++) {
    for (j = 0; j < 4; j++) {
      printf("%3d", z[i][j]);
    }
    putchar('\n');
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
lea    0xe92(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    11e7 <main+0xa7>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
lea    0xe7f(%rip),%rdi
call   1050 <printf@plt>
movslq -0x8(%rbp),%rax
lea    -0x40(%rbp),%rsi
imul   $0xc,%rax,%rax
add    %rax,%rsi
movslq -0x8(%rbp),%rax
lea    -0x40(%rbp),%rdx
imul   $0xc,%rax,%rax
add    %rax,%rdx
add    $0x4,%rdx
movslq -0x8(%rbp),%rax
lea    -0x40(%rbp),%rcx
imul   $0xc,%rax,%rax
add    %rax,%rcx
add    $0x8,%rcx
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    117a <main+0x3a>
lea    0xe42(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    127a <main+0x13a>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
lea    0xe2f(%rip),%rdi
call   1050 <printf@plt>
movslq -0x8(%rbp),%rax
lea    -0x70(%rbp),%rsi
shl    $0x4,%rax
add    %rax,%rsi
movslq -0x8(%rbp),%rax
lea    -0x70(%rbp),%rdx
shl    $0x4,%rax
add    %rax,%rdx
add    $0x4,%rdx
movslq -0x8(%rbp),%rax
lea    -0x70(%rbp),%rcx
shl    $0x4,%rax
add    %rax,%rcx
add    $0x8,%rcx
movslq -0x8(%rbp),%rax
lea    -0x70(%rbp),%r8
shl    $0x4,%rax
add    %rax,%r8
add    $0xc,%r8
lea    0xdfb(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11fa <main+0xba>
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    133e <main+0x1fe>
movl   $0x0,-0xc(%rbp)
cmpl   $0x4,-0xc(%rbp)
jge    132b <main+0x1eb>
movl   $0x0,-0xb4(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x3,-0x10(%rbp)
jge    12fe <main+0x1be>
movslq -0x8(%rbp),%rcx
lea    -0x40(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
movslq -0x10(%rbp),%rdx
lea    -0x70(%rbp),%rcx
shl    $0x4,%rdx
add    %rdx,%rcx
movslq -0xc(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
add    -0xb4(%rbp),%eax
mov    %eax,-0xb4(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12ad <main+0x16d>
mov    -0xb4(%rbp),%edx
movslq -0x8(%rbp),%rcx
lea    -0xb0(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1292 <main+0x152>
jmp    1330 <main+0x1f0>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1281 <main+0x141>
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    13ab <main+0x26b>
movl   $0x0,-0xc(%rbp)
cmpl   $0x4,-0xc(%rbp)
jge    1393 <main+0x253>
movslq -0x8(%rbp),%rcx
lea    -0xb0(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xce9(%rip),%rdi
call   1050 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1356 <main+0x216>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1345 <main+0x205>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0xa8,%rsp
lea    0xeaf(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb3(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%esi
call   1050 <printf@plt>
lea    0x4(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0xee7(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
call   1050 <printf@plt>
lea    0xc(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0x14(%rsp),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
call   1050 <printf@plt>
lea    0x18(%rsp),%rsi
lea    0x1c(%rsp),%rdx
lea    0x20(%rsp),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
call   1050 <printf@plt>
lea    0x24(%rsp),%rsi
lea    0x28(%rsp),%rdx
lea    0x2c(%rsp),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe2f(%rip),%rdi
call   1040 <puts@plt>
lea    0xe33(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1050 <printf@plt>
lea    0x74(%rsp),%rdx
lea    0x78(%rsp),%rcx
lea    0x7c(%rsp),%r8
lea    0xe30(%rip),%r14
lea    0x70(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1050 <printf@plt>
lea    0x80(%rsp),%rsi
lea    0x84(%rsp),%rdx
lea    0x88(%rsp),%rcx
lea    0x8c(%rsp),%r8
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1050 <printf@plt>
lea    0x90(%rsp),%rsi
lea    0x94(%rsp),%rdx
lea    0x98(%rsp),%rcx
lea    0x9c(%rsp),%r8
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
movdqa 0x70(%rsp),%xmm2
movdqa 0x80(%rsp),%xmm1
movdqa 0x90(%rsp),%xmm8
movd   (%rsp),%xmm3
pshufd $0x0,%xmm3,%xmm4
pshufd $0xf5,%xmm2,%xmm3
movdqa %xmm3,%xmm5
pmuludq %xmm4,%xmm5
pshufd $0xe8,%xmm5,%xmm5
pmuludq %xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm6
punpckldq %xmm5,%xmm6
movd   0x4(%rsp),%xmm4
pshufd $0x0,%xmm4,%xmm5
pshufd $0xf5,%xmm1,%xmm4
movdqa %xmm4,%xmm7
pmuludq %xmm5,%xmm7
pshufd $0xe8,%xmm7,%xmm7
pmuludq %xmm1,%xmm5
pshufd $0xe8,%xmm5,%xmm0
punpckldq %xmm7,%xmm0
paddd  %xmm6,%xmm0
movd   0x8(%rsp),%xmm5
pshufd $0x0,%xmm5,%xmm6
pshufd $0xf5,%xmm8,%xmm5
movdqa %xmm5,%xmm7
pmuludq %xmm6,%xmm7
pshufd $0xe8,%xmm7,%xmm7
pmuludq %xmm8,%xmm6
pshufd $0xe8,%xmm6,%xmm6
punpckldq %xmm7,%xmm6
paddd  %xmm0,%xmm6
movdqa %xmm6,0x30(%rsp)
movd   0xc(%rsp),%xmm0
pshufd $0x0,%xmm0,%xmm0
movdqa %xmm3,%xmm6
pmuludq %xmm0,%xmm6
pshufd $0xe8,%xmm6,%xmm6
pmuludq %xmm2,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm6,%xmm0
movd   0x10(%rsp),%xmm6
pshufd $0x0,%xmm6,%xmm6
movdqa %xmm4,%xmm7
pmuludq %xmm6,%xmm7
pshufd $0xe8,%xmm7,%xmm7
pmuludq %xmm1,%xmm6
pshufd $0xe8,%xmm6,%xmm6
punpckldq %xmm7,%xmm6
paddd  %xmm0,%xmm6
movd   0x14(%rsp),%xmm0
pshufd $0x0,%xmm0,%xmm0
movdqa %xmm5,%xmm7
pmuludq %xmm0,%xmm7
pshufd $0xe8,%xmm7,%xmm7
pmuludq %xmm8,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm7,%xmm0
paddd  %xmm6,%xmm0
movdqa %xmm0,0x40(%rsp)
movd   0x18(%rsp),%xmm0
pshufd $0x0,%xmm0,%xmm0
movdqa %xmm3,%xmm6
pmuludq %xmm0,%xmm6
pshufd $0xe8,%xmm6,%xmm6
pmuludq %xmm2,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm6,%xmm0
movd   0x1c(%rsp),%xmm6
pshufd $0x0,%xmm6,%xmm6
movdqa %xmm4,%xmm7
pmuludq %xmm6,%xmm7
pshufd $0xe8,%xmm7,%xmm7
pmuludq %xmm1,%xmm6
pshufd $0xe8,%xmm6,%xmm6
punpckldq %xmm7,%xmm6
paddd  %xmm0,%xmm6
movd   0x20(%rsp),%xmm0
pshufd $0x0,%xmm0,%xmm0
movdqa %xmm5,%xmm7
pmuludq %xmm0,%xmm7
pshufd $0xe8,%xmm7,%xmm7
pmuludq %xmm8,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm7,%xmm0
paddd  %xmm6,%xmm0
movdqa %xmm0,0x50(%rsp)
movd   0x24(%rsp),%xmm0
pshufd $0x0,%xmm0,%xmm0
pmuludq %xmm0,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm0
punpckldq %xmm3,%xmm0
movd   0x28(%rsp),%xmm2
pshufd $0x0,%xmm2,%xmm2
pmuludq %xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm3
pmuludq %xmm2,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm3,%xmm1
paddd  %xmm0,%xmm1
movd   0x2c(%rsp),%xmm0
pshufd $0x0,%xmm0,%xmm0
pmuludq %xmm0,%xmm5
pshufd $0xe8,%xmm5,%xmm2
pmuludq %xmm0,%xmm8
pshufd $0xe8,%xmm8,%xmm0
punpckldq %xmm2,%xmm0
paddd  %xmm1,%xmm0
movdqa %xmm0,0x60(%rsp)
mov    0x30(%rsp),%esi
lea    0xb9c(%rip),%rbx
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    0x34(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    0x38(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    0x3c(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x40(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    0x44(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    0x48(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    0x4c(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x50(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    0x54(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    0x58(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    0x5c(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x60(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    0x64(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    0x68(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    0x6c(%rsp),%esi
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [16 x i8] c"\E8\BE\93\E5\85\A54*3\E7\9F\A9\E9\98\B5\00"
@.str.1 = [32 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E7\AC\AC%d\E8\A1\8C\E4\B8\89\E4\B8\AA\E6\95\B4\E6\95\B0: \00"
@.str.2 = [7 x i8] c"%d%d%d\00"
@.str.3 = [16 x i8] c"\E8\BE\93\E5\85\A53*4\E7\9F\A9\E9\98\B5\00"
@.str.4 = [32 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E7\AC\AC%d\E8\A1\8C\E5\9B\9B\E4\B8\AA\E6\95\B4\E6\95\B0: \00"
@.str.5 = [9 x i8] c"%d%d%d%d\00"
@.str.6 = [4 x i8] c"%3d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [4 x [3 x i32]]
%6 = alloca [3 x [4 x i32]]
%7 = alloca [4 x [4 x i32]]
%8 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
%9 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %10
10: ; preds = %30, %0
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 4
br i1 %12, label %13, label %33
13: ; preds = %10
%14 = load i32, i32* %2
%15 = add nsw i32 %14, 1
%16 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 %15)
%17 = load i32, i32* %2
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %5, i64 0, i64 %18
%20 = getelementptr inbounds [3 x i32], [3 x i32]* %19, i64 0, i64 0
%21 = load i32, i32* %2
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %5, i64 0, i64 %22
%24 = getelementptr inbounds [3 x i32], [3 x i32]* %23, i64 0, i64 1
%25 = load i32, i32* %2
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %5, i64 0, i64 %26
%28 = getelementptr inbounds [3 x i32], [3 x i32]* %27, i64 0, i64 2
%29 = call i32 (i8*, i32*, i32*, i32*, ...) @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32* %20, i32* %24, i32* %28)
br label %30
30: ; preds = %13
%31 = load i32, i32* %2
%32 = add nsw i32 %31, 1
store i32 %32, i32* %2
br label %10
33: ; preds = %10
%34 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %2
br label %35
35: ; preds = %59, %33
%36 = load i32, i32* %2
%37 = icmp slt i32 %36, 3
br i1 %37, label %38, label %62
38: ; preds = %35
%39 = load i32, i32* %2
%40 = add nsw i32 %39, 1
%41 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %2
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %6, i64 0, i64 %43
%45 = getelementptr inbounds [4 x i32], [4 x i32]* %44, i64 0, i64 0
%46 = load i32, i32* %2
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %6, i64 0, i64 %47
%49 = getelementptr inbounds [4 x i32], [4 x i32]* %48, i64 0, i64 1
%50 = load i32, i32* %2
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %6, i64 0, i64 %51
%53 = getelementptr inbounds [4 x i32], [4 x i32]* %52, i64 0, i64 2
%54 = load i32, i32* %2
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %6, i64 0, i64 %55
%57 = getelementptr inbounds [4 x i32], [4 x i32]* %56, i64 0, i64 3
%58 = call i32 (i8*, i32*, i32*, i32*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32* %45, i32* %49, i32* %53, i32* %57)
br label %59
59: ; preds = %38
%60 = load i32, i32* %2
%61 = add nsw i32 %60, 1
store i32 %61, i32* %2
br label %35
62: ; preds = %35
store i32 0, i32* %2
br label %63
63: ; preds = %107, %62
%64 = load i32, i32* %2
%65 = icmp slt i32 %64, 4
br i1 %65, label %66, label %110
66: ; preds = %63
store i32 0, i32* %3
br label %67
67: ; preds = %103, %66
%68 = load i32, i32* %3
%69 = icmp slt i32 %68, 4
br i1 %69, label %70, label %106
70: ; preds = %67
store i32 0, i32* %8
store i32 0, i32* %4
br label %71
71: ; preds = %92, %70
%72 = load i32, i32* %4
%73 = icmp slt i32 %72, 3
br i1 %73, label %74, label %95
74: ; preds = %71
%75 = load i32, i32* %2
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %5, i64 0, i64 %76
%78 = load i32, i32* %4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [3 x i32], [3 x i32]* %77, i64 0, i64 %79
%81 = load i32, i32* %80
%82 = load i32, i32* %4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %6, i64 0, i64 %83
%85 = load i32, i32* %3
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [4 x i32], [4 x i32]* %84, i64 0, i64 %86
%88 = load i32, i32* %87
%89 = mul nsw i32 %81, %88
%90 = load i32, i32* %8
%91 = add nsw i32 %90, %89
store i32 %91, i32* %8
br label %92
92: ; preds = %74
%93 = load i32, i32* %4
%94 = add nsw i32 %93, 1
store i32 %94, i32* %4
br label %71
95: ; preds = %71
%96 = load i32, i32* %8
%97 = load i32, i32* %2
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %7, i64 0, i64 %98
%100 = load i32, i32* %3
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [4 x i32], [4 x i32]* %99, i64 0, i64 %101
store i32 %96, i32* %102
br label %103
103: ; preds = %95
%104 = load i32, i32* %3
%105 = add nsw i32 %104, 1
store i32 %105, i32* %3
br label %67
106: ; preds = %67
br label %107
107: ; preds = %106
%108 = load i32, i32* %2
%109 = add nsw i32 %108, 1
store i32 %109, i32* %2
br label %63
110: ; preds = %63
store i32 0, i32* %2
br label %111
111: ; preds = %132, %110
%112 = load i32, i32* %2
%113 = icmp slt i32 %112, 4
br i1 %113, label %114, label %135
114: ; preds = %111
store i32 0, i32* %3
br label %115
115: ; preds = %127, %114
%116 = load i32, i32* %3
%117 = icmp slt i32 %116, 4
br i1 %117, label %118, label %130
118: ; preds = %115
%119 = load i32, i32* %2
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %7, i64 0, i64 %120
%122 = load i32, i32* %3
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [4 x i32], [4 x i32]* %121, i64 0, i64 %123
%125 = load i32, i32* %124
%126 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %125)
br label %127
127: ; preds = %118
%128 = load i32, i32* %3
%129 = add nsw i32 %128, 1
store i32 %129, i32* %3
br label %115
130: ; preds = %115
%131 = call i32 @putchar(i8 signext 10)
br label %132
132: ; preds = %130
%133 = load i32, i32* %2
%134 = add nsw i32 %133, 1
store i32 %134, i32* %2
br label %111
135: ; preds = %111
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"\E8\BE\93\E5\85\A54*3\E7\9F\A9\E9\98\B5\00"
@.str.1 = [32 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E7\AC\AC%d\E8\A1\8C\E4\B8\89\E4\B8\AA\E6\95\B4\E6\95\B0: \00"
@.str.2 = [7 x i8] c"%d%d%d\00"
@.str.3 = [16 x i8] c"\E8\BE\93\E5\85\A53*4\E7\9F\A9\E9\98\B5\00"
@.str.4 = [32 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E7\AC\AC%d\E8\A1\8C\E5\9B\9B\E4\B8\AA\E6\95\B4\E6\95\B0: \00"
@.str.5 = [9 x i8] c"%d%d%d%d\00"
@.str.6 = [4 x i8] c"%3d\00"
define i32 @main() {
%1 = alloca [4 x [3 x i32]]
%2 = alloca [3 x [4 x i32]]
%3 = alloca [4 x [4 x i32]]
%4 = bitcast [4 x [3 x i32]]* %1 to i8*
%5 = bitcast [3 x [4 x i32]]* %2 to i8*
%6 = bitcast [4 x [4 x i32]]* %3 to i8*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 1)
%9 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 0, i64 0
%10 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 0, i64 1
%11 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 0, i64 2
%12 = call i32 (i8*, i32*, i32*, i32*, ...) @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32* %9, i32* %10, i32* %11)
%13 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 2)
%14 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 1, i64 0
%15 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 1, i64 1
%16 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 1, i64 2
%17 = call i32 (i8*, i32*, i32*, i32*, ...) @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32* %14, i32* %15, i32* %16)
%18 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 3)
%19 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 2, i64 0
%20 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 2, i64 1
%21 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 2, i64 2
%22 = call i32 (i8*, i32*, i32*, i32*, ...) @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32* %19, i32* %20, i32* %21)
%23 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 4)
%24 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 3, i64 0
%25 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 3, i64 1
%26 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 3, i64 2
%27 = call i32 (i8*, i32*, i32*, i32*, ...) @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32* %24, i32* %25, i32* %26)
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 1)
%30 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %2, i64 0, i64 0, i64 0
%31 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %2, i64 0, i64 0, i64 1
%32 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %2, i64 0, i64 0, i64 2
%33 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %2, i64 0, i64 0, i64 3
%34 = call i32 (i8*, i32*, i32*, i32*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32* %30, i32* %31, i32* %32, i32* %33)
%35 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 2)
%36 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %2, i64 0, i64 1, i64 0
%37 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %2, i64 0, i64 1, i64 1
%38 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %2, i64 0, i64 1, i64 2
%39 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %2, i64 0, i64 1, i64 3
%40 = call i32 (i8*, i32*, i32*, i32*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32* %36, i32* %37, i32* %38, i32* %39)
%41 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 3)
%42 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %2, i64 0, i64 2, i64 0
%43 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %2, i64 0, i64 2, i64 1
%44 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %2, i64 0, i64 2, i64 2
%45 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %2, i64 0, i64 2, i64 3
%46 = call i32 (i8*, i32*, i32*, i32*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32* %42, i32* %43, i32* %44, i32* %45)
%47 = bitcast [3 x [4 x i32]]* %2 to <4 x i32>*
%48 = load <4 x i32>, <4 x i32>* %47
%49 = bitcast i32* %36 to <4 x i32>*
%50 = load <4 x i32>, <4 x i32>* %49
%51 = bitcast i32* %42 to <4 x i32>*
%52 = load <4 x i32>, <4 x i32>* %51
%53 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 0, i64 0
%54 = load i32, i32* %53
%55 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 0, i64 1
%56 = load i32, i32* %55
%57 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 0, i64 2
%58 = load i32, i32* %57
%59 = insertelement <4 x i32> poison, i32 %54, i64 0
%60 = shufflevector <4 x i32> %59, <4 x i32> poison, <4 x i32> zeroinitializer
%61 = mul nsw <4 x i32> %48, %60
%62 = insertelement <4 x i32> poison, i32 %56, i64 0
%63 = shufflevector <4 x i32> %62, <4 x i32> poison, <4 x i32> zeroinitializer
%64 = mul nsw <4 x i32> %50, %63
%65 = add nsw <4 x i32> %64, %61
%66 = insertelement <4 x i32> poison, i32 %58, i64 0
%67 = shufflevector <4 x i32> %66, <4 x i32> poison, <4 x i32> zeroinitializer
%68 = mul nsw <4 x i32> %52, %67
%69 = add nsw <4 x i32> %68, %65
%70 = bitcast [4 x [4 x i32]]* %3 to <4 x i32>*
store <4 x i32> %69, <4 x i32>* %70
%71 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 1, i64 0
%72 = load i32, i32* %71
%73 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 1, i64 1
%74 = load i32, i32* %73
%75 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 1, i64 2
%76 = load i32, i32* %75
%77 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 1, i64 0
%78 = insertelement <4 x i32> poison, i32 %72, i64 0
%79 = shufflevector <4 x i32> %78, <4 x i32> poison, <4 x i32> zeroinitializer
%80 = mul nsw <4 x i32> %48, %79
%81 = insertelement <4 x i32> poison, i32 %74, i64 0
%82 = shufflevector <4 x i32> %81, <4 x i32> poison, <4 x i32> zeroinitializer
%83 = mul nsw <4 x i32> %50, %82
%84 = add nsw <4 x i32> %83, %80
%85 = insertelement <4 x i32> poison, i32 %76, i64 0
%86 = shufflevector <4 x i32> %85, <4 x i32> poison, <4 x i32> zeroinitializer
%87 = mul nsw <4 x i32> %52, %86
%88 = add nsw <4 x i32> %87, %84
%89 = bitcast i32* %77 to <4 x i32>*
store <4 x i32> %88, <4 x i32>* %89
%90 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 2, i64 0
%91 = load i32, i32* %90
%92 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 2, i64 1
%93 = load i32, i32* %92
%94 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 2, i64 2
%95 = load i32, i32* %94
%96 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 2, i64 0
%97 = insertelement <4 x i32> poison, i32 %91, i64 0
%98 = shufflevector <4 x i32> %97, <4 x i32> poison, <4 x i32> zeroinitializer
%99 = mul nsw <4 x i32> %48, %98
%100 = insertelement <4 x i32> poison, i32 %93, i64 0
%101 = shufflevector <4 x i32> %100, <4 x i32> poison, <4 x i32> zeroinitializer
%102 = mul nsw <4 x i32> %50, %101
%103 = add nsw <4 x i32> %102, %99
%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> %52, %105
%107 = add nsw <4 x i32> %106, %103
%108 = bitcast i32* %96 to <4 x i32>*
store <4 x i32> %107, <4 x i32>* %108
%109 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 3, i64 0
%110 = load i32, i32* %109
%111 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 3, i64 1
%112 = load i32, i32* %111
%113 = getelementptr inbounds [4 x [3 x i32]], [4 x [3 x i32]]* %1, i64 0, i64 3, i64 2
%114 = load i32, i32* %113
%115 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 3, i64 0
%116 = insertelement <4 x i32> poison, i32 %110, i64 0
%117 = shufflevector <4 x i32> %116, <4 x i32> poison, <4 x i32> zeroinitializer
%118 = mul nsw <4 x i32> %48, %117
%119 = insertelement <4 x i32> poison, i32 %112, i64 0
%120 = shufflevector <4 x i32> %119, <4 x i32> poison, <4 x i32> zeroinitializer
%121 = mul nsw <4 x i32> %50, %120
%122 = add nsw <4 x i32> %121, %118
%123 = insertelement <4 x i32> poison, i32 %114, i64 0
%124 = shufflevector <4 x i32> %123, <4 x i32> poison, <4 x i32> zeroinitializer
%125 = mul nsw <4 x i32> %52, %124
%126 = add nsw <4 x i32> %125, %122
%127 = bitcast i32* %115 to <4 x i32>*
store <4 x i32> %126, <4 x i32>* %127
%128 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 0, i64 0
%129 = load i32, i32* %128
%130 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %129)
%131 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 0, i64 1
%132 = load i32, i32* %131
%133 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %132)
%134 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 0, i64 2
%135 = load i32, i32* %134
%136 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %135)
%137 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 0, i64 3
%138 = load i32, i32* %137
%139 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %138)
%140 = call i32 @putchar(i8 signext 10)
%141 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 1, i64 0
%142 = load i32, i32* %141
%143 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %142)
%144 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 1, i64 1
%145 = load i32, i32* %144
%146 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %145)
%147 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 1, i64 2
%148 = load i32, i32* %147
%149 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %148)
%150 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 1, i64 3
%151 = load i32, i32* %150
%152 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %151)
%153 = call i32 @putchar(i8 signext 10)
%154 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 2, i64 0
%155 = load i32, i32* %154
%156 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %155)
%157 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 2, i64 1
%158 = load i32, i32* %157
%159 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %158)
%160 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 2, i64 2
%161 = load i32, i32* %160
%162 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %161)
%163 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 2, i64 3
%164 = load i32, i32* %163
%165 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %164)
%166 = call i32 @putchar(i8 signext 10)
%167 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 3, i64 0
%168 = load i32, i32* %167
%169 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %168)
%170 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 3, i64 1
%171 = load i32, i32* %170
%172 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %171)
%173 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 3, i64 2
%174 = load i32, i32* %173
%175 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %174)
%176 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %3, i64 0, i64 3, i64 3
%177 = load i32, i32* %176
%178 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %177)
%179 = call i32 @putchar(i8 signext 10)
ret i32 0
}