#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 /*<<< orphan*/ puts(char *);
int main(int argc, char **argv) {
  puts("/* SoX Resampler Library      Copyright (c) 2007-16 "
       "robs@users.sourceforge.net");
  puts(" * Licence for this file: LGPL v2.1                  See LICENCE for "
       "details. */\n");
  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)
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xf26(%rip),%rdi
call   1030 <puts@plt>
mov    $0xf1,%edi
mov    $0x1,%esi
movsd  0xe98(%rip),%xmm0
movsd  0xeb0(%rip),%xmm1
mov    $0xa0,%edx
mov    $0x20,%ecx
lea    0xf4d(%rip),%r8
call   1050 <fir@plt>
mov    $0x18,%edi
xor    %esi,%esi
movsd  0xe83(%rip),%xmm0
movsd  0xe83(%rip),%xmm1
mov    $0x1,%edx
mov    $0x1f,%ecx
lea    0xf1b(%rip),%r8
call   1050 <fir@plt>
mov    $0x14,%edi
mov    $0xc,%esi
movsd  0xe4b(%rip),%xmm0
movsd  0xe3b(%rip),%xmm1
mov    $0xa0,%edx
mov    $0x3a,%ecx
lea    0xeff(%rip),%r8
call   1050 <fir@plt>
mov    $0xc,%edi
mov    $0x6,%esi
movsd  0xe0b(%rip),%xmm0
movsd  0xe0b(%rip),%xmm1
mov    $0x50,%edx
mov    $0x1d,%ecx
lea    0xed8(%rip),%r8
call   1050 <fir@plt>
mov    $0xf,%edi
movsd  0xdd8(%rip),%xmm0
lea    0xec8(%rip),%rsi
call   1040 <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    0xef8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf86(%rip),%r8
movsd  0xea8(%rip),%xmm0
movsd  0xea8(%rip),%xmm1
mov    $0xf1,%edi
mov    $0x1,%esi
mov    $0xa0,%edx
mov    $0x20,%ecx
call   1050 <fir@plt>
lea    0xf51(%rip),%r8
movsd  0xe88(%rip),%xmm0
mov    $0x18,%edi
xor    %esi,%esi
movsd  0xe71(%rip),%xmm1
mov    $0x1,%edx
mov    $0x1f,%ecx
call   1050 <fir@plt>
lea    0xf38(%rip),%r8
movsd  0xe63(%rip),%xmm0
movsd  0xe63(%rip),%xmm1
mov    $0x14,%edi
mov    $0xc,%esi
mov    $0xa0,%edx
mov    $0x3a,%ecx
call   1050 <fir@plt>
lea    0xf11(%rip),%r8
mov    $0xc,%edi
mov    $0x6,%esi
movsd  0xe11(%rip),%xmm0
movsd  0xe29(%rip),%xmm1
mov    $0x50,%edx
mov    $0x1d,%ecx
call   1050 <fir@plt>
lea    0xeea(%rip),%rsi
movsd  0xe13(%rip),%xmm0
mov    $0xf,%edi
call   1040 <iir@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [79 x i8] c"/* SoX Resampler Library Copyright (c) 2007-16 robs@users.sourceforge.net\00"
@.str.1 = [82 x i8] c" * Licence for this file: LGPL v2.1 See LICENCE for details. */\0A\00"
@.str.2 = [15 x i8] c"half_fir_coefs\00"
@.str.3 = [20 x i8] c"fast_half_fir_coefs\00"
@.str.4 = [9 x i8] c"coefs0_d\00"
@.str.5 = [9 x i8] c"coefs0_u\00"
@.str.6 = [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 @puts(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.1, i64 0, i64 0))
%8 = 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.2, i64 0, i64 0))
%9 = 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.3, i64 0, i64 0))
%10 = 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.4, i64 0, i64 0))
%11 = 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.5, i64 0, i64 0))
%12 = call i32 @iir(i32 15, double 4.920000e-01, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%13 = load i32, i32* %4
%14 = mul nsw i32 0, %13
%15 = load i8**, i8*** %5
%16 = icmp ne i8** %15, null
%17 = xor i1 %16, true
%18 = zext i1 %17 to i32
%19 = mul nsw i32 %14, %18
ret i32 %19
}

LLVM IR (-O2):
@.str = [79 x i8] c"/* SoX Resampler Library Copyright (c) 2007-16 robs@users.sourceforge.net\00"
@.str.1 = [82 x i8] c" * Licence for this file: LGPL v2.1 See LICENCE for details. */\0A\00"
@.str.2 = [15 x i8] c"half_fir_coefs\00"
@.str.3 = [20 x i8] c"fast_half_fir_coefs\00"
@.str.4 = [9 x i8] c"coefs0_d\00"
@.str.5 = [9 x i8] c"coefs0_u\00"
@.str.6 = [10 x i8] c"iir_coefs\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @.str.1, i64 0, i64 0))
%5 = 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.2, i64 0, i64 0))
%6 = 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.3, i64 0, i64 0))
%7 = 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.4, i64 0, i64 0))
%8 = 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.5, i64 0, i64 0))
%9 = tail call i32 @iir(i32 15, double 4.920000e-01, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}