#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*/ fir(int, int, double, double, int, int, char *);
int /*<<< orphan*/ iir(int, double, char *);
int main(int argc, char **argv) {
  fir(241, 1, .45, .5, 160, 32, "half_fir_coefs");
  fir(24, .5, .25, .5, 1, 31, "fast_half_fir_coefs");
  fir(20, 12, .9, 1.5, 160, 58, "coefs0_d");
  fir(12, 6, .45, 1.5, 80, 29, "coefs0_u");
  iir(15, .492, "iir_coefs");
  return 0 * argc * !argv;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0xf1,%edi
mov    $0x1,%esi
movsd  0xec0(%rip),%xmm0
movsd  0xed8(%rip),%xmm1
mov    $0xa0,%edx
mov    $0x20,%ecx
lea    0xed4(%rip),%r8
call   1040 <fir@plt>
mov    $0x18,%edi
xor    %esi,%esi
movsd  0xeab(%rip),%xmm0
movsd  0xeab(%rip),%xmm1
mov    $0x1,%edx
mov    $0x1f,%ecx
lea    0xea2(%rip),%r8
call   1040 <fir@plt>
mov    $0x14,%edi
mov    $0xc,%esi
movsd  0xe73(%rip),%xmm0
movsd  0xe63(%rip),%xmm1
mov    $0xa0,%edx
mov    $0x3a,%ecx
lea    0xe86(%rip),%r8
call   1040 <fir@plt>
mov    $0xc,%edi
mov    $0x6,%esi
movsd  0xe33(%rip),%xmm0
movsd  0xe33(%rip),%xmm1
mov    $0x50,%edx
mov    $0x1d,%ecx
lea    0xe5f(%rip),%r8
call   1040 <fir@plt>
mov    $0xf,%edi
movsd  0xe00(%rip),%xmm0
lea    0xe4f(%rip),%rsi
call   1030 <iir@plt>
imul   $0x0,-0x8(%rbp),%eax
cmpq   $0x0,-0x10(%rbp)
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
imul   %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf0d(%rip),%r8
movsd  0xed0(%rip),%xmm0
movsd  0xed0(%rip),%xmm1
mov    $0xf1,%edi
mov    $0x1,%esi
mov    $0xa0,%edx
mov    $0x20,%ecx
call   1040 <fir@plt>
lea    0xed8(%rip),%r8
movsd  0xeb0(%rip),%xmm0
mov    $0x18,%edi
xor    %esi,%esi
movsd  0xe99(%rip),%xmm1
mov    $0x1,%edx
mov    $0x1f,%ecx
call   1040 <fir@plt>
lea    0xebf(%rip),%r8
movsd  0xe8b(%rip),%xmm0
movsd  0xe8b(%rip),%xmm1
mov    $0x14,%edi
mov    $0xc,%esi
mov    $0xa0,%edx
mov    $0x3a,%ecx
call   1040 <fir@plt>
lea    0xe98(%rip),%r8
mov    $0xc,%edi
mov    $0x6,%esi
movsd  0xe39(%rip),%xmm0
movsd  0xe51(%rip),%xmm1
mov    $0x50,%edx
mov    $0x1d,%ecx
call   1040 <fir@plt>
lea    0xe71(%rip),%rsi
movsd  0xe3b(%rip),%xmm0
mov    $0xf,%edi
call   1030 <iir@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"half_fir_coefs\00"
@.str.1 = [20 x i8] c"fast_half_fir_coefs\00"
@.str.2 = [9 x i8] c"coefs0_d\00"
@.str.3 = [9 x i8] c"coefs0_u\00"
@.str.4 = [10 x i8] c"iir_coefs\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @fir(i32 241, i32 1, double 4.500000e-01, double 5.000000e-01, i32 160, i32 32, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @fir(i32 24, i32 0, double 2.500000e-01, double 5.000000e-01, i32 1, i32 31, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @fir(i32 20, i32 12, double 9.000000e-01, double 1.500000e+00, i32 160, i32 58, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @fir(i32 12, i32 6, double 4.500000e-01, double 1.500000e+00, i32 80, i32 29, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @iir(i32 15, double 4.920000e-01, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* %4
%12 = mul nsw i32 0, %11
%13 = load i8**, i8*** %5
%14 = icmp ne i8** %13, null
%15 = xor i1 %14, true
%16 = zext i1 %15 to i32
%17 = mul nsw i32 %12, %16
ret i32 %17
}

LLVM IR (-O2):
@.str = [15 x i8] c"half_fir_coefs\00"
@.str.1 = [20 x i8] c"fast_half_fir_coefs\00"
@.str.2 = [9 x i8] c"coefs0_d\00"
@.str.3 = [9 x i8] c"coefs0_u\00"
@.str.4 = [10 x i8] c"iir_coefs\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @fir(i32 241, i32 1, double 4.500000e-01, double 5.000000e-01, i32 160, i32 32, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @fir(i32 24, i32 0, double 2.500000e-01, double 5.000000e-01, i32 1, i32 31, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @fir(i32 20, i32 12, double 9.000000e-01, double 1.500000e+00, i32 160, i32 58, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @fir(i32 12, i32 6, double 4.500000e-01, double 1.500000e+00, i32 80, i32 29, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @iir(i32 15, double 4.920000e-01, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}