#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 const, float const, float const,
                          float const, float const, float const, float const,
                          float const, float const);
void mlTrianglePrint(const float *a) {
  printf("[(%f, %f, %f), (%f, %f, %f), (%f, %f, %f)]", a[0], a[1], a[2], a[3],
         a[4], a[5], a[6], a[7], a[8]);
}


x86 assembly (clang, -O0):
<mlTrianglePrint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm2
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm3
mov    -0x8(%rbp),%rax
movss  0x10(%rax),%xmm4
mov    -0x8(%rbp),%rax
movss  0x14(%rax),%xmm5
mov    -0x8(%rbp),%rax
movss  0x18(%rax),%xmm6
mov    -0x8(%rbp),%rax
movss  0x1c(%rax),%xmm7
mov    -0x8(%rbp),%rax
movss  0x20(%rax),%xmm8
lea    0xe8c(%rip),%rdi
movss  %xmm8,(%rsp)
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mlTrianglePrint>:
push   %rax
movss  (%rdi),%xmm0
movss  0x4(%rdi),%xmm1
movss  0x8(%rdi),%xmm2
movss  0xc(%rdi),%xmm3
movss  0x10(%rdi),%xmm4
movss  0x14(%rdi),%xmm5
movss  0x18(%rdi),%xmm6
movss  0x1c(%rdi),%xmm7
movss  0x20(%rdi),%xmm8
movss  %xmm8,(%rsp)
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [43 x i8] c"[(%f, %f, %f), (%f, %f, %f), (%f, %f, %f)]\00"
define void @mlTrianglePrint(float* %0) {
%2 = alloca float*
store float* %0, float** %2
%3 = load float*, float** %2
%4 = getelementptr inbounds float, float* %3, i64 0
%5 = load float, float* %4
%6 = load float*, float** %2
%7 = getelementptr inbounds float, float* %6, i64 1
%8 = load float, float* %7
%9 = load float*, float** %2
%10 = getelementptr inbounds float, float* %9, i64 2
%11 = load float, float* %10
%12 = load float*, float** %2
%13 = getelementptr inbounds float, float* %12, i64 3
%14 = load float, float* %13
%15 = load float*, float** %2
%16 = getelementptr inbounds float, float* %15, i64 4
%17 = load float, float* %16
%18 = load float*, float** %2
%19 = getelementptr inbounds float, float* %18, i64 5
%20 = load float, float* %19
%21 = load float*, float** %2
%22 = getelementptr inbounds float, float* %21, i64 6
%23 = load float, float* %22
%24 = load float*, float** %2
%25 = getelementptr inbounds float, float* %24, i64 7
%26 = load float, float* %25
%27 = load float*, float** %2
%28 = getelementptr inbounds float, float* %27, i64 8
%29 = load float, float* %28
%30 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), float %5, float %8, float %11, float %14, float %17, float %20, float %23, float %26, float %29)
ret void
}

LLVM IR (-O2):
@.str = [43 x i8] c"[(%f, %f, %f), (%f, %f, %f), (%f, %f, %f)]\00"
define void @mlTrianglePrint(float* nocapture %0) {
%2 = load float, float* %0
%3 = getelementptr inbounds float, float* %0, i64 1
%4 = load float, float* %3
%5 = getelementptr inbounds float, float* %0, i64 2
%6 = load float, float* %5
%7 = getelementptr inbounds float, float* %0, i64 3
%8 = load float, float* %7
%9 = getelementptr inbounds float, float* %0, i64 4
%10 = load float, float* %9
%11 = getelementptr inbounds float, float* %0, i64 5
%12 = load float, float* %11
%13 = getelementptr inbounds float, float* %0, i64 6
%14 = load float, float* %13
%15 = getelementptr inbounds float, float* %0, i64 7
%16 = load float, float* %15
%17 = getelementptr inbounds float, float* %0, i64 8
%18 = load float, float* %17
%19 = tail call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), float %2, float %4, float %6, float %8, float %10, float %12, float %14, float %16, float %18)
ret void
}