#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 preFilterDefine() {
  vspace(3);
  commentln("Prefilter runtime definition");
  codeln("void preFilterDefine (int type, double fq, double Q, double G)");
  codeln("{");
  pushIndent();
  codeln("double C[6];");
  codeln("eqCompute (type, fq, Q, G, C);");
  codeln("pr_b0 = (float) C[EQC_B0];");
  codeln("pr_b1 = (float) C[EQC_B1];");
  codeln("pr_b2 = (float) C[EQC_B2];");
  codeln("pr_a1 = (float) C[EQC_A1];");
  codeln("pr_a2 = (float) C[EQC_A2];");
  codeln("printf(\"\\rPRE:Hz:%10.4lf:Q:%10.4lf:G:%10.4lf\",fq,Q,G);");
  codeln("fflush (stdout);");
  popIndent();
  codeln("}");
}


x86 assembly (clang, -O0):
<preFilterDefine>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3,%edi
call   1060 <vspace@plt>
lea    0xe9b(%rip),%rdi
call   1050 <commentln@plt>
lea    0xeac(%rip),%rdi
call   1040 <codeln@plt>
lea    0xedf(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1030 <pushIndent@plt>
lea    0xece(%rip),%rdi
call   1040 <codeln@plt>
lea    0xecf(%rip),%rdi
call   1040 <codeln@plt>
lea    0xee2(%rip),%rdi
call   1040 <codeln@plt>
lea    0xef1(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf00(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf0f(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf1e(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf2d(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf58(%rip),%rdi
call   1040 <codeln@plt>
mov    $0x0,%al
call   1070 <popIndent@plt>
lea    0xf56(%rip),%rdi
call   1040 <codeln@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<preFilterDefine>:
push   %rax
mov    $0x3,%edi
call   1060 <vspace@plt>
lea    0xe9e(%rip),%rdi
call   1050 <commentln@plt>
lea    0xeaf(%rip),%rdi
call   1040 <codeln@plt>
lea    0xee2(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1030 <pushIndent@plt>
lea    0xed1(%rip),%rdi
call   1040 <codeln@plt>
lea    0xed2(%rip),%rdi
call   1040 <codeln@plt>
lea    0xee5(%rip),%rdi
call   1040 <codeln@plt>
lea    0xef4(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf03(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf12(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf21(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf30(%rip),%rdi
call   1040 <codeln@plt>
lea    0xf5b(%rip),%rdi
call   1040 <codeln@plt>
xor    %eax,%eax
call   1070 <popIndent@plt>
lea    0xf59(%rip),%rdi
pop    %rax
jmp    1040 <codeln@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"Prefilter runtime definition\00"
@.str.1 = [63 x i8] c"void preFilterDefine (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"pr_b0 = (float) C[EQC_B0];\00"
@.str.6 = [27 x i8] c"pr_b1 = (float) C[EQC_B1];\00"
@.str.7 = [27 x i8] c"pr_b2 = (float) C[EQC_B2];\00"
@.str.8 = [27 x i8] c"pr_a1 = (float) C[EQC_A1];\00"
@.str.9 = [27 x i8] c"pr_a2 = (float) C[EQC_A2];\00"
@.str.10 = [55 x i8] c"printf(\22\\rPRE: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 @preFilterDefine() {
%1 = call i32 @vspace(i32 3)
%2 = call i32 @commentln(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @codeln(i8* getelementptr inbounds ([63 x i8], [63 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 = [29 x i8] c"Prefilter runtime definition\00"
@.str.1 = [63 x i8] c"void preFilterDefine (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"pr_b0 = (float) C[EQC_B0];\00"
@.str.6 = [27 x i8] c"pr_b1 = (float) C[EQC_B1];\00"
@.str.7 = [27 x i8] c"pr_b2 = (float) C[EQC_B2];\00"
@.str.8 = [27 x i8] c"pr_a1 = (float) C[EQC_A1];\00"
@.str.9 = [27 x i8] c"pr_a2 = (float) C[EQC_A2];\00"
@.str.10 = [55 x i8] c"printf(\22\\rPRE: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 @preFilterDefine() {
%1 = tail call i32 @vspace(i32 3)
%2 = tail call i32 @commentln(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @codeln(i8* getelementptr inbounds ([63 x i8], [63 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
}