#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 */
double pow(double, int);
double t1_cos_theta(int, int, int);
double t1_g(int i, int j, int k) {
  return 1 + pow(4.8381, 2) / pow(2.0417, 2) -
         pow(4.8381, 2) / (pow(2.0417, 2) + (0.0 - t1_cos_theta(i, j, k)));
}


x86 assembly (clang, -O0):
<t1_g>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movsd  0xecf(%rip),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  0xeb0(%rip),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  -0x30(%rbp),%xmm1
divsd  %xmm0,%xmm1
movsd  0xea5(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe8c(%rip),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  0xe6d(%rip),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  %xmm0,-0x28(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1030 <t1_cos_theta@plt>
movsd  -0x28(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm1
movaps %xmm0,%xmm4
movsd  -0x18(%rbp),%xmm0
xorps  %xmm3,%xmm3
subsd  %xmm4,%xmm3
addsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t1_g>:
push   %rbp
push   %r14
push   %rbx
sub    $0x40,%rsp
mov    %edx,%r14d
mov    %esi,%ebp
mov    %edi,%ebx
movsd  0xec9(%rip),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movaps %xmm0,0x30(%rsp)
movsd  0xeba(%rip),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movaps %xmm0,0x20(%rsp)
movsd  0xe9b(%rip),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movaps %xmm0,0x10(%rsp)
movsd  0xe8c(%rip),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  %xmm0,0x8(%rsp)
mov    %ebx,%edi
mov    %ebp,%esi
mov    %r14d,%edx
call   1030 <t1_cos_theta@plt>
xorpd  %xmm1,%xmm1
subsd  %xmm0,%xmm1
addsd  0x8(%rsp),%xmm1
movapd 0x30(%rsp),%xmm2
unpcklpd 0x10(%rsp),%xmm2
movapd 0x20(%rsp),%xmm0
unpcklpd %xmm1,%xmm0
divpd  %xmm0,%xmm2
movsd  0xe48(%rip),%xmm0
addsd  %xmm2,%xmm0
unpckhpd %xmm2,%xmm2
subsd  %xmm2,%xmm0
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define double @t1_g(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = call double @pow(double 4.838100e+00, i32 2)
%8 = call double @pow(double 2.041700e+00, i32 2)
%9 = fdiv double %7, %8
%10 = fadd double 1.000000e+00, %9
%11 = call double @pow(double 4.838100e+00, i32 2)
%12 = call double @pow(double 2.041700e+00, i32 2)
%13 = load i32, i32* %4
%14 = load i32, i32* %5
%15 = load i32, i32* %6
%16 = call double @t1_cos_theta(i32 %13, i32 %14, i32 %15)
%17 = fsub double 0.000000e+00, %16
%18 = fadd double %12, %17
%19 = fdiv double %11, %18
%20 = fsub double %10, %19
ret double %20
}

LLVM IR (-O2):
define double @t1_g(i32 %0, i32 %1, i32 %2) {
%4 = tail call double @pow(double 4.838100e+00, i32 2)
%5 = tail call double @pow(double 2.041700e+00, i32 2)
%6 = tail call double @pow(double 4.838100e+00, i32 2)
%7 = tail call double @pow(double 2.041700e+00, i32 2)
%8 = tail call double @t1_cos_theta(i32 %0, i32 %1, i32 %2)
%9 = fsub double 0.000000e+00, %8
%10 = fadd double %7, %9
%11 = insertelement <2 x double> poison, double %4, i64 0
%12 = insertelement <2 x double> %11, double %6, i64 1
%13 = insertelement <2 x double> poison, double %5, i64 0
%14 = insertelement <2 x double> %13, double %10, i64 1
%15 = fdiv <2 x double> %12, %14
%16 = extractelement <2 x double> %15, i64 0
%17 = fadd double %16, 1.000000e+00
%18 = extractelement <2 x double> %15, i64 1
%19 = fsub double %17, %18
ret double %19
}