#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*/ compute_raised_cosine_filter(double *, int, int,
                                                int /*<<< orphan*/, double,
                                                double);
double cos(double);
double fabs(double);
int /*<<< orphan*/ printf(char *, ...);
double sin(double);
void make_rx_filter(int coeff_sets, int coeffs_per_filter, double carrier,
                    double baud_rate, double excess_bandwidth, int fixed_point,
                    const char *tag) {
  int i;
  int j;
  int k;
  int m;
  int x;
  int total_coeffs;
  double alpha;
  double beta;
  double gain;
  double peak;
  double coeffs[384 * 128 + 1];
  double cox[128];
  total_coeffs = coeff_sets * coeffs_per_filter + 1;
  alpha = baud_rate / (2.0 * (double)(coeff_sets * 8000));
  beta = excess_bandwidth;
  carrier *= 2.0 * 3.1415926535 / 8000;
  compute_raised_cosine_filter(coeffs, total_coeffs, (!0), 0, alpha, beta);
  gain = 0.0;
  for (i = coeff_sets / 2; i < total_coeffs; i += coeff_sets)
    gain += coeffs[i];
  for (i = 0; i < total_coeffs; i++)
    coeffs[i] /= gain;
  gain = 1.0;
  if (fixed_point) {
    peak = -1.0;
    for (i = 0; i < total_coeffs; i++) {
      if (fabs(coeffs[i]) > peak)
        peak = fabs(coeffs[i]);
    }
    gain = 32767.0;
    if (peak >= 1.0)
      gain /= peak;
    for (i = 0; i < total_coeffs; i++)
      coeffs[i] *= gain;
  }
  printf("#define RX_PULSESHAPER%s_GAIN        %ff\n", tag, gain);
  printf("#define RX_PULSESHAPER%s_COEFF_SETS  %d\n", tag, coeff_sets);
  for (k = 0; k < 2; k++) {
    printf("static const %s "
           "rx_pulseshaper%s_%s[RX_PULSESHAPER%s_COEFF_SETS][%d] =\n",
           (fixed_point) ? "int16_t" : "float", tag, (k == 0) ? "re" : "im",
           tag, coeffs_per_filter);
    printf("{\n");
    for (j = 0; j < coeff_sets; j++) {
      for (i = 0; i < coeffs_per_filter; i++) {
        m = i - (coeffs_per_filter >> 1);
        x = i * coeff_sets + j;
        if (k == 0)
          cox[i] = coeffs[x] * cos(carrier * m);
        else
          cox[i] = coeffs[x] * sin(carrier * m);
      }
      printf("    {\n");
      if (fixed_point)
        printf("        %8d,     /* Filter %d */\n", (int)cox[0], j);
      else
        printf("        %15.10ff,     /* Filter %d */\n", cox[0], j);
      for (i = 1; i < coeffs_per_filter - 1; i++) {
        if (fixed_point)
          printf("        %8d,\n", (int)cox[i]);
        else
          printf("        %15.10ff,\n", cox[i]);
      }
      if (fixed_point)
        printf("        %8d\n", (int)cox[i]);
      else
        printf("        %15.10ff\n", cox[i]);
      if (j < coeff_sets - 1)
        printf("    },\n");
      else
        printf("    }\n");
    }
    printf("};\n");
  }
}


x86 assembly (clang, -O0):
<make_rx_filter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60480,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
mov    %edx,-0x24(%rbp)
mov    %rcx,-0x30(%rbp)
mov    -0x4(%rbp),%eax
imul   -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm0
imul   $0x1f40,-0x4(%rbp),%eax
cvtsi2sd %eax,%xmm2
movsd  0xe7c(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe55(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
lea    -0x60070(%rbp),%rdi
mov    -0x48(%rbp),%esi
movsd  -0x50(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
mov    $0x1,%edx
xor    %ecx,%ecx
call   1030 <compute_raised_cosine_filter@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    121c <make_rx_filter+0xdc>
movslq -0x34(%rbp),%rax
movsd  -0x60070(%rbp,%rax,8),%xmm0
f9 ff
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x4(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x34(%rbp)
jmp    11eb <make_rx_filter+0xab>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    125c <make_rx_filter+0x11c>
movsd  -0x60(%rbp),%xmm1
movslq -0x34(%rbp),%rax
movsd  -0x60070(%rbp,%rax,8),%xmm0
f9 ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60070(%rbp,%rax,8)
f9 ff
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1223 <make_rx_filter+0xe3>
movsd  0xdac(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     135e <make_rx_filter+0x21e>
movsd  0xd9d(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    12e6 <make_rx_filter+0x1a6>
movslq -0x34(%rbp),%rax
movsd  -0x60070(%rbp,%rax,8),%xmm0
f9 ff
movaps 0xd89(%rip),%xmm1
pand   %xmm1,%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    12d3 <make_rx_filter+0x193>
movslq -0x34(%rbp),%rax
movsd  -0x60070(%rbp,%rax,8),%xmm0
f9 ff
movaps 0xd66(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
jmp    12d8 <make_rx_filter+0x198>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1287 <make_rx_filter+0x147>
movsd  0xd32(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  0xd10(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     131d <make_rx_filter+0x1dd>
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    1359 <make_rx_filter+0x219>
movsd  -0x60(%rbp),%xmm0
movslq -0x34(%rbp),%rax
mulsd  -0x60070(%rbp,%rax,8),%xmm0
f9 ff
movsd  %xmm0,-0x60070(%rbp,%rax,8)
f9 ff
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1324 <make_rx_filter+0x1e4>
jmp    135e <make_rx_filter+0x21e>
mov    -0x30(%rbp),%rsi
movsd  -0x60(%rbp),%xmm0
lea    0xcd2(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rsi
mov    -0x4(%rbp),%edx
lea    0xce7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x2,-0x3c(%rbp)
jge    1643 <make_rx_filter+0x503>
mov    -0x24(%rbp),%ecx
lea    0xd3e(%rip),%rsi
lea    0xd2f(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
mov    -0x30(%rbp),%rdx
mov    -0x3c(%rbp),%edi
lea    0xd2b(%rip),%rcx
lea    0xd21(%rip),%rax
cmp    $0x0,%edi
cmove  %rax,%rcx
mov    -0x30(%rbp),%r8
mov    -0x8(%rbp),%r9d
lea    0xcb5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd07(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1627 <make_rx_filter+0x4e7>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    14de <make_rx_filter+0x39e>
mov    -0x34(%rbp),%eax
mov    -0x8(%rbp),%ecx
sar    $0x1,%ecx
sub    %ecx,%eax
mov    %eax,-0x40(%rbp)
mov    -0x34(%rbp),%eax
imul   -0x4(%rbp),%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jne    1487 <make_rx_filter+0x347>
movslq -0x44(%rbp),%rax
movsd  -0x60070(%rbp,%rax,8),%xmm0
f9 ff
movsd  %xmm0,-0x60478(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
cvtsi2sdl -0x40(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1060 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x60478(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movslq -0x34(%rbp),%rax
movsd  %xmm0,-0x60470(%rbp,%rax,8)
f9 ff
jmp    14cb <make_rx_filter+0x38b>
movslq -0x44(%rbp),%rax
movsd  -0x60070(%rbp,%rax,8),%xmm0
f9 ff
movsd  %xmm0,-0x60480(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
cvtsi2sdl -0x40(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1050 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x60480(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movslq -0x34(%rbp),%rax
movsd  %xmm0,-0x60470(%rbp,%rax,8)
f9 ff
jmp    14d0 <make_rx_filter+0x390>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    140d <make_rx_filter+0x2cd>
lea    0xc0a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x24(%rbp)
je     1514 <make_rx_filter+0x3d4>
cvttsd2si -0x60470(%rbp),%esi
ff
mov    -0x38(%rbp),%edx
lea    0xbee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    152d <make_rx_filter+0x3ed>
movsd  -0x60470(%rbp),%xmm0
ff
mov    -0x38(%rbp),%esi
lea    0xbf2(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    159d <make_rx_filter+0x45d>
cmpl   $0x0,-0x24(%rbp)
je     156f <make_rx_filter+0x42f>
movslq -0x34(%rbp),%rax
cvttsd2si -0x60470(%rbp,%rax,8),%esi
f9 ff
lea    0xbdc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    158a <make_rx_filter+0x44a>
movslq -0x34(%rbp),%rax
movsd  -0x60470(%rbp,%rax,8),%xmm0
f9 ff
lea    0xbca(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    158f <make_rx_filter+0x44f>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1534 <make_rx_filter+0x3f4>
cmpl   $0x0,-0x24(%rbp)
je     15c7 <make_rx_filter+0x487>
movslq -0x34(%rbp),%rax
cvttsd2si -0x60470(%rbp,%rax,8),%esi
f9 ff
lea    0xba5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    15e2 <make_rx_filter+0x4a2>
movslq -0x34(%rbp),%rax
movsd  -0x60470(%rbp,%rax,8),%xmm0
f9 ff
lea    0xb92(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1606 <make_rx_filter+0x4c6>
lea    0xb85(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1614 <make_rx_filter+0x4d4>
lea    0xb7a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1619 <make_rx_filter+0x4d9>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    13fa <make_rx_filter+0x2ba>
lea    0xb60(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1391 <make_rx_filter+0x251>
add    $0x60480,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_rx_filter>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x60468,%rsp
mov    %rcx,%r13
mov    %edx,%r14d
movsd  %xmm0,0x18(%rsp)
mov    %edi,%ebp
mov    %rsi,0x8(%rsp)
mov    %esi,%ebx
imul   %edi,%ebx
lea    0x1(%rbx),%r15d
imul   $0x1f40,%edi,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  %xmm0,%xmm0
divsd  %xmm0,%xmm1
lea    0x460(%rsp),%rdi
mov    %rdi,0x20(%rsp)
mov    %r15d,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
movapd %xmm1,%xmm0
movapd %xmm2,%xmm1
call   1030 <compute_raised_cosine_filter@plt>
mov    %ebp,%eax
shr    $0x1f,%eax
add    %ebp,%eax
sar    %eax
xorpd  %xmm0,%xmm0
movslq %ebp,%r12
cmp    %ebx,%eax
jg     11f1 <make_rx_filter+0xa1>
cltq
movslq %ebx,%rcx
xorpd  %xmm0,%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
addsd  0x460(%rsp,%rax,8),%xmm0
add    %r12,%rax
cmp    %rcx,%rax
jle    11e0 <make_rx_filter+0x90>
test   %ebx,%ebx
js     1205 <make_rx_filter+0xb5>
mov    %r15d,%eax
cmp    $0x2,%r15d
jae    1213 <make_rx_filter+0xc3>
xor    %ecx,%ecx
jmp    12a0 <make_rx_filter+0x150>
test   %r14d,%r14d
jne    12e6 <make_rx_filter+0x196>
jmp    1307 <make_rx_filter+0x1b7>
mov    %eax,%ecx
and    $0xfffffffe,%ecx
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x2(%rcx),%rsi
mov    %rsi,%rdx
shr    %rdx
add    $0x1,%rdx
test   %rsi,%rsi
je     1401 <make_rx_filter+0x2b1>
mov    %rdx,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %esi,%esi
movapd 0x460(%rsp,%rsi,8),%xmm2
movapd 0x470(%rsp,%rsi,8),%xmm3
divpd  %xmm1,%xmm2
movapd %xmm2,0x460(%rsp,%rsi,8)
divpd  %xmm1,%xmm3
movapd %xmm3,0x470(%rsp,%rsi,8)
add    $0x4,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1240 <make_rx_filter+0xf0>
test   $0x1,%dl
je     1291 <make_rx_filter+0x141>
movapd 0x460(%rsp,%rsi,8),%xmm2
divpd  %xmm1,%xmm2
movapd %xmm2,0x460(%rsp,%rsi,8)
cmp    %rax,%rcx
je     12bf <make_rx_filter+0x16f>
cs nopw 0x0(%rax,%rax,1)
movsd  0x460(%rsp,%rcx,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x460(%rsp,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    12a0 <make_rx_filter+0x150>
test   %r14d,%r14d
je     1307 <make_rx_filter+0x1b7>
test   %ebx,%ebx
js     12e6 <make_rx_filter+0x196>
lea    -0x1(%rax),%rdx
mov    %eax,%ecx
and    $0x3,%ecx
cmp    $0x3,%rdx
jae    1326 <make_rx_filter+0x1d6>
movsd  0xd31(%rip),%xmm0
xor    %edx,%edx
jmp    1391 <make_rx_filter+0x241>
movsd  0xd2a(%rip),%xmm0
lea    0xdd6(%rip),%r14
movl   $0x0,0x4(%rsp)
mov    0x8(%rsp),%rbx
jmp    1507 <make_rx_filter+0x3b7>
movsd  0xcf9(%rip),%xmm0
lea    0xdbd(%rip),%r14
mov    $0x1,%al
mov    %eax,0x4(%rsp)
mov    0x8(%rsp),%rbx
jmp    1507 <make_rx_filter+0x3b7>
mov    %eax,%esi
and    $0xfffffffc,%esi
movsd  0xcdd(%rip),%xmm2
xor    %edx,%edx
movapd 0xce3(%rip),%xmm1
nopl   (%rax)
movsd  0x460(%rsp,%rdx,8),%xmm3
movsd  0x468(%rsp,%rdx,8),%xmm4
movsd  0x470(%rsp,%rdx,8),%xmm5
movsd  0x478(%rsp,%rdx,8),%xmm0
andpd  %xmm1,%xmm3
maxsd  %xmm2,%xmm3
andpd  %xmm1,%xmm4
maxsd  %xmm3,%xmm4
andpd  %xmm1,%xmm5
maxsd  %xmm4,%xmm5
andpd  %xmm1,%xmm0
maxsd  %xmm5,%xmm0
add    $0x4,%rdx
movapd %xmm0,%xmm2
cmp    %rdx,%rsi
jne    1340 <make_rx_filter+0x1f0>
movapd %xmm0,%xmm1
test   %rcx,%rcx
je     13ca <make_rx_filter+0x27a>
lea    (%rsp,%rdx,8),%rdx
add    $0x460,%rdx
xor    %esi,%esi
movapd 0xc71(%rip),%xmm2
nop
movsd  (%rdx,%rsi,8),%xmm1
andpd  %xmm2,%xmm1
maxsd  %xmm0,%xmm1
add    $0x1,%rsi
movapd %xmm1,%xmm0
cmp    %rsi,%rcx
jne    13b0 <make_rx_filter+0x260>
movsd  0xc46(%rip),%xmm0
ucomisd 0xc2e(%rip),%xmm1
jb     13e0 <make_rx_filter+0x290>
divsd  %xmm1,%xmm0
lea    0xce4(%rip),%r14
test   %ebx,%ebx
js     12f5 <make_rx_filter+0x1a5>
cmp    $0x4,%r15d
jae    1411 <make_rx_filter+0x2c1>
xor    %ecx,%ecx
mov    0x8(%rsp),%rbx
jmp    14e0 <make_rx_filter+0x390>
xor    %esi,%esi
test   $0x1,%dl
jne    127b <make_rx_filter+0x12b>
jmp    1291 <make_rx_filter+0x141>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x4(%rcx),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rsi,%rsi
je     14a4 <make_rx_filter+0x354>
mov    %rdx,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
movapd 0x460(%rsp,%rsi,8),%xmm2
mulpd  %xmm1,%xmm2
movapd 0x470(%rsp,%rsi,8),%xmm3
mulpd  %xmm1,%xmm3
movapd %xmm2,0x460(%rsp,%rsi,8)
movapd %xmm3,0x470(%rsp,%rsi,8)
movapd 0x480(%rsp,%rsi,8),%xmm2
mulpd  %xmm1,%xmm2
movapd 0x490(%rsp,%rsi,8),%xmm3
mulpd  %xmm1,%xmm3
movapd %xmm2,0x480(%rsp,%rsi,8)
movapd %xmm3,0x490(%rsp,%rsi,8)
add    $0x8,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1440 <make_rx_filter+0x2f0>
jmp    14a6 <make_rx_filter+0x356>
xor    %esi,%esi
test   $0x1,%dl
mov    0x8(%rsp),%rbx
je     14d8 <make_rx_filter+0x388>
movapd 0x460(%rsp,%rsi,8),%xmm2
mulpd  %xmm1,%xmm2
mulpd  0x470(%rsp,%rsi,8),%xmm1
movapd %xmm2,0x460(%rsp,%rsi,8)
movapd %xmm1,0x470(%rsp,%rsi,8)
cmp    %rax,%rcx
je     14ff <make_rx_filter+0x3af>
nopl   (%rax)
movsd  0x460(%rsp,%rcx,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x460(%rsp,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    14e0 <make_rx_filter+0x390>
movl   $0x0,0x4(%rsp)
lea    0xb22(%rip),%rdi
mov    %r13,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xb3b(%rip),%rdi
mov    %r13,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xb51(%rip),%rdi
lea    0xba0(%rip),%rcx
mov    %r14,%rsi
mov    %r13,%rdx
mov    %r13,%r8
mov    %ebx,%r9d
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc1c(%rip),%rdi
call   1040 <puts@plt>
test   %ebp,%ebp
jle    191f <make_rx_filter+0x7cf>
mov    %r14,0x48(%rsp)
mov    %r13,0x58(%rsp)
movsd  0x18(%rsp),%xmm0
mulsd  0xa88(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
mov    %ebx,%r13d
sar    %r13d
lea    -0x1(%rbx),%r15d
lea    -0x1(%rbp),%eax
cltq
mov    %rax,0x40(%rsp)
mov    %rbp,0x50(%rsp)
mov    %ebp,%eax
mov    %rax,0x38(%rsp)
mov    %ebx,%r14d
neg    %r13d
shl    $0x3,%r12
xor    %eax,%eax
mov    %rax,0x10(%rsp)
mov    %r12,0x30(%rsp)
jmp    160c <make_rx_filter+0x4bc>
cs nopw 0x0(%rax,%rax,1)
lea    0xb8f(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0x10(%rsp),%rbp
cmp    0x40(%rsp),%rbp
lea    0xb92(%rip),%rdi
lea    0xb91(%rip),%rax
cmovl  %rax,%rdi
call   1040 <puts@plt>
add    $0x1,%rbp
addq   $0x8,0x20(%rsp)
mov    %rbp,%rax
mov    %rbp,0x10(%rsp)
cmp    0x38(%rsp),%rbp
je     1730 <make_rx_filter+0x5e0>
test   %ebx,%ebx
movsd  0x18(%rsp),%xmm1
jle    165d <make_rx_filter+0x50d>
mov    0x20(%rsp),%rbp
xor    %ebx,%ebx
nopl   (%rax)
movsd  0x0(%rbp),%xmm0
movsd  %xmm0,0x28(%rsp)
lea    (%rbx,%r13,1),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  %xmm1,%xmm0
call   1070 <cos@plt>
movsd  0x18(%rsp),%xmm1
mulsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x60(%rsp,%rbx,8)
add    $0x1,%rbx
add    %r12,%rbp
cmp    %rbx,%r14
jne    1620 <make_rx_filter+0x4d0>
lea    0xb07(%rip),%rdi
call   1040 <puts@plt>
movsd  0x60(%rsp),%xmm0
mov    0x4(%rsp),%ebp
test   %bpl,%bpl
je     1690 <make_rx_filter+0x540>
lea    0xa82(%rip),%rdi
mov    0x10(%rsp),%rsi
mov    $0x1,%al
call   1050 <printf@plt>
jmp    16a7 <make_rx_filter+0x557>
nopl   (%rax)
cvttsd2si %xmm0,%esi
lea    0xa44(%rip),%rdi
mov    0x10(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%rbx
mov    $0x1,%eax
cmp    $0x3,%ebx
jl     1708 <make_rx_filter+0x5b8>
mov    $0x1,%r12d
jmp    16d7 <make_rx_filter+0x587>
xchg   %ax,%ax
lea    0xa6f(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
add    $0x1,%r12
cmp    %r12,%r15
je     1700 <make_rx_filter+0x5b0>
movsd  0x60(%rsp,%r12,8),%xmm0
test   %bpl,%bpl
jne    16c0 <make_rx_filter+0x570>
cvttsd2si %xmm0,%esi
lea    0xa3a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    16ce <make_rx_filter+0x57e>
nopw   0x0(%rax,%rax,1)
mov    %r15d,%eax
mov    0x30(%rsp),%r12
mov    %eax,%eax
movsd  0x60(%rsp,%rax,8),%xmm0
test   %bpl,%bpl
jne    15c0 <make_rx_filter+0x470>
cvttsd2si %xmm0,%esi
lea    0xa25(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    15ce <make_rx_filter+0x47e>
lea    0xa31(%rip),%rdi
call   1040 <puts@plt>
lea    0x940(%rip),%rdi
lea    0x992(%rip),%rcx
mov    0x48(%rsp),%rsi
mov    0x58(%rsp),%rdx
mov    %rdx,%r8
mov    %ebx,%r9d
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xa07(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0x50(%rsp)
jle    1958 <make_rx_filter+0x808>
lea    0x460(%rsp),%rax
mov    %rax,0x20(%rsp)
xor    %eax,%eax
mov    %rax,0x10(%rsp)
jmp    17df <make_rx_filter+0x68f>
xchg   %ax,%ax
lea    0x9bf(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %r12,%rbx
mov    0x10(%rsp),%rbp
cmp    0x40(%rsp),%rbp
lea    0x9bf(%rip),%rdi
lea    0x9be(%rip),%rax
cmovl  %rax,%rdi
call   1040 <puts@plt>
add    $0x1,%rbp
addq   $0x8,0x20(%rsp)
mov    %rbp,%rax
mov    %rbp,0x10(%rsp)
cmp    0x38(%rsp),%rbp
je     1958 <make_rx_filter+0x808>
test   %ebx,%ebx
movsd  0x18(%rsp),%xmm1
mov    0x30(%rsp),%r12
jle    183d <make_rx_filter+0x6ed>
mov    0x20(%rsp),%rbp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  0x0(%rbp),%xmm0
movsd  %xmm0,0x28(%rsp)
lea    (%rbx,%r13,1),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  %xmm1,%xmm0
call   1060 <sin@plt>
movsd  0x18(%rsp),%xmm1
mulsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x60(%rsp,%rbx,8)
add    $0x1,%rbx
add    %r12,%rbp
cmp    %rbx,%r14
jne    1800 <make_rx_filter+0x6b0>
lea    0x927(%rip),%rdi
call   1040 <puts@plt>
movsd  0x60(%rsp),%xmm0
mov    0x4(%rsp),%ebp
test   %bpl,%bpl
je     1870 <make_rx_filter+0x720>
lea    0x8a2(%rip),%rdi
mov    0x10(%rsp),%rsi
mov    $0x1,%al
call   1050 <printf@plt>
jmp    1887 <make_rx_filter+0x737>
nopl   (%rax)
cvttsd2si %xmm0,%esi
lea    0x864(%rip),%rdi
mov    0x10(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%rcx
lea    0x8a3(%rip),%rbx
mov    $0x1,%eax
mov    %rcx,%r12
cmp    $0x3,%ecx
jl     18f7 <make_rx_filter+0x7a7>
mov    $0x1,%ebp
jmp    18c3 <make_rx_filter+0x773>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r15
je     18f0 <make_rx_filter+0x7a0>
movsd  0x60(%rsp,%rbp,8),%xmm0
cmpb   $0x0,0x4(%rsp)
jne    18b0 <make_rx_filter+0x760>
cvttsd2si %xmm0,%esi
lea    0x84d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    18ba <make_rx_filter+0x76a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r15d,%eax
mov    0x4(%rsp),%ebp
mov    %eax,%eax
movsd  0x60(%rsp,%rax,8),%xmm0
test   %bpl,%bpl
jne    1790 <make_rx_filter+0x640>
cvttsd2si %xmm0,%esi
lea    0x836(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    179e <make_rx_filter+0x64e>
lea    0x842(%rip),%rdi
call   1040 <puts@plt>
lea    0x751(%rip),%rdi
lea    0x7a3(%rip),%rcx
mov    %r14,%rsi
mov    %r13,%rdx
mov    %r13,%r8
mov    %ebx,%r9d
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x81c(%rip),%rdi
call   1040 <puts@plt>
lea    0x809(%rip),%rdi
call   1040 <puts@plt>
add    $0x60468,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [42 x i8] c"#define RX_PULSESHAPER%s_GAIN %ff\0A\00"
@.str.1 = [41 x i8] c"#define RX_PULSESHAPER%s_COEFF_SETS %d\0A\00"
@.str.2 = [72 x i8] c"static const %s rx_pulseshaper%s_%s[RX_PULSESHAPER%s_COEFF_SETS][%d] =\0A\00"
@.str.3 = [8 x i8] c"int16_t\00"
@.str.4 = [6 x i8] c"float\00"
@.str.5 = [3 x i8] c"re\00"
@.str.6 = [3 x i8] c"im\00"
@.str.7 = [3 x i8] c"{\0A\00"
@.str.8 = [7 x i8] c" {\0A\00"
@.str.9 = [34 x i8] c" %8d, /* Filter %d */\0A\00"
@.str.10 = [39 x i8] c" %15.10ff, /* Filter %d */\0A\00"
@.str.11 = [14 x i8] c" %8d,\0A\00"
@.str.12 = [19 x i8] c" %15.10ff,\0A\00"
@.str.13 = [13 x i8] c" %8d\0A\00"
@.str.14 = [18 x i8] c" %15.10ff\0A\00"
@.str.15 = [8 x i8] c" },\0A\00"
@.str.16 = [7 x i8] c" }\0A\00"
@.str.17 = [4 x i8] c"};\0A\00"
define void @make_rx_filter(i32 %0, i32 %1, double %2, double %3, double %4, i32 %5, i8* %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca [49153 x double]
%26 = alloca [128 x double]
store i32 %0, i32* %8
store i32 %1, i32* %9
store double %2, double* %10
store double %3, double* %11
store double %4, double* %12
store i32 %5, i32* %13
store i8* %6, i8** %14
%27 = load i32, i32* %8
%28 = load i32, i32* %9
%29 = mul nsw i32 %27, %28
%30 = add nsw i32 %29, 1
store i32 %30, i32* %20
%31 = load double, double* %11
%32 = load i32, i32* %8
%33 = mul nsw i32 %32, 8000
%34 = sitofp i32 %33 to double
%35 = fmul double 2.000000e+00, %34
%36 = fdiv double %31, %35
store double %36, double* %21
%37 = load double, double* %12
store double %37, double* %22
%38 = load double, double* %10
%39 = fmul double %38, 0x3F49BC65B68848FA
store double %39, double* %10
%40 = getelementptr inbounds [49153 x double], [49153 x double]* %25, i64 0, i64 0
%41 = load i32, i32* %20
%42 = load double, double* %21
%43 = load double, double* %22
%44 = call i32 @compute_raised_cosine_filter(double* %40, i32 %41, i32 1, i32 0, double %42, double %43)
store double 0.000000e+00, double* %23
%45 = load i32, i32* %8
%46 = sdiv i32 %45, 2
store i32 %46, i32* %15
br label %47
47: ; preds = %58, %7
%48 = load i32, i32* %15
%49 = load i32, i32* %20
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %62
51: ; preds = %47
%52 = load i32, i32* %15
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [49153 x double], [49153 x double]* %25, i64 0, i64 %53
%55 = load double, double* %54
%56 = load double, double* %23
%57 = fadd double %56, %55
store double %57, double* %23
br label %58
58: ; preds = %51
%59 = load i32, i32* %8
%60 = load i32, i32* %15
%61 = add nsw i32 %60, %59
store i32 %61, i32* %15
br label %47
62: ; preds = %47
store i32 0, i32* %15
br label %63
63: ; preds = %74, %62
%64 = load i32, i32* %15
%65 = load i32, i32* %20
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %77
67: ; preds = %63
%68 = load double, double* %23
%69 = load i32, i32* %15
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [49153 x double], [49153 x double]* %25, i64 0, i64 %70
%72 = load double, double* %71
%73 = fdiv double %72, %68
store double %73, double* %71
br label %74
74: ; preds = %67
%75 = load i32, i32* %15
%76 = add nsw i32 %75, 1
store i32 %76, i32* %15
br label %63
77: ; preds = %63
store double 1.000000e+00, double* %23
%78 = load i32, i32* %13
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %126
80: ; preds = %77
store double -1.000000e+00, double* %24
store i32 0, i32* %15
br label %81
81: ; preds = %100, %80
%82 = load i32, i32* %15
%83 = load i32, i32* %20
%84 = icmp slt i32 %82, %83
br i1 %84, label %85, label %103
85: ; preds = %81
%86 = load i32, i32* %15
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [49153 x double], [49153 x double]* %25, i64 0, i64 %87
%89 = load double, double* %88
%90 = call double @llvm.fabs.f64(double %89)
%91 = load double, double* %24
%92 = fcmp ogt double %90, %91
br i1 %92, label %93, label %99
93: ; preds = %85
%94 = load i32, i32* %15
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [49153 x double], [49153 x double]* %25, i64 0, i64 %95
%97 = load double, double* %96
%98 = call double @llvm.fabs.f64(double %97)
store double %98, double* %24
br label %99
99: ; preds = %93, %85
br label %100
100: ; preds = %99
%101 = load i32, i32* %15
%102 = add nsw i32 %101, 1
store i32 %102, i32* %15
br label %81
103: ; preds = %81
store double 3.276700e+04, double* %23
%104 = load double, double* %24
%105 = fcmp oge double %104, 1.000000e+00
br i1 %105, label %106, label %110
106: ; preds = %103
%107 = load double, double* %24
%108 = load double, double* %23
%109 = fdiv double %108, %107
store double %109, double* %23
br label %110
110: ; preds = %106, %103
store i32 0, i32* %15
br label %111
111: ; preds = %122, %110
%112 = load i32, i32* %15
%113 = load i32, i32* %20
%114 = icmp slt i32 %112, %113
br i1 %114, label %115, label %125
115: ; preds = %111
%116 = load double, double* %23
%117 = load i32, i32* %15
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [49153 x double], [49153 x double]* %25, i64 0, i64 %118
%120 = load double, double* %119
%121 = fmul double %120, %116
store double %121, double* %119
br label %122
122: ; preds = %115
%123 = load i32, i32* %15
%124 = add nsw i32 %123, 1
store i32 %124, i32* %15
br label %111
125: ; preds = %111
br label %126
126: ; preds = %125, %77
%127 = load i8*, i8** %14
%128 = load double, double* %23
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %127, double %128)
%130 = load i8*, i8** %14
%131 = load i32, i32* %8
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i8* %130, i32 %131)
store i32 0, i32* %17
br label %133
133: ; preds = %275, %126
%134 = load i32, i32* %17
%135 = icmp slt i32 %134, 2
br i1 %135, label %136, label %278
136: ; preds = %133
%137 = load i32, i32* %13
%138 = icmp ne i32 %137, 0
%139 = zext i1 %138 to i64
%140 = select i1 %138, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%141 = load i8*, i8** %14
%142 = load i32, i32* %17
%143 = icmp eq i32 %142, 0
%144 = zext i1 %143 to i64
%145 = select i1 %143, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0)
%146 = load i8*, i8** %14
%147 = load i32, i32* %9
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0), i8* %140, i8* %141, i8* %145, i8* %146, i32 %147)
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %16
br label %150
150: ; preds = %270, %136
%151 = load i32, i32* %16
%152 = load i32, i32* %8
%153 = icmp slt i32 %151, %152
br i1 %153, label %154, label %273
154: ; preds = %150
store i32 0, i32* %15
br label %155
155: ; preds = %200, %154
%156 = load i32, i32* %15
%157 = load i32, i32* %9
%158 = icmp slt i32 %156, %157
br i1 %158, label %159, label %203
159: ; preds = %155
%160 = load i32, i32* %15
%161 = load i32, i32* %9
%162 = ashr i32 %161, 1
%163 = sub nsw i32 %160, %162
store i32 %163, i32* %18
%164 = load i32, i32* %15
%165 = load i32, i32* %8
%166 = mul nsw i32 %164, %165
%167 = load i32, i32* %16
%168 = add nsw i32 %166, %167
store i32 %168, i32* %19
%169 = load i32, i32* %17
%170 = icmp eq i32 %169, 0
br i1 %170, label %171, label %185
171: ; preds = %159
%172 = load i32, i32* %19
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds [49153 x double], [49153 x double]* %25, i64 0, i64 %173
%175 = load double, double* %174
%176 = load double, double* %10
%177 = load i32, i32* %18
%178 = sitofp i32 %177 to double
%179 = fmul double %176, %178
%180 = call double @cos(double %179)
%181 = fmul double %175, %180
%182 = load i32, i32* %15
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds [128 x double], [128 x double]* %26, i64 0, i64 %183
store double %181, double* %184
br label %199
185: ; preds = %159
%186 = load i32, i32* %19
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds [49153 x double], [49153 x double]* %25, i64 0, i64 %187
%189 = load double, double* %188
%190 = load double, double* %10
%191 = load i32, i32* %18
%192 = sitofp i32 %191 to double
%193 = fmul double %190, %192
%194 = call double @sin(double %193)
%195 = fmul double %189, %194
%196 = load i32, i32* %15
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds [128 x double], [128 x double]* %26, i64 0, i64 %197
store double %195, double* %198
br label %199
199: ; preds = %185, %171
br label %200
200: ; preds = %199
%201 = load i32, i32* %15
%202 = add nsw i32 %201, 1
store i32 %202, i32* %15
br label %155
203: ; preds = %155
%204 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%205 = load i32, i32* %13
%206 = icmp ne i32 %205, 0
br i1 %206, label %207, label %213
207: ; preds = %203
%208 = getelementptr inbounds [128 x double], [128 x double]* %26, i64 0, i64 0
%209 = load double, double* %208
%210 = fptosi double %209 to i32
%211 = load i32, i32* %16
%212 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0), i32 %210, i32 %211)
br label %218
213: ; preds = %203
%214 = getelementptr inbounds [128 x double], [128 x double]* %26, i64 0, i64 0
%215 = load double, double* %214
%216 = load i32, i32* %16
%217 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), double %215, i32 %216)
br label %218
218: ; preds = %213, %207
store i32 1, i32* %15
br label %219
219: ; preds = %241, %218
%220 = load i32, i32* %15
%221 = load i32, i32* %9
%222 = sub nsw i32 %221, 1
%223 = icmp slt i32 %220, %222
br i1 %223, label %224, label %244
224: ; preds = %219
%225 = load i32, i32* %13
%226 = icmp ne i32 %225, 0
br i1 %226, label %227, label %234
227: ; preds = %224
%228 = load i32, i32* %15
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds [128 x double], [128 x double]* %26, i64 0, i64 %229
%231 = load double, double* %230
%232 = fptosi double %231 to i32
%233 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i32 %232)
br label %240
234: ; preds = %224
%235 = load i32, i32* %15
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds [128 x double], [128 x double]* %26, i64 0, i64 %236
%238 = load double, double* %237
%239 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), double %238)
br label %240
240: ; preds = %234, %227
br label %241
241: ; preds = %240
%242 = load i32, i32* %15
%243 = add nsw i32 %242, 1
store i32 %243, i32* %15
br label %219
244: ; preds = %219
%245 = load i32, i32* %13
%246 = icmp ne i32 %245, 0
br i1 %246, label %247, label %254
247: ; preds = %244
%248 = load i32, i32* %15
%249 = sext i32 %248 to i64
%250 = getelementptr inbounds [128 x double], [128 x double]* %26, i64 0, i64 %249
%251 = load double, double* %250
%252 = fptosi double %251 to i32
%253 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 %252)
br label %260
254: ; preds = %244
%255 = load i32, i32* %15
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds [128 x double], [128 x double]* %26, i64 0, i64 %256
%258 = load double, double* %257
%259 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), double %258)
br label %260
260: ; preds = %254, %247
%261 = load i32, i32* %16
%262 = load i32, i32* %8
%263 = sub nsw i32 %262, 1
%264 = icmp slt i32 %261, %263
br i1 %264, label %265, label %267
265: ; preds = %260
%266 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
br label %269
267: ; preds = %260
%268 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
br label %269
269: ; preds = %267, %265
br label %270
270: ; preds = %269
%271 = load i32, i32* %16
%272 = add nsw i32 %271, 1
store i32 %272, i32* %16
br label %150
273: ; preds = %150
%274 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
br label %275
275: ; preds = %273
%276 = load i32, i32* %17
%277 = add nsw i32 %276, 1
store i32 %277, i32* %17
br label %133
278: ; preds = %133
ret void
}

LLVM IR (-O2):
@.str = [42 x i8] c"#define RX_PULSESHAPER%s_GAIN %ff\0A\00"
@.str.1 = [41 x i8] c"#define RX_PULSESHAPER%s_COEFF_SETS %d\0A\00"
@.str.2 = [72 x i8] c"static const %s rx_pulseshaper%s_%s[RX_PULSESHAPER%s_COEFF_SETS][%d] =\0A\00"
@.str.3 = [8 x i8] c"int16_t\00"
@.str.4 = [6 x i8] c"float\00"
@.str.5 = [3 x i8] c"re\00"
@.str.6 = [3 x i8] c"im\00"
@.str.9 = [34 x i8] c" %8d, /* Filter %d */\0A\00"
@.str.10 = [39 x i8] c" %15.10ff, /* Filter %d */\0A\00"
@.str.11 = [14 x i8] c" %8d,\0A\00"
@.str.12 = [19 x i8] c" %15.10ff,\0A\00"
@.str.13 = [13 x i8] c" %8d\0A\00"
@.str.14 = [18 x i8] c" %15.10ff\0A\00"
@str = [2 x i8] c"{\00"
@str.18 = [3 x i8] c"};\00"
@str.19 = [6 x i8] c" {\00"
@str.20 = [6 x i8] c" }\00"
@str.21 = [7 x i8] c" },\00"
define void @make_rx_filter(i32 %0, i32 %1, double %2, double %3, double %4, i32 %5, i8* %6) {
%8 = alloca [49153 x double]
%9 = alloca [128 x double]
%10 = bitcast [49153 x double]* %8 to i8*
%11 = bitcast [128 x double]* %9 to i8*
%12 = mul nsw i32 %1, %0
%13 = add nsw i32 %12, 1
%14 = mul nsw i32 %0, 8000
%15 = sitofp i32 %14 to double
%16 = fmul double %15, 2.000000e+00
%17 = fdiv double %3, %16
%18 = fmul double %2, 0x3F49BC65B68848FA
%19 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 0
%20 = call i32 @compute_raised_cosine_filter(double* %19, i32 %13, i32 1, i32 0, double %17, double %4)
%21 = sdiv i32 %0, 2
%22 = icmp sgt i32 %21, %12
br i1 %22, label %27, label %23
23: ; preds = %7
%24 = sext i32 %21 to i64
%25 = sext i32 %0 to i64
%26 = sext i32 %12 to i64
br label %74
27: ; preds = %74, %7
%28 = phi double [ 0.000000e+00, %7 ], [ %79, %74 ]
%29 = icmp slt i32 %12, 0
br i1 %29, label %91, label %30
30: ; preds = %27
%31 = zext i32 %13 to i64
%32 = icmp ult i32 %13, 2
br i1 %32, label %72, label %33
33: ; preds = %30
%34 = and i64 %31, 4294967294
%35 = insertelement <2 x double> poison, double %28, i64 0
%36 = shufflevector <2 x double> %35, <2 x double> poison, <2 x i32> zeroinitializer
%37 = add nsw i64 %34, -2
%38 = lshr exact i64 %37, 1
%39 = add nuw i64 %38, 1
%40 = and i64 %39, 1
%41 = icmp eq i64 %37, 0
br i1 %41, label %61, label %42
42: ; preds = %33
%43 = and i64 %39, -2
br label %44
44: ; preds = %44, %42
%45 = phi i64 [ 0, %42 ], [ %58, %44 ]
%46 = phi i64 [ 0, %42 ], [ %59, %44 ]
%47 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %45
%48 = bitcast double* %47 to <2 x double>*
%49 = load <2 x double>, <2 x double>* %48
%50 = fdiv <2 x double> %49, %36
%51 = bitcast double* %47 to <2 x double>*
store <2 x double> %50, <2 x double>* %51
%52 = or i64 %45, 2
%53 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %52
%54 = bitcast double* %53 to <2 x double>*
%55 = load <2 x double>, <2 x double>* %54
%56 = fdiv <2 x double> %55, %36
%57 = bitcast double* %53 to <2 x double>*
store <2 x double> %56, <2 x double>* %57
%58 = add nuw i64 %45, 4
%59 = add nuw i64 %46, 2
%60 = icmp eq i64 %59, %43
br i1 %60, label %61, label %44
61: ; preds = %44, %33
%62 = phi i64 [ 0, %33 ], [ %58, %44 ]
%63 = icmp eq i64 %40, 0
br i1 %63, label %70, label %64
64: ; preds = %61
%65 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %62
%66 = bitcast double* %65 to <2 x double>*
%67 = load <2 x double>, <2 x double>* %66
%68 = fdiv <2 x double> %67, %36
%69 = bitcast double* %65 to <2 x double>*
store <2 x double> %68, <2 x double>* %69
br label %70
70: ; preds = %61, %64
%71 = icmp eq i64 %34, %31
br i1 %71, label %89, label %72
72: ; preds = %30, %70
%73 = phi i64 [ 0, %30 ], [ %34, %70 ]
br label %82
74: ; preds = %23, %74
%75 = phi i64 [ %24, %23 ], [ %80, %74 ]
%76 = phi double [ 0.000000e+00, %23 ], [ %79, %74 ]
%77 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %75
%78 = load double, double* %77
%79 = fadd double %76, %78
%80 = add i64 %75, %25
%81 = icmp sgt i64 %80, %26
br i1 %81, label %27, label %74
82: ; preds = %72, %82
%83 = phi i64 [ %87, %82 ], [ %73, %72 ]
%84 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %83
%85 = load double, double* %84
%86 = fdiv double %85, %28
store double %86, double* %84
%87 = add nuw nsw i64 %83, 1
%88 = icmp eq i64 %87, %31
br i1 %88, label %89, label %82
89: ; preds = %82, %70
%90 = icmp eq i32 %5, 0
br i1 %90, label %221, label %93
91: ; preds = %27
%92 = icmp eq i32 %5, 0
br i1 %92, label %221, label %130
93: ; preds = %89
br i1 %29, label %130, label %94
94: ; preds = %93
%95 = add nsw i64 %31, -1
%96 = and i64 %31, 3
%97 = icmp ult i64 %95, 3
br i1 %97, label %131, label %98
98: ; preds = %94
%99 = and i64 %31, 4294967292
br label %100
100: ; preds = %100, %98
%101 = phi i64 [ 0, %98 ], [ %127, %100 ]
%102 = phi double [ -1.000000e+00, %98 ], [ %126, %100 ]
%103 = phi i64 [ 0, %98 ], [ %128, %100 ]
%104 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %101
%105 = load double, double* %104
%106 = call double @llvm.fabs.f64(double %105)
%107 = fcmp ogt double %106, %102
%108 = select i1 %107, double %106, double %102
%109 = or i64 %101, 1
%110 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %109
%111 = load double, double* %110
%112 = call double @llvm.fabs.f64(double %111)
%113 = fcmp ogt double %112, %108
%114 = select i1 %113, double %112, double %108
%115 = or i64 %101, 2
%116 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %115
%117 = load double, double* %116
%118 = call double @llvm.fabs.f64(double %117)
%119 = fcmp ogt double %118, %114
%120 = select i1 %119, double %118, double %114
%121 = or i64 %101, 3
%122 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %121
%123 = load double, double* %122
%124 = call double @llvm.fabs.f64(double %123)
%125 = fcmp ogt double %124, %120
%126 = select i1 %125, double %124, double %120
%127 = add nuw nsw i64 %101, 4
%128 = add i64 %103, 4
%129 = icmp eq i64 %128, %99
br i1 %129, label %131, label %100
130: ; preds = %93, %91
br label %221
131: ; preds = %100, %94
%132 = phi double [ undef, %94 ], [ %126, %100 ]
%133 = phi i64 [ 0, %94 ], [ %127, %100 ]
%134 = phi double [ -1.000000e+00, %94 ], [ %126, %100 ]
%135 = icmp eq i64 %96, 0
br i1 %135, label %148, label %136
136: ; preds = %131, %136
%137 = phi i64 [ %145, %136 ], [ %133, %131 ]
%138 = phi double [ %144, %136 ], [ %134, %131 ]
%139 = phi i64 [ %146, %136 ], [ 0, %131 ]
%140 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %137
%141 = load double, double* %140
%142 = call double @llvm.fabs.f64(double %141)
%143 = fcmp ogt double %142, %138
%144 = select i1 %143, double %142, double %138
%145 = add nuw nsw i64 %137, 1
%146 = add i64 %139, 1
%147 = icmp eq i64 %146, %96
br i1 %147, label %148, label %136
148: ; preds = %136, %131
%149 = phi double [ %132, %131 ], [ %144, %136 ]
%150 = fcmp ult double %149, 1.000000e+00
%151 = fdiv double 3.276700e+04, %149
%152 = select i1 %150, double 3.276700e+04, double %151
br i1 %29, label %221, label %153
153: ; preds = %148
%154 = zext i32 %13 to i64
%155 = icmp ult i32 %13, 4
br i1 %155, label %212, label %156
156: ; preds = %153
%157 = and i64 %31, 4294967292
%158 = insertelement <2 x double> poison, double %152, i64 0
%159 = shufflevector <2 x double> %158, <2 x double> poison, <2 x i32> zeroinitializer
%160 = insertelement <2 x double> poison, double %152, i64 0
%161 = shufflevector <2 x double> %160, <2 x double> poison, <2 x i32> zeroinitializer
%162 = add nsw i64 %157, -4
%163 = lshr exact i64 %162, 2
%164 = add nuw nsw i64 %163, 1
%165 = and i64 %164, 1
%166 = icmp eq i64 %162, 0
br i1 %166, label %196, label %167
167: ; preds = %156
%168 = and i64 %164, 9223372036854775806
br label %169
169: ; preds = %169, %167
%170 = phi i64 [ 0, %167 ], [ %193, %169 ]
%171 = phi i64 [ 0, %167 ], [ %194, %169 ]
%172 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %170
%173 = bitcast double* %172 to <2 x double>*
%174 = load <2 x double>, <2 x double>* %173
%175 = getelementptr inbounds double, double* %172, i64 2
%176 = bitcast double* %175 to <2 x double>*
%177 = load <2 x double>, <2 x double>* %176
%178 = fmul <2 x double> %159, %174
%179 = fmul <2 x double> %161, %177
%180 = bitcast double* %172 to <2 x double>*
store <2 x double> %178, <2 x double>* %180
%181 = bitcast double* %175 to <2 x double>*
store <2 x double> %179, <2 x double>* %181
%182 = or i64 %170, 4
%183 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %182
%184 = bitcast double* %183 to <2 x double>*
%185 = load <2 x double>, <2 x double>* %184
%186 = getelementptr inbounds double, double* %183, i64 2
%187 = bitcast double* %186 to <2 x double>*
%188 = load <2 x double>, <2 x double>* %187
%189 = fmul <2 x double> %159, %185
%190 = fmul <2 x double> %161, %188
%191 = bitcast double* %183 to <2 x double>*
store <2 x double> %189, <2 x double>* %191
%192 = bitcast double* %186 to <2 x double>*
store <2 x double> %190, <2 x double>* %192
%193 = add nuw i64 %170, 8
%194 = add i64 %171, 2
%195 = icmp eq i64 %194, %168
br i1 %195, label %196, label %169
196: ; preds = %169, %156
%197 = phi i64 [ 0, %156 ], [ %193, %169 ]
%198 = icmp eq i64 %165, 0
br i1 %198, label %210, label %199
199: ; preds = %196
%200 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %197
%201 = bitcast double* %200 to <2 x double>*
%202 = load <2 x double>, <2 x double>* %201
%203 = getelementptr inbounds double, double* %200, i64 2
%204 = bitcast double* %203 to <2 x double>*
%205 = load <2 x double>, <2 x double>* %204
%206 = fmul <2 x double> %159, %202
%207 = fmul <2 x double> %161, %205
%208 = bitcast double* %200 to <2 x double>*
store <2 x double> %206, <2 x double>* %208
%209 = bitcast double* %203 to <2 x double>*
store <2 x double> %207, <2 x double>* %209
br label %210
210: ; preds = %196, %199
%211 = icmp eq i64 %157, %31
br i1 %211, label %221, label %212
212: ; preds = %153, %210
%213 = phi i64 [ 0, %153 ], [ %157, %210 ]
br label %214
214: ; preds = %212, %214
%215 = phi i64 [ %219, %214 ], [ %213, %212 ]
%216 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %215
%217 = load double, double* %216
%218 = fmul double %152, %217
store double %218, double* %216
%219 = add nuw nsw i64 %215, 1
%220 = icmp eq i64 %219, %154
br i1 %220, label %221, label %214
221: ; preds = %214, %210, %130, %91, %148, %89
%222 = phi i1 [ false, %148 ], [ true, %89 ], [ true, %91 ], [ false, %130 ], [ false, %210 ], [ false, %214 ]
%223 = phi i8* [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %148 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), %89 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), %91 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %130 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %210 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %214 ]
%224 = phi double [ %152, %148 ], [ 1.000000e+00, %89 ], [ 1.000000e+00, %91 ], [ 3.276700e+04, %130 ], [ %152, %210 ], [ %152, %214 ]
%225 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %6, double %224)
%226 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i8* %6, i32 %0)
%227 = icmp sgt i32 %0, 0
%228 = icmp sgt i32 %1, 0
%229 = ashr i32 %1, 1
%230 = getelementptr inbounds [128 x double], [128 x double]* %9, i64 0, i64 0
%231 = add i32 %1, -1
%232 = icmp sgt i32 %1, 2
%233 = add nsw i32 %0, -1
%234 = sext i32 %0 to i64
%235 = sext i32 %233 to i64
%236 = zext i32 %0 to i64
%237 = zext i32 %1 to i64
%238 = zext i32 %231 to i64
%239 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0), i8* %223, i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %6, i32 %1)
%240 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br i1 %227, label %241, label %357
241: ; preds = %221, %291
%242 = phi i64 [ %295, %291 ], [ 0, %221 ]
br i1 %228, label %243, label %258
243: ; preds = %241, %243
%244 = phi i64 [ %256, %243 ], [ 0, %241 ]
%245 = mul nsw i64 %244, %234
%246 = add nsw i64 %245, %242
%247 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %246
%248 = load double, double* %247
%249 = trunc i64 %244 to i32
%250 = sub i32 %249, %229
%251 = sitofp i32 %250 to double
%252 = fmul double %18, %251
%253 = call double @cos(double %252)
%254 = fmul double %248, %253
%255 = getelementptr inbounds [128 x double], [128 x double]* %9, i64 0, i64 %244
store double %254, double* %255
%256 = add nuw nsw i64 %244, 1
%257 = icmp eq i64 %256, %237
br i1 %257, label %258, label %243
258: ; preds = %243, %241
%259 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.19, i64 0, i64 0))
%260 = load double, double* %230
br i1 %222, label %265, label %261
261: ; preds = %258
%262 = fptosi double %260 to i32
%263 = trunc i64 %242 to i32
%264 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0), i32 %262, i32 %263)
br label %268
265: ; preds = %258
%266 = trunc i64 %242 to i32
%267 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), double %260, i32 %266)
br label %268
268: ; preds = %265, %261
br i1 %232, label %269, label %281
269: ; preds = %268, %278
%270 = phi i64 [ %279, %278 ], [ 1, %268 ]
%271 = getelementptr inbounds [128 x double], [128 x double]* %9, i64 0, i64 %270
%272 = load double, double* %271
br i1 %222, label %276, label %273
273: ; preds = %269
%274 = fptosi double %272 to i32
%275 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i32 %274)
br label %278
276: ; preds = %269
%277 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), double %272)
br label %278
278: ; preds = %273, %276
%279 = add nuw nsw i64 %270, 1
%280 = icmp eq i64 %279, %238
br i1 %280, label %281, label %269
281: ; preds = %278, %268
%282 = phi i32 [ 1, %268 ], [ %231, %278 ]
%283 = zext i32 %282 to i64
%284 = getelementptr inbounds [128 x double], [128 x double]* %9, i64 0, i64 %283
%285 = load double, double* %284
br i1 %222, label %289, label %286
286: ; preds = %281
%287 = fptosi double %285 to i32
%288 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 %287)
br label %291
289: ; preds = %281
%290 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), double %285)
br label %291
291: ; preds = %289, %286
%292 = icmp slt i64 %242, %235
%293 = select i1 %292, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.21, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str.20, i64 0, i64 0)
%294 = call i32 @puts(i8* dereferenceable(1) %293)
%295 = add nuw nsw i64 %242, 1
%296 = icmp eq i64 %295, %236
br i1 %296, label %297, label %241
297: ; preds = %291
%298 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.18, i64 0, i64 0))
%299 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0), i8* %223, i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %6, i32 %1)
%300 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br i1 %227, label %301, label %361
301: ; preds = %297, %351
%302 = phi i64 [ %355, %351 ], [ 0, %297 ]
br i1 %228, label %303, label %318
303: ; preds = %301, %303
%304 = phi i64 [ %316, %303 ], [ 0, %301 ]
%305 = mul nsw i64 %304, %234
%306 = add nsw i64 %305, %302
%307 = getelementptr inbounds [49153 x double], [49153 x double]* %8, i64 0, i64 %306
%308 = load double, double* %307
%309 = trunc i64 %304 to i32
%310 = sub i32 %309, %229
%311 = sitofp i32 %310 to double
%312 = fmul double %18, %311
%313 = call double @sin(double %312)
%314 = fmul double %308, %313
%315 = getelementptr inbounds [128 x double], [128 x double]* %9, i64 0, i64 %304
store double %314, double* %315
%316 = add nuw nsw i64 %304, 1
%317 = icmp eq i64 %316, %237
br i1 %317, label %318, label %303
318: ; preds = %303, %301
%319 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.19, i64 0, i64 0))
%320 = load double, double* %230
br i1 %222, label %325, label %321
321: ; preds = %318
%322 = fptosi double %320 to i32
%323 = trunc i64 %302 to i32
%324 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0), i32 %322, i32 %323)
br label %328
325: ; preds = %318
%326 = trunc i64 %302 to i32
%327 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), double %320, i32 %326)
br label %328
328: ; preds = %325, %321
br i1 %232, label %329, label %341
329: ; preds = %328, %338
%330 = phi i64 [ %339, %338 ], [ 1, %328 ]
%331 = getelementptr inbounds [128 x double], [128 x double]* %9, i64 0, i64 %330
%332 = load double, double* %331
br i1 %222, label %336, label %333
333: ; preds = %329
%334 = fptosi double %332 to i32
%335 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i32 %334)
br label %338
336: ; preds = %329
%337 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), double %332)
br label %338
338: ; preds = %336, %333
%339 = add nuw nsw i64 %330, 1
%340 = icmp eq i64 %339, %238
br i1 %340, label %341, label %329
341: ; preds = %338, %328
%342 = phi i32 [ 1, %328 ], [ %231, %338 ]
%343 = zext i32 %342 to i64
%344 = getelementptr inbounds [128 x double], [128 x double]* %9, i64 0, i64 %343
%345 = load double, double* %344
br i1 %222, label %349, label %346
346: ; preds = %341
%347 = fptosi double %345 to i32
%348 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 %347)
br label %351
349: ; preds = %341
%350 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), double %345)
br label %351
351: ; preds = %349, %346
%352 = icmp slt i64 %302, %235
%353 = select i1 %352, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.21, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str.20, i64 0, i64 0)
%354 = call i32 @puts(i8* dereferenceable(1) %353)
%355 = add nuw nsw i64 %302, 1
%356 = icmp eq i64 %355, %236
br i1 %356, label %361, label %301
357: ; preds = %221
%358 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.18, i64 0, i64 0))
%359 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0), i8* %223, i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %6, i32 %1)
%360 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br label %361
361: ; preds = %351, %357, %297
%362 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.18, i64 0, i64 0))
ret void
}