#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 x, y;
  double res;
  x = __BUILTIN_DAED_DBETWEEN_WITH_ULP(-4.0, 4.0);
  y = __BUILTIN_DAED_DBETWEEN_WITH_ULP(-4.0, 4.0);
  if (x > y) {
    res = 0.238604 - 0.143624 * x + 0.0137 * x * x + 0.143624 * y +
          0.00605411 * x * y + 0.0137 * y * y;
  } else {
    res = 0.238604 + 0.143624 * x + 0.0137 * x * x - 0.143624 * y +
          0.00605411 * x * y + 0.0137 * y * y;
  }
  DSENSITIVITY(res);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xec9(%rip),%xmm0
movsd  0xec9(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  0xeaf(%rip),%xmm0
movsd  0xeaf(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    11fd <main+0xdd>
movsd  -0x10(%rbp),%xmm0
movsd  0xea0(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xea4(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xe78(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xe71(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe51(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe2f(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    1282 <main+0x162>
movsd  -0x10(%rbp),%xmm0
movsd  0xe1e(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe1a(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xdee(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xddf(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xdc7(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xda5(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1040 <DSENSITIVITY@plt>
xor    %eax,%eax
add    $0x20,%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  0xebd(%rip),%xmm0
movsd  0xebd(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  (%rsp),%xmm3
ucomisd %xmm0,%xmm3
jbe    118d <main+0x6d>
movsd  0xec5(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  0xea9(%rip),%xmm1
movsd  0xea9(%rip),%xmm2
mulsd  %xmm3,%xmm2
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  0xe85(%rip),%xmm1
jmp    11bd <main+0x9d>
movsd  0xe7b(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  0xe77(%rip),%xmm1
movsd  0xe77(%rip),%xmm2
mulsd  %xmm3,%xmm2
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  0xe6b(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
mulsd  0xe63(%rip),%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm1,%xmm3
movsd  0xe43(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm3,%xmm1
movapd %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
store i32 0, i32* %1
%5 = call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double -4.000000e+00, double 4.000000e+00)
store double %5, double* %2
%6 = call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double -4.000000e+00, double 4.000000e+00)
store double %6, double* %3
%7 = load double, double* %2
%8 = load double, double* %3
%9 = fcmp ogt double %7, %8
br i1 %9, label %10, label %27
10: ; preds = %0
%11 = load double, double* %2
%12 = call double @llvm.fmuladd.f64(double -1.436240e-01, double %11, double 2.386040e-01)
%13 = load double, double* %2
%14 = fmul double 1.370000e-02, %13
%15 = load double, double* %2
%16 = call double @llvm.fmuladd.f64(double %14, double %15, double %12)
%17 = load double, double* %3
%18 = call double @llvm.fmuladd.f64(double 1.436240e-01, double %17, double %16)
%19 = load double, double* %2
%20 = fmul double 6.054110e-03, %19
%21 = load double, double* %3
%22 = call double @llvm.fmuladd.f64(double %20, double %21, double %18)
%23 = load double, double* %3
%24 = fmul double 1.370000e-02, %23
%25 = load double, double* %3
%26 = call double @llvm.fmuladd.f64(double %24, double %25, double %22)
store double %26, double* %4
br label %44
27: ; preds = %0
%28 = load double, double* %2
%29 = call double @llvm.fmuladd.f64(double 1.436240e-01, double %28, double 2.386040e-01)
%30 = load double, double* %2
%31 = fmul double 1.370000e-02, %30
%32 = load double, double* %2
%33 = call double @llvm.fmuladd.f64(double %31, double %32, double %29)
%34 = load double, double* %3
%35 = call double @llvm.fmuladd.f64(double -1.436240e-01, double %34, double %33)
%36 = load double, double* %2
%37 = fmul double 6.054110e-03, %36
%38 = load double, double* %3
%39 = call double @llvm.fmuladd.f64(double %37, double %38, double %35)
%40 = load double, double* %3
%41 = fmul double 1.370000e-02, %40
%42 = load double, double* %3
%43 = call double @llvm.fmuladd.f64(double %41, double %42, double %39)
store double %43, double* %4
br label %44
44: ; preds = %27, %10
%45 = load double, double* %4
%46 = call i32 @DSENSITIVITY(double %45)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double -4.000000e+00, double 4.000000e+00)
%2 = tail call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double -4.000000e+00, double 4.000000e+00)
%3 = fcmp ogt double %1, %2
br i1 %3, label %4, label %9
4: ; preds = %0
%5 = tail call double @llvm.fmuladd.f64(double %1, double -1.436240e-01, double 2.386040e-01)
%6 = fmul double %1, 1.370000e-02
%7 = tail call double @llvm.fmuladd.f64(double %6, double %1, double %5)
%8 = tail call double @llvm.fmuladd.f64(double %2, double 1.436240e-01, double %7)
br label %14
9: ; preds = %0
%10 = tail call double @llvm.fmuladd.f64(double %1, double 1.436240e-01, double 2.386040e-01)
%11 = fmul double %1, 1.370000e-02
%12 = tail call double @llvm.fmuladd.f64(double %11, double %1, double %10)
%13 = tail call double @llvm.fmuladd.f64(double %2, double -1.436240e-01, double %12)
br label %14
14: ; preds = %9, %4
%15 = phi double [ %13, %9 ], [ %8, %4 ]
%16 = fmul double %1, 6.054110e-03
%17 = tail call double @llvm.fmuladd.f64(double %16, double %2, double %15)
%18 = fmul double %2, 1.370000e-02
%19 = tail call double @llvm.fmuladd.f64(double %18, double %2, double %17)
%20 = tail call i32 @DSENSITIVITY(double %19)
ret i32 0
}