#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);
int spg_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) {
  return get_symmetry_from_dataset(rotation, translation, max_size, lattice,
                                   position, types, num_atom, symprec, -1.0);
}


x86 assembly (clang, -O0):
<spg_get_symmetry>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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)
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  0xea2(%rip),%xmm1
mov    %eax,(%rsp)
call   1030 <get_symmetry_from_dataset@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spg_get_symmetry>:
movsd  0xee8(%rip),%xmm1
jmp    1030 <get_symmetry_from_dataset@plt>

LLVM IR (-O0):
define i32 @spg_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) {
%9 = alloca [3 x [3 x i32]]*
%10 = alloca [3 x double]*
%11 = alloca i32
%12 = alloca [3 x double]*
%13 = alloca [3 x double]*
%14 = alloca i32*
%15 = alloca i32
%16 = alloca double
store [3 x [3 x i32]]* %0, [3 x [3 x i32]]** %9
store [3 x double]* %1, [3 x double]** %10
store i32 %2, i32* %11
store [3 x double]* %3, [3 x double]** %12
store [3 x double]* %4, [3 x double]** %13
store i32* %5, i32** %14
store i32 %6, i32* %15
store double %7, double* %16
%17 = load [3 x [3 x i32]]*, [3 x [3 x i32]]** %9
%18 = bitcast [3 x [3 x i32]]* %17 to i32***
%19 = load [3 x double]*, [3 x double]** %10
%20 = bitcast [3 x double]* %19 to double**
%21 = load i32, i32* %11
%22 = load [3 x double]*, [3 x double]** %12
%23 = bitcast [3 x double]* %22 to double**
%24 = load [3 x double]*, [3 x double]** %13
%25 = bitcast [3 x double]* %24 to double**
%26 = load i32*, i32** %14
%27 = load i32, i32* %15
%28 = load double, double* %16
%29 = call i32 @get_symmetry_from_dataset(i32*** %18, double** %20, i32 %21, double** %23, double** %25, i32* %26, i32 %27, double %28, double -1.000000e+00)
ret i32 %29
}

LLVM IR (-O2):
define i32 @spg_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) {
%9 = bitcast [3 x [3 x i32]]* %0 to i32***
%10 = bitcast [3 x double]* %1 to double**
%11 = bitcast [3 x double]* %3 to double**
%12 = bitcast [3 x double]* %4 to double**
%13 = tail call i32 @get_symmetry_from_dataset(i32*** %9, double** %10, i32 %2, double** %11, double** %12, i32* %5, i32 %6, double %7, double -1.000000e+00)
ret i32 %13
}