#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*/ commentln(char *);
int /*<<< orphan*/ popIndent();
int /*<<< orphan*/ pushIndent();
int /*<<< orphan*/ rst_biased();
int /*<<< orphan*/ sprintf(char *, char *, double);
int /*<<< orphan*/ vspace(int);
void adapterPreamp(char *funcName) {
  int xbufSize = 256;
  int ybufSize = 256;
  char buf[512];
  vspace(3);
  commentln("Adapter function");
  codeln("float * preamp (void * pa,");
  codeln("                float * inBuf,");
  codeln("                float * outBuf,");
  codeln("                size_t bufLengthSamples) {");
  pushIndent();
  codeln("struct b_preamp *pp = (struct b_preamp *) pa;");
  codeln("if (pp->isClean) {");
  pushIndent();
  codeln("memcpy(outBuf, inBuf, bufLengthSamples*sizeof(float));");
  popIndent();
  codeln("}");
  codeln("else {");
  pushIndent();
  codeln("overdrive (pa, inBuf, outBuf, bufLengthSamples);");
  popIndent();
  codeln("}");
  vspace(1);
  codeln("return outBuf;");
  popIndent();
  codeln("}");
  vspace(2);
  codeln("void * allocPreamp () {");
  pushIndent();
  codeln("struct b_preamp *pp = (struct b_preamp *) calloc(1, sizeof(struct "
         "b_preamp));");
  codeln("pp->xzp = &(pp->xzb[0]);");
  sprintf(buf, "pp->xzpe = &(pp->xzb[%d]);", 64);
  codeln(buf);
  sprintf(buf, "pp->xzwp = &(pp->xzb[%d]);", (33 / 4) + 1);
  codeln(buf);
  codeln("pp->yzp = &(pp->yzb[0]);");
  sprintf(buf, "pp->yzpe = &(pp->yzb[%d]);", 128);
  codeln(buf);
  sprintf(buf, "pp->yzwp = &(pp->yzb[%d]);", 33);
  codeln(buf);
  sprintf(buf, "pp->aalEnd = &(pp->aal[%d]);", 33);
  codeln(buf);
  sprintf(buf, "pp->ipolFilterLength = %d;", 33);
  codeln(buf);
  sprintf(buf, "pp->aalFilterLength = %d;", 33);
  codeln(buf);
  codeln("pp->isClean = 1;");
  sprintf(buf, "pp->outputGain = %g;", 0.8795);
  codeln(buf);
  sprintf(buf, "pp->inputGain = %g;", 3.5675);
  codeln(buf);
  vspace(3);
  codeln("pp->sagZ = 0.0;");
  sprintf(buf, "pp->sagFb = %g;", 0.991);
  codeln(buf);
  codeln(buf);
  rst_biased();
  codeln("return pp;");
  popIndent();
  codeln("}");
  vspace(2);
  codeln("void freePreamp (void * pa) {");
  pushIndent();
  codeln("struct b_preamp *pp = (struct b_preamp *) pa;");
  codeln("free(pp);");
  popIndent();
  codeln("}");
}


x86 assembly (clang, -O0):
<adapterPreamp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x210,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x100,-0xc(%rbp)
movl   $0x100,-0x10(%rbp)
mov    $0x3,%edi
call   1060 <vspace@plt>
lea    0xe9a(%rip),%rdi
call   1050 <commentln@plt>
lea    0xe9f(%rip),%rdi
call   1040 <codeln@plt>
lea    0xeae(%rip),%rdi
call   1040 <codeln@plt>
lea    0xec1(%rip),%rdi
call   1040 <codeln@plt>
lea    0xed5(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1030 <pushIndent@plt>
lea    0xeed(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf0f(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1030 <pushIndent@plt>
lea    0xf0f(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1070 <popIndent@plt>
lea    0xf33(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf29(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1030 <pushIndent@plt>
lea    0xf1d(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1070 <popIndent@plt>
lea    0xf01(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x1,%edi
call   1060 <vspace@plt>
lea    0xf25(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1070 <popIndent@plt>
lea    0xed8(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x2,%edi
call   1060 <vspace@plt>
lea    0xf0b(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1030 <pushIndent@plt>
lea    0xf10(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf52(%rip),%rdi
call   1040 <codeln@plt>
lea    -0x210(%rbp),%rdi
lea    0xf58(%rip),%rsi
movsd  0xd72(%rip),%xmm0
call   1080 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <codeln@plt>
lea    -0x210(%rbp),%rdi
lea    0xf4c(%rip),%rsi
movsd  0xd43(%rip),%xmm0
call   1080 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <codeln@plt>
lea    0xf47(%rip),%rdi
call   1040 <codeln@plt>
lea    -0x210(%rbp),%rdi
lea    0xf4d(%rip),%rsi
movsd  0xd08(%rip),%xmm0
call   1080 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <codeln@plt>
lea    -0x210(%rbp),%rdi
lea    0xf41(%rip),%rsi
movsd  0xcd9(%rip),%xmm0
call   1080 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <codeln@plt>
lea    -0x210(%rbp),%rdi
lea    0xf35(%rip),%rsi
movsd  0xcb2(%rip),%xmm0
call   1080 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <codeln@plt>
lea    -0x210(%rbp),%rdi
lea    0xf2b(%rip),%rsi
movsd  0xc8b(%rip),%xmm0
call   1080 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <codeln@plt>
lea    -0x210(%rbp),%rdi
lea    0xf1f(%rip),%rsi
movsd  0xc64(%rip),%xmm0
call   1080 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <codeln@plt>
lea    0xf19(%rip),%rdi
call   1040 <codeln@plt>
lea    -0x210(%rbp),%rdi
lea    0xf17(%rip),%rsi
movsd  0xc29(%rip),%xmm0
call   1080 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <codeln@plt>
lea    -0x210(%rbp),%rdi
lea    0xf05(%rip),%rsi
movsd  0xbfa(%rip),%xmm0
call   1080 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <codeln@plt>
mov    $0x3,%edi
call   1060 <vspace@plt>
lea    0xeef(%rip),%rdi
call   1040 <codeln@plt>
lea    -0x210(%rbp),%rdi
lea    0xeec(%rip),%rsi
movsd  0xbb5(%rip),%xmm0
call   1080 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <codeln@plt>
lea    -0x210(%rbp),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1090 <rst_biased@plt>
lea    0xec9(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1070 <popIndent@plt>
lea    0xcbd(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x2,%edi
call   1060 <vspace@plt>
lea    0xeab(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1030 <pushIndent@plt>
lea    0xc1c(%rip),%rdi
call   1040 <codeln@plt>
lea    0xeaa(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1070 <popIndent@plt>
lea    0xc75(%rip),%rdi
call   1040 <codeln@plt>
add    $0x210,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<adapterPreamp>:
push   %r15
push   %r14
push   %rbx
sub    $0x200,%rsp
mov    $0x3,%edi
call   1060 <vspace@plt>
lea    0xeab(%rip),%rdi
call   1050 <commentln@plt>
lea    0xeb0(%rip),%rdi
call   1040 <codeln@plt>
lea    0xebf(%rip),%rdi
call   1040 <codeln@plt>
lea    0xed2(%rip),%rdi
call   1040 <codeln@plt>
lea    0xee6(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1030 <pushIndent@plt>
lea    0xefe(%rip),%r14
mov    %r14,%rdi
call   1040 <codeln@plt>
lea    0xf1d(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1030 <pushIndent@plt>
lea    0xf1d(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1070 <popIndent@plt>
lea    0xf41(%rip),%r15
mov    %r15,%rdi
call   1040 <codeln@plt>
lea    0xf34(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1030 <pushIndent@plt>
lea    0xf28(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1070 <popIndent@plt>
mov    %r15,%rdi
call   1040 <codeln@plt>
mov    $0x1,%edi
call   1060 <vspace@plt>
lea    0xf34(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1070 <popIndent@plt>
mov    %r15,%rdi
call   1040 <codeln@plt>
mov    $0x2,%edi
call   1060 <vspace@plt>
lea    0xf1e(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1030 <pushIndent@plt>
lea    0xf23(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf65(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf72(%rip),%rsi
mov    %rsp,%rbx
movsd  0xd59(%rip),%xmm0
mov    %rbx,%rdi
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <codeln@plt>
lea    0xf6b(%rip),%rsi
movsd  0xd42(%rip),%xmm0
mov    %rbx,%rdi
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <codeln@plt>
lea    0xf67(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf74(%rip),%rsi
movsd  0xd1f(%rip),%xmm0
mov    %rbx,%rdi
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <codeln@plt>
lea    0xf70(%rip),%rsi
movsd  0xd08(%rip),%xmm0
mov    %rbx,%rdi
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <codeln@plt>
lea    0xf6c(%rip),%rsi
mov    %rbx,%rdi
movsd  0xce6(%rip),%xmm0
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <codeln@plt>
lea    0xf6a(%rip),%rsi
mov    %rbx,%rdi
movsd  0xcc7(%rip),%xmm0
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <codeln@plt>
lea    0xf66(%rip),%rsi
mov    %rbx,%rdi
movsd  0xca8(%rip),%xmm0
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <codeln@plt>
lea    0xf61(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf66(%rip),%rsi
movsd  0xc88(%rip),%xmm0
mov    %rbx,%rdi
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <codeln@plt>
lea    0xf5c(%rip),%rsi
movsd  0xc71(%rip),%xmm0
mov    %rbx,%rdi
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <codeln@plt>
mov    $0x3,%edi
call   1060 <vspace@plt>
lea    0xf47(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf4b(%rip),%rsi
movsd  0xc44(%rip),%xmm0
mov    %rbx,%rdi
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <codeln@plt>
mov    %rbx,%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1090 <rst_biased@plt>
lea    0xf2d(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1070 <popIndent@plt>
mov    %r15,%rdi
call   1040 <codeln@plt>
mov    $0x2,%edi
call   1060 <vspace@plt>
lea    0xf13(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1030 <pushIndent@plt>
mov    %r14,%rdi
call   1040 <codeln@plt>
lea    0xf16(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1070 <popIndent@plt>
mov    %r15,%rdi
call   1040 <codeln@plt>
add    $0x200,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [17 x i8] c"Adapter function\00"
@.str.1 = [27 x i8] c"float * preamp (void * pa,\00"
@.str.2 = [31 x i8] c" float * inBuf,\00"
@.str.3 = [32 x i8] c" float * outBuf,\00"
@.str.4 = [43 x i8] c" size_t bufLengthSamples) {\00"
@.str.5 = [46 x i8] c"struct b_preamp *pp = (struct b_preamp *) pa;\00"
@.str.6 = [19 x i8] c"if (pp->isClean) {\00"
@.str.7 = [55 x i8] c"memcpy(outBuf, inBuf, bufLengthSamples*sizeof(float));\00"
@.str.8 = [2 x i8] c"}\00"
@.str.9 = [7 x i8] c"else {\00"
@.str.10 = [49 x i8] c"overdrive (pa, inBuf, outBuf, bufLengthSamples);\00"
@.str.11 = [15 x i8] c"return outBuf;\00"
@.str.12 = [24 x i8] c"void * allocPreamp () {\00"
@.str.13 = [78 x i8] c"struct b_preamp *pp = (struct b_preamp *) calloc(1, sizeof(struct b_preamp));\00"
@.str.14 = [25 x i8] c"pp->xzp = &(pp->xzb[0]);\00"
@.str.15 = [27 x i8] c"pp->xzpe = &(pp->xzb[%d]);\00"
@.str.16 = [27 x i8] c"pp->xzwp = &(pp->xzb[%d]);\00"
@.str.17 = [25 x i8] c"pp->yzp = &(pp->yzb[0]);\00"
@.str.18 = [27 x i8] c"pp->yzpe = &(pp->yzb[%d]);\00"
@.str.19 = [27 x i8] c"pp->yzwp = &(pp->yzb[%d]);\00"
@.str.20 = [29 x i8] c"pp->aalEnd = &(pp->aal[%d]);\00"
@.str.21 = [27 x i8] c"pp->ipolFilterLength = %d;\00"
@.str.22 = [26 x i8] c"pp->aalFilterLength = %d;\00"
@.str.23 = [17 x i8] c"pp->isClean = 1;\00"
@.str.24 = [21 x i8] c"pp->outputGain = %g;\00"
@.str.25 = [20 x i8] c"pp->inputGain = %g;\00"
@.str.26 = [16 x i8] c"pp->sagZ = 0.0;\00"
@.str.27 = [16 x i8] c"pp->sagFb = %g;\00"
@.str.28 = [11 x i8] c"return pp;\00"
@.str.29 = [30 x i8] c"void freePreamp (void * pa) {\00"
@.str.30 = [10 x i8] c"free(pp);\00"
define void @adapterPreamp(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca [512 x i8]
store i8* %0, i8** %2
store i32 256, i32* %3
store i32 256, i32* %4
%6 = call i32 @vspace(i32 3)
%7 = call i32 @commentln(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @codeln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @codeln(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @codeln(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @codeln(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 (...) @pushIndent()
%13 = call i32 @codeln(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 @codeln(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 (...) @pushIndent()
%16 = call i32 @codeln(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 (...) @popIndent()
%18 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%19 = call i32 @codeln(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%20 = call i32 (...) @pushIndent()
%21 = call i32 @codeln(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%22 = call i32 (...) @popIndent()
%23 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%24 = call i32 @vspace(i32 1)
%25 = call i32 @codeln(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%26 = call i32 (...) @popIndent()
%27 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%28 = call i32 @vspace(i32 2)
%29 = call i32 @codeln(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0))
%30 = call i32 (...) @pushIndent()
%31 = call i32 @codeln(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.13, i64 0, i64 0))
%32 = call i32 @codeln(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0))
%33 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%34 = call i32 @sprintf(i8* %33, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.15, i64 0, i64 0), double 6.400000e+01)
%35 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%36 = call i32 @codeln(i8* %35)
%37 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%38 = call i32 @sprintf(i8* %37, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.16, i64 0, i64 0), double 9.000000e+00)
%39 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%40 = call i32 @codeln(i8* %39)
%41 = call i32 @codeln(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.17, i64 0, i64 0))
%42 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%43 = call i32 @sprintf(i8* %42, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.18, i64 0, i64 0), double 1.280000e+02)
%44 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%45 = call i32 @codeln(i8* %44)
%46 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%47 = call i32 @sprintf(i8* %46, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.19, i64 0, i64 0), double 3.300000e+01)
%48 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%49 = call i32 @codeln(i8* %48)
%50 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%51 = call i32 @sprintf(i8* %50, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0), double 3.300000e+01)
%52 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%53 = call i32 @codeln(i8* %52)
%54 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%55 = call i32 @sprintf(i8* %54, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.21, i64 0, i64 0), double 3.300000e+01)
%56 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%57 = call i32 @codeln(i8* %56)
%58 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%59 = call i32 @sprintf(i8* %58, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.22, i64 0, i64 0), double 3.300000e+01)
%60 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%61 = call i32 @codeln(i8* %60)
%62 = call i32 @codeln(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.23, i64 0, i64 0))
%63 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%64 = call i32 @sprintf(i8* %63, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.24, i64 0, i64 0), double 0x3FEC24DD2F1A9FBE)
%65 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%66 = call i32 @codeln(i8* %65)
%67 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%68 = call i32 @sprintf(i8* %67, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.25, i64 0, i64 0), double 3.567500e+00)
%69 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%70 = call i32 @codeln(i8* %69)
%71 = call i32 @vspace(i32 3)
%72 = call i32 @codeln(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0))
%73 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%74 = call i32 @sprintf(i8* %73, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.27, i64 0, i64 0), double 0x3FEFB645A1CAC083)
%75 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%76 = call i32 @codeln(i8* %75)
%77 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%78 = call i32 @codeln(i8* %77)
%79 = call i32 (...) @rst_biased()
%80 = call i32 @codeln(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.28, i64 0, i64 0))
%81 = call i32 (...) @popIndent()
%82 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%83 = call i32 @vspace(i32 2)
%84 = call i32 @codeln(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.29, i64 0, i64 0))
%85 = call i32 (...) @pushIndent()
%86 = call i32 @codeln(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
%87 = call i32 @codeln(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.30, i64 0, i64 0))
%88 = call i32 (...) @popIndent()
%89 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"Adapter function\00"
@.str.1 = [27 x i8] c"float * preamp (void * pa,\00"
@.str.2 = [31 x i8] c" float * inBuf,\00"
@.str.3 = [32 x i8] c" float * outBuf,\00"
@.str.4 = [43 x i8] c" size_t bufLengthSamples) {\00"
@.str.5 = [46 x i8] c"struct b_preamp *pp = (struct b_preamp *) pa;\00"
@.str.6 = [19 x i8] c"if (pp->isClean) {\00"
@.str.7 = [55 x i8] c"memcpy(outBuf, inBuf, bufLengthSamples*sizeof(float));\00"
@.str.8 = [2 x i8] c"}\00"
@.str.9 = [7 x i8] c"else {\00"
@.str.10 = [49 x i8] c"overdrive (pa, inBuf, outBuf, bufLengthSamples);\00"
@.str.11 = [15 x i8] c"return outBuf;\00"
@.str.12 = [24 x i8] c"void * allocPreamp () {\00"
@.str.13 = [78 x i8] c"struct b_preamp *pp = (struct b_preamp *) calloc(1, sizeof(struct b_preamp));\00"
@.str.14 = [25 x i8] c"pp->xzp = &(pp->xzb[0]);\00"
@.str.15 = [27 x i8] c"pp->xzpe = &(pp->xzb[%d]);\00"
@.str.16 = [27 x i8] c"pp->xzwp = &(pp->xzb[%d]);\00"
@.str.17 = [25 x i8] c"pp->yzp = &(pp->yzb[0]);\00"
@.str.18 = [27 x i8] c"pp->yzpe = &(pp->yzb[%d]);\00"
@.str.19 = [27 x i8] c"pp->yzwp = &(pp->yzb[%d]);\00"
@.str.20 = [29 x i8] c"pp->aalEnd = &(pp->aal[%d]);\00"
@.str.21 = [27 x i8] c"pp->ipolFilterLength = %d;\00"
@.str.22 = [26 x i8] c"pp->aalFilterLength = %d;\00"
@.str.23 = [17 x i8] c"pp->isClean = 1;\00"
@.str.24 = [21 x i8] c"pp->outputGain = %g;\00"
@.str.25 = [20 x i8] c"pp->inputGain = %g;\00"
@.str.26 = [16 x i8] c"pp->sagZ = 0.0;\00"
@.str.27 = [16 x i8] c"pp->sagFb = %g;\00"
@.str.28 = [11 x i8] c"return pp;\00"
@.str.29 = [30 x i8] c"void freePreamp (void * pa) {\00"
@.str.30 = [10 x i8] c"free(pp);\00"
define void @adapterPreamp(i8* nocapture readnone %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 = tail call i32 @commentln(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @codeln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @codeln(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @codeln(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @codeln(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 (...) @pushIndent()
%11 = tail call i32 @codeln(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 @codeln(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%13 = tail call i32 (...) @pushIndent()
%14 = tail call i32 @codeln(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0))
%15 = tail call i32 (...) @popIndent()
%16 = tail call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%17 = tail call i32 @codeln(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%18 = tail call i32 (...) @pushIndent()
%19 = tail call i32 @codeln(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%20 = tail call i32 (...) @popIndent()
%21 = tail call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%22 = tail call i32 @vspace(i32 1)
%23 = tail call i32 @codeln(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%24 = tail call i32 (...) @popIndent()
%25 = tail call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%26 = tail call i32 @vspace(i32 2)
%27 = tail call i32 @codeln(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0))
%28 = tail call i32 (...) @pushIndent()
%29 = tail call i32 @codeln(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.13, i64 0, i64 0))
%30 = tail call i32 @codeln(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0))
%31 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.15, i64 0, i64 0), double 6.400000e+01)
%32 = call i32 @codeln(i8* %3)
%33 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.16, i64 0, i64 0), double 9.000000e+00)
%34 = call i32 @codeln(i8* %3)
%35 = call i32 @codeln(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.17, i64 0, i64 0))
%36 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.18, i64 0, i64 0), double 1.280000e+02)
%37 = call i32 @codeln(i8* %3)
%38 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.19, i64 0, i64 0), double 3.300000e+01)
%39 = call i32 @codeln(i8* %3)
%40 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0), double 3.300000e+01)
%41 = call i32 @codeln(i8* %3)
%42 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.21, i64 0, i64 0), double 3.300000e+01)
%43 = call i32 @codeln(i8* %3)
%44 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.22, i64 0, i64 0), double 3.300000e+01)
%45 = call i32 @codeln(i8* %3)
%46 = call i32 @codeln(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.23, i64 0, i64 0))
%47 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.24, i64 0, i64 0), double 0x3FEC24DD2F1A9FBE)
%48 = call i32 @codeln(i8* %3)
%49 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.25, i64 0, i64 0), double 3.567500e+00)
%50 = call i32 @codeln(i8* %3)
%51 = call i32 @vspace(i32 3)
%52 = call i32 @codeln(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0))
%53 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.27, i64 0, i64 0), double 0x3FEFB645A1CAC083)
%54 = call i32 @codeln(i8* %3)
%55 = call i32 @codeln(i8* %3)
%56 = call i32 (...) @rst_biased()
%57 = call i32 @codeln(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.28, i64 0, i64 0))
%58 = call i32 (...) @popIndent()
%59 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%60 = call i32 @vspace(i32 2)
%61 = call i32 @codeln(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.29, i64 0, i64 0))
%62 = call i32 (...) @pushIndent()
%63 = call i32 @codeln(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
%64 = call i32 @codeln(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.30, i64 0, i64 0))
%65 = call i32 (...) @popIndent()
%66 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
ret void
}