#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_int(int *, int const, int const, unsigned long const,
                           unsigned long const, int const, int *, int *);
char *tng_compress_vel_int_find_algo(int *vel, const int natoms,
                                     const int nframes,
                                     const unsigned long prec_hi,
                                     const unsigned long prec_lo,
                                     const int speed, int *algo, int *nitems) {
  algo[0] = -1;
  algo[1] = -1;
  algo[2] = -1;
  algo[3] = -1;
  return tng_compress_vel_int(vel, natoms, nframes, prec_hi, prec_lo, speed,
                              algo, nitems);
}


x86 assembly (clang, -O0):
<tng_compress_vel_int_find_algo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
mov    0x10(%rbp),%rax
movl   $0xffffffff,(%rax)
mov    0x10(%rbp),%rax
movl   $0xffffffff,0x4(%rax)
mov    0x10(%rbp),%rax
movl   $0xffffffff,0x8(%rax)
mov    0x10(%rbp),%rax
movl   $0xffffffff,0xc(%rax)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x24(%rbp),%r9d
mov    0x10(%rbp),%r10
mov    0x18(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <tng_compress_vel_int@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tng_compress_vel_int_find_algo>:
mov    0x8(%rsp),%rax
pcmpeqd %xmm0,%xmm0
movdqu %xmm0,(%rax)
jmp    1030 <tng_compress_vel_int@plt>

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

LLVM IR (-O2):
define i8* @tng_compress_vel_int_find_algo(i32* %0, i32 %1, i32 %2, i64 %3, i64 %4, i32 %5, i32* %6, i32* %7) {
%9 = bitcast i32* %6 to i8*
%10 = tail call i8* @tng_compress_vel_int(i32* %0, i32 %1, i32 %2, i64 %3, i64 %4, i32 %5, i32* %6, i32* %7)
ret i8* %10
}