int main(int argc, char *argv[]) {
  int i, j, N, M;
  double **A, **B, *zp, *Rp;
  if (argc != 2) {
    printf("\ncould not find the number of zeros\n\n");
    exit(0);
  }
  N = (int)atof(argv[1]);
  M = 2 * N;
  A = (double **)malloc(sizeof(double *) * (M + 2));
  for (i = 0; i < (M + 2); i++) {
    A[i] = (double *)malloc(sizeof(double) * (M + 2));
  }
  B = (double **)malloc(sizeof(double *) * (M + 2));
  for (i = 0; i < (M + 2); i++) {
    B[i] = (double *)malloc(sizeof(double) * (M + 2));
  }
  zp = (double *)malloc(sizeof(double) * (M + 2));
  Rp = (double *)malloc(sizeof(double) * (M + 2));
  for (i = 0; i < (M + 2); i++) {
    for (j = 0; j < (M + 2); j++) {
      A[i][j] = 0.0;
      B[i][j] = 0.0;
    }
  }
  for (i = 1; i <= M; i++) {
    B[i][i] = (2.0 * (double)i - 1.0);
  }
  for (i = 1; i <= (M - 1); i++) {
    A[i][i + 1] = -0.5;
    A[i + 1][i] = -0.5;
  }
  {
    int i, j;
    char jobz = 'V';
    char uplo = 'U';
    static long int itype = 1;
    static long int n, lda, ldb, lwork, info;
    double *a, *b;
    double *work;
    n = M;
    lda = M;
    ldb = M;
    lwork = 3 * M;
    a = (double *)malloc(sizeof(double) * n * n);
    b = (double *)malloc(sizeof(double) * n * n);
    work = (double *)malloc(sizeof(double) * 3 * n);
    for (i = 0; i < n; i++) {
      for (j = 0; j < n; j++) {
        a[j * n + i] = A[i + 1][j + 1];
        b[j * n + i] = B[i + 1][j + 1];
      }
    }
    dsygv_(&itype, &jobz, &uplo, &n, a, &lda, b, &ldb, zp, work, &lwork, &info);
    for (i = n; i >= 1; i--) {
      zp[i] = zp[i - 1];
    }
    for (i = 1; i <= n; i++) {
      zp[i] = 1.0 / zp[i];
    }
    for (i = 0; i < n; i++) {
      Rp[i + 1] = -a[i * n] * a[i * n] * zp[i + 1] * zp[i + 1] * 0.250;
    }
    free(a);
    free(b);
    free(work);
  }
  printf("\n              pole                  residue\n\n");
  for (i = 1; i <= N; i++) {
    printf("%5d  %18.14e  %18.14e\n", i, -zp[i], Rp[i]);
  }
  for (i = 0; i < (M + 2); i++) {
    free(A[i]);
  }
  free(A);
  for (i = 0; i < (M + 2); i++) {
    free(B[i]);
  }
  free(B);
  free(zp);
  free(Rp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x98,%rsp
movl   $0x0,-0x1c(%rbp)
mov    %edi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
cmpl   $0x2,-0x20(%rbp)
je     119d <main+0x3d>
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   1080 <exit@plt>
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rdi
mov    $0x0,%al
call   1040 <atof@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x38(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1215 <main+0xb5>
mov    -0x38(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x40(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11d5 <main+0x75>
mov    -0x38(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x38(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1272 <main+0x112>
mov    -0x38(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x48(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1232 <main+0xd2>
mov    -0x38(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x38(%rbp),%eax
add    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x38(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    131f <main+0x1bf>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x38(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    130c <main+0x1ac>
mov    -0x40(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    12bd <main+0x15d>
jmp    1311 <main+0x1b1>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12a5 <main+0x145>
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x38(%rbp),%eax
jg     136a <main+0x20a>
cvtsi2sdl -0x2c(%rbp),%xmm0
addsd  %xmm0,%xmm0
movsd  0xcd5(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1326 <main+0x1c6>
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     13d4 <main+0x274>
mov    -0x40(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xc71(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  0xc4f(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1371 <main+0x211>
movb   $0x56,-0x61(%rbp)
movb   $0x55,-0x62(%rbp)
movslq -0x38(%rbp),%rax
mov    %rax,0x2c79(%rip)
movslq -0x38(%rbp),%rax
mov    %rax,0x2c76(%rip)
movslq -0x38(%rbp),%rax
mov    %rax,0x2c73(%rip)
imul   $0x3,-0x38(%rbp),%eax
cltq
mov    %rax,0x2c6e(%rip)
mov    0x2c4f(%rip),%rdi
shl    $0x3,%rdi
imul   0x2c43(%rip),%rdi
call   1070 <malloc@plt>
mov    %rax,-0x70(%rbp)
mov    0x2c33(%rip),%rdi
shl    $0x3,%rdi
imul   0x2c27(%rip),%rdi
call   1070 <malloc@plt>
mov    %rax,-0x78(%rbp)
imul   $0x18,0x2c16(%rip),%rdi
18
call   1070 <malloc@plt>
mov    %rax,-0x80(%rbp)
movl   $0x0,-0x5c(%rbp)
movslq -0x5c(%rbp),%rax
cmp    0x2bfb(%rip),%rax
jge    151a <main+0x3ba>
movl   $0x0,-0x60(%rbp)
movslq -0x60(%rbp),%rax
cmp    0x2be3(%rip),%rax
jge    1507 <main+0x3a7>
mov    -0x40(%rbp),%rax
mov    -0x5c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x60(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x70(%rbp),%rax
movslq -0x60(%rbp),%rcx
imul   0x2bae(%rip),%rcx
movslq -0x5c(%rbp),%rdx
add    %rdx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
mov    -0x5c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x60(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x78(%rbp),%rax
movslq -0x60(%rbp),%rcx
imul   0x2b73(%rip),%rcx
movslq -0x5c(%rbp),%rdx
add    %rdx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1472 <main+0x312>
jmp    150c <main+0x3ac>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    145a <main+0x2fa>
mov    -0x70(%rbp),%r8
mov    -0x78(%rbp),%r15
mov    -0x50(%rbp),%rbx
mov    -0x80(%rbp),%r11
lea    0x2b1f(%rip),%rdi
lea    -0x61(%rbp),%rsi
lea    -0x62(%rbp),%rdx
lea    0x2b20(%rip),%rcx
lea    0x2b21(%rip),%r9
lea    0x2b22(%rip),%r14
lea    0x2b23(%rip),%r10
lea    0x2b24(%rip),%rax
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
mov    $0x0,%al
call   1060 <dsygv_@plt>
mov    0x2ad9(%rip),%rax
mov    %eax,-0x5c(%rbp)
cmpl   $0x1,-0x5c(%rbp)
jl     15c1 <main+0x461>
mov    -0x50(%rbp),%rax
mov    -0x5c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x5c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x5c(%rbp)
jmp    158a <main+0x42a>
movl   $0x1,-0x5c(%rbp)
movslq -0x5c(%rbp),%rax
cmp    0x2a8d(%rip),%rax
jg     1609 <main+0x4a9>
mov    -0x50(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  0xa1f(%rip),%xmm0
divsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    15c8 <main+0x468>
movl   $0x0,-0x5c(%rbp)
movslq -0x5c(%rbp),%rax
cmp    0x2a45(%rip),%rax
jge    16b2 <main+0x552>
mov    -0x70(%rbp),%rax
movslq -0x5c(%rbp),%rcx
imul   0x2a2f(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x70(%rbp),%rax
movslq -0x5c(%rbp),%rcx
imul   0x2a03(%rip),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
mov    -0x5c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
mov    -0x5c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  0x972(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x58(%rbp),%rax
mov    -0x5c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1610 <main+0x4b0>
mov    -0x70(%rbp),%rdi
call   1030 <free@plt>
mov    -0x78(%rbp),%rdi
call   1030 <free@plt>
mov    -0x80(%rbp),%rdi
call   1030 <free@plt>
lea    0x972(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jg     173e <main+0x5de>
mov    -0x2c(%rbp),%esi
mov    -0x50(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x58(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
lea    0x94c(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    16e2 <main+0x582>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x38(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1775 <main+0x615>
mov    -0x40(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1745 <main+0x5e5>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x38(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    17b5 <main+0x655>
mov    -0x48(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1785 <main+0x625>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
cmp    $0x2,%edi
jne    1bb2 <main+0xa42>
mov    0x8(%rsi),%rdi
xor    %eax,%eax
call   1050 <atof@plt>
mov    %eax,%ebx
lea    (%rbx,%rbx,1),%eax
lea    (%rbx,%rbx,1),%r14d
add    $0x2,%r14d
mov    %rax,0x28(%rsp)
cltq
mov    %rax,0x38(%rsp)
lea    0x10(,%rax,8),%r15
mov    %r15,%rdi
call   1080 <malloc@plt>
mov    %rax,%r12
mov    %rbx,0x18(%rsp)
test   %ebx,%ebx
mov    %r14d,0x34(%rsp)
js     123a <main+0xca>
cmp    $0x2,%r14d
mov    $0x1,%ebx
cmovge %r14d,%ebx
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1080 <malloc@plt>
mov    %rax,(%r12,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    11e0 <main+0x70>
mov    %r15,%rdi
call   1080 <malloc@plt>
cmpl   $0x0,0x18(%rsp)
js     1242 <main+0xd2>
cmp    $0x2,%r14d
mov    $0x1,%r13d
cmovge %r14d,%r13d
xor    %ebp,%ebp
mov    %rax,%rbx
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1080 <malloc@plt>
mov    %rax,(%rbx,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r13
jne    1220 <main+0xb0>
mov    %rbx,%r14
jmp    1245 <main+0xd5>
mov    %r15,%rdi
call   1080 <malloc@plt>
mov    %rax,%r14
mov    %r15,%rdi
call   1080 <malloc@plt>
mov    %rax,0x50(%rsp)
mov    %r15,%rdi
call   1080 <malloc@plt>
mov    %rax,0x48(%rsp)
movabs $0x7ffffffffffffffc,%r13
ff ff 7f
movb   $0x1,0xd(%rsp)
cmpl   $0x0,0x18(%rsp)
mov    %r14,0x40(%rsp)
js     15ca <main+0x45a>
mov    0x34(%rsp),%ecx
cmp    $0x2,%ecx
mov    $0x1,%eax
cmovge %ecx,%eax
mov    %eax,%r8d
and    $0x7ffffffc,%r8d
lea    -0x4(%r8),%rcx
mov    %rcx,0x10(%rsp)
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %ecx,%r10d
and    $0x3,%r10d
and    %r13,%rcx
mov    %rcx,0x20(%rsp)
mov    %eax,%r9d
and    $0x3,%r9d
mov    %r10,%r15
shl    $0x5,%r15
xor    %edx,%edx
xorpd  %xmm0,%xmm0
jmp    12dd <main+0x16d>
nopl   (%rax)
add    $0x1,%rdx
cmp    %rax,%rdx
je     1471 <main+0x301>
mov    (%r12,%rdx,8),%rsi
mov    (%r14,%rdx,8),%rcx
cmp    $0x4,%eax
jb     1304 <main+0x194>
lea    (%rcx,%rax,8),%rdi
cmp    %rdi,%rsi
jae    13a0 <main+0x230>
lea    (%rsi,%rax,8),%rdi
cmp    %rdi,%rcx
jae    13a0 <main+0x230>
xor    %r11d,%r11d
mov    %r11,%rbx
not    %rbx
add    %rax,%rbx
test   %r9,%r9
je     133a <main+0x1ca>
mov    %r9,%rbp
nopl   0x0(%rax,%rax,1)
movq   $0x0,(%rsi,%r11,8)
movq   $0x0,(%rcx,%r11,8)
add    $0x1,%r11
add    $0xffffffffffffffff,%rbp
jne    1320 <main+0x1b0>
cmp    $0x3,%rbx
jb     12d0 <main+0x160>
movq   $0x0,(%rsi,%r11,8)
movq   $0x0,(%rcx,%r11,8)
movq   $0x0,0x8(%rsi,%r11,8)
movq   $0x0,0x8(%rcx,%r11,8)
movq   $0x0,0x10(%rsi,%r11,8)
movq   $0x0,0x10(%rcx,%r11,8)
movq   $0x0,0x18(%rsi,%r11,8)
movq   $0x0,0x18(%rcx,%r11,8)
add    $0x4,%r11
cmp    %r11,%rax
jne    1340 <main+0x1d0>
jmp    12d0 <main+0x160>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmpq   $0xc,0x10(%rsp)
jae    13ac <main+0x23c>
xor    %ebp,%ebp
jmp    1428 <main+0x2b8>
mov    0x20(%rsp),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movupd %xmm0,(%rsi,%rbp,8)
movupd %xmm0,0x10(%rsi,%rbp,8)
movupd %xmm0,(%rcx,%rbp,8)
movupd %xmm0,0x10(%rcx,%rbp,8)
movupd %xmm0,0x20(%rsi,%rbp,8)
movupd %xmm0,0x30(%rsi,%rbp,8)
movupd %xmm0,0x20(%rcx,%rbp,8)
movupd %xmm0,0x30(%rcx,%rbp,8)
movupd %xmm0,0x40(%rsi,%rbp,8)
movupd %xmm0,0x50(%rsi,%rbp,8)
movupd %xmm0,0x40(%rcx,%rbp,8)
movupd %xmm0,0x50(%rcx,%rbp,8)
movupd %xmm0,0x60(%rsi,%rbp,8)
movupd %xmm0,0x70(%rsi,%rbp,8)
movupd %xmm0,0x60(%rcx,%rbp,8)
movupd %xmm0,0x70(%rcx,%rbp,8)
add    $0x10,%rbp
add    $0xfffffffffffffffc,%rbx
jne    13c0 <main+0x250>
test   %r10,%r10
je     1460 <main+0x2f0>
lea    (%rcx,%rbp,8),%rbx
add    $0x10,%rbx
lea    (%rsi,%rbp,8),%rbp
add    $0x10,%rbp
xor    %edi,%edi
nop
movupd %xmm0,-0x10(%rbp,%rdi,1)
movupd %xmm0,0x0(%rbp,%rdi,1)
movupd %xmm0,-0x10(%rbx,%rdi,1)
movupd %xmm0,(%rbx,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%r15
jne    1440 <main+0x2d0>
mov    %r8,%r11
cmp    %rax,%r8
je     12d0 <main+0x160>
jmp    1307 <main+0x197>
cmpl   $0x0,0x18(%rsp)
setle  %r8b
jle    15ca <main+0x45a>
mov    0x28(%rsp),%rax
cmp    $0x2,%eax
mov    $0x1,%ecx
cmovge %eax,%ecx
mov    %ecx,%esi
and    $0x7ffffffe,%esi
mov    $0x1,%edi
movsd  0xb5b(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rdi,%rdx
xorps  %xmm1,%xmm1
cvtsi2sd %edx,%xmm1
addsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
mov    (%r14,%rdi,8),%rdi
movsd  %xmm1,(%rdi,%rdx,8)
lea    0x1(%rdx),%rbp
xorps  %xmm1,%xmm1
cvtsi2sd %ebp,%xmm1
addsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
mov    0x8(%r14,%rdx,8),%rdi
movsd  %xmm1,0x8(%rdi,%rdx,8)
lea    0x2(%rdx),%rdi
cmp    %rsi,%rbp
jne    14b0 <main+0x340>
test   $0x1,%cl
je     1515 <main+0x3a5>
xorps  %xmm0,%xmm0
cvtsi2sd %edi,%xmm0
addsd  %xmm0,%xmm0
addsd  0xaf6(%rip),%xmm0
mov    0x10(%r14,%rdx,8),%rcx
movsd  %xmm0,0x10(%rcx,%rdx,8)
cmpl   $0x0,0x18(%rsp)
setg   %r15b
jle    15d4 <main+0x464>
cmp    $0x3,%eax
mov    $0x2,%ebx
cmovge %eax,%ebx
mov    0x8(%r12),%rsi
lea    -0x1(%rbx),%rbp
add    $0xfffffffffffffffe,%rbx
mov    %ebp,%ecx
and    $0x3,%ecx
mov    $0x1,%edi
movabs $0xbfe0000000000000,%rdx
cmp    $0x3,%rbx
jb     15a9 <main+0x439>
and    $0xfffffffffffffffc,%rbp
xor    %edi,%edi
nopl   0x0(%rax)
mov    %rdx,0x10(%rsi,%rdi,8)
mov    0x10(%r12,%rdi,8),%rsi
mov    %rdx,0x8(%rsi,%rdi,8)
mov    %rdx,0x18(%rsi,%rdi,8)
mov    0x18(%r12,%rdi,8),%rsi
mov    %rdx,0x10(%rsi,%rdi,8)
mov    %rdx,0x20(%rsi,%rdi,8)
mov    0x20(%r12,%rdi,8),%rsi
mov    %rdx,0x18(%rsi,%rdi,8)
mov    %rdx,0x28(%rsi,%rdi,8)
mov    0x28(%r12,%rdi,8),%rsi
mov    %rdx,0x20(%rsi,%rdi,8)
add    $0x4,%rdi
cmp    %rdi,%rbp
jne    1560 <main+0x3f0>
add    $0x1,%rdi
shl    $0x3,%rcx
nopl   (%rax)
mov    %rdx,0x8(%rsi,%rdi,8)
mov    0x8(%r12,%rdi,8),%rsi
mov    %rdx,(%rsi,%rdi,8)
add    $0x1,%rdi
add    $0xfffffffffffffff8,%rcx
jne    15b0 <main+0x440>
jmp    15d7 <main+0x467>
xor    %r15d,%r15d
mov    0x28(%rsp),%rax
jmp    15dc <main+0x46c>
xor    %r15d,%r15d
mov    %r8b,0xd(%rsp)
movb   $0x56,0xf(%rsp)
movb   $0x55,0xe(%rsp)
mov    0x38(%rsp),%rbp
mov    %rbp,0x2a76(%rip)
mov    %rbp,0x2a77(%rip)
mov    %rbp,0x2a78(%rip)
lea    (%rax,%rax,2),%eax
cltq
mov    %rax,0x2a74(%rip)
mov    %rbp,%rbx
imul   %rbp,%rbx
shl    $0x3,%rbx
mov    %rbx,%rdi
call   1080 <malloc@plt>
mov    %rax,0x10(%rsp)
mov    %rbx,%rdi
call   1080 <malloc@plt>
mov    %rax,0x20(%rsp)
lea    0x0(,%rbp,8),%rax
lea    (%rax,%rax,2),%rdi
call   1080 <malloc@plt>
mov    %rax,0x28(%rsp)
test   %r15b,%r15b
je     1754 <main+0x5e4>
mov    0x38(%rsp),%rax
cmp    $0x2,%rax
mov    $0x1,%r8d
cmovge %rax,%r8
add    $0x2,%r13
and    %r8,%r13
mov    0x20(%rsp),%rbx
lea    (%rbx,%rax,8),%r15
mov    %rax,%r10
shl    $0x4,%r10
mov    0x10(%rsp),%rdi
lea    (%rdi,%rax,8),%rsi
xor    %r9d,%r9d
jmp    16af <main+0x53f>
nopl   0x0(%rax,%rax,1)
add    $0x8,%r15
add    $0x8,%rsi
add    $0x8,%rbx
add    $0x8,%rdi
mov    %r11,%r9
cmp    %r8,%r11
mov    %r14,%r12
je     1754 <main+0x5e4>
mov    %r12,%r14
mov    0x8(%r12,%r9,8),%rax
mov    0x40(%rsp),%rcx
mov    0x8(%rcx,%r9,8),%rbp
cmpl   $0x0,0x18(%rsp)
jle    1710 <main+0x5a0>
xor    %ecx,%ecx
xor    %edx,%edx
nopl   0x0(%rax)
movsd  0x8(%rax,%rdx,8),%xmm0
movsd  %xmm0,(%rdi,%rcx,1)
movsd  0x8(%rbp,%rdx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,1)
lea    0x2(%rdx),%r12
movsd  0x10(%rax,%rdx,8),%xmm0
movsd  %xmm0,(%rsi,%rcx,1)
movsd  0x10(%rbp,%rdx,8),%xmm0
movsd  %xmm0,(%r15,%rcx,1)
add    %r10,%rcx
mov    %r12,%rdx
cmp    %r12,%r13
jne    16d0 <main+0x560>
jmp    1713 <main+0x5a3>
xchg   %ax,%ax
xor    %r12d,%r12d
lea    0x1(%r9),%r11
test   $0x1,%r8b
je     1690 <main+0x520>
movsd  0x8(%rax,%r12,8),%xmm0
mov    %r12,%rax
imul   0x38(%rsp),%rax
add    %r9,%rax
mov    0x10(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
movsd  0x8(%rbp,%r12,8),%xmm0
mov    0x20(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
jmp    1690 <main+0x520>
lea    0x292d(%rip),%rbp
lea    0x291e(%rip),%rbx
lea    0x290f(%rip),%r10
lea    0x28e8(%rip),%rdi
lea    0x28f1(%rip),%rcx
lea    0x28f2(%rip),%r9
lea    0xf(%rsp),%rsi
lea    0xe(%rsp),%rdx
mov    0x10(%rsp),%r8
xor    %eax,%eax
push   %rbp
push   %rbx
mov    0x38(%rsp),%r15
push   %r15
mov    0x68(%rsp),%rbx
push   %rbx
push   %r10
push   0x48(%rsp)
call   1070 <dsygv_@plt>
add    $0x30,%rsp
mov    0x28b4(%rip),%rsi
test   %esi,%esi
mov    0x48(%rsp),%r14
jle    1888 <main+0x718>
mov    %esi,%edi
cmp    $0x4,%rdi
jb     185e <main+0x6ee>
lea    -0x1(%rdi),%rcx
lea    -0x1(%rsi),%ebp
mov    $0x8,%edx
mov    %rcx,%rax
mul    %rdx
seto   %r8b
cmp    %ecx,%ebp
jb     185e <main+0x6ee>
shr    $0x20,%rcx
jne    185e <main+0x6ee>
lea    (%rbx,%rdi,8),%rdx
mov    %rdx,%rcx
sub    %rax,%rcx
cmp    %rdx,%rcx
ja     185e <main+0x6ee>
test   %r8b,%r8b
jne    185e <main+0x6ee>
lea    (%rbx,%rbp,8),%rbp
mov    %rbp,%rcx
sub    %rax,%rcx
cmp    %rbp,%rcx
ja     185e <main+0x6ee>
test   %r8b,%r8b
jne    185e <main+0x6ee>
lea    0x8(%rbx),%rcx
movabs $0x7fffffff8,%rdx
lea    (%rdx,%rsi,8),%rax
and    %rdx,%rax
lea    (%rbx,%rax,1),%rdx
add    $0x8,%rdx
cmp    %rdx,%rcx
jae    1b71 <main+0xa01>
lea    0x0(,%rdi,8),%rcx
lea    (%rbx,%rdi,8),%rdx
add    $0x8,%rdx
add    $0x8,%rax
sub    %rcx,%rax
add    %rbx,%rax
cmp    %rdx,%rax
jae    1b71 <main+0xa01>
mov    %rdi,%rax
add    $0x1,%rax
cs nopw 0x0(%rax,%rax,1)
nop
lea    -0x2(%rax),%ecx
movsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rbx,%rax,8)
add    $0xffffffffffffffff,%rax
cmp    $0x1,%rax
ja     1870 <main+0x700>
test   %rsi,%rsi
jle    1a47 <main+0x8d7>
mov    $0x1,%eax
cmp    $0x1,%rsi
je     1937 <main+0x7c7>
mov    %rsi,%rax
and    $0xfffffffffffffffe,%rax
lea    -0x2(%rax),%rdx
mov    %rdx,%rcx
shr    %rcx
add    $0x1,%rcx
test   %rdx,%rdx
je     1b5e <main+0x9ee>
mov    %rcx,%rdi
and    $0xfffffffffffffffe,%rdi
mov    $0x1,%edx
movapd 0x74e(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movupd (%rbx,%rdx,8),%xmm1
movupd 0x10(%rbx,%rdx,8),%xmm2
movapd %xmm0,%xmm3
divpd  %xmm1,%xmm3
movupd %xmm3,(%rbx,%rdx,8)
movapd %xmm0,%xmm1
divpd  %xmm2,%xmm1
movupd %xmm1,0x10(%rbx,%rdx,8)
add    $0x4,%rdx
add    $0xfffffffffffffffe,%rdi
jne    18e0 <main+0x770>
test   $0x1,%cl
je     192b <main+0x7bb>
movupd (%rbx,%rdx,8),%xmm0
movapd 0x6fe(%rip),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,(%rbx,%rdx,8)
cmp    %rax,%rsi
je     1967 <main+0x7f7>
mov    %rsi,%rax
or     $0x1,%rax
lea    0x1(%rsi),%rcx
movsd  0x6c5(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movapd %xmm0,%xmm1
divsd  (%rbx,%rax,8),%xmm1
movsd  %xmm1,(%rbx,%rax,8)
add    $0x1,%rax
cmp    %rax,%rcx
jne    1950 <main+0x7e0>
test   %rsi,%rsi
jle    1a47 <main+0x8d7>
cmp    $0x1,%rsi
jne    197d <main+0x80d>
xor    %ebp,%ebp
jmp    1a12 <main+0x8a2>
mov    %rsi,%rax
and    $0xfffffffffffffffe,%rax
mov    %rsi,%rcx
shl    $0x4,%rcx
xor    %edi,%edi
movapd 0x69b(%rip),%xmm0
movsd  0x673(%rip),%xmm1
mov    0x10(%rsp),%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rdx),%xmm2
movapd %xmm2,%xmm3
xorpd  %xmm0,%xmm3
mulsd  %xmm2,%xmm3
movsd  0x8(%rbx,%rdi,8),%xmm2
mulsd  %xmm2,%xmm3
mulsd  %xmm2,%xmm3
mulsd  %xmm1,%xmm3
movsd  %xmm3,0x8(%r14,%rdi,8)
movsd  (%rdx,%rsi,8),%xmm2
movapd %xmm2,%xmm3
xorpd  %xmm0,%xmm3
mulsd  %xmm2,%xmm3
lea    0x2(%rdi),%rbp
movsd  0x10(%rbx,%rdi,8),%xmm2
mulsd  %xmm2,%xmm3
mulsd  %xmm2,%xmm3
mulsd  %xmm1,%xmm3
movsd  %xmm3,0x10(%r14,%rdi,8)
add    %rcx,%rdx
mov    %rbp,%rdi
cmp    %rbp,%rax
jne    19b0 <main+0x840>
test   $0x1,%sil
je     1a47 <main+0x8d7>
imul   %rbp,%rsi
mov    0x10(%rsp),%rax
movsd  (%rax,%rsi,8),%xmm0
mulsd  %xmm0,%xmm0
movsd  0x8(%rbx,%rbp,8),%xmm1
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  0x5d8(%rip),%xmm0
movsd  %xmm0,0x8(%r14,%rbp,8)
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    0x20(%rsp),%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
lea    0x5ed(%rip),%rdi
call   1040 <puts@plt>
cmpb   $0x0,0xd(%rsp)
jne    1ab8 <main+0x948>
mov    0x18(%rsp),%rax
lea    0x1(%rax),%r15d
mov    $0x1,%ebp
lea    0x5b5(%rip),%r13
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rbp,8),%xmm0
xorpd  0x593(%rip),%xmm0
movsd  (%r14,%rbp,8),%xmm1
mov    %r13,%rdi
mov    %ebp,%esi
mov    $0x2,%al
call   1060 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1a90 <main+0x920>
cmpl   $0x0,0x18(%rsp)
js     1b24 <main+0x9b4>
mov    0x34(%rsp),%r15d
cmp    $0x2,%r15d
mov    $0x1,%ebx
cmovge %r15d,%ebx
xor    %ebp,%ebp
mov    0x40(%rsp),%r14
nopl   0x0(%rax,%rax,1)
mov    (%r12,%rbp,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1ae0 <main+0x970>
mov    %r12,%rdi
call   1030 <free@plt>
cmpl   $0x0,0x18(%rsp)
js     1b31 <main+0x9c1>
cmp    $0x2,%r15d
mov    $0x1,%ebx
cmovge %r15d,%ebx
xor    %ebp,%ebp
mov    (%r14,%rbp,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1b10 <main+0x9a0>
jmp    1b31 <main+0x9c1>
mov    %r12,%rdi
call   1030 <free@plt>
mov    0x40(%rsp),%r14
mov    %r14,%rdi
call   1030 <free@plt>
mov    0x50(%rsp),%rdi
call   1030 <free@plt>
mov    0x48(%rsp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%edx
test   $0x1,%cl
jne    1915 <main+0x7a5>
jmp    192b <main+0x7bb>
mov    %esi,%eax
and    $0x3,%eax
cs nopw 0x0(%rax,%rax,1)
lea    -0x1(%rdi),%ecx
movupd -0x18(%rbx,%rcx,8),%xmm0
movupd -0x8(%rbx,%rcx,8),%xmm1
movupd %xmm1,-0x8(%rbx,%rdi,8)
movupd %xmm0,-0x18(%rbx,%rdi,8)
add    $0xfffffffffffffffc,%rdi
cmp    %rdi,%rax
jne    1b80 <main+0xa10>
test   %rax,%rax
jne    1861 <main+0x6f1>
jmp    1888 <main+0x718>
lea    0x4cc(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"\0Acould not find the number of zeros\0A\0A\00"
@main.itype = internal global i64 1
@main.n = internal global i64 0
@main.lda = internal global i64 0
@main.ldb = internal global i64 0
@main.lwork = internal global i64 0
@main.info = internal global i64 0
@.str.1 = [47 x i8] c"\0A pole residue\0A\0A\00"
@.str.2 = [23 x i8] c"%5d %18.14e %18.14e\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double**
%11 = alloca double**
%12 = alloca double*
%13 = alloca double*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i8
%17 = alloca i8
%18 = alloca double*
%19 = alloca double*
%20 = alloca double*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%21 = load i32, i32* %4
%22 = icmp ne i32 %21, 2
br i1 %22, label %23, label %25
23: ; preds = %2
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
unreachable
25: ; preds = %2
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %28)
store i32 %29, i32* %8
%30 = load i32, i32* %8
%31 = mul nsw i32 2, %30
store i32 %31, i32* %9
%32 = load i32, i32* %9
%33 = add nsw i32 %32, 2
%34 = sext i32 %33 to i64
%35 = mul i64 8, %34
%36 = call i8* @malloc(i64 %35)
%37 = bitcast i8* %36 to double**
store double** %37, double*** %10
store i32 0, i32* %6
br label %38
38: ; preds = %54, %25
%39 = load i32, i32* %6
%40 = load i32, i32* %9
%41 = add nsw i32 %40, 2
%42 = icmp slt i32 %39, %41
br i1 %42, label %43, label %57
43: ; preds = %38
%44 = load i32, i32* %9
%45 = add nsw i32 %44, 2
%46 = sext i32 %45 to i64
%47 = mul i64 8, %46
%48 = call i8* @malloc(i64 %47)
%49 = bitcast i8* %48 to double*
%50 = load double**, double*** %10
%51 = load i32, i32* %6
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double*, double** %50, i64 %52
store double* %49, double** %53
br label %54
54: ; preds = %43
%55 = load i32, i32* %6
%56 = add nsw i32 %55, 1
store i32 %56, i32* %6
br label %38
57: ; preds = %38
%58 = load i32, i32* %9
%59 = add nsw i32 %58, 2
%60 = sext i32 %59 to i64
%61 = mul i64 8, %60
%62 = call i8* @malloc(i64 %61)
%63 = bitcast i8* %62 to double**
store double** %63, double*** %11
store i32 0, i32* %6
br label %64
64: ; preds = %80, %57
%65 = load i32, i32* %6
%66 = load i32, i32* %9
%67 = add nsw i32 %66, 2
%68 = icmp slt i32 %65, %67
br i1 %68, label %69, label %83
69: ; preds = %64
%70 = load i32, i32* %9
%71 = add nsw i32 %70, 2
%72 = sext i32 %71 to i64
%73 = mul i64 8, %72
%74 = call i8* @malloc(i64 %73)
%75 = bitcast i8* %74 to double*
%76 = load double**, double*** %11
%77 = load i32, i32* %6
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double*, double** %76, i64 %78
store double* %75, double** %79
br label %80
80: ; preds = %69
%81 = load i32, i32* %6
%82 = add nsw i32 %81, 1
store i32 %82, i32* %6
br label %64
83: ; preds = %64
%84 = load i32, i32* %9
%85 = add nsw i32 %84, 2
%86 = sext i32 %85 to i64
%87 = mul i64 8, %86
%88 = call i8* @malloc(i64 %87)
%89 = bitcast i8* %88 to double*
store double* %89, double** %12
%90 = load i32, i32* %9
%91 = add nsw i32 %90, 2
%92 = sext i32 %91 to i64
%93 = mul i64 8, %92
%94 = call i8* @malloc(i64 %93)
%95 = bitcast i8* %94 to double*
store double* %95, double** %13
store i32 0, i32* %6
br label %96
96: ; preds = %128, %83
%97 = load i32, i32* %6
%98 = load i32, i32* %9
%99 = add nsw i32 %98, 2
%100 = icmp slt i32 %97, %99
br i1 %100, label %101, label %131
101: ; preds = %96
store i32 0, i32* %7
br label %102
102: ; preds = %124, %101
%103 = load i32, i32* %7
%104 = load i32, i32* %9
%105 = add nsw i32 %104, 2
%106 = icmp slt i32 %103, %105
br i1 %106, label %107, label %127
107: ; preds = %102
%108 = load double**, double*** %10
%109 = load i32, i32* %6
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds double*, double** %108, i64 %110
%112 = load double*, double** %111
%113 = load i32, i32* %7
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, double* %112, i64 %114
store double 0.000000e+00, double* %115
%116 = load double**, double*** %11
%117 = load i32, i32* %6
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds double*, double** %116, i64 %118
%120 = load double*, double** %119
%121 = load i32, i32* %7
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds double, double* %120, i64 %122
store double 0.000000e+00, double* %123
br label %124
124: ; preds = %107
%125 = load i32, i32* %7
%126 = add nsw i32 %125, 1
store i32 %126, i32* %7
br label %102
127: ; preds = %102
br label %128
128: ; preds = %127
%129 = load i32, i32* %6
%130 = add nsw i32 %129, 1
store i32 %130, i32* %6
br label %96
131: ; preds = %96
store i32 1, i32* %6
br label %132
132: ; preds = %148, %131
%133 = load i32, i32* %6
%134 = load i32, i32* %9
%135 = icmp sle i32 %133, %134
br i1 %135, label %136, label %151
136: ; preds = %132
%137 = load i32, i32* %6
%138 = sitofp i32 %137 to double
%139 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %138, double -1.000000e+00)
%140 = load double**, double*** %11
%141 = load i32, i32* %6
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds double*, double** %140, i64 %142
%144 = load double*, double** %143
%145 = load i32, i32* %6
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds double, double* %144, i64 %146
store double %139, double* %147
br label %148
148: ; preds = %136
%149 = load i32, i32* %6
%150 = add nsw i32 %149, 1
store i32 %150, i32* %6
br label %132
151: ; preds = %132
store i32 1, i32* %6
br label %152
152: ; preds = %176, %151
%153 = load i32, i32* %6
%154 = load i32, i32* %9
%155 = sub nsw i32 %154, 1
%156 = icmp sle i32 %153, %155
br i1 %156, label %157, label %179
157: ; preds = %152
%158 = load double**, double*** %10
%159 = load i32, i32* %6
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds double*, double** %158, i64 %160
%162 = load double*, double** %161
%163 = load i32, i32* %6
%164 = add nsw i32 %163, 1
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds double, double* %162, i64 %165
store double -5.000000e-01, double* %166
%167 = load double**, double*** %10
%168 = load i32, i32* %6
%169 = add nsw i32 %168, 1
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double*, double** %167, i64 %170
%172 = load double*, double** %171
%173 = load i32, i32* %6
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds double, double* %172, i64 %174
store double -5.000000e-01, double* %175
br label %176
176: ; preds = %157
%177 = load i32, i32* %6
%178 = add nsw i32 %177, 1
store i32 %178, i32* %6
br label %152
179: ; preds = %152
store i8 86, i8* %16
store i8 85, i8* %17
%180 = load i32, i32* %9
%181 = sext i32 %180 to i64
store i64 %181, i64* @main.n
%182 = load i32, i32* %9
%183 = sext i32 %182 to i64
store i64 %183, i64* @main.lda
%184 = load i32, i32* %9
%185 = sext i32 %184 to i64
store i64 %185, i64* @main.ldb
%186 = load i32, i32* %9
%187 = mul nsw i32 3, %186
%188 = sext i32 %187 to i64
store i64 %188, i64* @main.lwork
%189 = load i64, i64* @main.n
%190 = mul i64 8, %189
%191 = load i64, i64* @main.n
%192 = mul i64 %190, %191
%193 = call i8* @malloc(i64 %192)
%194 = bitcast i8* %193 to double*
store double* %194, double** %18
%195 = load i64, i64* @main.n
%196 = mul i64 8, %195
%197 = load i64, i64* @main.n
%198 = mul i64 %196, %197
%199 = call i8* @malloc(i64 %198)
%200 = bitcast i8* %199 to double*
store double* %200, double** %19
%201 = load i64, i64* @main.n
%202 = mul i64 24, %201
%203 = call i8* @malloc(i64 %202)
%204 = bitcast i8* %203 to double*
store double* %204, double** %20
store i32 0, i32* %14
br label %205
205: ; preds = %261, %179
%206 = load i32, i32* %14
%207 = sext i32 %206 to i64
%208 = load i64, i64* @main.n
%209 = icmp slt i64 %207, %208
br i1 %209, label %210, label %264
210: ; preds = %205
store i32 0, i32* %15
br label %211
211: ; preds = %257, %210
%212 = load i32, i32* %15
%213 = sext i32 %212 to i64
%214 = load i64, i64* @main.n
%215 = icmp slt i64 %213, %214
br i1 %215, label %216, label %260
216: ; preds = %211
%217 = load double**, double*** %10
%218 = load i32, i32* %14
%219 = add nsw i32 %218, 1
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds double*, double** %217, i64 %220
%222 = load double*, double** %221
%223 = load i32, i32* %15
%224 = add nsw i32 %223, 1
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds double, double* %222, i64 %225
%227 = load double, double* %226
%228 = load double*, double** %18
%229 = load i32, i32* %15
%230 = sext i32 %229 to i64
%231 = load i64, i64* @main.n
%232 = mul nsw i64 %230, %231
%233 = load i32, i32* %14
%234 = sext i32 %233 to i64
%235 = add nsw i64 %232, %234
%236 = getelementptr inbounds double, double* %228, i64 %235
store double %227, double* %236
%237 = load double**, double*** %11
%238 = load i32, i32* %14
%239 = add nsw i32 %238, 1
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds double*, double** %237, i64 %240
%242 = load double*, double** %241
%243 = load i32, i32* %15
%244 = add nsw i32 %243, 1
%245 = sext i32 %244 to i64
%246 = getelementptr inbounds double, double* %242, i64 %245
%247 = load double, double* %246
%248 = load double*, double** %19
%249 = load i32, i32* %15
%250 = sext i32 %249 to i64
%251 = load i64, i64* @main.n
%252 = mul nsw i64 %250, %251
%253 = load i32, i32* %14
%254 = sext i32 %253 to i64
%255 = add nsw i64 %252, %254
%256 = getelementptr inbounds double, double* %248, i64 %255
store double %247, double* %256
br label %257
257: ; preds = %216
%258 = load i32, i32* %15
%259 = add nsw i32 %258, 1
store i32 %259, i32* %15
br label %211
260: ; preds = %211
br label %261
261: ; preds = %260
%262 = load i32, i32* %14
%263 = add nsw i32 %262, 1
store i32 %263, i32* %14
br label %205
264: ; preds = %205
%265 = load double*, double** %18
%266 = load double*, double** %19
%267 = load double*, double** %12
%268 = load double*, double** %20
%269 = call i32 (i64*, i8*, i8*, i64*, double*, i64*, double*, i64*, double*, double*, i64*, i64*, ...) bitcast (i32 (...)* @dsygv_ to i32 (i64*, i8*, i8*, i64*, double*, i64*, double*, i64*, double*, double*, i64*, i64*, ...)*)(i64* @main.itype, i8* %16, i8* %17, i64* @main.n, double* %265, i64* @main.lda, double* %266, i64* @main.ldb, double* %267, double* %268, i64* @main.lwork, i64* @main.info)
%270 = load i64, i64* @main.n
%271 = trunc i64 %270 to i32
store i32 %271, i32* %14
br label %272
272: ; preds = %286, %264
%273 = load i32, i32* %14
%274 = icmp sge i32 %273, 1
br i1 %274, label %275, label %289
275: ; preds = %272
%276 = load double*, double** %12
%277 = load i32, i32* %14
%278 = sub nsw i32 %277, 1
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds double, double* %276, i64 %279
%281 = load double, double* %280
%282 = load double*, double** %12
%283 = load i32, i32* %14
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds double, double* %282, i64 %284
store double %281, double* %285
br label %286
286: ; preds = %275
%287 = load i32, i32* %14
%288 = add nsw i32 %287, -1
store i32 %288, i32* %14
br label %272
289: ; preds = %272
store i32 1, i32* %14
br label %290
290: ; preds = %306, %289
%291 = load i32, i32* %14
%292 = sext i32 %291 to i64
%293 = load i64, i64* @main.n
%294 = icmp sle i64 %292, %293
br i1 %294, label %295, label %309
295: ; preds = %290
%296 = load double*, double** %12
%297 = load i32, i32* %14
%298 = sext i32 %297 to i64
%299 = getelementptr inbounds double, double* %296, i64 %298
%300 = load double, double* %299
%301 = fdiv double 1.000000e+00, %300
%302 = load double*, double** %12
%303 = load i32, i32* %14
%304 = sext i32 %303 to i64
%305 = getelementptr inbounds double, double* %302, i64 %304
store double %301, double* %305
br label %306
306: ; preds = %295
%307 = load i32, i32* %14
%308 = add nsw i32 %307, 1
store i32 %308, i32* %14
br label %290
309: ; preds = %290
store i32 0, i32* %14
br label %310
310: ; preds = %352, %309
%311 = load i32, i32* %14
%312 = sext i32 %311 to i64
%313 = load i64, i64* @main.n
%314 = icmp slt i64 %312, %313
br i1 %314, label %315, label %355
315: ; preds = %310
%316 = load double*, double** %18
%317 = load i32, i32* %14
%318 = sext i32 %317 to i64
%319 = load i64, i64* @main.n
%320 = mul nsw i64 %318, %319
%321 = getelementptr inbounds double, double* %316, i64 %320
%322 = load double, double* %321
%323 = fneg double %322
%324 = load double*, double** %18
%325 = load i32, i32* %14
%326 = sext i32 %325 to i64
%327 = load i64, i64* @main.n
%328 = mul nsw i64 %326, %327
%329 = getelementptr inbounds double, double* %324, i64 %328
%330 = load double, double* %329
%331 = fmul double %323, %330
%332 = load double*, double** %12
%333 = load i32, i32* %14
%334 = add nsw i32 %333, 1
%335 = sext i32 %334 to i64
%336 = getelementptr inbounds double, double* %332, i64 %335
%337 = load double, double* %336
%338 = fmul double %331, %337
%339 = load double*, double** %12
%340 = load i32, i32* %14
%341 = add nsw i32 %340, 1
%342 = sext i32 %341 to i64
%343 = getelementptr inbounds double, double* %339, i64 %342
%344 = load double, double* %343
%345 = fmul double %338, %344
%346 = fmul double %345, 2.500000e-01
%347 = load double*, double** %13
%348 = load i32, i32* %14
%349 = add nsw i32 %348, 1
%350 = sext i32 %349 to i64
%351 = getelementptr inbounds double, double* %347, i64 %350
store double %346, double* %351
br label %352
352: ; preds = %315
%353 = load i32, i32* %14
%354 = add nsw i32 %353, 1
store i32 %354, i32* %14
br label %310
355: ; preds = %310
%356 = load double*, double** %18
%357 = bitcast double* %356 to i8*
%358 = load double*, double** %19
%359 = bitcast double* %358 to i8*
%360 = load double*, double** %20
%361 = bitcast double* %360 to i8*
%362 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %6
br label %363
363: ; preds = %381, %355
%364 = load i32, i32* %6
%365 = load i32, i32* %8
%366 = icmp sle i32 %364, %365
br i1 %366, label %367, label %384
367: ; preds = %363
%368 = load i32, i32* %6
%369 = load double*, double** %12
%370 = load i32, i32* %6
%371 = sext i32 %370 to i64
%372 = getelementptr inbounds double, double* %369, i64 %371
%373 = load double, double* %372
%374 = fneg double %373
%375 = load double*, double** %13
%376 = load i32, i32* %6
%377 = sext i32 %376 to i64
%378 = getelementptr inbounds double, double* %375, i64 %377
%379 = load double, double* %378
%380 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %368, double %374, double %379)
br label %381
381: ; preds = %367
%382 = load i32, i32* %6
%383 = add nsw i32 %382, 1
store i32 %383, i32* %6
br label %363
384: ; preds = %363
store i32 0, i32* %6
br label %385
385: ; preds = %397, %384
%386 = load i32, i32* %6
%387 = load i32, i32* %9
%388 = add nsw i32 %387, 2
%389 = icmp slt i32 %386, %388
br i1 %389, label %390, label %400
390: ; preds = %385
%391 = load double**, double*** %10
%392 = load i32, i32* %6
%393 = sext i32 %392 to i64
%394 = getelementptr inbounds double*, double** %391, i64 %393
%395 = load double*, double** %394
%396 = bitcast double* %395 to i8*
br label %397
397: ; preds = %390
%398 = load i32, i32* %6
%399 = add nsw i32 %398, 1
store i32 %399, i32* %6
br label %385
400: ; preds = %385
%401 = load double**, double*** %10
%402 = bitcast double** %401 to i8*
store i32 0, i32* %6
br label %403
403: ; preds = %415, %400
%404 = load i32, i32* %6
%405 = load i32, i32* %9
%406 = add nsw i32 %405, 2
%407 = icmp slt i32 %404, %406
br i1 %407, label %408, label %418
408: ; preds = %403
%409 = load double**, double*** %11
%410 = load i32, i32* %6
%411 = sext i32 %410 to i64
%412 = getelementptr inbounds double*, double** %409, i64 %411
%413 = load double*, double** %412
%414 = bitcast double* %413 to i8*
br label %415
415: ; preds = %408
%416 = load i32, i32* %6
%417 = add nsw i32 %416, 1
store i32 %417, i32* %6
br label %403
418: ; preds = %403
%419 = load double**, double*** %11
%420 = bitcast double** %419 to i8*
%421 = load double*, double** %12
%422 = bitcast double* %421 to i8*
%423 = load double*, double** %13
%424 = bitcast double* %423 to i8*
ret i32 0
}

LLVM IR (-O2):
@main.itype = internal global i64 1
@main.n = internal global i64 0
@main.lda = internal global i64 0
@main.ldb = internal global i64 0
@main.lwork = internal global i64 0
@main.info = internal global i64 0
@.str.2 = [23 x i8] c"%5d %18.14e %18.14e\0A\00"
@str = [46 x i8] c"\0A pole residue\0A\00"
@str.3 = [37 x i8] c"\0Acould not find the number of zeros\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i8
%4 = alloca i8
%5 = icmp eq i32 %0, 2
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.3, i64 0, i64 0))
tail call void @exit(i32 0)
unreachable
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %10)
%12 = shl nsw i32 %11, 1
%13 = add nsw i32 %12, 2
%14 = sext i32 %13 to i64
%15 = shl nsw i64 %14, 3
%16 = tail call i8* @malloc(i64 %15)
%17 = bitcast i8* %16 to double**
%18 = icmp sgt i32 %11, -1
br i1 %18, label %22, label %19
19: ; preds = %8
%20 = tail call i8* @malloc(i64 %15)
%21 = bitcast i8* %20 to double**
br label %45
22: ; preds = %8
%23 = call i32 @llvm.smax.i32(i32 %13, i32 1)
%24 = zext i32 %23 to i64
br label %25
25: ; preds = %22, %25
%26 = phi i64 [ 0, %22 ], [ %30, %25 ]
%27 = tail call i8* @malloc(i64 %15)
%28 = getelementptr inbounds double*, double** %17, i64 %26
%29 = bitcast double** %28 to i8**
store i8* %27, i8** %29
%30 = add nuw nsw i64 %26, 1
%31 = icmp eq i64 %30, %24
br i1 %31, label %32, label %25
32: ; preds = %25
%33 = tail call i8* @malloc(i64 %15)
%34 = bitcast i8* %33 to double**
br i1 %18, label %35, label %45
35: ; preds = %32
%36 = call i32 @llvm.smax.i32(i32 %13, i32 1)
%37 = zext i32 %36 to i64
br label %38
38: ; preds = %35, %38
%39 = phi i64 [ 0, %35 ], [ %43, %38 ]
%40 = tail call i8* @malloc(i64 %15)
%41 = getelementptr inbounds double*, double** %34, i64 %39
%42 = bitcast double** %41 to i8**
store i8* %40, i8** %42
%43 = add nuw nsw i64 %39, 1
%44 = icmp eq i64 %43, %37
br i1 %44, label %45, label %38
45: ; preds = %38, %19, %32
%46 = phi double** [ %21, %19 ], [ %34, %32 ], [ %34, %38 ]
%47 = phi i8* [ %20, %19 ], [ %33, %32 ], [ %33, %38 ]
%48 = tail call i8* @malloc(i64 %15)
%49 = bitcast i8* %48 to double*
%50 = tail call i8* @malloc(i64 %15)
%51 = bitcast i8* %50 to double*
br i1 %18, label %52, label %260
52: ; preds = %45
%53 = call i32 @llvm.smax.i32(i32 %13, i32 1)
%54 = zext i32 %53 to i64
%55 = and i64 %54, 2147483644
%56 = add nsw i64 %55, -4
%57 = lshr exact i64 %56, 2
%58 = add nuw nsw i64 %57, 1
%59 = icmp ult i32 %53, 4
%60 = and i64 %54, 2147483644
%61 = and i64 %58, 3
%62 = icmp ult i64 %56, 12
%63 = and i64 %58, 9223372036854775804
%64 = icmp eq i64 %61, 0
%65 = icmp eq i64 %60, %54
%66 = and i64 %54, 3
%67 = icmp eq i64 %66, 0
br label %68
68: ; preds = %176, %52
%69 = phi i64 [ 0, %52 ], [ %177, %176 ]
%70 = getelementptr inbounds double*, double** %17, i64 %69
%71 = load double*, double** %70
%72 = getelementptr inbounds double*, double** %46, i64 %69
%73 = load double*, double** %72
br i1 %59, label %139, label %74
74: ; preds = %68
%75 = getelementptr double, double* %71, i64 %54
%76 = getelementptr double, double* %73, i64 %54
%77 = icmp ult double* %71, %76
%78 = icmp ult double* %73, %75
%79 = and i1 %77, %78
br i1 %79, label %139, label %80
80: ; preds = %74
br i1 %62, label %122, label %81
81: ; preds = %80, %81
%82 = phi i64 [ %119, %81 ], [ 0, %80 ]
%83 = phi i64 [ %120, %81 ], [ 0, %80 ]
%84 = getelementptr inbounds double, double* %71, i64 %82
%85 = bitcast double* %84 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %85
%86 = getelementptr inbounds double, double* %84, i64 2
%87 = bitcast double* %86 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %87
%88 = getelementptr inbounds double, double* %73, i64 %82
%89 = bitcast double* %88 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %89
%90 = getelementptr inbounds double, double* %88, i64 2
%91 = bitcast double* %90 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %91
%92 = or i64 %82, 4
%93 = getelementptr inbounds double, double* %71, i64 %92
%94 = bitcast double* %93 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %94
%95 = getelementptr inbounds double, double* %93, i64 2
%96 = bitcast double* %95 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %96
%97 = getelementptr inbounds double, double* %73, i64 %92
%98 = bitcast double* %97 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %98
%99 = getelementptr inbounds double, double* %97, i64 2
%100 = bitcast double* %99 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %100
%101 = or i64 %82, 8
%102 = getelementptr inbounds double, double* %71, i64 %101
%103 = bitcast double* %102 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %103
%104 = getelementptr inbounds double, double* %102, i64 2
%105 = bitcast double* %104 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %105
%106 = getelementptr inbounds double, double* %73, i64 %101
%107 = bitcast double* %106 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %107
%108 = getelementptr inbounds double, double* %106, i64 2
%109 = bitcast double* %108 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %109
%110 = or i64 %82, 12
%111 = getelementptr inbounds double, double* %71, i64 %110
%112 = bitcast double* %111 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %112
%113 = getelementptr inbounds double, double* %111, i64 2
%114 = bitcast double* %113 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %114
%115 = getelementptr inbounds double, double* %73, i64 %110
%116 = bitcast double* %115 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %116
%117 = getelementptr inbounds double, double* %115, i64 2
%118 = bitcast double* %117 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %118
%119 = add nuw i64 %82, 16
%120 = add nuw i64 %83, 4
%121 = icmp eq i64 %120, %63
br i1 %121, label %122, label %81
122: ; preds = %81, %80
%123 = phi i64 [ 0, %80 ], [ %119, %81 ]
br i1 %64, label %138, label %124
124: ; preds = %122, %124
%125 = phi i64 [ %135, %124 ], [ %123, %122 ]
%126 = phi i64 [ %136, %124 ], [ 0, %122 ]
%127 = getelementptr inbounds double, double* %71, i64 %125
%128 = bitcast double* %127 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %128
%129 = getelementptr inbounds double, double* %127, i64 2
%130 = bitcast double* %129 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %130
%131 = getelementptr inbounds double, double* %73, i64 %125
%132 = bitcast double* %131 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %132
%133 = getelementptr inbounds double, double* %131, i64 2
%134 = bitcast double* %133 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %134
%135 = add nuw i64 %125, 4
%136 = add i64 %126, 1
%137 = icmp eq i64 %136, %61
br i1 %137, label %138, label %124
138: ; preds = %124, %122
br i1 %65, label %176, label %139
139: ; preds = %74, %68, %138
%140 = phi i64 [ 0, %74 ], [ 0, %68 ], [ %60, %138 ]
%141 = xor i64 %140, -1
%142 = add nsw i64 %141, %54
br i1 %67, label %151, label %143
143: ; preds = %139, %143
%144 = phi i64 [ %148, %143 ], [ %140, %139 ]
%145 = phi i64 [ %149, %143 ], [ 0, %139 ]
%146 = getelementptr inbounds double, double* %71, i64 %144
store double 0.000000e+00, double* %146
%147 = getelementptr inbounds double, double* %73, i64 %144
store double 0.000000e+00, double* %147
%148 = add nuw nsw i64 %144, 1
%149 = add i64 %145, 1
%150 = icmp eq i64 %149, %66
br i1 %150, label %151, label %143
151: ; preds = %143, %139
%152 = phi i64 [ %140, %139 ], [ %148, %143 ]
%153 = icmp ult i64 %142, 3
br i1 %153, label %176, label %161
154: ; preds = %176
%155 = icmp slt i32 %11, 1
br i1 %155, label %260, label %156
156: ; preds = %154
%157 = call i32 @llvm.smax.i32(i32 %12, i32 1)
%158 = zext i32 %157 to i64
%159 = and i64 %158, 1
%160 = and i64 %158, 2147483646
br label %201
161: ; preds = %151, %161
%162 = phi i64 [ %174, %161 ], [ %152, %151 ]
%163 = getelementptr inbounds double, double* %71, i64 %162
store double 0.000000e+00, double* %163
%164 = getelementptr inbounds double, double* %73, i64 %162
store double 0.000000e+00, double* %164
%165 = add nuw nsw i64 %162, 1
%166 = getelementptr inbounds double, double* %71, i64 %165
store double 0.000000e+00, double* %166
%167 = getelementptr inbounds double, double* %73, i64 %165
store double 0.000000e+00, double* %167
%168 = add nuw nsw i64 %162, 2
%169 = getelementptr inbounds double, double* %71, i64 %168
store double 0.000000e+00, double* %169
%170 = getelementptr inbounds double, double* %73, i64 %168
store double 0.000000e+00, double* %170
%171 = add nuw nsw i64 %162, 3
%172 = getelementptr inbounds double, double* %71, i64 %171
store double 0.000000e+00, double* %172
%173 = getelementptr inbounds double, double* %73, i64 %171
store double 0.000000e+00, double* %173
%174 = add nuw nsw i64 %162, 4
%175 = icmp eq i64 %174, %54
br i1 %175, label %176, label %161
176: ; preds = %151, %161, %138
%177 = add nuw nsw i64 %69, 1
%178 = icmp eq i64 %177, %54
br i1 %178, label %154, label %68
179: ; preds = %201
%180 = icmp eq i64 %159, 0
br i1 %180, label %188, label %181
181: ; preds = %179
%182 = trunc i64 %217 to i32
%183 = sitofp i32 %182 to double
%184 = tail call double @llvm.fmuladd.f64(double %183, double 2.000000e+00, double -1.000000e+00)
%185 = getelementptr inbounds double*, double** %46, i64 %217
%186 = load double*, double** %185
%187 = getelementptr inbounds double, double* %186, i64 %217
store double %184, double* %187
br label %188
188: ; preds = %179, %181
%189 = icmp sgt i32 %11, 0
br i1 %189, label %190, label %260
190: ; preds = %188
%191 = call i32 @llvm.smax.i32(i32 %12, i32 2)
%192 = zext i32 %191 to i64
%193 = getelementptr inbounds double*, double** %17, i64 1
%194 = load double*, double** %193
%195 = add nsw i64 %192, -1
%196 = add nsw i64 %192, -2
%197 = and i64 %195, 3
%198 = icmp ult i64 %196, 3
br i1 %198, label %246, label %199
199: ; preds = %190
%200 = and i64 %195, -4
br label %220
201: ; preds = %201, %156
%202 = phi i64 [ 1, %156 ], [ %217, %201 ]
%203 = phi i64 [ 0, %156 ], [ %218, %201 ]
%204 = trunc i64 %202 to i32
%205 = sitofp i32 %204 to double
%206 = tail call double @llvm.fmuladd.f64(double %205, double 2.000000e+00, double -1.000000e+00)
%207 = getelementptr inbounds double*, double** %46, i64 %202
%208 = load double*, double** %207
%209 = getelementptr inbounds double, double* %208, i64 %202
store double %206, double* %209
%210 = add nuw nsw i64 %202, 1
%211 = trunc i64 %210 to i32
%212 = sitofp i32 %211 to double
%213 = tail call double @llvm.fmuladd.f64(double %212, double 2.000000e+00, double -1.000000e+00)
%214 = getelementptr inbounds double*, double** %46, i64 %210
%215 = load double*, double** %214
%216 = getelementptr inbounds double, double* %215, i64 %210
store double %213, double* %216
%217 = add nuw nsw i64 %202, 2
%218 = add i64 %203, 2
%219 = icmp eq i64 %218, %160
br i1 %219, label %179, label %201
220: ; preds = %220, %199
%221 = phi double* [ %194, %199 ], [ %242, %220 ]
%222 = phi i64 [ 1, %199 ], [ %239, %220 ]
%223 = phi i64 [ 0, %199 ], [ %244, %220 ]
%224 = add nuw nsw i64 %222, 1
%225 = getelementptr inbounds double, double* %221, i64 %224
store double -5.000000e-01, double* %225
%226 = getelementptr inbounds double*, double** %17, i64 %224
%227 = load double*, double** %226
%228 = getelementptr inbounds double, double* %227, i64 %222
store double -5.000000e-01, double* %228
%229 = add nuw nsw i64 %222, 2
%230 = getelementptr inbounds double, double* %227, i64 %229
store double -5.000000e-01, double* %230
%231 = getelementptr inbounds double*, double** %17, i64 %229
%232 = load double*, double** %231
%233 = getelementptr inbounds double, double* %232, i64 %224
store double -5.000000e-01, double* %233
%234 = add nuw nsw i64 %222, 3
%235 = getelementptr inbounds double, double* %232, i64 %234
store double -5.000000e-01, double* %235
%236 = getelementptr inbounds double*, double** %17, i64 %234
%237 = load double*, double** %236
%238 = getelementptr inbounds double, double* %237, i64 %229
store double -5.000000e-01, double* %238
%239 = add nuw nsw i64 %222, 4
%240 = getelementptr inbounds double, double* %237, i64 %239
store double -5.000000e-01, double* %240
%241 = getelementptr inbounds double*, double** %17, i64 %239
%242 = load double*, double** %241
%243 = getelementptr inbounds double, double* %242, i64 %234
store double -5.000000e-01, double* %243
%244 = add i64 %223, 4
%245 = icmp eq i64 %244, %200
br i1 %245, label %246, label %220
246: ; preds = %190, %220
%247 = phi double* [ %194, %190 ], [ %242, %220 ]
%248 = phi i64 [ 1, %190 ], [ %239, %220 ]
br label %249
249: ; preds = %249, %246
%250 = phi double* [ %247, %246 ], [ %256, %249 ]
%251 = phi i64 [ %248, %246 ], [ %253, %249 ]
%252 = phi i64 [ 0, %246 ], [ %258, %249 ]
%253 = add nuw nsw i64 %251, 1
%254 = getelementptr inbounds double, double* %250, i64 %253
store double -5.000000e-01, double* %254
%255 = getelementptr inbounds double*, double** %17, i64 %253
%256 = load double*, double** %255
%257 = getelementptr inbounds double, double* %256, i64 %251
store double -5.000000e-01, double* %257
%258 = add i64 %252, 1
%259 = icmp eq i64 %258, %197
br i1 %259, label %260, label %249
260: ; preds = %249, %154, %45, %188
%261 = phi i1 [ false, %188 ], [ false, %45 ], [ false, %154 ], [ %189, %249 ]
%262 = phi i1 [ %155, %188 ], [ true, %45 ], [ true, %154 ], [ %155, %249 ]
store i8 86, i8* %3
store i8 85, i8* %4
%263 = sext i32 %12 to i64
store i64 %263, i64* @main.n
store i64 %263, i64* @main.lda
store i64 %263, i64* @main.ldb
%264 = mul nsw i32 %11, 6
%265 = sext i32 %264 to i64
store i64 %265, i64* @main.lwork
%266 = shl nsw i64 %263, 3
%267 = mul i64 %266, %263
%268 = tail call i8* @malloc(i64 %267)
%269 = bitcast i8* %268 to double*
%270 = tail call i8* @malloc(i64 %267)
%271 = bitcast i8* %270 to double*
%272 = mul nsw i64 %263, 24
%273 = tail call i8* @malloc(i64 %272)
%274 = bitcast i8* %273 to double*
br i1 %261, label %275, label %325
275: ; preds = %260
%276 = call i64 @llvm.smax.i64(i64 %263, i64 1)
%277 = and i64 %276, 1
%278 = icmp slt i32 %11, 1
%279 = and i64 %276, 9223372036854775806
%280 = icmp eq i64 %277, 0
br label %281
281: ; preds = %323, %275
%282 = phi i64 [ 0, %275 ], [ %283, %323 ]
%283 = add nuw nsw i64 %282, 1
%284 = getelementptr inbounds double*, double** %17, i64 %283
%285 = load double*, double** %284
%286 = getelementptr inbounds double*, double** %46, i64 %283
%287 = load double*, double** %286
br i1 %278, label %311, label %288
288: ; preds = %281, %288
%289 = phi i64 [ %300, %288 ], [ 0, %281 ]
%290 = phi i64 [ %309, %288 ], [ 0, %281 ]
%291 = or i64 %289, 1
%292 = getelementptr inbounds double, double* %285, i64 %291
%293 = load double, double* %292
%294 = mul nsw i64 %289, %263
%295 = add nsw i64 %294, %282
%296 = getelementptr inbounds double, double* %269, i64 %295
store double %293, double* %296
%297 = getelementptr inbounds double, double* %287, i64 %291
%298 = load double, double* %297
%299 = getelementptr inbounds double, double* %271, i64 %295
store double %298, double* %299
%300 = add nuw nsw i64 %289, 2
%301 = getelementptr inbounds double, double* %285, i64 %300
%302 = load double, double* %301
%303 = mul nsw i64 %291, %263
%304 = add nsw i64 %303, %282
%305 = getelementptr inbounds double, double* %269, i64 %304
store double %302, double* %305
%306 = getelementptr inbounds double, double* %287, i64 %300
%307 = load double, double* %306
%308 = getelementptr inbounds double, double* %271, i64 %304
store double %307, double* %308
%309 = add i64 %290, 2
%310 = icmp eq i64 %309, %279
br i1 %310, label %311, label %288
311: ; preds = %288, %281
%312 = phi i64 [ 0, %281 ], [ %300, %288 ]
br i1 %280, label %323, label %313
313: ; preds = %311
%314 = add nuw nsw i64 %312, 1
%315 = getelementptr inbounds double, double* %285, i64 %314
%316 = load double, double* %315
%317 = mul nsw i64 %312, %263
%318 = add nsw i64 %317, %282
%319 = getelementptr inbounds double, double* %269, i64 %318
store double %316, double* %319
%320 = getelementptr inbounds double, double* %287, i64 %314
%321 = load double, double* %320
%322 = getelementptr inbounds double, double* %271, i64 %318
store double %321, double* %322
br label %323
323: ; preds = %311, %313
%324 = icmp eq i64 %283, %276
br i1 %324, label %325, label %281
325: ; preds = %323, %260
%326 = call i32 (i64*, i8*, i8*, i64*, double*, i64*, double*, i64*, double*, double*, i64*, i64*, ...) bitcast (i32 (...)* @dsygv_ to i32 (i64*, i8*, i8*, i64*, double*, i64*, double*, i64*, double*, double*, i64*, i64*, ...)*)(i64* @main.itype, i8* %3, i8* %4, i64* @main.n, double* %269, i64* @main.lda, double* %271, i64* @main.ldb, double* %49, double* %274, i64* @main.lwork, i64* @main.info)
%327 = load i64, i64* @main.n
%328 = trunc i64 %327 to i32
%329 = icmp sgt i32 %328, 0
br i1 %329, label %330, label %405
330: ; preds = %325
%331 = and i64 %327, 4294967295
%332 = icmp ult i64 %331, 4
br i1 %332, label %403, label %333
333: ; preds = %330
%334 = add nsw i64 %331, -1
%335 = add i32 %328, -1
%336 = trunc i64 %334 to i32
%337 = icmp ult i32 %335, %336
%338 = icmp ugt i64 %334, 4294967295
%339 = or i1 %337, %338
%340 = shl nuw nsw i64 %331, 3
%341 = getelementptr i8, i8* %48, i64 %340
%342 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %334, i64 8)
%343 = extractvalue { i64, i1 } %342, 0
%344 = extractvalue { i64, i1 } %342, 1
%345 = sub i64 0, %343
%346 = getelementptr i8, i8* %341, i64 %345
%347 = icmp ugt i8* %346, %341
%348 = or i1 %347, %344
%349 = zext i32 %335 to i64
%350 = shl nuw nsw i64 %349, 3
%351 = getelementptr i8, i8* %48, i64 %350
%352 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %334, i64 8)
%353 = extractvalue { i64, i1 } %352, 0
%354 = extractvalue { i64, i1 } %352, 1
%355 = sub i64 0, %353
%356 = getelementptr i8, i8* %351, i64 %355
%357 = icmp ugt i8* %356, %351
%358 = or i1 %357, %354
%359 = or i1 %339, %348
%360 = or i1 %359, %358
br i1 %360, label %403, label %361
361: ; preds = %333
%362 = getelementptr i8, i8* %48, i64 8
%363 = shl nuw nsw i64 %331, 3
%364 = add nuw nsw i64 %363, 8
%365 = getelementptr i8, i8* %48, i64 %364
%366 = shl i64 %327, 3
%367 = add i64 %366, 34359738360
%368 = and i64 %367, 34359738360
%369 = add nuw nsw i64 %368, 8
%370 = sub nsw i64 %369, %363
%371 = getelementptr i8, i8* %48, i64 %370
%372 = add nuw nsw i64 %368, 8
%373 = getelementptr i8, i8* %48, i64 %372
%374 = icmp ult i8* %362, %373
%375 = icmp ult i8* %371, %365
%376 = and i1 %374, %375
br i1 %376, label %403, label %377
377: ; preds = %361
%378 = and i64 %327, 3
%379 = sub nsw i64 %331, %378
br label %380
380: ; preds = %380, %377
%381 = phi i64 [ 0, %377 ], [ %399, %380 ]
%382 = sub i64 %331, %381
%383 = add i64 %382, 4294967295
%384 = and i64 %383, 4294967295
%385 = getelementptr inbounds double, double* %49, i64 %384
%386 = getelementptr inbounds double, double* %385, i64 -1
%387 = bitcast double* %386 to <2 x double>*
%388 = load <2 x double>, <2 x double>* %387
%389 = getelementptr inbounds double, double* %385, i64 -2
%390 = getelementptr inbounds double, double* %389, i64 -1
%391 = bitcast double* %390 to <2 x double>*
%392 = load <2 x double>, <2 x double>* %391
%393 = getelementptr inbounds double, double* %49, i64 %382
%394 = getelementptr inbounds double, double* %393, i64 -1
%395 = bitcast double* %394 to <2 x double>*
store <2 x double> %388, <2 x double>* %395
%396 = getelementptr inbounds double, double* %393, i64 -2
%397 = getelementptr inbounds double, double* %396, i64 -1
%398 = bitcast double* %397 to <2 x double>*
store <2 x double> %392, <2 x double>* %398
%399 = add nuw i64 %381, 4
%400 = icmp eq i64 %399, %379
br i1 %400, label %401, label %380
401: ; preds = %380
%402 = icmp eq i64 %378, 0
br i1 %402, label %405, label %403
403: ; preds = %361, %333, %330, %401
%404 = phi i64 [ %331, %361 ], [ %331, %333 ], [ %331, %330 ], [ %378, %401 ]
br label %452
405: ; preds = %452, %401, %325
%406 = icmp slt i64 %327, 1
br i1 %406, label %519, label %407
407: ; preds = %405
%408 = icmp eq i64 %327, 1
br i1 %408, label %450, label %409
409: ; preds = %407
%410 = and i64 %327, -2
%411 = or i64 %327, 1
%412 = add i64 %410, -2
%413 = lshr exact i64 %412, 1
%414 = add nuw i64 %413, 1
%415 = and i64 %414, 1
%416 = icmp eq i64 %412, 0
br i1 %416, label %439, label %417
417: ; preds = %409
%418 = and i64 %414, -2
br label %419
419: ; preds = %419, %417
%420 = phi i64 [ 0, %417 ], [ %434, %419 ]
%421 = phi i64 [ 0, %417 ], [ %435, %419 ]
%422 = or i64 %420, 1
%423 = getelementptr inbounds double, double* %49, i64 %422
%424 = bitcast double* %423 to <2 x double>*
%425 = load <2 x double>, <2 x double>* %424
%426 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %425
%427 = bitcast double* %423 to <2 x double>*
store <2 x double> %426, <2 x double>* %427
%428 = or i64 %420, 3
%429 = getelementptr inbounds double, double* %49, i64 %428
%430 = bitcast double* %429 to <2 x double>*
%431 = load <2 x double>, <2 x double>* %430
%432 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %431
%433 = bitcast double* %429 to <2 x double>*
store <2 x double> %432, <2 x double>* %433
%434 = add nuw i64 %420, 4
%435 = add nuw i64 %421, 2
%436 = icmp eq i64 %435, %418
br i1 %436, label %437, label %419
437: ; preds = %419
%438 = or i64 %434, 1
br label %439
439: ; preds = %437, %409
%440 = phi i64 [ 1, %409 ], [ %438, %437 ]
%441 = icmp eq i64 %415, 0
br i1 %441, label %448, label %442
442: ; preds = %439
%443 = getelementptr inbounds double, double* %49, i64 %440
%444 = bitcast double* %443 to <2 x double>*
%445 = load <2 x double>, <2 x double>* %444
%446 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %445
%447 = bitcast double* %443 to <2 x double>*
store <2 x double> %446, <2 x double>* %447
br label %448
448: ; preds = %439, %442
%449 = icmp eq i64 %327, %410
br i1 %449, label %460, label %450
450: ; preds = %407, %448
%451 = phi i64 [ 1, %407 ], [ %411, %448 ]
br label %467
452: ; preds = %403, %452
%453 = phi i64 [ %454, %452 ], [ %404, %403 ]
%454 = add nsw i64 %453, -1
%455 = and i64 %454, 4294967295
%456 = getelementptr inbounds double, double* %49, i64 %455
%457 = load double, double* %456
%458 = getelementptr inbounds double, double* %49, i64 %453
store double %457, double* %458
%459 = icmp ugt i64 %453, 1
br i1 %459, label %452, label %405
460: ; preds = %467, %448
%461 = icmp sgt i64 %327, 0
br i1 %461, label %462, label %519
462: ; preds = %460
%463 = and i64 %327, 1
%464 = icmp eq i64 %327, 1
br i1 %464, label %503, label %465
465: ; preds = %462
%466 = and i64 %327, -2
br label %474
467: ; preds = %450, %467
%468 = phi i64 [ %472, %467 ], [ %451, %450 ]
%469 = getelementptr inbounds double, double* %49, i64 %468
%470 = load double, double* %469
%471 = fdiv double 1.000000e+00, %470
store double %471, double* %469
%472 = add nuw nsw i64 %468, 1
%473 = icmp eq i64 %468, %327
br i1 %473, label %460, label %467
474: ; preds = %474, %465
%475 = phi i64 [ 0, %465 ], [ %494, %474 ]
%476 = phi i64 [ 0, %465 ], [ %501, %474 ]
%477 = mul nsw i64 %475, %327
%478 = getelementptr inbounds double, double* %269, i64 %477
%479 = load double, double* %478
%480 = fneg double %479
%481 = fmul double %479, %480
%482 = or i64 %475, 1
%483 = getelementptr inbounds double, double* %49, i64 %482
%484 = load double, double* %483
%485 = fmul double %481, %484
%486 = fmul double %484, %485
%487 = fmul double %486, 2.500000e-01
%488 = getelementptr inbounds double, double* %51, i64 %482
store double %487, double* %488
%489 = mul nsw i64 %482, %327
%490 = getelementptr inbounds double, double* %269, i64 %489
%491 = load double, double* %490
%492 = fneg double %491
%493 = fmul double %491, %492
%494 = add nuw nsw i64 %475, 2
%495 = getelementptr inbounds double, double* %49, i64 %494
%496 = load double, double* %495
%497 = fmul double %493, %496
%498 = fmul double %496, %497
%499 = fmul double %498, 2.500000e-01
%500 = getelementptr inbounds double, double* %51, i64 %494
store double %499, double* %500
%501 = add nuw i64 %476, 2
%502 = icmp eq i64 %501, %466
br i1 %502, label %503, label %474
503: ; preds = %474, %462
%504 = phi i64 [ 0, %462 ], [ %494, %474 ]
%505 = icmp eq i64 %463, 0
br i1 %505, label %519, label %506
506: ; preds = %503
%507 = mul nsw i64 %504, %327
%508 = getelementptr inbounds double, double* %269, i64 %507
%509 = load double, double* %508
%510 = fneg double %509
%511 = fmul double %509, %510
%512 = add nuw nsw i64 %504, 1
%513 = getelementptr inbounds double, double* %49, i64 %512
%514 = load double, double* %513
%515 = fmul double %511, %514
%516 = fmul double %514, %515
%517 = fmul double %516, 2.500000e-01
%518 = getelementptr inbounds double, double* %51, i64 %512
store double %517, double* %518
br label %519
519: ; preds = %506, %503, %405, %460
%520 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
br i1 %262, label %524, label %521
521: ; preds = %519
%522 = add i32 %11, 1
%523 = zext i32 %522 to i64
br label %529
524: ; preds = %529, %519
br i1 %18, label %526, label %525
525: ; preds = %524
br label %558
526: ; preds = %524
%527 = call i32 @llvm.smax.i32(i32 %13, i32 1)
%528 = zext i32 %527 to i64
br label %540
529: ; preds = %521, %529
%530 = phi i64 [ 1, %521 ], [ %538, %529 ]
%531 = getelementptr inbounds double, double* %49, i64 %530
%532 = load double, double* %531
%533 = fneg double %532
%534 = getelementptr inbounds double, double* %51, i64 %530
%535 = load double, double* %534
%536 = trunc i64 %530 to i32
%537 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %536, double %533, double %535)
%538 = add nuw nsw i64 %530, 1
%539 = icmp eq i64 %538, %523
br i1 %539, label %524, label %529
540: ; preds = %526, %540
%541 = phi i64 [ 0, %526 ], [ %545, %540 ]
%542 = getelementptr inbounds double*, double** %17, i64 %541
%543 = bitcast double** %542 to i8**
%544 = load i8*, i8** %543
%545 = add nuw nsw i64 %541, 1
%546 = icmp eq i64 %545, %528
br i1 %546, label %547, label %540
547: ; preds = %540
br i1 %18, label %548, label %558
548: ; preds = %547
%549 = call i32 @llvm.smax.i32(i32 %13, i32 1)
%550 = zext i32 %549 to i64
br label %551
551: ; preds = %548, %551
%552 = phi i64 [ 0, %548 ], [ %556, %551 ]
%553 = getelementptr inbounds double*, double** %46, i64 %552
%554 = bitcast double** %553 to i8**
%555 = load i8*, i8** %554
%556 = add nuw nsw i64 %552, 1
%557 = icmp eq i64 %556, %550
br i1 %557, label %558, label %551
558: ; preds = %551, %525, %547
ret i32 0
}