#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*/ c_print(char *, char const *, float const, float const,
                           float const, float const);
void print_matrix_floats(const char *prefix, const float m[16]) {
  int i;
  for (i = 0; i < 4; i++)
    c_print("%s\t%f %f %f %f\n", prefix, m[i], m[4 + i], m[8 + i], m[12 + i]);
}


x86 assembly (clang, -O0):
<print_matrix_floats>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    1192 <print_matrix_floats+0x82>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x4,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x8,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm2
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0xc,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm3
lea    0xe81(%rip),%rdi
call   1030 <c_print@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1127 <print_matrix_floats+0x17>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_matrix_floats>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%r14
movss  (%rsi),%xmm0
movss  0x10(%rsi),%xmm1
movss  0x20(%rsi),%xmm2
movss  0x30(%rsi),%xmm3
lea    0xecb(%rip),%r15
mov    %r15,%rdi
mov    %r14,%rsi
call   1030 <c_print@plt>
movss  0x4(%rbx),%xmm0
movss  0x14(%rbx),%xmm1
movss  0x24(%rbx),%xmm2
movss  0x34(%rbx),%xmm3
mov    %r15,%rdi
mov    %r14,%rsi
call   1030 <c_print@plt>
movss  0x8(%rbx),%xmm0
movss  0x18(%rbx),%xmm1
movss  0x28(%rbx),%xmm2
movss  0x38(%rbx),%xmm3
mov    %r15,%rdi
mov    %r14,%rsi
call   1030 <c_print@plt>
movss  0xc(%rbx),%xmm0
movss  0x1c(%rbx),%xmm1
movss  0x2c(%rbx),%xmm2
movss  0x3c(%rbx),%xmm3
mov    %r15,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <c_print@plt>

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

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