#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 x1, x2;
  double t, res;
  x1 = __BUILTIN_DAED_DBETWEEN_WITH_ULP(-5.0, 5.0);
  x2 = __BUILTIN_DAED_DBETWEEN_WITH_ULP(-20.0, 5.0);
  t = (3 * x1 * x1 + 2 * x2 - x1);
  res = x1 + ((2 * x1 * (t / (x1 * x1 + 1)) * (t / (x1 * x1 + 1) - 3) +
               x1 * x1 * (4 * (t / (x1 * x1 + 1)) - 6)) *
                  (x1 * x1 + 1) +
              3 * x1 * x1 * (t / (x1 * x1 + 1)) + x1 * x1 * x1 + x1 +
              3 * ((3 * x1 * x1 + 2 * x2 - x1) / (x1 * x1 + 1)));
  DSENSITIVITY(res);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xf01(%rip),%xmm0
movsd  0xef1(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  0xed7(%rip),%xmm0
movsd  0xed7(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  0xe95(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  0xe93(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe6f(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm3
movsd  -0x10(%rbp),%xmm4
mulsd  %xmm4,%xmm3
movsd  0xe47(%rip),%xmm4
addsd  %xmm4,%xmm3
divsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  -0x20(%rbp),%xmm3
movsd  -0x10(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm4
mulsd  %xmm4,%xmm2
movsd  0xe20(%rip),%xmm4
addsd  %xmm4,%xmm2
divsd  %xmm2,%xmm3
movsd  0xe08(%rip),%xmm2
subsd  %xmm2,%xmm3
movsd  -0x10(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm4
movsd  -0x10(%rbp),%xmm5
movsd  -0x10(%rbp),%xmm6
mulsd  %xmm6,%xmm5
movsd  0xde7(%rip),%xmm6
addsd  %xmm6,%xmm5
divsd  %xmm5,%xmm4
movsd  0xde7(%rip),%xmm5
mulsd  %xmm5,%xmm4
movsd  0xde3(%rip),%xmm5
addsd  %xmm5,%xmm4
mulsd  %xmm4,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0x10(%rbp),%xmm3
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm3
movsd  0xda5(%rip),%xmm2
addsd  %xmm2,%xmm3
movsd  0xd91(%rip),%xmm2
mulsd  -0x10(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm4
movsd  -0x10(%rbp),%xmm5
movsd  -0x10(%rbp),%xmm6
mulsd  %xmm6,%xmm5
movsd  0xd74(%rip),%xmm6
addsd  %xmm6,%xmm5
divsd  %xmm5,%xmm4
mulsd  %xmm4,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0x10(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
addsd  -0x10(%rbp),%xmm2
movsd  0xd34(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm4
movsd  0xd32(%rip),%xmm3
mulsd  -0x18(%rbp),%xmm3
mulsd  %xmm4,%xmm1
addsd  %xmm3,%xmm1
subsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm3
movsd  -0x10(%rbp),%xmm4
mulsd  %xmm4,%xmm3
movsd  0xd02(%rip),%xmm4
addsd  %xmm4,%xmm3
divsd  %xmm3,%xmm1
movsd  0xcea(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1040 <DSENSITIVITY@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movsd  0xed7(%rip),%xmm0
movsd  0xed7(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,(%rsp)
movsd  0xecd(%rip),%xmm0
movsd  0xebd(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  0xebf(%rip),%xmm8
movsd  (%rsp),%xmm5
movapd %xmm5,%xmm2
mulsd  %xmm8,%xmm2
addsd  %xmm0,%xmm0
mulsd  %xmm5,%xmm2
addsd  %xmm2,%xmm0
subsd  %xmm5,%xmm0
movapd %xmm5,%xmm4
addsd  %xmm5,%xmm4
movapd %xmm5,%xmm3
movapd %xmm5,%xmm1
mulsd  %xmm5,%xmm3
movsd  0xe8d(%rip),%xmm5
addsd  %xmm3,%xmm5
divsd  %xmm5,%xmm0
mulsd  %xmm0,%xmm4
movsd  0xe81(%rip),%xmm6
addsd  %xmm0,%xmm6
movsd  0xe7d(%rip),%xmm7
mulsd  %xmm0,%xmm7
addsd  0xe79(%rip),%xmm7
mulsd  %xmm4,%xmm6
mulsd  %xmm3,%xmm7
addsd  %xmm6,%xmm7
mulsd  %xmm0,%xmm2
mulsd  %xmm5,%xmm7
addsd  %xmm2,%xmm7
mulsd  %xmm1,%xmm3
addsd  %xmm7,%xmm3
addsd  %xmm1,%xmm3
mulsd  %xmm8,%xmm0
addsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
call   1040 <DSENSITIVITY@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
store i32 0, i32* %1
%6 = call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double -5.000000e+00, double 5.000000e+00)
store double %6, double* %2
%7 = call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double -2.000000e+01, double 5.000000e+00)
store double %7, double* %3
%8 = load double, double* %2
%9 = fmul double 3.000000e+00, %8
%10 = load double, double* %2
%11 = load double, double* %3
%12 = fmul double 2.000000e+00, %11
%13 = call double @llvm.fmuladd.f64(double %9, double %10, double %12)
%14 = load double, double* %2
%15 = fsub double %13, %14
store double %15, double* %4
%16 = load double, double* %2
%17 = load double, double* %2
%18 = fmul double 2.000000e+00, %17
%19 = load double, double* %4
%20 = load double, double* %2
%21 = load double, double* %2
%22 = call double @llvm.fmuladd.f64(double %20, double %21, double 1.000000e+00)
%23 = fdiv double %19, %22
%24 = fmul double %18, %23
%25 = load double, double* %4
%26 = load double, double* %2
%27 = load double, double* %2
%28 = call double @llvm.fmuladd.f64(double %26, double %27, double 1.000000e+00)
%29 = fdiv double %25, %28
%30 = fsub double %29, 3.000000e+00
%31 = load double, double* %2
%32 = load double, double* %2
%33 = fmul double %31, %32
%34 = load double, double* %4
%35 = load double, double* %2
%36 = load double, double* %2
%37 = call double @llvm.fmuladd.f64(double %35, double %36, double 1.000000e+00)
%38 = fdiv double %34, %37
%39 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %38, double -6.000000e+00)
%40 = fmul double %33, %39
%41 = call double @llvm.fmuladd.f64(double %24, double %30, double %40)
%42 = load double, double* %2
%43 = load double, double* %2
%44 = call double @llvm.fmuladd.f64(double %42, double %43, double 1.000000e+00)
%45 = load double, double* %2
%46 = fmul double 3.000000e+00, %45
%47 = load double, double* %2
%48 = fmul double %46, %47
%49 = load double, double* %4
%50 = load double, double* %2
%51 = load double, double* %2
%52 = call double @llvm.fmuladd.f64(double %50, double %51, double 1.000000e+00)
%53 = fdiv double %49, %52
%54 = fmul double %48, %53
%55 = call double @llvm.fmuladd.f64(double %41, double %44, double %54)
%56 = load double, double* %2
%57 = load double, double* %2
%58 = fmul double %56, %57
%59 = load double, double* %2
%60 = call double @llvm.fmuladd.f64(double %58, double %59, double %55)
%61 = load double, double* %2
%62 = fadd double %60, %61
%63 = load double, double* %2
%64 = fmul double 3.000000e+00, %63
%65 = load double, double* %2
%66 = load double, double* %3
%67 = fmul double 2.000000e+00, %66
%68 = call double @llvm.fmuladd.f64(double %64, double %65, double %67)
%69 = load double, double* %2
%70 = fsub double %68, %69
%71 = load double, double* %2
%72 = load double, double* %2
%73 = call double @llvm.fmuladd.f64(double %71, double %72, double 1.000000e+00)
%74 = fdiv double %70, %73
%75 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %74, double %62)
%76 = fadd double %16, %75
store double %76, double* %5
%77 = load double, double* %5
%78 = call i32 @DSENSITIVITY(double %77)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double -5.000000e+00, double 5.000000e+00)
%2 = tail call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double -2.000000e+01, double 5.000000e+00)
%3 = fmul double %1, 3.000000e+00
%4 = fmul double %2, 2.000000e+00
%5 = tail call double @llvm.fmuladd.f64(double %3, double %1, double %4)
%6 = fsub double %5, %1
%7 = fmul double %1, 2.000000e+00
%8 = tail call double @llvm.fmuladd.f64(double %1, double %1, double 1.000000e+00)
%9 = fdiv double %6, %8
%10 = fmul double %7, %9
%11 = fadd double %9, -3.000000e+00
%12 = fmul double %1, %1
%13 = tail call double @llvm.fmuladd.f64(double %9, double 4.000000e+00, double -6.000000e+00)
%14 = fmul double %12, %13
%15 = tail call double @llvm.fmuladd.f64(double %10, double %11, double %14)
%16 = fmul double %1, %3
%17 = fmul double %16, %9
%18 = tail call double @llvm.fmuladd.f64(double %15, double %8, double %17)
%19 = tail call double @llvm.fmuladd.f64(double %12, double %1, double %18)
%20 = fadd double %1, %19
%21 = tail call double @llvm.fmuladd.f64(double %9, double 3.000000e+00, double %20)
%22 = fadd double %1, %21
%23 = tail call i32 @DSENSITIVITY(double %22)
ret i32 0
}