#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 exp(scalar_t__);
scalar_t__ log(double);
double pow(double, double);
double f_hydro(double Y, double R, double Z, double T, double vt) {
  double R1, KT, R2, R3, R4, R5, R6, B;
  B = 1.0 + R + Y + Z +
      ((0.5 * pow(vt, 2.0) * (1.0 + 4.0 * Y) * 1.673e-24) / (1.380658e-16 * T));
  return exp(log(4.585693e-20) - log(1.380658e-16 * T) + log(1.0 + 4.0 * Y) -
             log(B));
}


x86 assembly (clang, -O0):
<f_hydro>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  0xeac(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
addsd  -0x8(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movsd  0xeb0(%rip),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm2
movsd  -0x88(%rbp),%xmm0
ff
movsd  0xe90(%rip),%xmm1
mulsd  %xmm2,%xmm1
movsd  -0x8(%rbp),%xmm2
movsd  0xe57(%rip),%xmm3
mulsd  %xmm3,%xmm2
movsd  0xe53(%rip),%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe5b(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe3f(%rip),%xmm2
mulsd  -0x20(%rbp),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xe2d(%rip),%xmm0
call   1040 <log@plt>
mov    %rax,-0x80(%rbp)
movsd  0xe14(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1040 <log@plt>
mov    %rax,%rcx
mov    -0x80(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x78(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xddf(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xddb(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1040 <log@plt>
mov    %rax,%rcx
mov    -0x78(%rbp),%rax
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm0
call   1040 <log@plt>
mov    -0x70(%rbp),%rdi
sub    %rax,%rdi
call   1030 <exp@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f_hydro>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
movsd  0xecf(%rip),%xmm5
addsd  %xmm5,%xmm1
addsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm4,%xmm4
mulsd  0xebf(%rip),%xmm4
mulsd  0xebf(%rip),%xmm0
addsd  %xmm5,%xmm0
movsd  %xmm0,0x18(%rsp)
mulsd  %xmm0,%xmm4
mulsd  0xeb1(%rip),%xmm4
mulsd  0xeb1(%rip),%xmm3
movsd  %xmm3,0x8(%rsp)
divsd  %xmm3,%xmm4
addsd  %xmm1,%xmm4
movsd  %xmm4,0x10(%rsp)
movsd  0xe9d(%rip),%xmm0
call   1040 <log@plt>
mov    %rax,%r14
movsd  0x8(%rsp),%xmm0
call   1040 <log@plt>
mov    %rax,%r15
movsd  0x18(%rsp),%xmm0
call   1040 <log@plt>
mov    %rax,%rbx
movsd  0x10(%rsp),%xmm0
call   1040 <log@plt>
add    %r14,%rbx
add    %r15,%rax
sub    %rax,%rbx
mov    %rbx,%rdi
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <exp@plt>

LLVM IR (-O0):
define double @f_hydro(double %0, double %1, double %2, double %3, double %4) {
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
store double %0, double* %6
store double %1, double* %7
store double %2, double* %8
store double %3, double* %9
store double %4, double* %10
%19 = load double, double* %7
%20 = fadd double 1.000000e+00, %19
%21 = load double, double* %6
%22 = fadd double %20, %21
%23 = load double, double* %8
%24 = fadd double %22, %23
%25 = load double, double* %10
%26 = call double @pow(double %25, double 2.000000e+00)
%27 = fmul double 5.000000e-01, %26
%28 = load double, double* %6
%29 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %28, double 1.000000e+00)
%30 = fmul double %27, %29
%31 = fmul double %30, 1.673000e-24
%32 = load double, double* %9
%33 = fmul double 0x3CA3E5BA9CD9FBD6, %32
%34 = fdiv double %31, %33
%35 = fadd double %24, %34
store double %35, double* %18
%36 = call i64 @log(double 0x3BEB11B40DCE3F70)
%37 = load double, double* %9
%38 = fmul double 0x3CA3E5BA9CD9FBD6, %37
%39 = call i64 @log(double %38)
%40 = sub nsw i64 %36, %39
%41 = load double, double* %6
%42 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %41, double 1.000000e+00)
%43 = call i64 @log(double %42)
%44 = add nsw i64 %40, %43
%45 = load double, double* %18
%46 = call i64 @log(double %45)
%47 = sub nsw i64 %44, %46
%48 = call double @exp(i64 %47)
ret double %48
}

LLVM IR (-O2):
define double @f_hydro(double %0, double %1, double %2, double %3, double %4) {
%6 = fadd double %1, 1.000000e+00
%7 = fadd double %6, %0
%8 = fadd double %7, %2
%9 = fmul double %4, %4
%10 = fmul double %9, 5.000000e-01
%11 = tail call double @llvm.fmuladd.f64(double %0, double 4.000000e+00, double 1.000000e+00)
%12 = fmul double %11, %10
%13 = fmul double %12, 1.673000e-24
%14 = fmul double %3, 0x3CA3E5BA9CD9FBD6
%15 = fdiv double %13, %14
%16 = fadd double %8, %15
%17 = tail call i64 @log(double 0x3BEB11B40DCE3F70)
%18 = tail call i64 @log(double %14)
%19 = tail call i64 @log(double %11)
%20 = tail call i64 @log(double %16)
%21 = add i64 %17, %19
%22 = add i64 %18, %20
%23 = sub i64 %21, %22
%24 = tail call double @exp(i64 %23)
ret double %24
}