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


x86 assembly (clang, -O0):
<outExpo>:
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
ucomiss -0x14(%rbp),%xmm0
jne    1155 <outExpo+0x45>
jp     1155 <outExpo+0x45>
movss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    11bb <outExpo+0xab>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xea2(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movss  0xe89(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
divss  -0x14(%rbp),%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
call   1030 <powf@plt>
movsd  -0x20(%rbp),%xmm0
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm2
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
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):
<outExpo>:
ucomiss %xmm3,%xmm0
jne    111f <outExpo+0xf>
jp     111f <outExpo+0xf>
addss  %xmm2,%xmm1
movaps %xmm1,%xmm0
ret
sub    $0x18,%rsp
cvtss2sd %xmm2,%xmm2
mulsd  0xed1(%rip),%xmm2
movsd  %xmm2,0x10(%rsp)
mulss  0xecb(%rip),%xmm0
divss  %xmm3,%xmm0
cvttss2si %xmm0,%esi
mov    $0x2,%edi
movss  %xmm1,0xc(%rsp)
call   1030 <powf@plt>
mov    $0x1,%ecx
sub    %eax,%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mulsd  0x10(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define float @outExpo(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 = load float, float* %9
%12 = fcmp oeq float %10, %11
br i1 %12, label %13, label %17
13: ; preds = %4
%14 = load float, float* %7
%15 = load float, float* %8
%16 = fadd float %14, %15
store float %16, float* %5
br label %34
17: ; preds = %4
%18 = load float, float* %8
%19 = fpext float %18 to double
%20 = fmul double %19, 1.001000e+00
%21 = load float, float* %6
%22 = fmul float -1.000000e+01, %21
%23 = load float, float* %9
%24 = fdiv float %22, %23
%25 = fptosi float %24 to i32
%26 = call i32 @powf(i32 2, i32 %25)
%27 = sub nsw i32 0, %26
%28 = add nsw i32 %27, 1
%29 = sitofp i32 %28 to double
%30 = load float, float* %7
%31 = fpext float %30 to double
%32 = call double @llvm.fmuladd.f64(double %20, double %29, double %31)
%33 = fptrunc double %32 to float
store float %33, float* %5
br label %34
34: ; preds = %17, %13
%35 = load float, float* %5
ret float %35
}

LLVM IR (-O2):
define float @outExpo(float %0, float %1, float %2, float %3) {
%5 = fcmp oeq float %0, %3
br i1 %5, label %6, label %8
6: ; preds = %4
%7 = fadd float %1, %2
br label %20
8: ; preds = %4
%9 = fpext float %2 to double
%10 = fmul double %9, 1.001000e+00
%11 = fmul float %0, -1.000000e+01
%12 = fdiv float %11, %3
%13 = fptosi float %12 to i32
%14 = tail call i32 @powf(i32 2, i32 %13)
%15 = sub i32 1, %14
%16 = sitofp i32 %15 to double
%17 = fpext float %1 to double
%18 = tail call double @llvm.fmuladd.f64(double %10, double %16, double %17)
%19 = fptrunc double %18 to float
br label %20
20: ; preds = %8, %6
%21 = phi float [ %7, %6 ], [ %19, %8 ]
ret float %21
}