#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 */
int /*<<< orphan*/ DSENSITIVITY(double);
double __BUILTIN_DAED_DBETWEEN_WITH_ULP(double, double);
int main(void) {
  double T, a, b, N, p, V;
  double k;
  double res;
  T = __BUILTIN_DAED_DBETWEEN_WITH_ULP(300.0, 300.0);
  a = __BUILTIN_DAED_DBETWEEN_WITH_ULP(0.401, 0.401);
  b = __BUILTIN_DAED_DBETWEEN_WITH_ULP(42.7e-6, 42.7e-6);
  N = __BUILTIN_DAED_DBETWEEN_WITH_ULP(1000.0, 1000.0);
  p = __BUILTIN_DAED_DBETWEEN_WITH_ULP(3.5e7, 3.5e7);
  V = __BUILTIN_DAED_DBETWEEN_WITH_ULP(0.1, 0.5);
  k = 1.3806503e-23;
  res = (p + a * (N / V) * (N / V)) * (V - N * b) - k * N * T;
  DSENSITIVITY(res);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xf01(%rip),%xmm1
movaps %xmm1,%xmm0
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  0xee4(%rip),%xmm1
movaps %xmm1,%xmm0
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  0xec7(%rip),%xmm1
movaps %xmm1,%xmm0
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  0xeaa(%rip),%xmm1
movaps %xmm1,%xmm0
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  0xe8d(%rip),%xmm1
movaps %xmm1,%xmm0
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  0xe68(%rip),%xmm0
movsd  0xe68(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  0xe46(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x30(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
divsd  -0x38(%rbp),%xmm2
mulsd  %xmm2,%xmm0
movsd  -0x28(%rbp),%xmm2
divsd  -0x38(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  -0x28(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1040 <DSENSITIVITY@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
movsd  0xed4(%rip),%xmm0
movaps %xmm0,%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0xec6(%rip),%xmm0
movaps %xmm0,%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0xeb8(%rip),%xmm0
movaps %xmm0,%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xeaa(%rip),%xmm0
movaps %xmm0,%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,(%rsp)
movsd  0xe9d(%rip),%xmm0
movaps %xmm0,%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0xe8f(%rip),%xmm0
movsd  0xe8f(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  (%rsp),%xmm3
movapd %xmm3,%xmm1
divsd  %xmm0,%xmm1
movsd  0x18(%rsp),%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
addsd  0x8(%rsp),%xmm2
movapd %xmm3,%xmm1
movsd  0x10(%rsp),%xmm3
mulsd  %xmm1,%xmm3
subsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm0
mulsd  0xe53(%rip),%xmm1
mulsd  0x20(%rsp),%xmm1
addsd  %xmm1,%xmm0
call   1040 <DSENSITIVITY@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store i32 0, i32* %1
%10 = call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 3.000000e+02, double 3.000000e+02)
store double %10, double* %2
%11 = call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 4.010000e-01, double 4.010000e-01)
store double %11, double* %3
%12 = call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 4.270000e-05, double 4.270000e-05)
store double %12, double* %4
%13 = call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 1.000000e+03, double 1.000000e+03)
store double %13, double* %5
%14 = call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 3.500000e+07, double 3.500000e+07)
store double %14, double* %6
%15 = call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 1.000000e-01, double 5.000000e-01)
store double %15, double* %7
store double 0x3B30B0E7DD0A406E, double* %8
%16 = load double, double* %6
%17 = load double, double* %3
%18 = load double, double* %5
%19 = load double, double* %7
%20 = fdiv double %18, %19
%21 = fmul double %17, %20
%22 = load double, double* %5
%23 = load double, double* %7
%24 = fdiv double %22, %23
%25 = call double @llvm.fmuladd.f64(double %21, double %24, double %16)
%26 = load double, double* %7
%27 = load double, double* %5
%28 = load double, double* %4
%29 = fneg double %27
%30 = call double @llvm.fmuladd.f64(double %29, double %28, double %26)
%31 = load double, double* %8
%32 = load double, double* %5
%33 = fmul double %31, %32
%34 = load double, double* %2
%35 = fmul double %33, %34
%36 = fneg double %35
%37 = call double @llvm.fmuladd.f64(double %25, double %30, double %36)
store double %37, double* %9
%38 = load double, double* %9
%39 = call i32 @DSENSITIVITY(double %38)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 3.000000e+02, double 3.000000e+02)
%2 = tail call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 4.010000e-01, double 4.010000e-01)
%3 = tail call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 4.270000e-05, double 4.270000e-05)
%4 = tail call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 1.000000e+03, double 1.000000e+03)
%5 = tail call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 3.500000e+07, double 3.500000e+07)
%6 = tail call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 1.000000e-01, double 5.000000e-01)
%7 = fdiv double %4, %6
%8 = fmul double %2, %7
%9 = tail call double @llvm.fmuladd.f64(double %8, double %7, double %5)
%10 = fneg double %4
%11 = tail call double @llvm.fmuladd.f64(double %10, double %3, double %6)
%12 = fmul double %4, 0xBB30B0E7DD0A406E
%13 = fmul double %1, %12
%14 = tail call double @llvm.fmuladd.f64(double %9, double %11, double %13)
%15 = tail call i32 @DSENSITIVITY(double %14)
ret i32 0
}