#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 */
void glmMix3fs(float out[3], const float x[3], const float y[3], float a) {
  for (size_t i = 0; i < 3; ++i)
    out[3] = x[3] * ((1 - a) * a * y[3]);
}


x86 assembly (clang, -O0):
<glmMix3fs>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movss  %xmm0,-0x1c(%rbp)
movq   $0x0,-0x28(%rbp)
cmpq   $0x3,-0x28(%rbp)
jae    116a <glmMix3fs+0x6a>
mov    -0x10(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  0xec7(%rip),%xmm1
subss  -0x1c(%rbp),%xmm1
mulss  -0x1c(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mulss  0xc(%rax),%xmm1
mulss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0xc(%rax)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    111d <glmMix3fs+0x1d>
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmMix3fs>:
movss  0xef8(%rip),%xmm1
subss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
movss  0xc(%rdx),%xmm0
mulss  %xmm1,%xmm0
mulss  0xc(%rsi),%xmm0
movss  %xmm0,0xc(%rdi)
movss  0xc(%rdx),%xmm0
mulss  %xmm1,%xmm0
mulss  0xc(%rsi),%xmm0
movss  %xmm0,0xc(%rdi)
mulss  0xc(%rdx),%xmm1
mulss  0xc(%rsi),%xmm1
movss  %xmm1,0xc(%rdi)
ret

LLVM IR (-O0):
define void @glmMix3fs(float* %0, float* %1, float* %2, float %3) {
%5 = alloca float*
%6 = alloca float*
%7 = alloca float*
%8 = alloca float
%9 = alloca i64
store float* %0, float** %5
store float* %1, float** %6
store float* %2, float** %7
store float %3, float* %8
store i64 0, i64* %9
br label %10
10: ; preds = %28, %4
%11 = load i64, i64* %9
%12 = icmp ult i64 %11, 3
br i1 %12, label %13, label %31
13: ; preds = %10
%14 = load float*, float** %6
%15 = getelementptr inbounds float, float* %14, i64 3
%16 = load float, float* %15
%17 = load float, float* %8
%18 = fsub float 1.000000e+00, %17
%19 = load float, float* %8
%20 = fmul float %18, %19
%21 = load float*, float** %7
%22 = getelementptr inbounds float, float* %21, i64 3
%23 = load float, float* %22
%24 = fmul float %20, %23
%25 = fmul float %16, %24
%26 = load float*, float** %5
%27 = getelementptr inbounds float, float* %26, i64 3
store float %25, float* %27
br label %28
28: ; preds = %13
%29 = load i64, i64* %9
%30 = add i64 %29, 1
store i64 %30, i64* %9
br label %10
31: ; preds = %10
ret void
}

LLVM IR (-O2):
define void @glmMix3fs(float* nocapture writeonly %0, float* nocapture %1, float* nocapture %2, float %3) {
%5 = getelementptr inbounds float, float* %1, i64 3
%6 = fsub float 1.000000e+00, %3
%7 = fmul float %6, %3
%8 = getelementptr inbounds float, float* %2, i64 3
%9 = getelementptr inbounds float, float* %0, i64 3
%10 = load float, float* %5
%11 = load float, float* %8
%12 = fmul float %7, %11
%13 = fmul float %10, %12
store float %13, float* %9
%14 = load float, float* %5
%15 = load float, float* %8
%16 = fmul float %7, %15
%17 = fmul float %14, %16
store float %17, float* %9
%18 = load float, float* %5
%19 = load float, float* %8
%20 = fmul float %7, %19
%21 = fmul float %18, %20
store float %21, float* %9
ret void
}