#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 a, b;
  double res;
  a = __BUILTIN_DAED_DBETWEEN_WITH_ULP(0.0, 1.0);
  b = __BUILTIN_DAED_DBETWEEN_WITH_ULP(0.0, 1.0);
  if (b - a >= 0.5) {
    res = -b / (b - a);
  } else {
    res = -b / 0.5;
  }
  DSENSITIVITY(res);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  0xece(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  0xeb9(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  0xe95(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     11a9 <main+0x89>
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x18(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    11d6 <main+0xb6>
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe33(%rip),%xmm1
divsd  %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),%xmm1
xorpd  %xmm0,%xmm0
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,(%rsp)
xorpd  %xmm0,%xmm0
movsd  0xebd(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movapd %xmm0,%xmm1
subsd  (%rsp),%xmm1
ucomisd 0xeaf(%rip),%xmm1
jae    1165 <main+0x45>
mulsd  0xead(%rip),%xmm0
jmp    1171 <main+0x51>
xorpd  0xeb3(%rip),%xmm0
divsd  %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 0.000000e+00, double 1.000000e+00)
store double %5, double* %2
%6 = call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 0.000000e+00, double 1.000000e+00)
store double %6, double* %3
%7 = load double, double* %3
%8 = load double, double* %2
%9 = fsub double %7, %8
%10 = fcmp oge double %9, 5.000000e-01
br i1 %10, label %11, label %18
11: ; preds = %0
%12 = load double, double* %3
%13 = fneg double %12
%14 = load double, double* %3
%15 = load double, double* %2
%16 = fsub double %14, %15
%17 = fdiv double %13, %16
store double %17, double* %4
br label %22
18: ; preds = %0
%19 = load double, double* %3
%20 = fneg double %19
%21 = fdiv double %20, 5.000000e-01
store double %21, double* %4
br label %22
22: ; preds = %18, %11
%23 = load double, double* %4
%24 = call i32 @DSENSITIVITY(double %23)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 0.000000e+00, double 1.000000e+00)
%2 = tail call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 0.000000e+00, double 1.000000e+00)
%3 = fsub double %2, %1
%4 = fcmp ult double %3, 5.000000e-01
br i1 %4, label %8, label %5
5: ; preds = %0
%6 = fneg double %2
%7 = fdiv double %6, %3
br label %10
8: ; preds = %0
%9 = fmul double %2, -2.000000e+00
br label %10
10: ; preds = %8, %5
%11 = phi double [ %7, %5 ], [ %9, %8 ]
%12 = tail call i32 @DSENSITIVITY(double %11)
ret i32 0
}