#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 */
char *tng_compress_vel_float(float *, int const, int const, float const,
                             int const, int *, int *);
char *tng_compress_vel_float_find_algo(float *vel, const int natoms,
                                       const int nframes,
                                       const float desired_precision,
                                       const int speed, int *algo,
                                       int *nitems) {
  algo[0] = -1;
  algo[1] = -1;
  algo[2] = -1;
  algo[3] = -1;
  return tng_compress_vel_float(vel, natoms, nframes, desired_precision, speed,
                                algo, nitems);
}


x86 assembly (clang, -O0):
<tng_compress_vel_float_find_algo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x20(%rbp),%rax
movl   $0xffffffff,(%rax)
mov    -0x20(%rbp),%rax
movl   $0xffffffff,0x4(%rax)
mov    -0x20(%rbp),%rax
movl   $0xffffffff,0x8(%rax)
mov    -0x20(%rbp),%rax
movl   $0xffffffff,0xc(%rax)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
movss  -0x14(%rbp),%xmm0
mov    -0x18(%rbp),%ecx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
call   1030 <tng_compress_vel_float@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tng_compress_vel_float_find_algo>:
pcmpeqd %xmm1,%xmm1
movdqu %xmm1,(%r8)
jmp    1030 <tng_compress_vel_float@plt>

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

LLVM IR (-O2):
define i8* @tng_compress_vel_float_find_algo(float* %0, i32 %1, i32 %2, float %3, i32 %4, i32* %5, i32* %6) {
%8 = bitcast i32* %5 to i8*
%9 = tail call i8* @tng_compress_vel_float(float* %0, i32 %1, i32 %2, float %3, i32 %4, i32* %5, i32* %6)
ret i8* %9
}