#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 pow(int, int);
float ANTweenTimingFunctionExpoIn(float time, float begin, float change,
                                  float duration) {
  return (time == 0) ? begin
                     : change * pow(2, 10 * (time / duration - 1)) + begin;
}


x86 assembly (clang, -O0):
<ANTweenTimingFunctionExpoIn>:
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  -0x4(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1152 <ANTweenTimingFunctionExpoIn+0x42>
jp     1152 <ANTweenTimingFunctionExpoIn+0x42>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
jmp    11a6 <ANTweenTimingFunctionExpoIn+0x96>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x4(%rbp),%xmm1
divss  -0x10(%rbp),%xmm1
movss  0xe96(%rip),%xmm0
subss  %xmm0,%xmm1
movss  0xe86(%rip),%xmm0
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm2
movss  -0x18(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ANTweenTimingFunctionExpoIn>:
xorps  %xmm4,%xmm4
ucomiss %xmm4,%xmm0
jne    111e <ANTweenTimingFunctionExpoIn+0xe>
jp     111e <ANTweenTimingFunctionExpoIn+0xe>
movaps %xmm1,%xmm0
ret
push   %rax
divss  %xmm3,%xmm0
addss  0xed5(%rip),%xmm0
mulss  0xed1(%rip),%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
movss  %xmm1,0x4(%rsp)
movss  %xmm2,(%rsp)
call   1030 <pow@plt>
mulss  (%rsp),%xmm0
addss  0x4(%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @ANTweenTimingFunctionExpoIn(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* %5
%10 = fcmp oeq float %9, 0.000000e+00
br i1 %10, label %11, label %13
11: ; preds = %4
%12 = load float, float* %6
br label %24
13: ; preds = %4
%14 = load float, float* %7
%15 = load float, float* %5
%16 = load float, float* %8
%17 = fdiv float %15, %16
%18 = fsub float %17, 1.000000e+00
%19 = fmul float 1.000000e+01, %18
%20 = fptosi float %19 to i32
%21 = call float @pow(i32 2, i32 %20)
%22 = load float, float* %6
%23 = call float @llvm.fmuladd.f32(float %14, float %21, float %22)
br label %24
24: ; preds = %13, %11
%25 = phi float [ %12, %11 ], [ %23, %13 ]
ret float %25
}

LLVM IR (-O2):
define float @ANTweenTimingFunctionExpoIn(float %0, float %1, float %2, float %3) {
%5 = fcmp oeq float %0, 0.000000e+00
br i1 %5, label %13, label %6
6: ; preds = %4
%7 = fdiv float %0, %3
%8 = fadd float %7, -1.000000e+00
%9 = fmul float %8, 1.000000e+01
%10 = fptosi float %9 to i32
%11 = tail call float @pow(i32 2, i32 %10)
%12 = tail call float @llvm.fmuladd.f32(float %2, float %11, float %1)
br label %13
13: ; preds = %4, %6
%14 = phi float [ %12, %6 ], [ %1, %4 ]
ret float %14
}