#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 M_PI;
double get_alpha(char);
double powf(double, double);
float kinetic_elem(char i, char j) {
  return 3.0 * ((get_alpha(i) * get_alpha(j) * powf(M_PI, 1.5)) /
                (powf((get_alpha(i) + get_alpha(j)), 2.5)));
}


x86 assembly (clang, -O0):
<kinetic_elem>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movsbl -0x1(%rbp),%edi
call   1040 <get_alpha@plt>
movsd  %xmm0,-0x28(%rbp)
movsbl -0x2(%rbp),%edi
call   1040 <get_alpha@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    0x2e85(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xea1(%rip),%xmm1
call   1030 <powf@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsbl -0x1(%rbp),%edi
call   1040 <get_alpha@plt>
movsd  %xmm0,-0x18(%rbp)
movsbl -0x2(%rbp),%edi
call   1040 <get_alpha@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  0xe58(%rip),%xmm1
call   1030 <powf@plt>
movsd  -0x10(%rbp),%xmm1
divsd  %xmm0,%xmm1
movsd  0xe3a(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kinetic_elem>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
mov    %esi,%ebx
mov    %edi,%ebp
call   1040 <get_alpha@plt>
movsd  %xmm0,0x8(%rsp)
mov    %ebx,%edi
call   1040 <get_alpha@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    0x2e99(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xea5(%rip),%xmm1
call   1030 <powf@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %ebp,%edi
call   1040 <get_alpha@plt>
movsd  %xmm0,0x10(%rsp)
mov    %ebx,%edi
call   1040 <get_alpha@plt>
addsd  0x10(%rsp),%xmm0
movsd  0xe7a(%rip),%xmm1
call   1030 <powf@plt>
movsd  0x8(%rsp),%xmm1
divsd  %xmm0,%xmm1
mulsd  0xe6b(%rip),%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@M_PI = global double 0.000000e+00
define float @kinetic_elem(i8 signext %0, i8 signext %1) {
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %3
store i8 %1, i8* %4
%5 = load i8, i8* %3
%6 = call double @get_alpha(i8 signext %5)
%7 = load i8, i8* %4
%8 = call double @get_alpha(i8 signext %7)
%9 = fmul double %6, %8
%10 = load double, double* @M_PI
%11 = call double @powf(double %10, double 1.500000e+00)
%12 = fmul double %9, %11
%13 = load i8, i8* %3
%14 = call double @get_alpha(i8 signext %13)
%15 = load i8, i8* %4
%16 = call double @get_alpha(i8 signext %15)
%17 = fadd double %14, %16
%18 = call double @powf(double %17, double 2.500000e+00)
%19 = fdiv double %12, %18
%20 = fmul double 3.000000e+00, %19
%21 = fptrunc double %20 to float
ret float %21
}

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define float @kinetic_elem(i8 signext %0, i8 signext %1) {
%3 = tail call double @get_alpha(i8 signext %0)
%4 = tail call double @get_alpha(i8 signext %1)
%5 = fmul double %3, %4
%6 = load double, double* @M_PI
%7 = tail call double @powf(double %6, double 1.500000e+00)
%8 = fmul double %5, %7
%9 = tail call double @get_alpha(i8 signext %0)
%10 = tail call double @get_alpha(i8 signext %1)
%11 = fadd double %9, %10
%12 = tail call double @powf(double %11, double 2.500000e+00)
%13 = fdiv double %8, %12
%14 = fmul double %13, 3.000000e+00
%15 = fptrunc double %14 to float
ret float %15
}