#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 */
int get_symmetry_from_dataset(int ***, double **, int const, double **,
                              double **, int const *, int const, double const,
                              double const);
int spgat_get_symmetry(int rotation[][3][3], double translation[][3],
                       const int max_size, double lattice[3][3],
                       double position[][3], const int types[],
                       const int num_atom, const double symprec,
                       const double angle_tolerance) {
  return get_symmetry_from_dataset(rotation, translation, max_size, lattice,
                                   position, types, num_atom, symprec,
                                   angle_tolerance);
}


x86 assembly (clang, -O0):
<spgat_get_symmetry>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movsd  %xmm0,-0x38(%rbp)
movsd  %xmm1,-0x40(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    0x10(%rbp),%eax
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
mov    %eax,(%rsp)
call   1030 <get_symmetry_from_dataset@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spgat_get_symmetry>:
jmp    1030 <get_symmetry_from_dataset@plt>

LLVM IR (-O0):
define i32 @spgat_get_symmetry([3 x [3 x i32]]* %0, [3 x double]* %1, i32 %2, [3 x double]* %3, [3 x double]* %4, i32* %5, i32 %6, double %7, double %8) {
%10 = alloca [3 x [3 x i32]]*
%11 = alloca [3 x double]*
%12 = alloca i32
%13 = alloca [3 x double]*
%14 = alloca [3 x double]*
%15 = alloca i32*
%16 = alloca i32
%17 = alloca double
%18 = alloca double
store [3 x [3 x i32]]* %0, [3 x [3 x i32]]** %10
store [3 x double]* %1, [3 x double]** %11
store i32 %2, i32* %12
store [3 x double]* %3, [3 x double]** %13
store [3 x double]* %4, [3 x double]** %14
store i32* %5, i32** %15
store i32 %6, i32* %16
store double %7, double* %17
store double %8, double* %18
%19 = load [3 x [3 x i32]]*, [3 x [3 x i32]]** %10
%20 = bitcast [3 x [3 x i32]]* %19 to i32***
%21 = load [3 x double]*, [3 x double]** %11
%22 = bitcast [3 x double]* %21 to double**
%23 = load i32, i32* %12
%24 = load [3 x double]*, [3 x double]** %13
%25 = bitcast [3 x double]* %24 to double**
%26 = load [3 x double]*, [3 x double]** %14
%27 = bitcast [3 x double]* %26 to double**
%28 = load i32*, i32** %15
%29 = load i32, i32* %16
%30 = load double, double* %17
%31 = load double, double* %18
%32 = call i32 @get_symmetry_from_dataset(i32*** %20, double** %22, i32 %23, double** %25, double** %27, i32* %28, i32 %29, double %30, double %31)
ret i32 %32
}

LLVM IR (-O2):
define i32 @spgat_get_symmetry([3 x [3 x i32]]* %0, [3 x double]* %1, i32 %2, [3 x double]* %3, [3 x double]* %4, i32* %5, i32 %6, double %7, double %8) {
%10 = bitcast [3 x [3 x i32]]* %0 to i32***
%11 = bitcast [3 x double]* %1 to double**
%12 = bitcast [3 x double]* %3 to double**
%13 = bitcast [3 x double]* %4 to double**
%14 = tail call i32 @get_symmetry_from_dataset(i32*** %10, double** %11, i32 %2, double** %12, double** %13, i32* %5, i32 %6, double %7, double %8)
ret i32 %14
}