#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 _ada_use_c2phc(int, int *, int *, double *, int);
int get_gamma_constant(double *regamma, double *imgamma, int precision,
                       int vrb) {
  int fail = 1;
  int *b;
  double c[2];
  fail = _ada_use_c2phc(995, &precision, b, c, vrb);
  *regamma = c[0];
  *imgamma = c[1];
  return fail;
}


x86 assembly (clang, -O0):
<get_gamma_constant>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
mov    -0x28(%rbp),%rdx
lea    -0x40(%rbp),%rcx
mov    -0x18(%rbp),%r8d
mov    $0x3e3,%edi
lea    -0x14(%rbp),%rsi
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x1c(%rbp)
movsd  -0x40(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x38(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x1c(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_gamma_constant>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %ecx,%r8d
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %edx,0xc(%rsp)
lea    0xc(%rsp),%rsi
lea    0x10(%rsp),%rcx
mov    $0x3e3,%edi
call   1030 <_ada_use_c2phc@plt>
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,(%rbx)
movsd  0x18(%rsp),%xmm0
movsd  %xmm0,(%r14)
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @get_gamma_constant(double* %0, double* %1, i32 %2, i32 %3) {
%5 = alloca double*
%6 = alloca double*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32*
%11 = alloca [2 x double]
store double* %0, double** %5
store double* %1, double** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
store i32 1, i32* %9
%12 = load i32*, i32** %10
%13 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 0
%14 = load i32, i32* %8
%15 = call i32 @_ada_use_c2phc(i32 995, i32* %7, i32* %12, double* %13, i32 %14)
store i32 %15, i32* %9
%16 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 0
%17 = load double, double* %16
%18 = load double*, double** %5
store double %17, double* %18
%19 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 1
%20 = load double, double* %19
%21 = load double*, double** %6
store double %20, double* %21
%22 = load i32, i32* %9
ret i32 %22
}

LLVM IR (-O2):
define i32 @get_gamma_constant(double* nocapture writeonly %0, double* nocapture writeonly %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca [2 x double]
store i32 %2, i32* %5
%7 = bitcast [2 x double]* %6 to i8*
%8 = getelementptr inbounds [2 x double], [2 x double]* %6, i64 0, i64 0
%9 = call i32 @_ada_use_c2phc(i32 995, i32* %5, i32* undef, double* %8, i32 %3)
%10 = load double, double* %8
store double %10, double* %0
%11 = getelementptr inbounds [2 x double], [2 x double]* %6, i64 0, i64 1
%12 = load double, double* %11
store double %12, double* %1
ret i32 %9
}