#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 */
float pow(int, double);
float quickMSLP(float t, float h, float p) {
  float dTop = 0.0065 * h;
  float dBottom = t + dTop + 273.15;
  float mslp = 0.0;
  float temp = pow(1 - (dTop / dBottom), -5.257);
  mslp = p * temp;
  return mslp;
}


x86 assembly (clang, -O0):
<quickMSLP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xed8(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xead(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x10(%rbp),%xmm1
divss  -0x14(%rbp),%xmm1
movss  0xe96(%rip),%xmm0
subss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
movsd  0xe6e(%rip),%xmm0
call   1030 <pow@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0xc(%rbp),%xmm0
mulss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quickMSLP>:
push   %rax
cvtss2sd %xmm1,%xmm1
mulsd  0xee3(%rip),%xmm1
cvtsd2ss %xmm1,%xmm1
addss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
addsd  0xed7(%rip),%xmm0
movss  %xmm2,0x4(%rsp)
cvtsd2ss %xmm0,%xmm0
divss  %xmm0,%xmm1
movss  0xed1(%rip),%xmm0
subss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
movsd  0xeb9(%rip),%xmm0
call   1030 <pow@plt>
mulss  0x4(%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @quickMSLP(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%11 = load float, float* %5
%12 = fpext float %11 to double
%13 = fmul double 0x3F7A9FBE76C8B439, %12
%14 = fptrunc double %13 to float
store float %14, float* %7
%15 = load float, float* %4
%16 = load float, float* %7
%17 = fadd float %15, %16
%18 = fpext float %17 to double
%19 = fadd double %18, 2.731500e+02
%20 = fptrunc double %19 to float
store float %20, float* %8
store float 0.000000e+00, float* %9
%21 = load float, float* %7
%22 = load float, float* %8
%23 = fdiv float %21, %22
%24 = fsub float 1.000000e+00, %23
%25 = fptosi float %24 to i32
%26 = call float @pow(i32 %25, double -5.257000e+00)
store float %26, float* %10
%27 = load float, float* %6
%28 = load float, float* %10
%29 = fmul float %27, %28
store float %29, float* %9
%30 = load float, float* %9
ret float %30
}

LLVM IR (-O2):
define float @quickMSLP(float %0, float %1, float %2) {
%4 = fpext float %1 to double
%5 = fmul double %4, 0x3F7A9FBE76C8B439
%6 = fptrunc double %5 to float
%7 = fadd float %6, %0
%8 = fpext float %7 to double
%9 = fadd double %8, 2.731500e+02
%10 = fptrunc double %9 to float
%11 = fdiv float %6, %10
%12 = fsub float 1.000000e+00, %11
%13 = fptosi float %12 to i32
%14 = tail call float @pow(i32 %13, double -5.257000e+00)
%15 = fmul float %14, %2
ret float %15
}