#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 */
float par_shapes__dot3(float *, float const *);
void par_shapes__transform3(float *p, float const *x, float const *y,
                            float const *z) {
  float px = par_shapes__dot3(p, x);
  float py = par_shapes__dot3(p, y);
  float pz = par_shapes__dot3(p, z);
  p[0] = px;
  p[1] = py;
  p[2] = pz;
}


x86 assembly (clang, -O0):
<par_shapes__transform3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <par_shapes__dot3@plt>
movss  %xmm0,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <par_shapes__dot3@plt>
movss  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <par_shapes__dot3@plt>
movss  %xmm0,-0x2c(%rbp)
movss  -0x24(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x28(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x4(%rax)
movss  -0x2c(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x8(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<par_shapes__transform3>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rdi,%rbx
call   1030 <par_shapes__dot3@plt>
movss  %xmm0,0xc(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <par_shapes__dot3@plt>
movss  %xmm0,0x8(%rsp)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <par_shapes__dot3@plt>
movss  0xc(%rsp),%xmm1
movss  %xmm1,(%rbx)
movss  0x8(%rsp),%xmm1
movss  %xmm1,0x4(%rbx)
movss  %xmm0,0x8(%rbx)
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @par_shapes__transform3(float* %0, float* %1, float* %2, float* %3) {
%5 = alloca float*
%6 = alloca float*
%7 = alloca float*
%8 = alloca float*
%9 = alloca float
%10 = alloca float
%11 = alloca float
store float* %0, float** %5
store float* %1, float** %6
store float* %2, float** %7
store float* %3, float** %8
%12 = load float*, float** %5
%13 = load float*, float** %6
%14 = call float @par_shapes__dot3(float* %12, float* %13)
store float %14, float* %9
%15 = load float*, float** %5
%16 = load float*, float** %7
%17 = call float @par_shapes__dot3(float* %15, float* %16)
store float %17, float* %10
%18 = load float*, float** %5
%19 = load float*, float** %8
%20 = call float @par_shapes__dot3(float* %18, float* %19)
store float %20, float* %11
%21 = load float, float* %9
%22 = load float*, float** %5
%23 = getelementptr inbounds float, float* %22, i64 0
store float %21, float* %23
%24 = load float, float* %10
%25 = load float*, float** %5
%26 = getelementptr inbounds float, float* %25, i64 1
store float %24, float* %26
%27 = load float, float* %11
%28 = load float*, float** %5
%29 = getelementptr inbounds float, float* %28, i64 2
store float %27, float* %29
ret void
}

LLVM IR (-O2):
define void @par_shapes__transform3(float* %0, float* %1, float* %2, float* %3) {
%5 = tail call float @par_shapes__dot3(float* %0, float* %1)
%6 = tail call float @par_shapes__dot3(float* %0, float* %2)
%7 = tail call float @par_shapes__dot3(float* %0, float* %3)
store float %5, float* %0
%8 = getelementptr inbounds float, float* %0, i64 1
store float %6, float* %8
%9 = getelementptr inbounds float, float* %0, i64 2
store float %7, float* %9
ret void
}