#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 bc(float, float, float, float, float, float);
float boostcomp(float signal, float drive, float threshold, float gain,
                float linearity, float asymmetry, float wet) {
  float asymKonst = bc(asymmetry, drive, threshold, gain, linearity, wet);
  float res = bc(asymmetry + signal, drive, threshold, gain, linearity, wet) -
              asymKonst;
  return res;
}


x86 assembly (clang, -O0):
<boostcomp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  %xmm5,-0x18(%rbp)
movss  %xmm6,-0x1c(%rbp)
movss  -0x18(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x10(%rbp),%xmm3
movss  -0x14(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm5
call   1030 <bc@plt>
movss  %xmm0,-0x20(%rbp)
movss  -0x18(%rbp),%xmm0
addss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x10(%rbp),%xmm3
movss  -0x14(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm5
call   1030 <bc@plt>
subss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x24(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<boostcomp>:
sub    $0x28,%rsp
movss  %xmm6,0x20(%rsp)
movss  %xmm5,0x8(%rsp)
movss  %xmm4,0x1c(%rsp)
movss  %xmm3,0x18(%rsp)
movss  %xmm2,0x14(%rsp)
movss  %xmm1,0x10(%rsp)
movss  %xmm0,0xc(%rsp)
movaps %xmm5,%xmm0
movaps %xmm6,%xmm5
call   1030 <bc@plt>
movss  %xmm0,0x24(%rsp)
movss  0xc(%rsp),%xmm0
addss  0x8(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
movss  0x14(%rsp),%xmm2
movss  0x18(%rsp),%xmm3
movss  0x1c(%rsp),%xmm4
movss  0x20(%rsp),%xmm5
call   1030 <bc@plt>
subss  0x24(%rsp),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define float @boostcomp(float %0, float %1, float %2, float %3, float %4, float %5, float %6) {
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
store float %0, float* %8
store float %1, float* %9
store float %2, float* %10
store float %3, float* %11
store float %4, float* %12
store float %5, float* %13
store float %6, float* %14
%17 = load float, float* %13
%18 = load float, float* %9
%19 = load float, float* %10
%20 = load float, float* %11
%21 = load float, float* %12
%22 = load float, float* %14
%23 = call float @bc(float %17, float %18, float %19, float %20, float %21, float %22)
store float %23, float* %15
%24 = load float, float* %13
%25 = load float, float* %8
%26 = fadd float %24, %25
%27 = load float, float* %9
%28 = load float, float* %10
%29 = load float, float* %11
%30 = load float, float* %12
%31 = load float, float* %14
%32 = call float @bc(float %26, float %27, float %28, float %29, float %30, float %31)
%33 = load float, float* %15
%34 = fsub float %32, %33
store float %34, float* %16
%35 = load float, float* %16
ret float %35
}

LLVM IR (-O2):
define float @boostcomp(float %0, float %1, float %2, float %3, float %4, float %5, float %6) {
%8 = tail call float @bc(float %5, float %1, float %2, float %3, float %4, float %6)
%9 = fadd float %0, %5
%10 = tail call float @bc(float %9, float %1, float %2, float %3, float %4, float %6)
%11 = fsub float %10, %8
ret float %11
}