#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 /*<<< orphan*/ getsseq(float *, float *, int, int, float *, float const *,
                           int, int);
int /*<<< orphan*/ smath(float *, float *, int, float);
void enhancer(float *odata, float *idata, int idatal, int centerStartPos,
              float alpha0, float *period, const float *plocs, int periodl) {
  float sseq[(2 * 3 + 1) * 80];
  getsseq(sseq, idata, idatal, centerStartPos, period, plocs, periodl, 3);
  smath(odata, sseq, 3, alpha0);
}


x86 assembly (clang, -O0):
<enhancer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x900,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
movss  %xmm0,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
lea    -0x8f0(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    0x10(%rbp),%eax
mov    %eax,(%rsp)
movl   $0x3,0x8(%rsp)
call   1030 <getsseq@plt>
mov    -0x8(%rbp),%rdi
lea    -0x8f0(%rbp),%rsi
movss  -0x1c(%rbp),%xmm0
mov    $0x3,%edx
call   1040 <smath@plt>
add    $0x900,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<enhancer>:
push   %r14
push   %rbx
sub    $0x8d8,%rsp
movss  %xmm0,0xc(%rsp)
mov    %rdi,%rbx
mov    0x8f0(%rsp),%eax
lea    0x10(%rsp),%r14
mov    %r14,%rdi
push   $0x3
push   %rax
call   1030 <getsseq@plt>
add    $0x10,%rsp
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x3,%edx
movss  0xc(%rsp),%xmm0
call   1040 <smath@plt>
add    $0x8d8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @enhancer(float* %0, float* %1, i32 %2, i32 %3, float %4, float* %5, float* %6, i32 %7) {
%9 = alloca float*
%10 = alloca float*
%11 = alloca i32
%12 = alloca i32
%13 = alloca float
%14 = alloca float*
%15 = alloca float*
%16 = alloca i32
%17 = alloca [560 x float]
store float* %0, float** %9
store float* %1, float** %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store float %4, float* %13
store float* %5, float** %14
store float* %6, float** %15
store i32 %7, i32* %16
%18 = getelementptr inbounds [560 x float], [560 x float]* %17, i64 0, i64 0
%19 = load float*, float** %10
%20 = load i32, i32* %11
%21 = load i32, i32* %12
%22 = load float*, float** %14
%23 = load float*, float** %15
%24 = load i32, i32* %16
%25 = call i32 @getsseq(float* %18, float* %19, i32 %20, i32 %21, float* %22, float* %23, i32 %24, i32 3)
%26 = load float*, float** %9
%27 = getelementptr inbounds [560 x float], [560 x float]* %17, i64 0, i64 0
%28 = load float, float* %13
%29 = call i32 @smath(float* %26, float* %27, i32 3, float %28)
ret void
}

LLVM IR (-O2):
define void @enhancer(float* %0, float* %1, i32 %2, i32 %3, float %4, float* %5, float* %6, i32 %7) {
%9 = alloca [560 x float]
%10 = bitcast [560 x float]* %9 to i8*
%11 = getelementptr inbounds [560 x float], [560 x float]* %9, i64 0, i64 0
%12 = call i32 @getsseq(float* %11, float* %1, i32 %2, i32 %3, float* %5, float* %6, i32 %7, i32 3)
%13 = call i32 @smath(float* %0, float* %11, i32 3, float %4)
ret void
}