#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 */
float FBETWEEN(int /*<<< orphan*/, int);
int /*<<< orphan*/ FSENSITIVITY(float);
int main(void) {
  float x, y, z, t;
  x = FBETWEEN(0, 1);
  y = (x - 1) * (x - 1) * (x - 1) * (x - 1);
  z = x * x;
  z = z * z - 4 * x * z + 6 * z - 4 * x + 1;
  t = z - y;
  FSENSITIVITY(z);
  FSENSITIVITY(t);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <FBETWEEN@plt>
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xeba(%rip),%xmm1
subss  %xmm1,%xmm0
movss  -0x4(%rbp),%xmm1
movss  0xea9(%rip),%xmm2
subss  %xmm2,%xmm1
mulss  %xmm1,%xmm0
movss  -0x4(%rbp),%xmm1
movss  0xe94(%rip),%xmm2
subss  %xmm2,%xmm1
mulss  %xmm1,%xmm0
movss  -0x4(%rbp),%xmm1
movss  0xe7f(%rip),%xmm2
subss  %xmm2,%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
mulss  -0x4(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
movss  -0xc(%rbp),%xmm2
movss  0xe5d(%rip),%xmm1
mulss  -0x4(%rbp),%xmm1
mulss  -0xc(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xc(%rbp),%xmm1
movss  0xe2d(%rip),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x4(%rbp),%xmm0
movss  0xe14(%rip),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xe00(%rip),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
call   1030 <FSENSITIVITY@plt>
movss  -0x10(%rbp),%xmm0
call   1030 <FSENSITIVITY@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <FBETWEEN@plt>
movss  0xecb(%rip),%xmm1
addss  %xmm0,%xmm1
movaps %xmm1,%xmm2
mulss  %xmm1,%xmm2
mulss  %xmm1,%xmm2
mulss  %xmm1,%xmm2
movaps %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  0xead(%rip),%xmm0
movaps %xmm0,%xmm3
mulss  %xmm1,%xmm3
movaps %xmm1,%xmm4
mulss  %xmm1,%xmm4
addss  %xmm3,%xmm4
mulss  0xe97(%rip),%xmm1
addss  %xmm4,%xmm1
addss  %xmm1,%xmm0
addss  0xe8b(%rip),%xmm0
movaps %xmm0,%xmm1
subss  %xmm2,%xmm1
movss  %xmm1,0x4(%rsp)
call   1030 <FSENSITIVITY@plt>
movss  0x4(%rsp),%xmm0
call   1030 <FSENSITIVITY@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = call float @FBETWEEN(i32 0, i32 1)
store float %5, float* %1
%6 = load float, float* %1
%7 = fsub float %6, 1.000000e+00
%8 = load float, float* %1
%9 = fsub float %8, 1.000000e+00
%10 = fmul float %7, %9
%11 = load float, float* %1
%12 = fsub float %11, 1.000000e+00
%13 = fmul float %10, %12
%14 = load float, float* %1
%15 = fsub float %14, 1.000000e+00
%16 = fmul float %13, %15
store float %16, float* %2
%17 = load float, float* %1
%18 = load float, float* %1
%19 = fmul float %17, %18
store float %19, float* %3
%20 = load float, float* %3
%21 = load float, float* %3
%22 = load float, float* %1
%23 = fmul float 4.000000e+00, %22
%24 = load float, float* %3
%25 = fmul float %23, %24
%26 = fneg float %25
%27 = call float @llvm.fmuladd.f32(float %20, float %21, float %26)
%28 = load float, float* %3
%29 = call float @llvm.fmuladd.f32(float 6.000000e+00, float %28, float %27)
%30 = load float, float* %1
%31 = call float @llvm.fmuladd.f32(float -4.000000e+00, float %30, float %29)
%32 = fadd float %31, 1.000000e+00
store float %32, float* %3
%33 = load float, float* %3
%34 = load float, float* %2
%35 = fsub float %33, %34
store float %35, float* %4
%36 = load float, float* %3
%37 = call i32 @FSENSITIVITY(float %36)
%38 = load float, float* %4
%39 = call i32 @FSENSITIVITY(float %38)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call float @FBETWEEN(i32 0, i32 1)
%2 = fadd float %1, -1.000000e+00
%3 = fmul float %2, %2
%4 = fmul float %2, %3
%5 = fmul float %2, %4
%6 = fmul float %1, %1
%7 = fmul float %1, -4.000000e+00
%8 = fmul float %7, %6
%9 = tail call float @llvm.fmuladd.f32(float %6, float %6, float %8)
%10 = tail call float @llvm.fmuladd.f32(float %6, float 6.000000e+00, float %9)
%11 = tail call float @llvm.fmuladd.f32(float %1, float -4.000000e+00, float %10)
%12 = fadd float %11, 1.000000e+00
%13 = fsub float %12, %5
%14 = tail call i32 @FSENSITIVITY(float %12)
%15 = tail call i32 @FSENSITIVITY(float %13)
ret i32 0
}