#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 *, ...);
void printmat1(const int dim, double mat[][dim]) {
  const int ncols = 16;
  int i, j, k;
  int nblocks, nlast;
  nblocks = dim / ncols;
  nlast = dim % ncols;
  for (i = 0; i < nblocks; ++i) {
    printf("    ");
    for (k = 0; k < ncols; ++k)
      printf("%10d", k + i * ncols);
    printf("\n");
    for (j = 0; j < dim; ++j) {
      printf(" %3d", j);
      for (k = 0; k < ncols; ++k)
        printf("%10f", mat[j][k + i * ncols]);
      printf("\n");
    }
    printf("\n");
  }
  if (nlast > 0) {
    printf("    ");
    for (k = 0; k < nlast; ++k)
      printf("%10d", k + nblocks * ncols);
    printf("\n");
    for (j = 0; j < dim; ++j) {
      printf(" %3d", j);
      for (k = 0; k < nlast; ++k)
        printf("%10f", mat[j][k + nblocks * ncols]);
      printf("\n");
    }
  }
  return;
}


x86 assembly (clang, -O0):
<printmat1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    %rax,-0x30(%rbp)
movl   $0x10,-0x14(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,-0x24(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %edx,-0x28(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1263 <printmat1+0x153>
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x10,-0x20(%rbp)
jge    11a2 <printmat1+0x92>
mov    -0x20(%rbp),%esi
mov    -0x18(%rbp),%eax
shl    $0x4,%eax
add    %eax,%esi
lea    0xe78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1171 <printmat1+0x61>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1247 <printmat1+0x137>
mov    -0x1c(%rbp),%esi
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x10,-0x20(%rbp)
jge    122b <printmat1+0x11b>
mov    -0x30(%rbp),%rdx
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    -0x20(%rbp),%ecx
mov    -0x18(%rbp),%edx
shl    $0x4,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xdfb(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11db <printmat1+0xcb>
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11b7 <printmat1+0xa7>
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1150 <printmat1+0x40>
cmpl   $0x0,-0x28(%rbp)
jle    1361 <printmat1+0x251>
lea    0xd8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    12b5 <printmat1+0x1a5>
mov    -0x20(%rbp),%esi
mov    -0x24(%rbp),%eax
shl    $0x4,%eax
add    %eax,%esi
lea    0xd65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1282 <printmat1+0x172>
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    135c <printmat1+0x24c>
mov    -0x1c(%rbp),%esi
lea    0xd2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    1340 <printmat1+0x230>
mov    -0x30(%rbp),%rdx
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
imul   %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    -0x20(%rbp),%ecx
mov    -0x24(%rbp),%edx
shl    $0x4,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xce6(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12ee <printmat1+0x1de>
lea    0xcc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12ca <printmat1+0x1ba>
jmp    1361 <printmat1+0x251>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printmat1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,0x18(%rsp)
mov    %edi,%r12d
lea    0xf(%rdi),%eax
test   %edi,%edi
cmovns %edi,%eax
mov    %eax,%ecx
sar    $0x4,%ecx
mov    %ecx,0x4(%rsp)
and    $0xfffffff0,%eax
mov    %edi,%ecx
sub    %eax,%ecx
mov    %ecx,0x14(%rsp)
mov    %rdi,0x20(%rsp)
cmp    $0x10,%edi
jl     13dd <printmat1+0x2bd>
mov    0x4(%rsp),%eax
mov    %rax,0x28(%rsp)
mov    0x18(%rsp),%rax
lea    0x78(%rax),%r14
lea    0x0(,%r12,8),%r13
lea    0xe8e(%rip),%rbp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0xe69(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,0x30(%rsp)
shl    $0x4,%ebx
lea    0xe58(%rip),%r15
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x2(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x3(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x5(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x6(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x7(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x9(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xa(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
or     $0xf,%ebx
mov    %r15,%rdi
lea    0xd8e(%rip),%r15
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,0x8(%rsp)
mov    %r14,%rbx
xor    %r14d,%r14d
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  -0x78(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x70(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x68(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x60(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x58(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x50(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x48(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x40(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x38(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x30(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x28(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x20(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x18(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x10(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x8(%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  (%rbx),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14
add    %r13,%rbx
cmp    %r14,%r12
jne    12a0 <printmat1+0x180>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x30(%rsp),%rbx
add    $0x1,%rbx
mov    0x8(%rsp),%r14
sub    $0xffffffffffffff80,%r14
cmp    0x28(%rsp),%rbx
jne    1190 <printmat1+0x70>
mov    0x14(%rsp),%r13d
test   %r13d,%r13d
mov    0x4(%rsp),%r15d
jle    14b2 <printmat1+0x392>
lea    0xc09(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
shl    $0x4,%r15d
lea    0xbfc(%rip),%r14
mov    %r15d,%ebp
mov    %r13d,%ebx
nop
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%ebp
add    $0xffffffff,%ebx
jne    1410 <printmat1+0x2f0>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmpl   $0x0,0x20(%rsp)
jle    14b2 <printmat1+0x392>
movslq %r15d,%rax
mov    %r13d,%ebx
mov    0x18(%rsp),%rcx
lea    (%rcx,%rax,8),%rbp
lea    0x0(,%r12,8),%rax
mov    %rax,0x8(%rsp)
lea    0xbb7(%rip),%r13
xor    %r15d,%r15d
nopl   0x0(%rax,%rax,1)
lea    0xba3(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x0(%rbp,%r14,8),%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x1,%r14
cmp    %r14,%rbx
jne    1480 <printmat1+0x360>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15
add    0x8(%rsp),%rbp
cmp    %r12,%r15
jne    1460 <printmat1+0x340>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c" \00"
@.str.1 = [5 x i8] c"%10d\00"
@.str.3 = [5 x i8] c" %3d\00"
@.str.4 = [5 x i8] c"%10f\00"
define void @printmat1(i32 %0, double* nocapture %1) {
%3 = zext i32 %0 to i64
%4 = sdiv i32 %0, 16
%5 = srem i32 %0, 16
%6 = icmp sgt i32 %0, 15
br i1 %6, label %7, label %122
7: ; preds = %2
%8 = zext i32 %4 to i64
br label %9
9: ; preds = %118, %7
%10 = phi i64 [ 0, %7 ], [ %120, %118 ]
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%12 = shl nsw i64 %10, 4
%13 = trunc i64 %12 to i32
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %13)
%15 = or i64 %12, 1
%16 = trunc i64 %15 to i32
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %16)
%18 = or i64 %12, 2
%19 = trunc i64 %18 to i32
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %19)
%21 = or i64 %12, 3
%22 = trunc i64 %21 to i32
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %22)
%24 = or i64 %12, 4
%25 = trunc i64 %24 to i32
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %25)
%27 = or i64 %12, 5
%28 = trunc i64 %27 to i32
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %28)
%30 = or i64 %12, 6
%31 = trunc i64 %30 to i32
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %31)
%33 = or i64 %12, 7
%34 = trunc i64 %33 to i32
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %34)
%36 = or i64 %12, 8
%37 = trunc i64 %36 to i32
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %37)
%39 = or i64 %12, 9
%40 = trunc i64 %39 to i32
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %40)
%42 = or i64 %12, 10
%43 = trunc i64 %42 to i32
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %43)
%45 = or i64 %12, 11
%46 = trunc i64 %45 to i32
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %46)
%48 = or i64 %12, 12
%49 = trunc i64 %48 to i32
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %49)
%51 = or i64 %12, 13
%52 = trunc i64 %51 to i32
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %52)
%54 = or i64 %12, 14
%55 = trunc i64 %54 to i32
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %55)
%57 = or i64 %12, 15
%58 = trunc i64 %57 to i32
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %58)
%60 = tail call i32 @putchar(i32 10)
br label %61
61: ; preds = %9, %61
%62 = phi i64 [ 0, %9 ], [ %116, %61 ]
%63 = trunc i64 %62 to i32
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %63)
%65 = mul nuw nsw i64 %62, %3
%66 = getelementptr inbounds double, double* %1, i64 %65
%67 = getelementptr inbounds double, double* %66, i64 %12
%68 = load double, double* %67
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %68)
%70 = getelementptr inbounds double, double* %66, i64 %15
%71 = load double, double* %70
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %71)
%73 = getelementptr inbounds double, double* %66, i64 %18
%74 = load double, double* %73
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %74)
%76 = getelementptr inbounds double, double* %66, i64 %21
%77 = load double, double* %76
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %77)
%79 = getelementptr inbounds double, double* %66, i64 %24
%80 = load double, double* %79
%81 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %80)
%82 = getelementptr inbounds double, double* %66, i64 %27
%83 = load double, double* %82
%84 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %83)
%85 = getelementptr inbounds double, double* %66, i64 %30
%86 = load double, double* %85
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %86)
%88 = getelementptr inbounds double, double* %66, i64 %33
%89 = load double, double* %88
%90 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %89)
%91 = getelementptr inbounds double, double* %66, i64 %36
%92 = load double, double* %91
%93 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %92)
%94 = getelementptr inbounds double, double* %66, i64 %39
%95 = load double, double* %94
%96 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %95)
%97 = getelementptr inbounds double, double* %66, i64 %42
%98 = load double, double* %97
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %98)
%100 = getelementptr inbounds double, double* %66, i64 %45
%101 = load double, double* %100
%102 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %101)
%103 = getelementptr inbounds double, double* %66, i64 %48
%104 = load double, double* %103
%105 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %104)
%106 = getelementptr inbounds double, double* %66, i64 %51
%107 = load double, double* %106
%108 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %107)
%109 = getelementptr inbounds double, double* %66, i64 %54
%110 = load double, double* %109
%111 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %110)
%112 = getelementptr inbounds double, double* %66, i64 %57
%113 = load double, double* %112
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %113)
%115 = tail call i32 @putchar(i32 10)
%116 = add nuw nsw i64 %62, 1
%117 = icmp eq i64 %116, %3
br i1 %117, label %118, label %61
118: ; preds = %61
%119 = tail call i32 @putchar(i32 10)
%120 = add nuw nsw i64 %10, 1
%121 = icmp eq i64 %120, %8
br i1 %121, label %122, label %9
122: ; preds = %118, %2
%123 = icmp sgt i32 %5, 0
br i1 %123, label %124, label %157
124: ; preds = %122
%125 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%126 = shl nsw i32 %4, 4
br label %127
127: ; preds = %124, %127
%128 = phi i32 [ 0, %124 ], [ %131, %127 ]
%129 = add nuw nsw i32 %128, %126
%130 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %129)
%131 = add nuw nsw i32 %128, 1
%132 = icmp eq i32 %131, %5
br i1 %132, label %133, label %127
133: ; preds = %127
%134 = tail call i32 @putchar(i32 10)
%135 = icmp sgt i32 %0, 0
br i1 %135, label %136, label %157
136: ; preds = %133
%137 = sext i32 %126 to i64
%138 = zext i32 %5 to i64
br label %139
139: ; preds = %153, %136
%140 = phi i64 [ 0, %136 ], [ %155, %153 ]
%141 = trunc i64 %140 to i32
%142 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %141)
%143 = mul nuw nsw i64 %140, %3
%144 = getelementptr inbounds double, double* %1, i64 %143
br label %145
145: ; preds = %139, %145
%146 = phi i64 [ 0, %139 ], [ %151, %145 ]
%147 = add nuw nsw i64 %146, %137
%148 = getelementptr inbounds double, double* %144, i64 %147
%149 = load double, double* %148
%150 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %149)
%151 = add nuw nsw i64 %146, 1
%152 = icmp eq i64 %151, %138
br i1 %152, label %153, label %145
153: ; preds = %145
%154 = tail call i32 @putchar(i32 10)
%155 = add nuw nsw i64 %140, 1
%156 = icmp eq i64 %155, %3
br i1 %156, label %157, label %139
157: ; preds = %153, %133, %122
ret void
}