#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(double, double);
int main(void) {
  double a, b;
  double res;
  a = __BUILTIN_DAED_DBETWEEN(0.0, 100.0);
  b = __BUILTIN_DAED_DBETWEEN(0.0, 100.0);
  if (b >= a) {
    res = b / (b - a + 0.5);
  } 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  0xec6(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN@plt>
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  0xeb1(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     1192 <main+0x72>
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
movsd  0xe88(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    11a8 <main+0x88>
movsd  -0x18(%rbp),%xmm0
movsd  0xe69(%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@plt>
movsd  %xmm0,(%rsp)
xorpd  %xmm0,%xmm0
movsd  0xebd(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN@plt>
movsd  (%rsp),%xmm2
ucomisd %xmm2,%xmm0
jae    1159 <main+0x39>
addsd  %xmm0,%xmm0
jmp    116d <main+0x4d>
movapd %xmm0,%xmm1
subsd  %xmm2,%xmm1
addsd  0xe9f(%rip),%xmm1
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(double 0.000000e+00, double 1.000000e+02)
store double %5, double* %2
%6 = call double @__BUILTIN_DAED_DBETWEEN(double 0.000000e+00, double 1.000000e+02)
store double %6, double* %3
%7 = load double, double* %3
%8 = load double, double* %2
%9 = fcmp oge double %7, %8
br i1 %9, label %10, label %17
10: ; preds = %0
%11 = load double, double* %3
%12 = load double, double* %3
%13 = load double, double* %2
%14 = fsub double %12, %13
%15 = fadd double %14, 5.000000e-01
%16 = fdiv double %11, %15
store double %16, double* %4
br label %20
17: ; preds = %0
%18 = load double, double* %3
%19 = fdiv double %18, 5.000000e-01
store double %19, double* %4
br label %20
20: ; preds = %17, %10
%21 = load double, double* %4
%22 = call i32 @DSENSITIVITY(double %21)
ret i32 0
}

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