#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 fabs(double);
int /*<<< orphan*/ printf(char *, ...);
void make_tx_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 x;
  int total_coeffs;
  double alpha;
  double beta;
  double gain;
  double scaling;
  double peak;
  double coeffs[384 * 128 + 1];
  total_coeffs = coeff_sets * coeffs_per_filter + 1;
  alpha = baud_rate / (2.0 * (double)(coeff_sets * baud_rate));
  beta = excess_bandwidth;
  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]);
    }
    scaling = 32767.0;
    if (peak >= 1.0) {
      scaling /= peak;
      gain = 1.0 / peak;
    }
    for (i = 0; i < total_coeffs; i++)
      coeffs[i] *= scaling;
  }
  printf("#define TX_PULSESHAPER%s_GAIN        %ff\n", tag, gain);
  printf("#define TX_PULSESHAPER%s_COEFF_SETS  %d\n", tag, coeff_sets);
  printf(
      "static const %s tx_pulseshaper%s[TX_PULSESHAPER%s_COEFF_SETS][%d] =\n",
      (fixed_point) ? "int16_t" : "float", tag, tag, coeffs_per_filter);
  printf("{\n");
  for (j = 0; j < coeff_sets; j++) {
    x = j;
    printf("    {\n");
    if (fixed_point)
      printf("        %8d,     /* Filter %d */\n", (int)coeffs[x], j);
    else
      printf("        %15.10ff,     /* Filter %d */\n", coeffs[x], j);
    for (i = 1; i < coeffs_per_filter - 1; i++) {
      x = i * coeff_sets + j;
      if (fixed_point)
        printf("        %8d,\n", (int)coeffs[x]);
      else
        printf("        %15.10ff,\n", coeffs[x]);
    }
    x = i * coeff_sets + j;
    if (fixed_point)
      printf("        %8d\n", (int)coeffs[x]);
    else
      printf("        %15.10ff\n", coeffs[x]);
    if (j < coeff_sets - 1)
      printf("    },\n");
    else
      printf("    }\n");
  }
  printf("};\n");
}


x86 assembly (clang, -O0):
<make_tx_filter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60070,%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,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
cvtsi2sdl -0x4(%rbp),%xmm2
mulsd  -0x18(%rbp),%xmm2
movsd  0xe95(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
lea    -0x60070(%rbp),%rdi
mov    -0x40(%rbp),%esi
movsd  -0x48(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
mov    $0x1,%edx
xor    %ecx,%ecx
call   1030 <compute_raised_cosine_filter@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    11e9 <make_tx_filter+0xc9>
movslq -0x34(%rbp),%rax
movsd  -0x60070(%rbp,%rax,8),%xmm0
f9 ff
addsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x4(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x34(%rbp)
jmp    11b8 <make_tx_filter+0x98>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    1229 <make_tx_filter+0x109>
movsd  -0x58(%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    11f0 <make_tx_filter+0xd0>
movsd  0xdd7(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     133d <make_tx_filter+0x21d>
movsd  0xdc8(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    12b3 <make_tx_filter+0x193>
movslq -0x34(%rbp),%rax
movsd  -0x60070(%rbp,%rax,8),%xmm0
f9 ff
movaps 0xdac(%rip),%xmm1
pand   %xmm1,%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    12a0 <make_tx_filter+0x180>
movslq -0x34(%rbp),%rax
movsd  -0x60070(%rbp,%rax,8),%xmm0
f9 ff
movaps 0xd89(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
jmp    12a5 <make_tx_filter+0x185>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1254 <make_tx_filter+0x134>
movsd  0xd5d(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  0xd3b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     12fc <make_tx_filter+0x1dc>
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xd16(%rip),%xmm0
divsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    1338 <make_tx_filter+0x218>
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    1303 <make_tx_filter+0x1e3>
jmp    133d <make_tx_filter+0x21d>
mov    -0x30(%rbp),%rsi
movsd  -0x58(%rbp),%xmm0
lea    0xce3(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rsi
mov    -0x4(%rbp),%edx
lea    0xcf8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%ecx
lea    0xd5d(%rip),%rsi
lea    0xd4e(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
mov    -0x30(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    -0x8(%rbp),%r8d
lea    0xcef(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd38(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    152f <make_tx_filter+0x40f>
mov    -0x38(%rbp),%eax
mov    %eax,-0x3c(%rbp)
lea    0xd0d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x24(%rbp)
je     13fd <make_tx_filter+0x2dd>
movslq -0x3c(%rbp),%rax
cvttsd2si -0x60070(%rbp,%rax,8),%esi
f9 ff
mov    -0x38(%rbp),%edx
lea    0xcec(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    141b <make_tx_filter+0x2fb>
movslq -0x3c(%rbp),%rax
movsd  -0x60070(%rbp,%rax,8),%xmm0
f9 ff
mov    -0x38(%rbp),%esi
lea    0xceb(%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    1498 <make_tx_filter+0x378>
mov    -0x34(%rbp),%eax
imul   -0x4(%rbp),%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     146a <make_tx_filter+0x34a>
movslq -0x3c(%rbp),%rax
cvttsd2si -0x60070(%rbp,%rax,8),%esi
f9 ff
lea    0xcc8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1485 <make_tx_filter+0x365>
movslq -0x3c(%rbp),%rax
movsd  -0x60070(%rbp,%rax,8),%xmm0
f9 ff
lea    0xcb6(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    148a <make_tx_filter+0x36a>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1422 <make_tx_filter+0x302>
mov    -0x34(%rbp),%eax
imul   -0x4(%rbp),%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     14cf <make_tx_filter+0x3af>
movslq -0x3c(%rbp),%rax
cvttsd2si -0x60070(%rbp,%rax,8),%esi
f9 ff
lea    0xc84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14ea <make_tx_filter+0x3ca>
movslq -0x3c(%rbp),%rax
movsd  -0x60070(%rbp,%rax,8),%xmm0
f9 ff
lea    0xc71(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    150e <make_tx_filter+0x3ee>
lea    0xc64(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    151c <make_tx_filter+0x3fc>
lea    0xc59(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1521 <make_tx_filter+0x401>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    13b0 <make_tx_filter+0x290>
lea    0xc3f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x60070,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_tx_filter>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x60038,%rsp
mov    %rcx,%r15
mov    %edx,%r12d
movapd %xmm1,%xmm0
mov    %edi,%ebp
mov    %rsi,(%rsp)
mov    %esi,%ebx
imul   %edi,%ebx
xorps  %xmm1,%xmm1
cvtsi2sd %edi,%xmm1
lea    0x1(%rbx),%r14d
mulsd  %xmm0,%xmm1
addsd  %xmm1,%xmm1
divsd  %xmm1,%xmm0
lea    0x30(%rsp),%rdi
mov    %r14d,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
movapd %xmm2,%xmm1
call   1030 <compute_raised_cosine_filter@plt>
mov    %ebp,%eax
shr    $0x1f,%eax
mov    %rbp,0x8(%rsp)
add    %ebp,%eax
sar    %eax
xorpd  %xmm0,%xmm0
cmp    %ebx,%eax
jg     11be <make_tx_filter+0x8e>
cltq
movslq 0x8(%rsp),%rcx
movslq %ebx,%rdx
xorpd  %xmm0,%xmm0
nopl   0x0(%rax)
addsd  0x30(%rsp,%rax,8),%xmm0
add    %rcx,%rax
cmp    %rdx,%rax
jle    11b0 <make_tx_filter+0x80>
test   %ebx,%ebx
js     11d2 <make_tx_filter+0xa2>
mov    %r14d,%eax
cmp    $0x2,%r14d
jae    11e0 <make_tx_filter+0xb0>
xor    %ecx,%ecx
jmp    1260 <make_tx_filter+0x130>
test   %r12d,%r12d
jne    12a0 <make_tx_filter+0x170>
jmp    12bb <make_tx_filter+0x18b>
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     13b6 <make_tx_filter+0x286>
mov    %rdx,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %esi,%esi
nopl   (%rax)
movapd 0x30(%rsp,%rsi,8),%xmm2
movapd 0x40(%rsp,%rsi,8),%xmm3
divpd  %xmm1,%xmm2
movapd %xmm2,0x30(%rsp,%rsi,8)
divpd  %xmm1,%xmm3
movapd %xmm3,0x40(%rsp,%rsi,8)
add    $0x4,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1210 <make_tx_filter+0xe0>
test   $0x1,%dl
je     124f <make_tx_filter+0x11f>
movapd 0x30(%rsp,%rsi,8),%xmm2
divpd  %xmm1,%xmm2
movapd %xmm2,0x30(%rsp,%rsi,8)
cmp    %rax,%rcx
je     1279 <make_tx_filter+0x149>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x30(%rsp,%rcx,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x30(%rsp,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1260 <make_tx_filter+0x130>
test   %r12d,%r12d
je     12bb <make_tx_filter+0x18b>
test   %ebx,%ebx
js     12a0 <make_tx_filter+0x170>
lea    -0x1(%rax),%rdx
mov    %eax,%ecx
and    $0x3,%ecx
cmp    $0x3,%rdx
jae    12d6 <make_tx_filter+0x1a6>
movsd  0xd6f(%rip),%xmm0
xor    %edx,%edx
jmp    1335 <make_tx_filter+0x205>
movsd  0xd58(%rip),%xmm0
lea    0xe19(%rip),%r13
xor    %r14d,%r14d
mov    (%rsp),%r12
jmp    148c <make_tx_filter+0x35c>
movsd  0xd3d(%rip),%xmm0
lea    0xe06(%rip),%r13
mov    $0x1,%r14b
mov    (%rsp),%r12
jmp    148c <make_tx_filter+0x35c>
mov    %eax,%esi
and    $0xfffffffc,%esi
movsd  0xd25(%rip),%xmm2
xor    %edx,%edx
movapd 0xd23(%rip),%xmm1
nopl   (%rax)
movsd  0x30(%rsp,%rdx,8),%xmm3
movsd  0x38(%rsp,%rdx,8),%xmm4
movsd  0x40(%rsp,%rdx,8),%xmm5
movsd  0x48(%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    12f0 <make_tx_filter+0x1c0>
movapd %xmm0,%xmm2
test   %rcx,%rcx
je     136a <make_tx_filter+0x23a>
lea    (%rsp,%rdx,8),%rdx
add    $0x30,%rdx
xor    %esi,%esi
movapd 0xcc0(%rip),%xmm1
movsd  (%rdx,%rsi,8),%xmm2
andpd  %xmm1,%xmm2
maxsd  %xmm0,%xmm2
add    $0x1,%rsi
movapd %xmm2,%xmm0
cmp    %rsi,%rcx
jne    1350 <make_tx_filter+0x220>
ucomisd 0xc8e(%rip),%xmm2
jae    137e <make_tx_filter+0x24e>
movapd 0xca4(%rip),%xmm1
jmp    138e <make_tx_filter+0x25e>
unpcklpd %xmm2,%xmm2
movapd 0xc96(%rip),%xmm1
divpd  %xmm2,%xmm1
lea    0xd33(%rip),%r13
movapd %xmm1,%xmm0
test   %ebx,%ebx
js     12af <make_tx_filter+0x17f>
unpckhpd %xmm1,%xmm1
cmp    $0x4,%r14d
jae    13c6 <make_tx_filter+0x296>
xor    %ecx,%ecx
mov    (%rsp),%r12
jmp    1470 <make_tx_filter+0x340>
xor    %esi,%esi
test   $0x1,%dl
jne    123f <make_tx_filter+0x10f>
jmp    124f <make_tx_filter+0x11f>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     165c <make_tx_filter+0x52c>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
mov    (%rsp),%r12
movapd 0x30(%rsp,%rdx,8),%xmm2
mulpd  %xmm1,%xmm2
movapd 0x40(%rsp,%rdx,8),%xmm3
mulpd  %xmm1,%xmm3
movapd %xmm2,0x30(%rsp,%rdx,8)
movapd %xmm3,0x40(%rsp,%rdx,8)
movapd 0x50(%rsp,%rdx,8),%xmm2
mulpd  %xmm1,%xmm2
movapd 0x60(%rsp,%rdx,8),%xmm3
mulpd  %xmm1,%xmm3
movapd %xmm2,0x50(%rsp,%rdx,8)
movapd %xmm3,0x60(%rsp,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rdi
jne    13f0 <make_tx_filter+0x2c0>
test   $0x1,%sil
je     1460 <make_tx_filter+0x330>
movapd 0x30(%rsp,%rdx,8),%xmm2
mulpd  %xmm1,%xmm2
movapd 0x40(%rsp,%rdx,8),%xmm3
mulpd  %xmm1,%xmm3
movapd %xmm2,0x30(%rsp,%rdx,8)
movapd %xmm3,0x40(%rsp,%rdx,8)
cmp    %rax,%rcx
je     1489 <make_tx_filter+0x359>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  0x30(%rsp,%rcx,8),%xmm2
mulsd  %xmm1,%xmm2
movsd  %xmm2,0x30(%rsp,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1470 <make_tx_filter+0x340>
xor    %r14d,%r14d
lea    0xb9d(%rip),%rdi
mov    %r15,%rsi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xbb6(%rip),%rdi
mov    %r15,%rsi
mov    0x8(%rsp),%rbp
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xbc7(%rip),%rdi
mov    %r13,%rsi
mov    %r15,%rdx
mov    %r15,%rcx
mov    %r12d,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc90(%rip),%rdi
call   1040 <puts@plt>
test   %ebp,%ebp
jle    163e <make_tx_filter+0x50e>
lea    -0x1(%r12),%ecx
mov    0x8(%rsp),%rax
lea    -0x1(%rax),%ebx
mov    %eax,%eax
lea    (%rsp,%rax,8),%rbp
add    $0x30,%rbp
mov    %rax,0x28(%rsp)
lea    0x0(,%rax,8),%r13
mov    %rcx,0x20(%rsp)
lea    -0x1(%rcx),%rax
mov    %rax,0x10(%rsp)
xor    %r15d,%r15d
mov    %rbx,0x18(%rsp)
jmp    155b <make_tx_filter+0x42b>
nop
lea    0xc26(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
cmp    %rbx,%r15
lea    0xc30(%rip),%rdi
lea    0xc2f(%rip),%rax
cmovb  %rax,%rdi
call   1040 <puts@plt>
add    $0x1,%r15
add    $0x8,%rbp
cmp    0x28(%rsp),%r15
je     163e <make_tx_filter+0x50e>
lea    0xc00(%rip),%rdi
call   1040 <puts@plt>
movsd  0x30(%rsp,%r15,8),%xmm0
test   %r14b,%r14b
je     1590 <make_tx_filter+0x460>
lea    0xb7e(%rip),%rdi
mov    %r15d,%esi
mov    $0x1,%al
call   1050 <printf@plt>
jmp    15a5 <make_tx_filter+0x475>
cs nopw 0x0(%rax,%rax,1)
cvttsd2si %xmm0,%esi
lea    0xb3b(%rip),%rdi
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%eax
cmp    $0x3,%r12d
jl     160e <make_tx_filter+0x4de>
mov    0x10(%rsp),%rbx
mov    %rbp,%r12
jmp    15d7 <make_tx_filter+0x4a7>
nopw   0x0(%rax,%rax,1)
lea    0xb66(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
add    %r13,%r12
add    $0xffffffffffffffff,%rbx
je     1600 <make_tx_filter+0x4d0>
movsd  (%r12),%xmm0
test   %r14b,%r14b
jne    15c0 <make_tx_filter+0x490>
cvttsd2si %xmm0,%esi
lea    0xb32(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    15ce <make_tx_filter+0x49e>
cs nopw 0x0(%rax,%rax,1)
mov    0x20(%rsp),%rax
mov    (%rsp),%r12
mov    0x18(%rsp),%rbx
imul   0x8(%rsp),%eax
cltq
add    %r15,%rax
movsd  0x30(%rsp,%rax,8),%xmm0
test   %r14b,%r14b
jne    1520 <make_tx_filter+0x3f0>
cvttsd2si %xmm0,%esi
lea    0xb0e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    152e <make_tx_filter+0x3fe>
lea    0xb1a(%rip),%rdi
call   1040 <puts@plt>
add    $0x60038,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edx,%edx
mov    (%rsp),%r12
test   $0x1,%sil
jne    1440 <make_tx_filter+0x310>
jmp    1460 <make_tx_filter+0x330>

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

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