#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 pow(int, int);
double JHKeyframeAnimationFunctionEaseInExpo(double t, double b, double c,
                                             double d) {
  return (t == 0) ? b : c * pow(2, 10 * (t / d - 1)) + b;
}


x86 assembly (clang, -O0):
<JHKeyframeAnimationFunctionEaseInExpo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1153 <JHKeyframeAnimationFunctionEaseInExpo+0x43>
jp     1153 <JHKeyframeAnimationFunctionEaseInExpo+0x43>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    11a7 <JHKeyframeAnimationFunctionEaseInExpo+0x97>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm1
divsd  -0x20(%rbp),%xmm1
movsd  0xe99(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xe85(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
mov    $0x2,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm2
movsd  -0x30(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<JHKeyframeAnimationFunctionEaseInExpo>:
xorpd  %xmm4,%xmm4
ucomisd %xmm4,%xmm0
jne    1120 <JHKeyframeAnimationFunctionEaseInExpo+0x10>
jp     1120 <JHKeyframeAnimationFunctionEaseInExpo+0x10>
movaps %xmm1,%xmm0
ret
sub    $0x18,%rsp
divsd  %xmm3,%xmm0
addsd  0xed0(%rip),%xmm0
mulsd  0xed0(%rip),%xmm0
cvttsd2si %xmm0,%esi
mov    $0x2,%edi
movsd  %xmm1,0x10(%rsp)
movsd  %xmm2,0x8(%rsp)
call   1030 <pow@plt>
mulsd  0x8(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @JHKeyframeAnimationFunctionEaseInExpo(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%9 = load double, double* %5
%10 = fcmp oeq double %9, 0.000000e+00
br i1 %10, label %11, label %13
11: ; preds = %4
%12 = load double, double* %6
br label %24
13: ; preds = %4
%14 = load double, double* %7
%15 = load double, double* %5
%16 = load double, double* %8
%17 = fdiv double %15, %16
%18 = fsub double %17, 1.000000e+00
%19 = fmul double 1.000000e+01, %18
%20 = fptosi double %19 to i32
%21 = call double @pow(i32 2, i32 %20)
%22 = load double, double* %6
%23 = call double @llvm.fmuladd.f64(double %14, double %21, double %22)
br label %24
24: ; preds = %13, %11
%25 = phi double [ %12, %11 ], [ %23, %13 ]
ret double %25
}

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