#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_ir_reciprocal_mesh(int **, int *, int const *, int const *, int const,
                           double **, double **, int const *, int const,
                           double const, double);
int spg_get_ir_reciprocal_mesh(int grid_address[][3], int ir_mapping_table[],
                               const int mesh[3], const int is_shift[3],
                               const int is_time_reversal, double lattice[3][3],
                               double position[][3], const int types[],
                               const int num_atom, const double symprec) {
  return get_ir_reciprocal_mesh(grid_address, ir_mapping_table, mesh, is_shift,
                                is_time_reversal, lattice, position, types,
                                num_atom, symprec, -1.0);
}


x86 assembly (clang, -O0):
<spg_get_ir_reciprocal_mesh>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x20(%rbp),%eax
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    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%r8d
mov    -0x30(%rbp),%r9
mov    0x10(%rbp),%r11
mov    0x18(%rbp),%r10
mov    0x20(%rbp),%eax
movsd  -0x38(%rbp),%xmm0
movsd  0xe90(%rip),%xmm1
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1030 <get_ir_reciprocal_mesh@plt>
add    $0x50,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @spg_get_ir_reciprocal_mesh([3 x i32]* %0, i32* %1, i32* %2, i32* %3, i32 %4, [3 x double]* %5, [3 x double]* %6, i32* %7, i32 %8, double %9) {
%11 = bitcast [3 x i32]* %0 to i32**
%12 = bitcast [3 x double]* %5 to double**
%13 = bitcast [3 x double]* %6 to double**
%14 = tail call i32 @get_ir_reciprocal_mesh(i32** %11, i32* %1, i32* %2, i32* %3, i32 %4, double** %12, double** %13, i32* %7, i32 %8, double %9, double -1.000000e+00)
ret i32 %14
}