#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*/ msg_print(char *, float const, float const, float const);
void report(const float a0[3], const float a1[3], const float b0[3],
            const float b1[3]) {
  enum { X, Y, Z };
  msg_print("a0: %g %g %g", a0[X], a0[Y], a0[Z]);
  msg_print("a1: %g %g %g", a1[X], a1[Y], a1[Z]);
  msg_print("b0: %g %g %g", b0[X], b0[Y], b0[Z]);
  msg_print("b1: %g %g %g", b1[X], b1[Y], b1[Z]);
}


x86 assembly (clang, -O0):
<report>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm2
lea    0xeb7(%rip),%rdi
call   1030 <msg_print@plt>
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm2
lea    0xe9e(%rip),%rdi
call   1030 <msg_print@plt>
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x18(%rbp),%rax
movss  0x8(%rax),%xmm2
lea    0xe85(%rip),%rdi
call   1030 <msg_print@plt>
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x20(%rbp),%rax
movss  0x8(%rax),%xmm2
lea    0xe6c(%rip),%rdi
call   1030 <msg_print@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<report>:
push   %r15
push   %r14
push   %rbx
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
movss  (%rdi),%xmm0
movss  0x4(%rdi),%xmm1
movss  0x8(%rdi),%xmm2
lea    0xecd(%rip),%rdi
call   1030 <msg_print@plt>
movss  (%rbx),%xmm0
movss  0x4(%rbx),%xmm1
movss  0x8(%rbx),%xmm2
lea    0xec0(%rip),%rdi
call   1030 <msg_print@plt>
movss  (%r15),%xmm0
movss  0x4(%r15),%xmm1
movss  0x8(%r15),%xmm2
lea    0xeb0(%rip),%rdi
call   1030 <msg_print@plt>
movss  (%r14),%xmm0
movss  0x4(%r14),%xmm1
movss  0x8(%r14),%xmm2
lea    0xea0(%rip),%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <msg_print@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"a0: %g %g %g\00"
@.str.1 = [13 x i8] c"a1: %g %g %g\00"
@.str.2 = [13 x i8] c"b0: %g %g %g\00"
@.str.3 = [13 x i8] c"b1: %g %g %g\00"
define void @report(float* %0, float* %1, float* %2, float* %3) {
%5 = alloca float*
%6 = alloca float*
%7 = alloca float*
%8 = alloca float*
store float* %0, float** %5
store float* %1, float** %6
store float* %2, float** %7
store float* %3, float** %8
%9 = load float*, float** %5
%10 = getelementptr inbounds float, float* %9, i64 0
%11 = load float, float* %10
%12 = load float*, float** %5
%13 = getelementptr inbounds float, float* %12, i64 1
%14 = load float, float* %13
%15 = load float*, float** %5
%16 = getelementptr inbounds float, float* %15, i64 2
%17 = load float, float* %16
%18 = call i32 @msg_print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float %11, float %14, float %17)
%19 = load float*, float** %6
%20 = getelementptr inbounds float, float* %19, i64 0
%21 = load float, float* %20
%22 = load float*, float** %6
%23 = getelementptr inbounds float, float* %22, i64 1
%24 = load float, float* %23
%25 = load float*, float** %6
%26 = getelementptr inbounds float, float* %25, i64 2
%27 = load float, float* %26
%28 = call i32 @msg_print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float %21, float %24, float %27)
%29 = load float*, float** %7
%30 = getelementptr inbounds float, float* %29, i64 0
%31 = load float, float* %30
%32 = load float*, float** %7
%33 = getelementptr inbounds float, float* %32, i64 1
%34 = load float, float* %33
%35 = load float*, float** %7
%36 = getelementptr inbounds float, float* %35, i64 2
%37 = load float, float* %36
%38 = call i32 @msg_print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), float %31, float %34, float %37)
%39 = load float*, float** %8
%40 = getelementptr inbounds float, float* %39, i64 0
%41 = load float, float* %40
%42 = load float*, float** %8
%43 = getelementptr inbounds float, float* %42, i64 1
%44 = load float, float* %43
%45 = load float*, float** %8
%46 = getelementptr inbounds float, float* %45, i64 2
%47 = load float, float* %46
%48 = call i32 @msg_print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), float %41, float %44, float %47)
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"a0: %g %g %g\00"
@.str.1 = [13 x i8] c"a1: %g %g %g\00"
@.str.2 = [13 x i8] c"b0: %g %g %g\00"
@.str.3 = [13 x i8] c"b1: %g %g %g\00"
define void @report(float* nocapture %0, float* nocapture %1, float* nocapture %2, float* nocapture %3) {
%5 = load float, float* %0
%6 = getelementptr inbounds float, float* %0, i64 1
%7 = load float, float* %6
%8 = getelementptr inbounds float, float* %0, i64 2
%9 = load float, float* %8
%10 = tail call i32 @msg_print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float %5, float %7, float %9)
%11 = load float, float* %1
%12 = getelementptr inbounds float, float* %1, i64 1
%13 = load float, float* %12
%14 = getelementptr inbounds float, float* %1, i64 2
%15 = load float, float* %14
%16 = tail call i32 @msg_print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float %11, float %13, float %15)
%17 = load float, float* %2
%18 = getelementptr inbounds float, float* %2, i64 1
%19 = load float, float* %18
%20 = getelementptr inbounds float, float* %2, i64 2
%21 = load float, float* %20
%22 = tail call i32 @msg_print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), float %17, float %19, float %21)
%23 = load float, float* %3
%24 = getelementptr inbounds float, float* %3, i64 1
%25 = load float, float* %24
%26 = getelementptr inbounds float, float* %3, i64 2
%27 = load float, float* %26
%28 = tail call i32 @msg_print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), float %23, float %25, float %27)
ret void
}