#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 powf(int, int);
float inExpo(float t, float b, float c, float d) {
  if (t == 0)
    return b;
  return c * powf(2, 10 * (t / d - 1)) + b - c * 0.001;
}


x86 assembly (clang, -O0):
<inExpo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x8(%rbp)
movss  %xmm1,-0xc(%rbp)
movss  %xmm2,-0x10(%rbp)
movss  %xmm3,-0x14(%rbp)
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1152 <inExpo+0x42>
jp     1152 <inExpo+0x42>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    11de <inExpo+0xce>
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x8(%rbp),%xmm1
divss  -0x14(%rbp),%xmm1
movss  0xe9e(%rip),%xmm0
subss  %xmm0,%xmm1
movss  0xe8e(%rip),%xmm0
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
call   1030 <powf@plt>
movaps %xmm0,%xmm2
movss  -0x18(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm1
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe33(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inExpo>:
movaps %xmm1,%xmm4
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1121 <inExpo+0x11>
jp     1121 <inExpo+0x11>
movaps %xmm4,%xmm0
ret
push   %rax
divss  %xmm3,%xmm0
addss  0xed2(%rip),%xmm0
mulss  0xece(%rip),%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
movss  %xmm4,0x4(%rsp)
movss  %xmm2,(%rsp)
call   1030 <powf@plt>
movss  (%rsp),%xmm1
mulss  %xmm1,%xmm0
addss  0x4(%rsp),%xmm0
cvtss2sd %xmm1,%xmm1
mulsd  0xe9e(%rip),%xmm1
cvtss2sd %xmm0,%xmm0
addsd  %xmm0,%xmm1
xorps  %xmm4,%xmm4
cvtsd2ss %xmm1,%xmm4
add    $0x8,%rsp
movaps %xmm4,%xmm0
ret

LLVM IR (-O0):
define float @inExpo(float %0, float %1, float %2, float %3) {
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
store float %0, float* %6
store float %1, float* %7
store float %2, float* %8
store float %3, float* %9
%10 = load float, float* %6
%11 = fcmp oeq float %10, 0.000000e+00
br i1 %11, label %12, label %14
12: ; preds = %4
%13 = load float, float* %7
store float %13, float* %5
br label %31
14: ; preds = %4
%15 = load float, float* %8
%16 = load float, float* %6
%17 = load float, float* %9
%18 = fdiv float %16, %17
%19 = fsub float %18, 1.000000e+00
%20 = fmul float 1.000000e+01, %19
%21 = fptosi float %20 to i32
%22 = call float @powf(i32 2, i32 %21)
%23 = load float, float* %7
%24 = call float @llvm.fmuladd.f32(float %15, float %22, float %23)
%25 = fpext float %24 to double
%26 = load float, float* %8
%27 = fpext float %26 to double
%28 = fneg double %27
%29 = call double @llvm.fmuladd.f64(double %28, double 1.000000e-03, double %25)
%30 = fptrunc double %29 to float
store float %30, float* %5
br label %31
31: ; preds = %14, %12
%32 = load float, float* %5
ret float %32
}

LLVM IR (-O2):
define float @inExpo(float %0, float %1, float %2, float %3) {
%5 = fcmp oeq float %0, 0.000000e+00
br i1 %5, label %18, 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 @powf(i32 2, i32 %10)
%12 = tail call float @llvm.fmuladd.f32(float %2, float %11, float %1)
%13 = fpext float %12 to double
%14 = fpext float %2 to double
%15 = fneg double %14
%16 = tail call double @llvm.fmuladd.f64(double %15, double 1.000000e-03, double %13)
%17 = fptrunc double %16 to float
br label %18
18: ; preds = %4, %6
%19 = phi float [ %17, %6 ], [ %1, %4 ]
ret float %19
}