#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*/ codeln(char *);
int /*<<< orphan*/ pushIndent();
int /*<<< orphan*/ sprintf(char *, char *, char *);
int /*<<< orphan*/ vspace(int);
void funcHeader(char *funcName) {
  char buf[512];
  vspace(3);
  sprintf(buf,
          "float * %s (void *pa, const float * inBuf, float * outBuf, size_t "
          "buflen)",
          funcName);
  codeln(buf);
  codeln("{");
  pushIndent();
  codeln("struct b_preamp *pp = (struct b_preamp *) pa;");
}


x86 assembly (clang, -O0):
<funcHeader>:
push   %rbp
mov    %rsp,%rbp
sub    $0x210,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x3,%edi
call   1050 <vspace@plt>
lea    -0x210(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xe95(%rip),%rsi
call   1060 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <codeln@plt>
lea    0xec7(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1030 <pushIndent@plt>
lea    0xeb6(%rip),%rdi
call   1040 <codeln@plt>
add    $0x210,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<funcHeader>:
push   %r14
push   %rbx
sub    $0x208,%rsp
mov    %rdi,%rbx
mov    $0x3,%edi
call   1050 <vspace@plt>
lea    0xea2(%rip),%rsi
mov    %rsp,%r14
mov    %r14,%rdi
mov    %rbx,%rdx
call   1060 <sprintf@plt>
mov    %r14,%rdi
call   1040 <codeln@plt>
lea    0xecf(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1030 <pushIndent@plt>
lea    0xebe(%rip),%rdi
call   1040 <codeln@plt>
add    $0x208,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [74 x i8] c"float * %s (void *pa, const float * inBuf, float * outBuf, size_t buflen)\00"
@.str.1 = [2 x i8] c"{\00"
@.str.2 = [46 x i8] c"struct b_preamp *pp = (struct b_preamp *) pa;\00"
define void @funcHeader(i8* %0) {
%2 = alloca i8*
%3 = alloca [512 x i8]
store i8* %0, i8** %2
%4 = call i32 @vspace(i32 3)
%5 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%6 = load i8*, i8** %2
%7 = call i32 @sprintf(i8* %5, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%9 = call i32 @codeln(i8* %8)
%10 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (...) @pushIndent()
%12 = call i32 @codeln(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [74 x i8] c"float * %s (void *pa, const float * inBuf, float * outBuf, size_t buflen)\00"
@.str.1 = [2 x i8] c"{\00"
@.str.2 = [46 x i8] c"struct b_preamp *pp = (struct b_preamp *) pa;\00"
define void @funcHeader(i8* %0) {
%2 = alloca [512 x i8]
%3 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%4 = tail call i32 @vspace(i32 3)
%5 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0), i8* %0)
%6 = call i32 @codeln(i8* %3)
%7 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (...) @pushIndent()
%9 = call i32 @codeln(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0))
ret void
}