#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 RAND_MAX;
int c1();
double c2();
double db(double);
double hipass(double, double, double);
double lowpass(double, double, double, double);
double para(int, int);
int /*<<< orphan*/ printf(char *, ...);
int r1();
double r2();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
double stage(double, double, double, double, double, double, double);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(void) {
  int freqs = 21;
  double hz[21] = {0.1,  1,    4,     12,    20,    31,    49,
                   79,   150,  270,   480,   1000,  1100,  2100,
                   3800, 7600, 12000, 21000, 31600, 50000, 100000};
  double iec[21] = {0,     0,      0,      0,      16.35, 17.09, 16.45,
                    14.4,  10.28,  6.23,   2.92,   0,     -0.23, -2.73,
                    -6.17, -11.39, -15.17, -19.95, 0,     0,     0};
  srand(time(NULL));
  double rla = para(2200, 2200) * r2(), rld = 10e3 * r1(), fl = 270e-9 * c2();
  double rba = 150 * r1(), rbd = 8200 * r1(), fb = 100e-6 * c1();
  double s3c = 100e-6 * c1(), s3a = 150 * r1(), s3d = 560 * r1(),
         s3l = 1500 * r1();
  double lpr = para(68e3, 68e3) * r2(), lpc = 2.2e-9 * c2();
  double nc = 0;
  double cin = 220e-9 * c1(), zin = para(150e3, 330e3) * r2();
  double cout = 470e-9, zout = 47e3;
  int fr;
  double gain, eq;
  printf("(output-Z: %f)\n%d\n", zout, RAND_MAX);
  printf("Hz\t\tGain\t\tdB\t\t(IEC err)\n");
  printf("==\t\t====\t\t==\t\t=========\n");
  for (fr = 0; fr < freqs; fr++) {
    gain = hipass(hz[fr], cin, zin);
    gain *= stage(hz[fr], fb, rba, rbd, fl, rla, rld);
    gain *= stage(hz[fr], s3c, s3a, s3d, 0, 0, s3l);
    gain *= lowpass(hz[fr], lpc, lpr, nc);
    gain *= hipass(hz[fr], cout, zout);
    eq = db(gain) - 38.8344;
    printf("%f\t%f\t%f", hz[fr], gain, eq);
    if (iec[fr] != 0) {
      printf("\t%f", eq - iec[fr]);
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x220,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x15,-0x8(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0xe49(%rip),%rsi
mov    $0xa8,%edx
call   1090 <memcpy@plt>
lea    -0x160(%rbp),%rdi
lea    0xee1(%rip),%rsi
mov    $0xa8,%edx
call   1090 <memcpy@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10b0 <time@plt>
mov    %eax,%edi
call   1080 <srand@plt>
mov    $0x898,%esi
mov    %esi,%edi
call   10d0 <para@plt>
movsd  %xmm0,-0x218(%rbp)
ff
mov    $0x0,%al
call   10a0 <r2@plt>
movaps %xmm0,%xmm1
movsd  -0x218(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x168(%rbp)
ff
mov    $0x0,%al
call   10f0 <r1@plt>
cvtsi2sd %eax,%xmm1
movsd  0xdc2(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x170(%rbp)
ff
mov    $0x0,%al
call   1040 <c2@plt>
movaps %xmm0,%xmm1
movsd  0xd9c(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x178(%rbp)
ff
mov    $0x0,%al
call   10f0 <r1@plt>
imul   $0x96,%eax,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x180(%rbp)
ff
mov    $0x0,%al
call   10f0 <r1@plt>
imul   $0x2008,%eax,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x188(%rbp)
ff
mov    $0x0,%al
call   10c0 <c1@plt>
cvtsi2sd %eax,%xmm1
movsd  0xd43(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x190(%rbp)
ff
mov    $0x0,%al
call   10c0 <c1@plt>
cvtsi2sd %eax,%xmm1
movsd  0xd24(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x198(%rbp)
ff
mov    $0x0,%al
call   10f0 <r1@plt>
imul   $0x96,%eax,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x1a0(%rbp)
ff
mov    $0x0,%al
call   10f0 <r1@plt>
imul   $0x230,%eax,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
mov    $0x0,%al
call   10f0 <r1@plt>
imul   $0x5dc,%eax,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x1b0(%rbp)
ff
mov    $0x109a0,%esi
mov    %esi,%edi
call   10d0 <para@plt>
movsd  %xmm0,-0x210(%rbp)
ff
mov    $0x0,%al
call   10a0 <r2@plt>
movaps %xmm0,%xmm1
movsd  -0x210(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1b8(%rbp)
ff
mov    $0x0,%al
call   1040 <c2@plt>
movaps %xmm0,%xmm1
movsd  0xc81(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1c0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x1c8(%rbp)
ff
mov    $0x0,%al
call   10c0 <c1@plt>
cvtsi2sd %eax,%xmm1
movsd  0xc4f(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1d0(%rbp)
ff
mov    $0x249f0,%edi
mov    $0x50910,%esi
call   10d0 <para@plt>
movsd  %xmm0,-0x208(%rbp)
ff
mov    $0x0,%al
call   10a0 <r2@plt>
movaps %xmm0,%xmm1
movsd  -0x208(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1d8(%rbp)
ff
movsd  0xbfe(%rip),%xmm0
movsd  %xmm0,-0x1e0(%rbp)
ff
movsd  0xbe6(%rip),%xmm0
movsd  %xmm0,-0x1e8(%rbp)
ff
movsd  -0x1e8(%rbp),%xmm0
ff
mov    0x2bb7(%rip),%rax
mov    (%rax),%esi
lea    0xd5e(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xd63(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd6e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x1ec(%rbp)
mov    -0x1ec(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1674 <main+0x4a4>
movslq -0x1ec(%rbp),%rax
movsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movsd  -0x1d0(%rbp),%xmm1
ff
movsd  -0x1d8(%rbp),%xmm2
ff
call   1050 <hipass@plt>
movsd  %xmm0,-0x1f8(%rbp)
ff
movslq -0x1ec(%rbp),%rax
movsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movsd  -0x190(%rbp),%xmm1
ff
movsd  -0x180(%rbp),%xmm2
ff
movsd  -0x188(%rbp),%xmm3
ff
movsd  -0x178(%rbp),%xmm4
ff
movsd  -0x168(%rbp),%xmm5
ff
movsd  -0x170(%rbp),%xmm6
ff
call   1070 <stage@plt>
mulsd  -0x1f8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1f8(%rbp)
ff
movslq -0x1ec(%rbp),%rax
movsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movsd  -0x198(%rbp),%xmm1
ff
movsd  -0x1a0(%rbp),%xmm2
ff
movsd  -0x1a8(%rbp),%xmm3
ff
movsd  -0x1b0(%rbp),%xmm6
ff
xorps  %xmm5,%xmm5
movaps %xmm5,%xmm4
call   1070 <stage@plt>
mulsd  -0x1f8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1f8(%rbp)
ff
movslq -0x1ec(%rbp),%rax
movsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movsd  -0x1c0(%rbp),%xmm1
ff
movsd  -0x1b8(%rbp),%xmm2
ff
movsd  -0x1c8(%rbp),%xmm3
ff
call   1030 <lowpass@plt>
mulsd  -0x1f8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1f8(%rbp)
ff
movslq -0x1ec(%rbp),%rax
movsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movsd  -0x1e0(%rbp),%xmm1
ff
movsd  -0x1e8(%rbp),%xmm2
ff
call   1050 <hipass@plt>
mulsd  -0x1f8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1f8(%rbp)
ff
movsd  -0x1f8(%rbp),%xmm0
ff
call   10e0 <db@plt>
movsd  0xa6e(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x200(%rbp)
ff
movslq -0x1ec(%rbp),%rax
movsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movsd  -0x1f8(%rbp),%xmm1
ff
movsd  -0x200(%rbp),%xmm2
ff
lea    0xbe0(%rip),%rdi
mov    $0x3,%al
call   1060 <printf@plt>
movslq -0x1ec(%rbp),%rax
movsd  -0x160(%rbp,%rax,8),%xmm0
ff ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    162c <main+0x45c>
jp     162c <main+0x45c>
jmp    1652 <main+0x482>
movsd  -0x200(%rbp),%xmm0
ff
movslq -0x1ec(%rbp),%rax
subsd  -0x160(%rbp,%rax,8),%xmm0
ff ff
lea    0xb97(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xb69(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x1ec(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1ec(%rbp)
jmp    1467 <main+0x297>
xor    %eax,%eax
add    $0x220,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
xor    %ebx,%ebx
xor    %edi,%edi
call   10c0 <time@plt>
mov    %eax,%edi
call   10a0 <srand@plt>
mov    $0x898,%edi
mov    $0x898,%esi
call   10e0 <para@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   10b0 <r2@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x80(%rsp)
xor    %eax,%eax
call   1100 <r1@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xdbe(%rip),%xmm0
movsd  %xmm0,0x78(%rsp)
xor    %eax,%eax
call   1060 <c2@plt>
mulsd  0xdb1(%rip),%xmm0
movsd  %xmm0,0x70(%rsp)
xor    %eax,%eax
call   1100 <r1@plt>
imul   $0x96,%eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x68(%rsp)
xor    %eax,%eax
call   1100 <r1@plt>
mov    %eax,%ecx
shl    $0xd,%ecx
lea    (%rcx,%rax,8),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x60(%rsp)
xor    %eax,%eax
call   10d0 <c1@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xd67(%rip),%xmm0
movsd  %xmm0,0x58(%rsp)
xor    %eax,%eax
call   10d0 <c1@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xd4b(%rip),%xmm0
movsd  %xmm0,0x50(%rsp)
xor    %eax,%eax
call   1100 <r1@plt>
imul   $0x96,%eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x48(%rsp)
xor    %eax,%eax
call   1100 <r1@plt>
imul   $0x230,%eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x40(%rsp)
xor    %eax,%eax
call   1100 <r1@plt>
imul   $0x5dc,%eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x38(%rsp)
mov    $0x109a0,%edi
mov    $0x109a0,%esi
call   10e0 <para@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   10b0 <r2@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
xor    %eax,%eax
call   1060 <c2@plt>
mulsd  0xcc8(%rip),%xmm0
movsd  %xmm0,0x28(%rsp)
xor    %eax,%eax
call   10d0 <c1@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xcb4(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
mov    $0x249f0,%edi
mov    $0x50910,%esi
call   10e0 <para@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   10b0 <r2@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
mov    0x2c47(%rip),%rax
mov    (%rax),%esi
lea    0xdee(%rip),%rdi
movsd  0xc76(%rip),%xmm0
mov    $0x1,%al
call   1080 <printf@plt>
lea    0xdf4(%rip),%rdi
call   1050 <puts@plt>
lea    0xe00(%rip),%rdi
call   1050 <puts@plt>
lea    0xc68(%rip),%r12
lea    0xdcc(%rip),%r15
mov    $0x3f7f0,%r13d
lea    0xdc4(%rip),%r14
xor    %ebp,%ebp
jmp    140c <main+0x22c>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbp
add    $0x8,%rbx
cmp    $0x15,%rbp
je     155b <main+0x37b>
movsd  (%rbx,%r12,1),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
call   1070 <hipass@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0x58(%rsp),%xmm1
movsd  0x68(%rsp),%xmm2
movsd  0x60(%rsp),%xmm3
movsd  0x70(%rsp),%xmm4
movsd  0x80(%rsp),%xmm5
movsd  0x78(%rsp),%xmm6
call   1090 <stage@plt>
movsd  0x8(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
xorps  %xmm4,%xmm4
xorps  %xmm5,%xmm5
movsd  0x10(%rsp),%xmm0
movsd  0x50(%rsp),%xmm1
movsd  0x48(%rsp),%xmm2
movsd  0x40(%rsp),%xmm3
movsd  0x38(%rsp),%xmm6
call   1090 <stage@plt>
movsd  0x8(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
xorps  %xmm3,%xmm3
movsd  0x10(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
call   1040 <lowpass@plt>
movsd  0x8(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0xb4e(%rip),%xmm1
movsd  0xb3e(%rip),%xmm2
call   1070 <hipass@plt>
movsd  0x8(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movapd %xmm1,%xmm0
call   10f0 <db@plt>
movapd %xmm0,%xmm2
addsd  0xb24(%rip),%xmm2
mov    %r15,%rdi
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  %xmm2,0x8(%rsp)
mov    $0x3,%al
call   1080 <printf@plt>
bt     %rbp,%r13
jae    13f0 <main+0x210>
lea    0xbaf(%rip),%rax
movsd  0x8(%rsp),%xmm0
subsd  (%rbx,%rax,1),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
jmp    13f0 <main+0x210>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.hz = [21 x double] [double 1.000000e-01, double 1.000000e+00, double 4.000000e+00, double 1.200000e+01, double 2.000000e+01, double 3.100000e+01, double 4.900000e+01, double 7.900000e+01, double 1.500000e+02, double 2.700000e+02, double 4.800000e+02, double 1.000000e+03, double 1.100000e+03, double 2.100000e+03, double 3.800000e+03, double 7.600000e+03, double 1.200000e+04, double 2.100000e+04, double 3.160000e+04, double 5.000000e+04, double 1.000000e+05]
@__const.main.iec = [21 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.635000e+01, double 1.709000e+01, double 1.645000e+01, double 1.440000e+01, double 1.028000e+01, double 6.230000e+00, double 2.920000e+00, double 0.000000e+00, double -2.300000e-01, double -2.730000e+00, double -6.170000e+00, double -1.139000e+01, double -1.517000e+01, double -1.995000e+01, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00]
@.str = [19 x i8] c"(output-Z: %f)\0A%d\0A\00"
@RAND_MAX = global i32 0
@.str.1 = [25 x i8] c"Hz\09\09Gain\09\09dB\09\09(IEC err)\0A\00"
@.str.2 = [25 x i8] c"==\09\09====\09\09==\09\09=========\0A\00"
@.str.3 = [9 x i8] c"%f\09%f\09%f\00"
@.str.4 = [4 x i8] c"\09%f\00"
@.str.5 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [21 x double]
%4 = alloca [21 x double]
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca i32
%23 = alloca double
%24 = alloca double
store i32 0, i32* %1
store i32 21, i32* %2
%25 = bitcast [21 x double]* %3 to i8*
%26 = bitcast [21 x double]* %4 to i8*
%27 = call i32 @time(i32* null)
%28 = call i32 @srand(i32 %27)
%29 = call double @para(i32 2200, i32 2200)
%30 = call double (...) @r2()
%31 = fmul double %29, %30
store double %31, double* %5
%32 = call i32 (...) @r1()
%33 = sitofp i32 %32 to double
%34 = fmul double 1.000000e+04, %33
store double %34, double* %6
%35 = call double (...) @c2()
%36 = fmul double 2.700000e-07, %35
store double %36, double* %7
%37 = call i32 (...) @r1()
%38 = mul nsw i32 150, %37
%39 = sitofp i32 %38 to double
store double %39, double* %8
%40 = call i32 (...) @r1()
%41 = mul nsw i32 8200, %40
%42 = sitofp i32 %41 to double
store double %42, double* %9
%43 = call i32 (...) @c1()
%44 = sitofp i32 %43 to double
%45 = fmul double 1.000000e-04, %44
store double %45, double* %10
%46 = call i32 (...) @c1()
%47 = sitofp i32 %46 to double
%48 = fmul double 1.000000e-04, %47
store double %48, double* %11
%49 = call i32 (...) @r1()
%50 = mul nsw i32 150, %49
%51 = sitofp i32 %50 to double
store double %51, double* %12
%52 = call i32 (...) @r1()
%53 = mul nsw i32 560, %52
%54 = sitofp i32 %53 to double
store double %54, double* %13
%55 = call i32 (...) @r1()
%56 = mul nsw i32 1500, %55
%57 = sitofp i32 %56 to double
store double %57, double* %14
%58 = call double @para(i32 68000, i32 68000)
%59 = call double (...) @r2()
%60 = fmul double %58, %59
store double %60, double* %15
%61 = call double (...) @c2()
%62 = fmul double 2.200000e-09, %61
store double %62, double* %16
store double 0.000000e+00, double* %17
%63 = call i32 (...) @c1()
%64 = sitofp i32 %63 to double
%65 = fmul double 2.200000e-07, %64
store double %65, double* %18
%66 = call double @para(i32 150000, i32 330000)
%67 = call double (...) @r2()
%68 = fmul double %66, %67
store double %68, double* %19
store double 4.700000e-07, double* %20
store double 4.700000e+04, double* %21
%69 = load double, double* %21
%70 = load i32, i32* @RAND_MAX
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), double %69, i32 %70)
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %22
br label %74
74: ; preds = %154, %0
%75 = load i32, i32* %22
%76 = load i32, i32* %2
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %157
78: ; preds = %74
%79 = load i32, i32* %22
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [21 x double], [21 x double]* %3, i64 0, i64 %80
%82 = load double, double* %81
%83 = load double, double* %18
%84 = load double, double* %19
%85 = call double @hipass(double %82, double %83, double %84)
store double %85, double* %23
%86 = load i32, i32* %22
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [21 x double], [21 x double]* %3, i64 0, i64 %87
%89 = load double, double* %88
%90 = load double, double* %10
%91 = load double, double* %8
%92 = load double, double* %9
%93 = load double, double* %7
%94 = load double, double* %5
%95 = load double, double* %6
%96 = call double @stage(double %89, double %90, double %91, double %92, double %93, double %94, double %95)
%97 = load double, double* %23
%98 = fmul double %97, %96
store double %98, double* %23
%99 = load i32, i32* %22
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [21 x double], [21 x double]* %3, i64 0, i64 %100
%102 = load double, double* %101
%103 = load double, double* %11
%104 = load double, double* %12
%105 = load double, double* %13
%106 = load double, double* %14
%107 = call double @stage(double %102, double %103, double %104, double %105, double 0.000000e+00, double 0.000000e+00, double %106)
%108 = load double, double* %23
%109 = fmul double %108, %107
store double %109, double* %23
%110 = load i32, i32* %22
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [21 x double], [21 x double]* %3, i64 0, i64 %111
%113 = load double, double* %112
%114 = load double, double* %16
%115 = load double, double* %15
%116 = load double, double* %17
%117 = call double @lowpass(double %113, double %114, double %115, double %116)
%118 = load double, double* %23
%119 = fmul double %118, %117
store double %119, double* %23
%120 = load i32, i32* %22
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [21 x double], [21 x double]* %3, i64 0, i64 %121
%123 = load double, double* %122
%124 = load double, double* %20
%125 = load double, double* %21
%126 = call double @hipass(double %123, double %124, double %125)
%127 = load double, double* %23
%128 = fmul double %127, %126
store double %128, double* %23
%129 = load double, double* %23
%130 = call double @db(double %129)
%131 = fsub double %130, 3.883440e+01
store double %131, double* %24
%132 = load i32, i32* %22
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [21 x double], [21 x double]* %3, i64 0, i64 %133
%135 = load double, double* %134
%136 = load double, double* %23
%137 = load double, double* %24
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), double %135, double %136, double %137)
%139 = load i32, i32* %22
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [21 x double], [21 x double]* %4, i64 0, i64 %140
%142 = load double, double* %141
%143 = fcmp une double %142, 0.000000e+00
br i1 %143, label %144, label %152
144: ; preds = %78
%145 = load double, double* %24
%146 = load i32, i32* %22
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [21 x double], [21 x double]* %4, i64 0, i64 %147
%149 = load double, double* %148
%150 = fsub double %145, %149
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double %150)
br label %152
152: ; preds = %144, %78
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %154
154: ; preds = %152
%155 = load i32, i32* %22
%156 = add nsw i32 %155, 1
store i32 %156, i32* %22
br label %74
157: ; preds = %74
ret i32 0
}

LLVM IR (-O2):
@__const.main.hz = [21 x double] [double 1.000000e-01, double 1.000000e+00, double 4.000000e+00, double 1.200000e+01, double 2.000000e+01, double 3.100000e+01, double 4.900000e+01, double 7.900000e+01, double 1.500000e+02, double 2.700000e+02, double 4.800000e+02, double 1.000000e+03, double 1.100000e+03, double 2.100000e+03, double 3.800000e+03, double 7.600000e+03, double 1.200000e+04, double 2.100000e+04, double 3.160000e+04, double 5.000000e+04, double 1.000000e+05]
@__const.main.iec = [21 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.635000e+01, double 1.709000e+01, double 1.645000e+01, double 1.440000e+01, double 1.028000e+01, double 6.230000e+00, double 2.920000e+00, double 0.000000e+00, double -2.300000e-01, double -2.730000e+00, double -6.170000e+00, double -1.139000e+01, double -1.517000e+01, double -1.995000e+01, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00]
@.str = [19 x i8] c"(output-Z: %f)\0A%d\0A\00"
@RAND_MAX = global i32 0
@.str.3 = [9 x i8] c"%f\09%f\09%f\00"
@.str.4 = [4 x i8] c"\09%f\00"
@str = [24 x i8] c"Hz\09\09Gain\09\09dB\09\09(IEC err)\00"
@str.6 = [24 x i8] c"==\09\09====\09\09==\09\09=========\00"
define i32 @main() {
%1 = tail call i32 @time(i32* null)
%2 = tail call i32 @srand(i32 %1)
%3 = tail call double @para(i32 2200, i32 2200)
%4 = tail call double (...) @r2()
%5 = fmul double %3, %4
%6 = tail call i32 (...) @r1()
%7 = sitofp i32 %6 to double
%8 = fmul double %7, 1.000000e+04
%9 = tail call double (...) @c2()
%10 = fmul double %9, 2.700000e-07
%11 = tail call i32 (...) @r1()
%12 = mul nsw i32 %11, 150
%13 = sitofp i32 %12 to double
%14 = tail call i32 (...) @r1()
%15 = mul nsw i32 %14, 8200
%16 = sitofp i32 %15 to double
%17 = tail call i32 (...) @c1()
%18 = sitofp i32 %17 to double
%19 = fmul double %18, 1.000000e-04
%20 = tail call i32 (...) @c1()
%21 = sitofp i32 %20 to double
%22 = fmul double %21, 1.000000e-04
%23 = tail call i32 (...) @r1()
%24 = mul nsw i32 %23, 150
%25 = sitofp i32 %24 to double
%26 = tail call i32 (...) @r1()
%27 = mul nsw i32 %26, 560
%28 = sitofp i32 %27 to double
%29 = tail call i32 (...) @r1()
%30 = mul nsw i32 %29, 1500
%31 = sitofp i32 %30 to double
%32 = tail call double @para(i32 68000, i32 68000)
%33 = tail call double (...) @r2()
%34 = fmul double %32, %33
%35 = tail call double (...) @c2()
%36 = fmul double %35, 2.200000e-09
%37 = tail call i32 (...) @c1()
%38 = sitofp i32 %37 to double
%39 = fmul double %38, 2.200000e-07
%40 = tail call double @para(i32 150000, i32 330000)
%41 = tail call double (...) @r2()
%42 = fmul double %40, %41
%43 = load i32, i32* @RAND_MAX
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), double 4.700000e+04, i32 %43)
%45 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%46 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.6, i64 0, i64 0))
br label %47
47: ; preds = %0, %71
%48 = phi i64 [ 0, %0 ], [ %73, %71 ]
%49 = getelementptr inbounds [21 x double], [21 x double]* @__const.main.hz, i64 0, i64 %48
%50 = load double, double* %49
%51 = tail call double @hipass(double %50, double %39, double %42)
%52 = tail call double @stage(double %50, double %19, double %13, double %16, double %10, double %5, double %8)
%53 = fmul double %51, %52
%54 = tail call double @stage(double %50, double %22, double %25, double %28, double 0.000000e+00, double 0.000000e+00, double %31)
%55 = fmul double %53, %54
%56 = tail call double @lowpass(double %50, double %36, double %34, double 0.000000e+00)
%57 = fmul double %55, %56
%58 = tail call double @hipass(double %50, double 4.700000e-07, double 4.700000e+04)
%59 = fmul double %57, %58
%60 = tail call double @db(double %59)
%61 = fadd double %60, -3.883440e+01
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), double %50, double %59, double %61)
%63 = lshr i64 260080, %48
%64 = and i64 %63, 1
%65 = icmp eq i64 %64, 0
br i1 %65, label %71, label %66
66: ; preds = %47
%67 = getelementptr inbounds [21 x double], [21 x double]* @__const.main.iec, i64 0, i64 %48
%68 = load double, double* %67
%69 = fsub double %61, %68
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double %69)
br label %71
71: ; preds = %66, %47
%72 = tail call i32 @putchar(i32 10)
%73 = add nuw nsw i64 %48, 1
%74 = icmp eq i64 %73, 21
br i1 %74, label %75, label %47
75: ; preds = %71
ret i32 0
}