#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 sqrt(int);
float circleIn(float fraction, float start, float delta, float slope) {
  return delta * (1 - sqrt(1 - (1 - 2 * slope) * fraction * fraction -
                           2 * slope * fraction)) +
         start;
}


x86 assembly (clang, -O0):
<circleIn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x10(%rbp),%xmm0
addss  %xmm0,%xmm0
movss  0xebd(%rip),%xmm1
subss  %xmm0,%xmm1
mulss  -0x4(%rbp),%xmm1
movss  -0x4(%rbp),%xmm0
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm0,%xmm1
movss  0xe96(%rip),%xmm0
addss  %xmm0,%xmm1
movss  0xe86(%rip),%xmm0
mulss  -0x10(%rbp),%xmm0
movss  -0x4(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1030 <sqrt@plt>
movss  -0x14(%rbp),%xmm0
mov    %eax,%ecx
mov    $0x1,%eax
sub    %ecx,%eax
cvtsi2ss %eax,%xmm2
movss  -0x8(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<circleIn>:
push   %rax
movss  %xmm2,(%rsp)
movss  %xmm1,0x4(%rsp)
mulss  0xedc(%rip),%xmm3
movss  0xed8(%rip),%xmm1
movaps %xmm3,%xmm2
addss  %xmm1,%xmm2
mulss  %xmm0,%xmm2
mulss  %xmm0,%xmm2
subss  %xmm2,%xmm1
mulss  %xmm0,%xmm3
addss  %xmm1,%xmm3
cvttss2si %xmm3,%edi
call   1030 <sqrt@plt>
mov    $0x1,%ecx
sub    %eax,%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
mulss  (%rsp),%xmm0
addss  0x4(%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @circleIn(float %0, float %1, float %2, float %3) {
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
store float %0, float* %5
store float %1, float* %6
store float %2, float* %7
store float %3, float* %8
%9 = load float, float* %7
%10 = load float, float* %8
%11 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %10, float 1.000000e+00)
%12 = load float, float* %5
%13 = fmul float %11, %12
%14 = load float, float* %5
%15 = fneg float %13
%16 = call float @llvm.fmuladd.f32(float %15, float %14, float 1.000000e+00)
%17 = load float, float* %8
%18 = fmul float 2.000000e+00, %17
%19 = load float, float* %5
%20 = fneg float %18
%21 = call float @llvm.fmuladd.f32(float %20, float %19, float %16)
%22 = fptosi float %21 to i32
%23 = call i32 @sqrt(i32 %22)
%24 = sub nsw i32 1, %23
%25 = sitofp i32 %24 to float
%26 = load float, float* %6
%27 = call float @llvm.fmuladd.f32(float %9, float %25, float %26)
ret float %27
}

LLVM IR (-O2):
define float @circleIn(float %0, float %1, float %2, float %3) {
%5 = tail call float @llvm.fmuladd.f32(float %3, float -2.000000e+00, float 1.000000e+00)
%6 = fneg float %5
%7 = fmul float %6, %0
%8 = tail call float @llvm.fmuladd.f32(float %7, float %0, float 1.000000e+00)
%9 = fmul float %3, -2.000000e+00
%10 = tail call float @llvm.fmuladd.f32(float %9, float %0, float %8)
%11 = fptosi float %10 to i32
%12 = tail call i32 @sqrt(i32 %11)
%13 = sub nsw i32 1, %12
%14 = sitofp i32 %13 to float
%15 = tail call float @llvm.fmuladd.f32(float %2, float %14, float %1)
ret float %15
}