#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 spg_get_symmetry(int ***, double **, int, double **, double **, int *, int,
                     double);
void spg_get_symmetry_(int *nsym, int rot[][3][3], double trans[][3], int *size,
                       double lattice[3][3], double position[][3], int types[],
                       int *num_atom, double *symprec) {
  *nsym = spg_get_symmetry(rot, trans, *size, lattice, position, types,
                           *num_atom, *symprec);
}


x86 assembly (clang, -O0):
<spg_get_symmetry_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rax
mov    (%rax),%edx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    0x10(%rbp),%r9
mov    0x18(%rbp),%rax
mov    (%rax),%eax
mov    0x20(%rbp),%r10
movsd  (%r10),%xmm0
mov    %eax,(%rsp)
call   1030 <spg_get_symmetry@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spg_get_symmetry_>:
push   %rbx
sub    $0x10,%rsp
mov    %r9,%rax
mov    %rdi,%rbx
mov    0x20(%rsp),%r9
mov    0x30(%rsp),%r10
mov    0x28(%rsp),%rdi
mov    (%rcx),%ecx
mov    (%rdi),%edi
movsd  (%r10),%xmm0
mov    %edi,(%rsp)
mov    %rsi,%rdi
mov    %rdx,%rsi
mov    %ecx,%edx
mov    %r8,%rcx
mov    %rax,%r8
call   1030 <spg_get_symmetry@plt>
mov    %eax,(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define void @spg_get_symmetry_(i32* nocapture writeonly %0, [3 x [3 x i32]]* %1, [3 x double]* %2, i32* nocapture %3, [3 x double]* %4, [3 x double]* %5, i32* %6, i32* nocapture %7, double* nocapture %8) {
%10 = bitcast [3 x [3 x i32]]* %1 to i32***
%11 = bitcast [3 x double]* %2 to double**
%12 = load i32, i32* %3
%13 = bitcast [3 x double]* %4 to double**
%14 = bitcast [3 x double]* %5 to double**
%15 = load i32, i32* %7
%16 = load double, double* %8
%17 = tail call i32 @spg_get_symmetry(i32*** %10, double** %11, i32 %12, double** %13, double** %14, i32* %6, i32 %15, double %16)
store i32 %17, i32* %0
ret void
}