#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(int, int);
double pt_ghamma(double tempka, double patm_pt) {
  double a, result;
  double Cp = 1004.16;
  tempka -= 273.15;
  a = 0.622 * pow(10, 7) * (2.501 - (2.361 * pow(10, -3) * tempka));
  result = Cp * patm_pt / a;
  return result;
}


x86 assembly (clang, -O0):
<pt_ghamma>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xef6(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xedc(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
mov    $0xa,%edi
mov    $0x7,%esi
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xeb1(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    $0xa,%edi
mov    $0xfffffffd,%esi
call   1030 <pow@plt>
movaps %xmm0,%xmm2
movsd  -0x30(%rbp),%xmm0
movsd  0xe81(%rip),%xmm1
mulsd  %xmm2,%xmm1
movsd  -0x8(%rbp),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
movsd  0xe4d(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pt_ghamma>:
sub    $0x18,%rsp
movsd  %xmm1,0x10(%rsp)
addsd  0xede(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    $0xa,%edi
mov    $0x7,%esi
call   1030 <pow@plt>
mulsd  0xec9(%rip),%xmm0
movsd  %xmm0,(%rsp)
mov    $0xa,%edi
mov    $0xfffffffd,%esi
call   1030 <pow@plt>
mulsd  0xeb5(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  0xeaf(%rip),%xmm0
mulsd  (%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0xea4(%rip),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @pt_ghamma(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %3
store double %1, double* %4
store double 1.004160e+03, double* %7
%8 = load double, double* %3
%9 = fsub double %8, 2.731500e+02
store double %9, double* %3
%10 = call double @pow(i32 10, i32 7)
%11 = fmul double 6.220000e-01, %10
%12 = call double @pow(i32 10, i32 -3)
%13 = fmul double 2.361000e+00, %12
%14 = load double, double* %3
%15 = fneg double %13
%16 = call double @llvm.fmuladd.f64(double %15, double %14, double 2.501000e+00)
%17 = fmul double %11, %16
store double %17, double* %5
%18 = load double, double* %7
%19 = load double, double* %4
%20 = fmul double %18, %19
%21 = load double, double* %5
%22 = fdiv double %20, %21
store double %22, double* %6
%23 = load double, double* %6
ret double %23
}

LLVM IR (-O2):
define double @pt_ghamma(double %0, double %1) {
%3 = fadd double %0, -2.731500e+02
%4 = tail call double @pow(i32 10, i32 7)
%5 = fmul double %4, 6.220000e-01
%6 = tail call double @pow(i32 10, i32 -3)
%7 = fmul double %6, -2.361000e+00
%8 = tail call double @llvm.fmuladd.f64(double %7, double %3, double 2.501000e+00)
%9 = fmul double %5, %8
%10 = fmul double %1, 1.004160e+03
%11 = fdiv double %10, %9
ret double %11
}