#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*/ vspace(int);
void postFilterDefine() {
  vspace(3);
  commentln("Postfilter runtime definition");
  codeln("void postFilterDefine (int type, double fq, double Q, double G)");
  codeln("{");
  pushIndent();
  codeln("double C[6];");
  codeln("eqCompute (type, fq, Q, G, C);");
  codeln("de_b0 = (float) C[EQC_B0];");
  codeln("de_b1 = (float) C[EQC_B1];");
  codeln("de_b2 = (float) C[EQC_B2];");
  codeln("de_a1 = (float) C[EQC_A1];");
  codeln("de_a2 = (float) C[EQC_A2];");
  codeln("printf(\"\\rPST:Hz:%10.4lf:Q:%10.4lf:G:%10.4lf\",fq,Q,G);");
  codeln("fflush (stdout);");
  popIndent();
  codeln("}");
}


x86 assembly (clang, -O0):
<postFilterDefine>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3,%edi
call   1060 <vspace@plt>
lea    0xe9b(%rip),%rdi
call   1050 <commentln@plt>
lea    0xead(%rip),%rdi
call   1040 <codeln@plt>
lea    0xee1(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1030 <pushIndent@plt>
lea    0xed0(%rip),%rdi
call   1040 <codeln@plt>
lea    0xed1(%rip),%rdi
call   1040 <codeln@plt>
lea    0xee4(%rip),%rdi
call   1040 <codeln@plt>
lea    0xef3(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf02(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf11(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf20(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf2f(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf5a(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1070 <popIndent@plt>
lea    0xf58(%rip),%rdi
call   1040 <codeln@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<postFilterDefine>:
push   %rax
mov    $0x3,%edi
call   1060 <vspace@plt>
lea    0xe9e(%rip),%rdi
call   1050 <commentln@plt>
lea    0xeb0(%rip),%rdi
call   1040 <codeln@plt>
lea    0xee4(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1030 <pushIndent@plt>
lea    0xed3(%rip),%rdi
call   1040 <codeln@plt>
lea    0xed4(%rip),%rdi
call   1040 <codeln@plt>
lea    0xee7(%rip),%rdi
call   1040 <codeln@plt>
lea    0xef6(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf05(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf14(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf23(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf32(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf5d(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1070 <popIndent@plt>
lea    0xf5b(%rip),%rdi
pop    %rax
jmp    1040 <codeln@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"Postfilter runtime definition\00"
@.str.1 = [64 x i8] c"void postFilterDefine (int type, double fq, double Q, double G)\00"
@.str.2 = [2 x i8] c"{\00"
@.str.3 = [13 x i8] c"double C[6];\00"
@.str.4 = [31 x i8] c"eqCompute (type, fq, Q, G, C);\00"
@.str.5 = [27 x i8] c"de_b0 = (float) C[EQC_B0];\00"
@.str.6 = [27 x i8] c"de_b1 = (float) C[EQC_B1];\00"
@.str.7 = [27 x i8] c"de_b2 = (float) C[EQC_B2];\00"
@.str.8 = [27 x i8] c"de_a1 = (float) C[EQC_A1];\00"
@.str.9 = [27 x i8] c"de_a2 = (float) C[EQC_A2];\00"
@.str.10 = [55 x i8] c"printf(\22\\rPST:Hz:%10.4lf:Q:%10.4lf:G:%10.4lf\22,fq,Q,G);\00"
@.str.11 = [17 x i8] c"fflush (stdout);\00"
@.str.12 = [2 x i8] c"}\00"
define void @postFilterDefine() {
%1 = call i32 @vspace(i32 3)
%2 = call i32 @commentln(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @codeln(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (...) @pushIndent()
%6 = call i32 @codeln(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @codeln(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @codeln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @codeln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @codeln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @codeln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @codeln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 @codeln(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @codeln(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 (...) @popIndent()
%16 = call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"Postfilter runtime definition\00"
@.str.1 = [64 x i8] c"void postFilterDefine (int type, double fq, double Q, double G)\00"
@.str.2 = [2 x i8] c"{\00"
@.str.3 = [13 x i8] c"double C[6];\00"
@.str.4 = [31 x i8] c"eqCompute (type, fq, Q, G, C);\00"
@.str.5 = [27 x i8] c"de_b0 = (float) C[EQC_B0];\00"
@.str.6 = [27 x i8] c"de_b1 = (float) C[EQC_B1];\00"
@.str.7 = [27 x i8] c"de_b2 = (float) C[EQC_B2];\00"
@.str.8 = [27 x i8] c"de_a1 = (float) C[EQC_A1];\00"
@.str.9 = [27 x i8] c"de_a2 = (float) C[EQC_A2];\00"
@.str.10 = [55 x i8] c"printf(\22\\rPST:Hz:%10.4lf:Q:%10.4lf:G:%10.4lf\22,fq,Q,G);\00"
@.str.11 = [17 x i8] c"fflush (stdout);\00"
@.str.12 = [2 x i8] c"}\00"
define void @postFilterDefine() {
%1 = tail call i32 @vspace(i32 3)
%2 = tail call i32 @commentln(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @codeln(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 (...) @pushIndent()
%6 = tail call i32 @codeln(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @codeln(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @codeln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 @codeln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 @codeln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 @codeln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%12 = tail call i32 @codeln(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0))
%13 = tail call i32 @codeln(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.10, i64 0, i64 0))
%14 = tail call i32 @codeln(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
%15 = tail call i32 (...) @popIndent()
%16 = tail call i32 @codeln(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
ret void
}