#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 *, float);
void print_matrix(float A[6][10 + 1]) {
  int i, j;
  for (i = 0; i < 6; i++) {
    for (j = 0; j < 10; j++)
      printf("%.2f\t", A[i][j]);
    printf("\t%.2f\n", A[i][j]);
  }
}


x86 assembly (clang, -O0):
<print_matrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x6,-0xc(%rbp)
jge    11a2 <print_matrix+0x92>
movl   $0x0,-0x10(%rbp)
cmpl   $0xa,-0x10(%rbp)
jge    1170 <print_matrix+0x60>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x2c,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1134 <print_matrix+0x24>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x2c,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <print_matrix+0x13>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_matrix>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r12
mov    $0x28,%ebx
lea    0xed9(%rip),%r14
lea    0xed8(%rip),%r15
xchg   %ax,%ax
movss  -0x28(%r12,%rbx,1),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movss  -0x24(%r12,%rbx,1),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movss  -0x20(%r12,%rbx,1),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movss  -0x1c(%r12,%rbx,1),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movss  -0x18(%r12,%rbx,1),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movss  -0x14(%r12,%rbx,1),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movss  -0x10(%r12,%rbx,1),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movss  -0xc(%r12,%rbx,1),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movss  -0x8(%r12,%rbx,1),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movss  -0x4(%r12,%rbx,1),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
movss  (%r12,%rbx,1),%xmm0
mov    %r15,%rdi
call   1030 <printf@plt>
add    $0x2c,%rbx
cmp    $0x130,%rbx
jne    1130 <print_matrix+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%.2f\09\00"
@.str.1 = [7 x i8] c"\09%.2f\0A\00"
define void @print_matrix([11 x float]* %0) {
%2 = alloca [11 x float]*
%3 = alloca i32
%4 = alloca i32
store [11 x float]* %0, [11 x float]** %2
store i32 0, i32* %3
br label %5
5: ; preds = %35, %1
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 6
br i1 %7, label %8, label %38
8: ; preds = %5
store i32 0, i32* %4
br label %9
9: ; preds = %22, %8
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %25
12: ; preds = %9
%13 = load [11 x float]*, [11 x float]** %2
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [11 x float], [11 x float]* %13, i64 %15
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [11 x float], [11 x float]* %16, i64 0, i64 %18
%20 = load float, float* %19
%21 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float %20)
br label %22
22: ; preds = %12
%23 = load i32, i32* %4
%24 = add nsw i32 %23, 1
store i32 %24, i32* %4
br label %9
25: ; preds = %9
%26 = load [11 x float]*, [11 x float]** %2
%27 = load i32, i32* %3
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [11 x float], [11 x float]* %26, i64 %28
%30 = load i32, i32* %4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [11 x float], [11 x float]* %29, i64 0, i64 %31
%33 = load float, float* %32
%34 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float %33)
br label %35
35: ; preds = %25
%36 = load i32, i32* %3
%37 = add nsw i32 %36, 1
store i32 %37, i32* %3
br label %5
38: ; preds = %5
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"%.2f\09\00"
@.str.1 = [7 x i8] c"\09%.2f\0A\00"
define void @print_matrix([11 x float]* nocapture %0) {
br label %2
2: ; preds = %1, %2
%3 = phi i64 [ 0, %1 ], [ %37, %2 ]
%4 = getelementptr inbounds [11 x float], [11 x float]* %0, i64 %3, i64 0
%5 = load float, float* %4
%6 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float %5)
%7 = getelementptr inbounds [11 x float], [11 x float]* %0, i64 %3, i64 1
%8 = load float, float* %7
%9 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float %8)
%10 = getelementptr inbounds [11 x float], [11 x float]* %0, i64 %3, i64 2
%11 = load float, float* %10
%12 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float %11)
%13 = getelementptr inbounds [11 x float], [11 x float]* %0, i64 %3, i64 3
%14 = load float, float* %13
%15 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float %14)
%16 = getelementptr inbounds [11 x float], [11 x float]* %0, i64 %3, i64 4
%17 = load float, float* %16
%18 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float %17)
%19 = getelementptr inbounds [11 x float], [11 x float]* %0, i64 %3, i64 5
%20 = load float, float* %19
%21 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float %20)
%22 = getelementptr inbounds [11 x float], [11 x float]* %0, i64 %3, i64 6
%23 = load float, float* %22
%24 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float %23)
%25 = getelementptr inbounds [11 x float], [11 x float]* %0, i64 %3, i64 7
%26 = load float, float* %25
%27 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float %26)
%28 = getelementptr inbounds [11 x float], [11 x float]* %0, i64 %3, i64 8
%29 = load float, float* %28
%30 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float %29)
%31 = getelementptr inbounds [11 x float], [11 x float]* %0, i64 %3, i64 9
%32 = load float, float* %31
%33 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float %32)
%34 = getelementptr inbounds [11 x float], [11 x float]* %0, i64 %3, i64 10
%35 = load float, float* %34
%36 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float %35)
%37 = add nuw nsw i64 %3, 1
%38 = icmp eq i64 %37, 6
br i1 %38, label %39, label %2
39: ; preds = %2
ret void
}