#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 glmLessThanEqual3fv(bool out[3], const float x[3], const float y[3]) {
  for (size_t i = 0; i < 3; ++i)
    out[i] = x[i] <= y[i];
}


x86 assembly (clang, -O0):
<glmLessThanEqual3fv>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
cmpq   $0x3,-0x20(%rbp)
jae    1164 <glmLessThanEqual3fv+0x64>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x20(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
ucomiss %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%edx
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1118 <glmLessThanEqual3fv+0x18>
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmLessThanEqual3fv>:
movss  (%rdx),%xmm0
xor    %eax,%eax
ucomiss (%rsi),%xmm0
setae  %al
mov    %eax,(%rdi)
movss  0x4(%rdx),%xmm0
xor    %eax,%eax
ucomiss 0x4(%rsi),%xmm0
setae  %al
mov    %eax,0x4(%rdi)
movss  0x8(%rdx),%xmm0
xor    %eax,%eax
ucomiss 0x8(%rsi),%xmm0
setae  %al
mov    %eax,0x8(%rdi)
ret

LLVM IR (-O0):
define void @glmLessThanEqual3fv(i32* %0, float* %1, float* %2) {
%4 = alloca i32*
%5 = alloca float*
%6 = alloca float*
%7 = alloca i64
store i32* %0, i32** %4
store float* %1, float** %5
store float* %2, float** %6
store i64 0, i64* %7
br label %8
8: ; preds = %25, %3
%9 = load i64, i64* %7
%10 = icmp ult i64 %9, 3
br i1 %10, label %11, label %28
11: ; preds = %8
%12 = load float*, float** %5
%13 = load i64, i64* %7
%14 = getelementptr inbounds float, float* %12, i64 %13
%15 = load float, float* %14
%16 = load float*, float** %6
%17 = load i64, i64* %7
%18 = getelementptr inbounds float, float* %16, i64 %17
%19 = load float, float* %18
%20 = fcmp ole float %15, %19
%21 = zext i1 %20 to i32
%22 = load i32*, i32** %4
%23 = load i64, i64* %7
%24 = getelementptr inbounds i32, i32* %22, i64 %23
store i32 %21, i32* %24
br label %25
25: ; preds = %11
%26 = load i64, i64* %7
%27 = add i64 %26, 1
store i64 %27, i64* %7
br label %8
28: ; preds = %8
ret void
}

LLVM IR (-O2):
define void @glmLessThanEqual3fv(i32* nocapture writeonly %0, float* nocapture %1, float* nocapture %2) {
%4 = load float, float* %1
%5 = load float, float* %2
%6 = fcmp ole float %4, %5
%7 = zext i1 %6 to i32
store i32 %7, i32* %0
%8 = getelementptr inbounds float, float* %1, i64 1
%9 = load float, float* %8
%10 = getelementptr inbounds float, float* %2, i64 1
%11 = load float, float* %10
%12 = fcmp ole float %9, %11
%13 = zext i1 %12 to i32
%14 = getelementptr inbounds i32, i32* %0, i64 1
store i32 %13, i32* %14
%15 = getelementptr inbounds float, float* %1, i64 2
%16 = load float, float* %15
%17 = getelementptr inbounds float, float* %2, i64 2
%18 = load float, float* %17
%19 = fcmp ole float %16, %18
%20 = zext i1 %19 to i32
%21 = getelementptr inbounds i32, i32* %0, i64 2
store i32 %20, i32* %21
ret void
}