#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 csd2int(int, int *);
int fabs(double);
int /*<<< orphan*/ printf(char *, ...);
void printcode(int **code, int n, int cprec) {
  int i, j;
  double sumh, sume, sumo;
  int ih;
  double h;
  int negative, sign, shift, csdprec;
  int symmetry;
  csdprec = 0;
  for (i = 0; i < n; i++) {
    negative = 0;
    for (j = 0; j <= cprec; j++)
      if (code[i][j] != 0)
        negative++;
    if (negative > csdprec)
      csdprec = negative;
  }
  if (csd2int(cprec, code[0]) == csd2int(cprec, code[n - 1]))
    symmetry = 1;
  else
    symmetry = -1;
  sumh = 0.0;
  sume = 0.0;
  sumo = 0.0;
  for (i = 0; i < n; i++) {
    ih = csd2int(cprec, code[i]);
    h = (double)ih / (double)(1 << cprec);
    sumh += fabs(h);
    if (i % 2)
      sumo += fabs(h);
    else
      sume += fabs(h);
    if ((ih != 0) && (i < (n + 1) / 2)) {
      negative = 0;
      for (j = 0; j <= cprec; j++) {
        if (code[i][j] == -1)
          negative++;
        if (code[i][j] != 0)
          shift = j;
      }
      if (negative <= (csdprec - 1))
        sign = 1;
      else
        sign = -1;
      shift = cprec - shift;
      if (fabs(h) * (1 << shift) > 1.0)
        shift--;
      printf("h(%2d) = %11lg = %2d x (", i, h, sign);
      for (j = cprec; j >= 0; j--) {
        if (sign * code[i][j] == 1) {
          printf(" +1/2^%d", cprec - j);
        } else if (sign * code[i][j] == -1) {
          printf(" -1/2^%d", cprec - j);
        }
      }
      printf(" )\n");
    } else if (ih != 0) {
      printf("h(%2d) = %11lg = %2d x h(%2d)\n", i, h, symmetry, n - 1 - i);
    } else {
      printf("h(%2d) = %11lg\n", i, 0.0);
    }
  }
  printf("Sum of all abs(coefficients): %lg\n", sumh);
  printf("Sum of even coefficients: %lg\n", sume);
  printf("Sum of odd  coefficients: %lg\n\n", sumo);
}


x86 assembly (clang, -O0):
<printcode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x50(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11d1 <printcode+0xa1>
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     11ac <printcode+0x7c>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
je     1199 <printcode+0x69>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    119e <printcode+0x6e>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    116a <printcode+0x3a>
mov    -0x44(%rbp),%eax
cmp    -0x50(%rbp),%eax
jle    11be <printcode+0x8e>
mov    -0x44(%rbp),%eax
mov    %eax,-0x50(%rbp)
jmp    11c3 <printcode+0x93>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1150 <printcode+0x20>
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
call   1050 <csd2int@plt>
mov    %eax,-0x58(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
call   1050 <csd2int@plt>
mov    %eax,%ecx
mov    -0x58(%rbp),%eax
cmp    %ecx,%eax
jne    1215 <printcode+0xe5>
movl   $0x1,-0x54(%rbp)
jmp    121c <printcode+0xec>
movl   $0xffffffff,-0x54(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    14f9 <printcode+0x3c9>
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1050 <csd2int@plt>
mov    %eax,-0x34(%rbp)
cvtsi2sdl -0x34(%rbp),%xmm0
mov    -0x10(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1040 <fabs@plt>
cvtsi2sd %eax,%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     12c3 <printcode+0x193>
movsd  -0x40(%rbp),%xmm0
call   1040 <fabs@plt>
cvtsi2sd %eax,%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    12db <printcode+0x1ab>
movsd  -0x40(%rbp),%xmm0
call   1040 <fabs@plt>
cvtsi2sd %eax,%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
cmpl   $0x0,-0x34(%rbp)
je     149c <printcode+0x36c>
mov    -0x14(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x5c(%rbp),%eax
cmp    %ecx,%eax
jge    149c <printcode+0x36c>
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     1376 <printcode+0x246>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
cmpl   $0xffffffff,(%rax,%rcx,4)
jne    1343 <printcode+0x213>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
je     1363 <printcode+0x233>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    1368 <printcode+0x238>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1314 <printcode+0x1e4>
mov    -0x44(%rbp),%eax
mov    -0x50(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1393 <printcode+0x263>
movl   $0x1,-0x48(%rbp)
jmp    139a <printcode+0x26a>
movl   $0xffffffff,-0x48(%rbp)
mov    -0x10(%rbp),%eax
sub    -0x4c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1040 <fabs@plt>
mov    -0x4c(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
imul   %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  0xc38(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    13db <printcode+0x2ab>
mov    -0x4c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x14(%rbp),%esi
movsd  -0x40(%rbp),%xmm0
mov    -0x48(%rbp),%edx
lea    0xc1b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jl     1489 <printcode+0x359>
mov    -0x48(%rbp),%eax
mov    -0x8(%rbp),%rcx
movslq -0x14(%rbp),%rdx
mov    (%rcx,%rdx,8),%rcx
movslq -0x18(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
cmp    $0x1,%eax
jne    143d <printcode+0x30d>
mov    -0x10(%rbp),%esi
sub    -0x18(%rbp),%esi
lea    0xbf0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1476 <printcode+0x346>
mov    -0x48(%rbp),%eax
mov    -0x8(%rbp),%rcx
movslq -0x14(%rbp),%rdx
mov    (%rcx,%rdx,8),%rcx
movslq -0x18(%rbp),%rdx
imul   (%rcx,%rdx,4),%eax
cmp    $0xffffffff,%eax
jne    1471 <printcode+0x341>
mov    -0x10(%rbp),%esi
sub    -0x18(%rbp),%esi
lea    0xbc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1476 <printcode+0x346>
jmp    147b <printcode+0x34b>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    13fa <printcode+0x2ca>
lea    0xba3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14e6 <printcode+0x3b6>
cmpl   $0x0,-0x34(%rbp)
je     14cd <printcode+0x39d>
mov    -0x14(%rbp),%esi
movsd  -0x40(%rbp),%xmm0
mov    -0x54(%rbp),%edx
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
sub    -0x14(%rbp),%ecx
lea    0xb76(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    14e1 <printcode+0x3b1>
mov    -0x14(%rbp),%esi
lea    0xb7f(%rip),%rdi
xorps  %xmm0,%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
jmp    14e6 <printcode+0x3b6>
jmp    14eb <printcode+0x3bb>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    123b <printcode+0x10b>
movsd  -0x20(%rbp),%xmm0
lea    0xb61(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x28(%rbp),%xmm0
lea    0xb71(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x30(%rbp),%xmm0
lea    0xb7d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printcode>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %edx,%r14d
mov    %esi,%r15d
mov    %rdi,%rbx
movabs $0x3ffffffffffffffe,%r13
ff ff 3f
mov    %esi,%r12d
test   %esi,%esi
jle    12d7 <printcode+0x197>
lea    0x1(%r14),%eax
mov    %eax,%r11d
and    $0xfffffff8,%r11d
lea    -0x8(%r11),%r9
mov    %r9,%r10
shr    $0x3,%r10
add    $0x1,%r10
mov    %r10,%r8
and    %r13,%r8
xor    %ebp,%ebp
pxor   %xmm0,%xmm0
pcmpeqd %xmm8,%xmm8
movdqa 0xe5e(%rip),%xmm2
xor    %ecx,%ecx
jmp    11c2 <printcode+0x82>
cs nopw 0x0(%rax,%rax,1)
cmp    %ecx,%edx
cmovg  %edx,%ecx
add    $0x1,%rbp
cmp    %r12,%rbp
je     12d9 <printcode+0x199>
mov    $0x0,%edx
test   %r14d,%r14d
js     11b0 <printcode+0x70>
mov    (%rbx,%rbp,8),%rdi
cmp    $0x8,%eax
jae    11e0 <printcode+0xa0>
xor    %esi,%esi
xor    %edx,%edx
jmp    12b0 <printcode+0x170>
xchg   %ax,%ax
test   %r9,%r9
je     12c5 <printcode+0x185>
pxor   %xmm5,%xmm5
mov    %r8,%rsi
xor    %edx,%edx
pxor   %xmm6,%xmm6
cs nopw 0x0(%rax,%rax,1)
movdqu (%rdi,%rdx,4),%xmm7
movdqu 0x10(%rdi,%rdx,4),%xmm1
movdqu 0x20(%rdi,%rdx,4),%xmm3
movdqu 0x30(%rdi,%rdx,4),%xmm4
pcmpeqd %xmm0,%xmm7
paddd  %xmm5,%xmm7
pcmpeqd %xmm0,%xmm1
paddd  %xmm6,%xmm1
pcmpeqd %xmm0,%xmm3
pcmpeqd %xmm0,%xmm4
paddd  %xmm2,%xmm3
paddd  %xmm7,%xmm3
paddd  %xmm2,%xmm4
paddd  %xmm1,%xmm4
add    $0x10,%rdx
movdqa %xmm3,%xmm5
movdqa %xmm4,%xmm6
add    $0xfffffffffffffffe,%rsi
jne    1200 <printcode+0xc0>
test   $0x1,%r10b
je     127c <printcode+0x13c>
movdqu (%rdi,%rdx,4),%xmm1
movdqu 0x10(%rdi,%rdx,4),%xmm5
pcmpeqd %xmm0,%xmm1
paddd  %xmm1,%xmm3
pcmpeqd %xmm0,%xmm5
paddd  %xmm5,%xmm4
psubd  %xmm8,%xmm3
psubd  %xmm8,%xmm4
paddd  %xmm4,%xmm3
pshufd $0xee,%xmm3,%xmm1
paddd  %xmm3,%xmm1
pshufd $0x55,%xmm1,%xmm3
paddd  %xmm1,%xmm3
movd   %xmm3,%edx
mov    %r11,%rsi
cmp    %rax,%r11
je     11b0 <printcode+0x70>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmpl   $0x1,(%rdi,%rsi,4)
sbb    $0xffffffff,%edx
add    $0x1,%rsi
cmp    %rsi,%rax
jne    12b0 <printcode+0x170>
jmp    11b0 <printcode+0x70>
pxor   %xmm3,%xmm3
xor    %edx,%edx
pxor   %xmm4,%xmm4
test   $0x1,%r10b
jne    1257 <printcode+0x117>
jmp    127c <printcode+0x13c>
xor    %ecx,%ecx
mov    %ecx,0x4c(%rsp)
mov    (%rbx),%rsi
mov    %r14d,%edi
call   1060 <csd2int@plt>
mov    %eax,%ebp
movslq %r15d,%rax
mov    -0x8(%rbx,%rax,8),%rsi
mov    %r14d,%edi
call   1060 <csd2int@plt>
xor    %ecx,%ecx
cmp    %eax,%ebp
sete   %al
test   %r15d,%r15d
jle    1696 <printcode+0x556>
mov    %r12,0x90(%rsp)
lea    -0x1(%r15),%edx
mov    %edx,0x48(%rsp)
mov    %al,%cl
lea    (%rcx,%rcx,1),%eax
add    $0xffffffff,%eax
mov    %eax,0x44(%rsp)
mov    $0x1,%eax
mov    %r14d,%ecx
shl    %cl,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x88(%rsp)
add    $0x1,%r15d
shr    %r15d
lea    0x1(%r14),%r12d
mov    %r14d,%eax
mov    %r12d,%ecx
and    $0xfffffff8,%ecx
mov    %rcx,0x68(%rsp)
add    $0xfffffffffffffff8,%rcx
mov    %rcx,0x60(%rsp)
shr    $0x3,%rcx
add    $0x1,%rcx
mov    %rcx,%rdx
mov    %rcx,0x58(%rsp)
and    %rcx,%r13
mov    %r13,0x50(%rsp)
add    $0x1,%rax
mov    %rax,0x70(%rsp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
xor    %r13d,%r13d
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
pxor   %xmm3,%xmm3
mov    %r15,0x78(%rsp)
mov    %r14,0x80(%rsp)
jmp    1418 <printcode+0x2d8>
nopl   (%rax)
xorpd  %xmm0,%xmm0
lea    0xca7(%rip),%rdi
mov    %r13d,%esi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0x28(%rsp),%xmm5
movsd  0x30(%rsp),%xmm4
movsd  0x18(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x38(%rsp),%xmm3
mov    0xc(%rsp),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  %xmm0,%xmm3
addsd  %xmm4,%xmm2
movsd  %xmm2,0x10(%rsp)
addsd  %xmm5,%xmm1
movsd  %xmm1,0x18(%rsp)
add    $0x1,%r13
cmp    0x90(%rsp),%r13
je     16ae <printcode+0x56e>
movq   %xmm3,0x38(%rsp)
mov    (%rbx,%r13,8),%rsi
mov    %r14d,%edi
call   1060 <csd2int@plt>
mov    %eax,%ebp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0x88(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
call   1050 <fabs@plt>
mov    %eax,0xc(%rsp)
movsd  0x20(%rsp),%xmm0
call   1050 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd %xmm0,%xmm2
test   $0x1,%r13b
je     146f <printcode+0x32f>
movsd  0xba1(%rip),%xmm2
movsd  0xb99(%rip),%xmm1
mov    0x4c(%rsp),%edi
je     1481 <printcode+0x341>
movapd %xmm0,%xmm1
test   %ebp,%ebp
movsd  %xmm2,0x30(%rsp)
movsd  %xmm1,0x28(%rsp)
je     13b0 <printcode+0x270>
cmp    %r15,%r13
jae    14c0 <printcode+0x380>
test   %r14d,%r14d
js     14e7 <printcode+0x3a7>
mov    (%rbx,%r13,8),%rax
cmp    $0x8,%r12d
jae    14ee <printcode+0x3ae>
xor    %edx,%edx
xor    %ecx,%ecx
jmp    15a0 <printcode+0x460>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x48(%rsp),%ecx
sub    %r13d,%ecx
lea    0xb75(%rip),%rdi
mov    %r13d,%esi
movsd  0x20(%rsp),%xmm0
mov    0x44(%rsp),%edx
mov    $0x1,%al
call   1040 <printf@plt>
jmp    13c5 <printcode+0x285>
xor    %ecx,%ecx
jmp    15b5 <printcode+0x475>
cmpq   $0x0,0x60(%rsp)
pcmpeqd %xmm6,%xmm6
xorpd  %xmm0,%xmm0
je     1680 <printcode+0x540>
mov    0x50(%rsp),%rdx
xor    %ecx,%ecx
xorpd  %xmm1,%xmm1
nopl   (%rax)
movdqu (%rax,%rcx,4),%xmm2
movdqu 0x10(%rax,%rcx,4),%xmm3
movdqu 0x20(%rax,%rcx,4),%xmm4
movdqu 0x30(%rax,%rcx,4),%xmm5
pcmpeqd %xmm6,%xmm2
psubd  %xmm2,%xmm0
pcmpeqd %xmm6,%xmm3
psubd  %xmm3,%xmm1
pcmpeqd %xmm6,%xmm4
psubd  %xmm4,%xmm0
pcmpeqd %xmm6,%xmm5
psubd  %xmm5,%xmm1
add    $0x10,%rcx
add    $0xfffffffffffffffe,%rdx
jne    1510 <printcode+0x3d0>
testb  $0x1,0x58(%rsp)
je     1573 <printcode+0x433>
movdqu (%rax,%rcx,4),%xmm2
movdqu 0x10(%rax,%rcx,4),%xmm3
pcmpeqd %xmm6,%xmm2
psubd  %xmm2,%xmm0
pcmpeqd %xmm6,%xmm3
psubd  %xmm3,%xmm1
paddd  %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%ecx
mov    0x68(%rsp),%rsi
mov    %rsi,%rdx
cmp    %r12,%rsi
je     15b5 <printcode+0x475>
nopw   0x0(%rax,%rax,1)
xor    %esi,%esi
cmpl   $0xffffffff,(%rax,%rdx,4)
sete   %sil
add    %esi,%ecx
add    $0x1,%rdx
cmp    %rdx,%r12
jne    15a0 <printcode+0x460>
xor    %eax,%eax
cmp    %edi,%ecx
setl   %al
lea    (%rax,%rax,1),%ebp
add    $0xffffffff,%ebp
movsd  0x20(%rsp),%xmm0
call   1050 <fabs@plt>
lea    0xa44(%rip),%rdi
mov    %r13d,%esi
movsd  0x20(%rsp),%xmm0
mov    %ebp,%edx
mov    $0x1,%al
call   1040 <printf@plt>
test   %r14d,%r14d
js     1640 <printcode+0x500>
xor    %r14d,%r14d
mov    0x70(%rsp),%r15
jmp    1614 <printcode+0x4d4>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%r14d
add    $0xffffffffffffffff,%r15
jle    1640 <printcode+0x500>
mov    (%rbx,%r13,8),%rax
mov    -0x4(%rax,%r15,4),%eax
imul   %ebp,%eax
lea    0xa0a(%rip),%rdi
cmp    $0x1,%eax
je     1600 <printcode+0x4c0>
cmp    $0xffffffff,%eax
jne    160a <printcode+0x4ca>
lea    0xa02(%rip),%rdi
jmp    1600 <printcode+0x4c0>
nopw   0x0(%rax,%rax,1)
lea    0xa8d(%rip),%rdi
call   1030 <puts@plt>
mov    0x80(%rsp),%r14
mov    0x78(%rsp),%r15
movsd  0x18(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x38(%rsp),%xmm3
mov    0xc(%rsp),%eax
movsd  0x30(%rsp),%xmm4
movsd  0x28(%rsp),%xmm5
jmp    13e7 <printcode+0x2a7>
xor    %ecx,%ecx
xorpd  %xmm1,%xmm1
testb  $0x1,0x58(%rsp)
jne    1558 <printcode+0x418>
jmp    1573 <printcode+0x433>
pxor   %xmm3,%xmm3
pxor   %xmm0,%xmm0
movq   %xmm0,0x10(%rsp)
pxor   %xmm0,%xmm0
movq   %xmm0,0x18(%rsp)
lea    0x9bd(%rip),%rdi
movdqa %xmm3,%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x9ce(%rip),%rdi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x9d9(%rip),%rdi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <printf@plt>

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

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