#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 */
double DBETWEEN(double, double);
int /*<<< orphan*/ DSENSITIVITY(double);
int main(void) {
  double x0, x1, x2, p0, p1, p2, sum;
  x0 = DBETWEEN(1.0, 2.0);
  x1 = DBETWEEN(1.0, 2.0);
  x2 = DBETWEEN(1.0, 2.0);
  p0 = (x0 + x1) - x2;
  p1 = (x1 + x2) - x0;
  p2 = (x2 + x0) - x1;
  sum = (p0 + p1) + p2;
  DSENSITIVITY(sum);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  0xed0(%rip),%xmm0
movsd  0xed0(%rip),%xmm1
call   1030 <DBETWEEN@plt>
movsd  %xmm0,-0x8(%rbp)
movsd  0xeb6(%rip),%xmm0
movsd  0xeb6(%rip),%xmm1
call   1030 <DBETWEEN@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  0xe9c(%rip),%xmm0
movsd  0xe9c(%rip),%xmm1
call   1030 <DBETWEEN@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
addsd  -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
addsd  -0x28(%rbp),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1040 <DSENSITIVITY@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movsd  0xed4(%rip),%xmm0
movsd  0xed4(%rip),%xmm1
call   1030 <DBETWEEN@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xeb9(%rip),%xmm0
movsd  0xeb9(%rip),%xmm1
call   1030 <DBETWEEN@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0xe9e(%rip),%xmm0
movsd  0xe9e(%rip),%xmm1
call   1030 <DBETWEEN@plt>
movsd  0x10(%rsp),%xmm3
movapd %xmm3,%xmm1
movsd  0x8(%rsp),%xmm4
addsd  %xmm4,%xmm1
subsd  %xmm0,%xmm1
movapd %xmm4,%xmm2
addsd  %xmm0,%xmm2
subsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
addsd  %xmm3,%xmm0
subsd  %xmm4,%xmm0
addsd  %xmm2,%xmm0
call   1040 <DSENSITIVITY@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = call double @DBETWEEN(double 1.000000e+00, double 2.000000e+00)
store double %8, double* %1
%9 = call double @DBETWEEN(double 1.000000e+00, double 2.000000e+00)
store double %9, double* %2
%10 = call double @DBETWEEN(double 1.000000e+00, double 2.000000e+00)
store double %10, double* %3
%11 = load double, double* %1
%12 = load double, double* %2
%13 = fadd double %11, %12
%14 = load double, double* %3
%15 = fsub double %13, %14
store double %15, double* %4
%16 = load double, double* %2
%17 = load double, double* %3
%18 = fadd double %16, %17
%19 = load double, double* %1
%20 = fsub double %18, %19
store double %20, double* %5
%21 = load double, double* %3
%22 = load double, double* %1
%23 = fadd double %21, %22
%24 = load double, double* %2
%25 = fsub double %23, %24
store double %25, double* %6
%26 = load double, double* %4
%27 = load double, double* %5
%28 = fadd double %26, %27
%29 = load double, double* %6
%30 = fadd double %28, %29
store double %30, double* %7
%31 = load double, double* %7
%32 = call i32 @DSENSITIVITY(double %31)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call double @DBETWEEN(double 1.000000e+00, double 2.000000e+00)
%2 = tail call double @DBETWEEN(double 1.000000e+00, double 2.000000e+00)
%3 = tail call double @DBETWEEN(double 1.000000e+00, double 2.000000e+00)
%4 = fadd double %1, %2
%5 = fsub double %4, %3
%6 = fadd double %2, %3
%7 = fsub double %6, %1
%8 = fadd double %1, %3
%9 = fsub double %8, %2
%10 = fadd double %5, %7
%11 = fadd double %9, %10
%12 = tail call i32 @DSENSITIVITY(double %11)
ret i32 0
}