#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 */
typedef int /*<<< orphan*/ image;

/* Variables and functions */
int /*<<< orphan*/ Daub97Analysis1D(double *, double *, int);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int Daub97Analysis2D(double *image, int rows, int cols, int levels) {
  double *signal_in, *signal_out, *base;
  int cur_level, cur_cols, cur_rows;
  int i, j, max, offs, n_samples;
  int err_code;
  max = (cols > rows ? cols : rows);
  signal_in = signal_out = NULL;
  signal_in = (double *)malloc(max * sizeof(double));
  signal_out = (double *)malloc(max * sizeof(double));
  if (signal_in == NULL || signal_out == NULL) {
    err_code = (1);
    goto memory_error;
  }
  n_samples = cols * rows;
  for (i = 0; i < n_samples; i++)
    image[i] -= 128.0;
  cur_cols = cols;
  cur_rows = rows;
  for (cur_level = 1; cur_level <= levels; cur_level++) {
    offs = cols;
    for (i = 0; i < cur_cols; i++) {
      base = image + i;
      for (j = 0; j < cur_rows; j++) {
        signal_in[j] = *base;
        base += offs;
      }
      Daub97Analysis1D(signal_in, signal_out, cur_rows);
      base = image + i;
      for (j = 0; j < cur_rows; j++) {
        *base = signal_out[j];
        base += offs;
      }
    }
    offs = 1;
    for (i = 0; i < cur_rows; i++) {
      base = image + i * cols;
      for (j = 0; j < cur_cols; j++) {
        signal_in[j] = *base;
        base += offs;
      }
      Daub97Analysis1D(signal_in, signal_out, cur_cols);
      base = image + i * cols;
      for (j = 0; j < cur_cols; j++) {
        *base = signal_out[j];
        base += offs;
      }
    }
    cur_cols >>= 1;
    cur_rows >>= 1;
  }
  for (i = 0; i < n_samples; i++)
    image[i] =
        (((image[i]) < 0) ? (int)((image[i]) - 0.5) : (int)((image[i]) + 0.5));
  err_code = (0);
memory_error:
  free(signal_in);
  free(signal_out);
  return err_code;
}


x86 assembly (clang, -O0):
<Daub97Analysis2D>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    115c <Daub97Analysis2D+0x2c>
mov    -0x10(%rbp),%eax
mov    %eax,-0x58(%rbp)
jmp    1162 <Daub97Analysis2D+0x32>
mov    -0xc(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
mov    %eax,-0x48(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x20(%rbp)
movslq -0x48(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x20(%rbp)
movslq -0x48(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     11b4 <Daub97Analysis2D+0x84>
cmpq   $0x0,-0x28(%rbp)
jne    11c0 <Daub97Analysis2D+0x90>
movl   $0x1,-0x54(%rbp)
jmp    14d8 <Daub97Analysis2D+0x3a8>
mov    -0x10(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x50(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    1209 <Daub97Analysis2D+0xd9>
mov    -0x8(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xe16(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    11d1 <Daub97Analysis2D+0xa1>
mov    -0x10(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     1445 <Daub97Analysis2D+0x315>
mov    -0x10(%rbp),%eax
mov    %eax,-0x4c(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    1320 <Daub97Analysis2D+0x1f0>
mov    -0x8(%rbp),%rax
movslq -0x40(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    129f <Daub97Analysis2D+0x16f>
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x4c(%rbp),%ecx
mov    -0x30(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    125b <Daub97Analysis2D+0x12b>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x3c(%rbp),%edx
call   1040 <Daub97Analysis1D@plt>
mov    -0x8(%rbp),%rax
movslq -0x40(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    130d <Daub97Analysis2D+0x1dd>
mov    -0x28(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x4c(%rbp),%ecx
mov    -0x30(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    12c9 <Daub97Analysis2D+0x199>
jmp    1312 <Daub97Analysis2D+0x1e2>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1235 <Daub97Analysis2D+0x105>
movl   $0x1,-0x4c(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    1425 <Daub97Analysis2D+0x2f5>
mov    -0x8(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x10(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    139e <Daub97Analysis2D+0x26e>
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x4c(%rbp),%ecx
mov    -0x30(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    135a <Daub97Analysis2D+0x22a>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x38(%rbp),%edx
call   1040 <Daub97Analysis1D@plt>
mov    -0x8(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x10(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    1412 <Daub97Analysis2D+0x2e2>
mov    -0x28(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x4c(%rbp),%ecx
mov    -0x30(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    13ce <Daub97Analysis2D+0x29e>
jmp    1417 <Daub97Analysis2D+0x2e7>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    132e <Daub97Analysis2D+0x1fe>
mov    -0x38(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x3c(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    121c <Daub97Analysis2D+0xec>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    14d1 <Daub97Analysis2D+0x3a1>
mov    -0x8(%rbp),%rax
movslq -0x40(%rbp),%rcx
xorps  %xmm0,%xmm0
ucomisd (%rax,%rcx,8),%xmm0
jbe    1493 <Daub97Analysis2D+0x363>
mov    -0x8(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xb7d(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x5c(%rbp)
jmp    14af <Daub97Analysis2D+0x37f>
mov    -0x8(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  0xb5d(%rip),%xmm0
addsd  (%rax,%rcx,8),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    144c <Daub97Analysis2D+0x31c>
movl   $0x0,-0x54(%rbp)
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x54(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Daub97Analysis2D>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
mov    %ecx,0x3c(%rsp)
mov    %esi,%r14d
mov    %rdi,%rbp
cmp    %esi,%edx
mov    %esi,%r13d
mov    %edx,%r15d
cmovg  %edx,%r14d
shl    $0x3,%r14d
mov    %r14d,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    %r14d,%edi
call   1050 <malloc@plt>
mov    %rax,%r14
mov    $0x1,%r12d
test   %rbx,%rbx
je     1b6c <Daub97Analysis2D+0xa3c>
test   %r14,%r14
je     1b6c <Daub97Analysis2D+0xa3c>
mov    %r15d,%edx
mov    %r15d,%r10d
mov    %r13d,%ecx
imul   %r13d,%r10d
mov    %r10d,%r9d
test   %r10d,%r10d
jle    1299 <Daub97Analysis2D+0x169>
cmp    $0x4,%r10d
jae    11af <Daub97Analysis2D+0x7f>
xor    %eax,%eax
jmp    126d <Daub97Analysis2D+0x13d>
mov    %r9d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rsi
mov    %rsi,%r8
shr    $0x2,%r8
add    $0x1,%r8
test   %rsi,%rsi
je     1b91 <Daub97Analysis2D+0xa61>
movabs $0x7ffffffffffffffc,%rsi
ff ff 7f
or     $0x2,%rsi
and    %r8,%rsi
xor    %edi,%edi
movapd 0xe18(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movupd 0x0(%rbp,%rdi,8),%xmm1
movupd 0x10(%rbp,%rdi,8),%xmm2
movupd 0x20(%rbp,%rdi,8),%xmm3
movupd 0x30(%rbp,%rdi,8),%xmm4
addpd  %xmm0,%xmm1
addpd  %xmm0,%xmm2
movupd %xmm1,0x0(%rbp,%rdi,8)
movupd %xmm2,0x10(%rbp,%rdi,8)
addpd  %xmm0,%xmm3
addpd  %xmm0,%xmm4
movupd %xmm3,0x20(%rbp,%rdi,8)
movupd %xmm4,0x30(%rbp,%rdi,8)
add    $0x8,%rdi
add    $0xfffffffffffffffe,%rsi
jne    11f0 <Daub97Analysis2D+0xc0>
test   $0x1,%r8b
je     1268 <Daub97Analysis2D+0x138>
movupd 0x0(%rbp,%rdi,8),%xmm0
movupd 0x10(%rbp,%rdi,8),%xmm1
movapd 0xdac(%rip),%xmm2
addpd  %xmm2,%xmm0
addpd  %xmm2,%xmm1
movupd %xmm0,0x0(%rbp,%rdi,8)
movupd %xmm1,0x10(%rbp,%rdi,8)
cmp    %r9,%rax
je     1299 <Daub97Analysis2D+0x169>
movsd  0xdcb(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nop
movsd  0x0(%rbp,%rax,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x0(%rbp,%rax,8)
add    $0x1,%rax
cmp    %rax,%r9
jne    1280 <Daub97Analysis2D+0x150>
mov    %r10d,0x64(%rsp)
mov    %r9,0x68(%rsp)
mov    %rbp,0x18(%rsp)
cmpl   $0x0,0x3c(%rsp)
jle    1a6e <Daub97Analysis2D+0x93e>
movslq %edx,%rax
mov    %rax,%rsi
shl    $0x5,%rsi
mov    %rsi,0xd8(%rsp)
lea    0x0(,%rax,8),%r12
mov    %rax,0xe0(%rsp)
shl    $0x6,%rax
mov    %rax,0xb8(%rsp)
mov    0x18(%rsp),%rax
add    $0x70,%rax
mov    %rax,0x80(%rsp)
lea    0x10(%rbx),%rax
mov    %rax,0x90(%rsp)
lea    0x18(%rbx),%rax
mov    %rax,0xd0(%rsp)
lea    0x10(%r14),%rax
mov    %rax,0x88(%rsp)
lea    0x38(%r14),%rax
mov    %rax,0xa8(%rsp)
mov    $0x1,%eax
jmp    134d <Daub97Analysis2D+0x21d>
nopl   0x0(%rax)
sar    %edx
mov    0x24(%rsp),%ecx
sar    %ecx
mov    0x98(%rsp),%rsi
lea    0x1(%rsi),%eax
cmp    0x3c(%rsp),%esi
je     1a6e <Daub97Analysis2D+0x93e>
mov    %rax,0x98(%rsp)
mov    %edx,%eax
mov    %rax,0x8(%rsp)
mov    %ecx,%eax
mov    %rax,0x78(%rsp)
test   %edx,%edx
mov    %edx,0x14(%rsp)
mov    %ecx,0x24(%rsp)
jle    15d0 <Daub97Analysis2D+0x4a0>
mov    0x78(%rsp),%rax
lea    -0x1(%rax),%rdx
mov    %rdx,0x30(%rsp)
mov    %eax,%r13d
and    $0x3,%r13d
mov    %eax,%ebp
and    $0xfffffffc,%ebp
mov    %eax,%edx
and    $0x7,%edx
mov    %rdx,0x28(%rsp)
and    $0xfffffff8,%eax
mov    %rax,0x40(%rsp)
mov    0x18(%rsp),%r8
xor    %r9d,%r9d
mov    %rbp,0x58(%rsp)
jmp    13e3 <Daub97Analysis2D+0x2b3>
xchg   %ax,%ax
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %ecx,%edx
mov    %r8,%r15
call   1040 <Daub97Analysis1D@plt>
mov    0x50(%rsp),%r9
mov    %r15,%r8
mov    0x14(%rsp),%edx
add    $0x1,%r9
add    $0x8,%r8
cmp    0x8(%rsp),%r9
mov    0x24(%rsp),%ecx
je     15d0 <Daub97Analysis2D+0x4a0>
test   %ecx,%ecx
mov    %r9,0x50(%rsp)
jle    13b0 <Daub97Analysis2D+0x280>
mov    0x18(%rsp),%rax
lea    (%rax,%r9,8),%r15
cmpq   $0x3,0x30(%rsp)
jae    1410 <Daub97Analysis2D+0x2e0>
xor    %ecx,%ecx
mov    %r15,%rax
jmp    146d <Daub97Analysis2D+0x33d>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r8,%rdx
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rdx,%rax
movsd  (%rdx),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
add    %r12,%rdx
movsd  (%rax,%r12,1),%xmm0
movsd  %xmm0,0x8(%rbx,%rcx,8)
movsd  (%r12,%rdx,1),%xmm0
add    %r12,%rdx
movsd  %xmm0,0x10(%rbx,%rcx,8)
movsd  (%r12,%rdx,1),%xmm0
add    %r12,%rdx
movsd  %xmm0,0x18(%rbx,%rcx,8)
add    $0x4,%rcx
add    %r12,%rdx
cmp    %rcx,%rbp
jne    1420 <Daub97Analysis2D+0x2f0>
add    0xd8(%rsp),%rax
mov    %r8,0x48(%rsp)
test   %r13,%r13
je     1495 <Daub97Analysis2D+0x365>
lea    (%rbx,%rcx,8),%rcx
xor    %edx,%edx
nopl   (%rax)
movsd  (%rax),%xmm0
movsd  %xmm0,(%rcx,%rdx,8)
add    $0x1,%rdx
add    %r12,%rax
cmp    %rdx,%r13
jne    1480 <Daub97Analysis2D+0x350>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r13,%rbp
mov    0x24(%rsp),%r13d
mov    %r13d,%edx
call   1040 <Daub97Analysis1D@plt>
test   %r13d,%r13d
mov    %rbp,%r13
mov    0x14(%rsp),%edx
mov    0x58(%rsp),%rbp
mov    0x28(%rsp),%rsi
mov    0x40(%rsp),%rdi
mov    0x48(%rsp),%r8
mov    0x50(%rsp),%r9
jle    13cc <Daub97Analysis2D+0x29c>
cmpq   $0x7,0x30(%rsp)
jae    14ec <Daub97Analysis2D+0x3bc>
xor    %eax,%eax
test   %rsi,%rsi
jne    159e <Daub97Analysis2D+0x46e>
jmp    13cc <Daub97Analysis2D+0x29c>
mov    %r8,%rcx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rcx,%r15
movsd  (%r14,%rax,8),%xmm0
movsd  %xmm0,(%rcx)
movsd  0x8(%r14,%rax,8),%xmm0
add    %r12,%rcx
movsd  %xmm0,(%r15,%r12,1)
movsd  0x10(%r14,%rax,8),%xmm0
movsd  %xmm0,(%r12,%rcx,1)
add    %r12,%rcx
movsd  0x18(%r14,%rax,8),%xmm0
movsd  %xmm0,(%r12,%rcx,1)
add    %r12,%rcx
movsd  0x20(%r14,%rax,8),%xmm0
movsd  %xmm0,(%r12,%rcx,1)
add    %r12,%rcx
movsd  0x28(%r14,%rax,8),%xmm0
movsd  %xmm0,(%r12,%rcx,1)
add    %r12,%rcx
movsd  0x30(%r14,%rax,8),%xmm0
movsd  %xmm0,(%r12,%rcx,1)
add    %r12,%rcx
movsd  0x38(%r14,%rax,8),%xmm0
movsd  %xmm0,(%r12,%rcx,1)
add    %r12,%rcx
add    $0x8,%rax
add    %r12,%rcx
cmp    %rax,%rdi
jne    1500 <Daub97Analysis2D+0x3d0>
add    0xb8(%rsp),%r15
test   %rsi,%rsi
je     13cc <Daub97Analysis2D+0x29c>
lea    (%r14,%rax,8),%rax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%r15)
add    $0x1,%rcx
add    %r12,%r15
cmp    %rcx,%rsi
jne    15b0 <Daub97Analysis2D+0x480>
jmp    13cc <Daub97Analysis2D+0x29c>
nopl   0x0(%rax,%rax,1)
test   %ecx,%ecx
jle    1330 <Daub97Analysis2D+0x200>
mov    0x8(%rsp),%rcx
lea    (%r14,%rcx,8),%rax
mov    %rax,0xc0(%rsp)
lea    (%rbx,%rcx,8),%rax
mov    %rax,0xc8(%rsp)
mov    %ecx,%eax
and    $0xfffffffc,%eax
mov    %rax,0x28(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,0x40(%rsp)
mov    %rax,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %esi,%edi
and    $0x3,%edi
mov    %rsi,%rax
mov    %rsi,0xa0(%rsp)
movabs $0x7ffffffffffffffc,%rax
ff ff 7f
and    %rax,%rsi
mov    %rsi,0x70(%rsp)
mov    %ecx,%r8d
and    $0x3,%r8d
mov    %rdi,0xb0(%rsp)
mov    %rdi,%r9
shl    $0x5,%r9
mov    0x18(%rsp),%r10
mov    0x80(%rsp),%r15
xor    %r13d,%r13d
mov    %r8,0x48(%rsp)
mov    %r9,0x30(%rsp)
jmp    16a4 <Daub97Analysis2D+0x574>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r10,%rbp
call   1040 <Daub97Analysis1D@plt>
mov    %rbp,%r10
mov    0x30(%rsp),%r9
mov    0x48(%rsp),%r8
mov    0x14(%rsp),%edx
add    $0x1,%r13
add    %r12,%r15
add    %r12,%r10
cmp    0x78(%rsp),%r13
je     1330 <Daub97Analysis2D+0x200>
test   %edx,%edx
jle    1670 <Daub97Analysis2D+0x540>
mov    %r13,%rax
imul   0xe0(%rsp),%rax
mov    0x18(%rsp),%rcx
lea    (%rcx,%rax,8),%rbp
add    0x8(%rsp),%rax
lea    (%rcx,%rax,8),%rax
cmp    $0x4,%edx
mov    %rax,0x58(%rsp)
jb     16e7 <Daub97Analysis2D+0x5b7>
cmp    %rax,%rbx
jae    177c <Daub97Analysis2D+0x64c>
cmp    0xc8(%rsp),%rbp
jae    177c <Daub97Analysis2D+0x64c>
xor    %ecx,%ecx
mov    %rbp,%rax
mov    %rcx,%rdi
not    %rdi
add    0x8(%rsp),%rdi
test   %r8,%r8
je     1717 <Daub97Analysis2D+0x5e7>
mov    %r8,%rsi
nop
movsd  (%rax),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
add    $0x8,%rax
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    1700 <Daub97Analysis2D+0x5d0>
cmp    $0x3,%rdi
jb     1850 <Daub97Analysis2D+0x720>
mov    0x8(%rsp),%rdi
sub    %rcx,%rdi
mov    0xd0(%rsp),%rsi
lea    (%rsi,%rcx,8),%rcx
xor    %esi,%esi
nopw   0x0(%rax,%rax,1)
movsd  (%rax,%rsi,8),%xmm0
movsd  %xmm0,-0x18(%rcx,%rsi,8)
movsd  0x8(%rax,%rsi,8),%xmm0
movsd  %xmm0,-0x10(%rcx,%rsi,8)
movsd  0x10(%rax,%rsi,8),%xmm0
movsd  %xmm0,-0x8(%rcx,%rsi,8)
movsd  0x18(%rax,%rsi,8),%xmm0
movsd  %xmm0,(%rcx,%rsi,8)
add    $0x4,%rsi
cmp    %rsi,%rdi
jne    1740 <Daub97Analysis2D+0x610>
jmp    1850 <Daub97Analysis2D+0x720>
cmpq   $0xc,0x40(%rsp)
jae    1788 <Daub97Analysis2D+0x658>
xor    %eax,%eax
jmp    17f4 <Daub97Analysis2D+0x6c4>
mov    0x70(%rsp),%rcx
xor    %eax,%eax
nop
movups -0x70(%r15,%rax,8),%xmm0
movups -0x60(%r15,%rax,8),%xmm1
movups %xmm0,(%rbx,%rax,8)
movups %xmm1,0x10(%rbx,%rax,8)
movups -0x50(%r15,%rax,8),%xmm0
movups -0x40(%r15,%rax,8),%xmm1
movups %xmm0,0x20(%rbx,%rax,8)
movups %xmm1,0x30(%rbx,%rax,8)
movups -0x30(%r15,%rax,8),%xmm0
movups -0x20(%r15,%rax,8),%xmm1
movups %xmm0,0x40(%rbx,%rax,8)
movups %xmm1,0x50(%rbx,%rax,8)
movupd -0x10(%r15,%rax,8),%xmm0
movupd (%r15,%rax,8),%xmm1
movupd %xmm0,0x60(%rbx,%rax,8)
movupd %xmm1,0x70(%rbx,%rax,8)
add    $0x10,%rax
add    $0xfffffffffffffffc,%rcx
jne    1790 <Daub97Analysis2D+0x660>
cmpq   $0x0,0xb0(%rsp)
je     183f <Daub97Analysis2D+0x70f>
mov    0x90(%rsp),%rcx
lea    (%rcx,%rax,8),%rcx
lea    (%r10,%rax,8),%rax
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd (%rax,%rsi,1),%xmm0
movupd 0x10(%rax,%rsi,1),%xmm1
movupd %xmm0,-0x10(%rcx,%rsi,1)
movupd %xmm1,(%rcx,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%r9
jne    1820 <Daub97Analysis2D+0x6f0>
mov    0x28(%rsp),%rax
cmp    0x8(%rsp),%rax
jne    197c <Daub97Analysis2D+0x84c>
nop
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r13,0x50(%rsp)
mov    %r10,%r13
call   1040 <Daub97Analysis1D@plt>
mov    %r13,%r10
mov    0x50(%rsp),%r13
mov    0x30(%rsp),%r9
mov    0x48(%rsp),%r8
mov    0x14(%rsp),%edx
test   %edx,%edx
jle    168f <Daub97Analysis2D+0x55f>
cmp    $0x4,%edx
jb     189f <Daub97Analysis2D+0x76f>
cmp    0xc0(%rsp),%rbp
jae    196d <Daub97Analysis2D+0x83d>
cmp    0x58(%rsp),%r14
jae    196d <Daub97Analysis2D+0x83d>
xor    %eax,%eax
mov    0x8(%rsp),%rdi
mov    %edi,%esi
sub    %eax,%esi
mov    %rax,%rcx
not    %rcx
add    %rdi,%rcx
and    $0x7,%rsi
je     18d9 <Daub97Analysis2D+0x7a9>
nopl   0x0(%rax)
movsd  (%r14,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp)
add    $0x8,%rbp
add    $0x1,%rax
add    $0xffffffffffffffff,%rsi
jne    18c0 <Daub97Analysis2D+0x790>
cmp    $0x7,%rcx
jb     168f <Daub97Analysis2D+0x55f>
mov    0x8(%rsp),%rcx
sub    %rax,%rcx
mov    0xa8(%rsp),%rsi
lea    (%rsi,%rax,8),%rax
xor    %esi,%esi
nopl   0x0(%rax)
movsd  -0x38(%rax,%rsi,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rsi,8)
movsd  -0x30(%rax,%rsi,8),%xmm0
movsd  %xmm0,0x8(%rbp,%rsi,8)
movsd  -0x28(%rax,%rsi,8),%xmm0
movsd  %xmm0,0x10(%rbp,%rsi,8)
movsd  -0x20(%rax,%rsi,8),%xmm0
movsd  %xmm0,0x18(%rbp,%rsi,8)
movsd  -0x18(%rax,%rsi,8),%xmm0
movsd  %xmm0,0x20(%rbp,%rsi,8)
movsd  -0x10(%rax,%rsi,8),%xmm0
movsd  %xmm0,0x28(%rbp,%rsi,8)
movsd  -0x8(%rax,%rsi,8),%xmm0
movsd  %xmm0,0x30(%rbp,%rsi,8)
movsd  (%rax,%rsi,8),%xmm0
movsd  %xmm0,0x38(%rbp,%rsi,8)
add    $0x8,%rsi
cmp    %rsi,%rcx
jne    1900 <Daub97Analysis2D+0x7d0>
jmp    168f <Daub97Analysis2D+0x55f>
cmpq   $0xc,0x40(%rsp)
jae    1991 <Daub97Analysis2D+0x861>
xor    %eax,%eax
jmp    1a0c <Daub97Analysis2D+0x8dc>
mov    0x28(%rsp),%rcx
lea    0x0(,%rcx,8),%rax
add    %rbp,%rax
jmp    16ec <Daub97Analysis2D+0x5bc>
mov    0x70(%rsp),%rcx
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
movups (%r14,%rax,8),%xmm0
movups 0x10(%r14,%rax,8),%xmm1
movups %xmm0,-0x70(%r15,%rax,8)
movups %xmm1,-0x60(%r15,%rax,8)
movups 0x20(%r14,%rax,8),%xmm0
movups 0x30(%r14,%rax,8),%xmm1
movups %xmm0,-0x50(%r15,%rax,8)
movups %xmm1,-0x40(%r15,%rax,8)
movups 0x40(%r14,%rax,8),%xmm0
movups 0x50(%r14,%rax,8),%xmm1
movups %xmm0,-0x30(%r15,%rax,8)
movups %xmm1,-0x20(%r15,%rax,8)
movupd 0x60(%r14,%rax,8),%xmm0
movupd 0x70(%r14,%rax,8),%xmm1
movupd %xmm0,-0x10(%r15,%rax,8)
movupd %xmm1,(%r15,%rax,8)
add    $0x10,%rax
add    $0xfffffffffffffffc,%rcx
jne    19a0 <Daub97Analysis2D+0x870>
testb  $0x3,0xa0(%rsp)
03
je     1a4f <Daub97Analysis2D+0x91f>
mov    0x88(%rsp),%rcx
lea    (%rcx,%rax,8),%rcx
lea    (%r10,%rax,8),%rax
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
movupd -0x10(%rcx,%rsi,1),%xmm0
movupd (%rcx,%rsi,1),%xmm1
movupd %xmm0,(%rax,%rsi,1)
movupd %xmm1,0x10(%rax,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%r9
jne    1a30 <Daub97Analysis2D+0x900>
mov    0x28(%rsp),%rax
cmp    0x8(%rsp),%rax
je     168f <Daub97Analysis2D+0x55f>
mov    0x28(%rsp),%rax
lea    0x0(%rbp,%rax,8),%rbp
jmp    18a1 <Daub97Analysis2D+0x771>
mov    0x64(%rsp),%eax
test   %eax,%eax
jle    1b69 <Daub97Analysis2D+0xa39>
cmp    $0x4,%eax
jae    1a90 <Daub97Analysis2D+0x960>
xor    %eax,%eax
mov    0x18(%rsp),%rsi
mov    0x68(%rsp),%rdi
jmp    1b31 <Daub97Analysis2D+0xa01>
mov    0x68(%rsp),%rdi
mov    %edi,%eax
and    $0xfffffffc,%eax
xor    %ecx,%ecx
xorpd  %xmm0,%xmm0
movapd 0x568(%rip),%xmm1
movapd 0x570(%rip),%xmm2
mov    0x18(%rsp),%rsi
cs nopw 0x0(%rax,%rax,1)
nop
movupd (%rsi,%rcx,8),%xmm3
movupd 0x10(%rsi,%rcx,8),%xmm4
movapd %xmm3,%xmm5
cmpltpd %xmm0,%xmm5
movapd %xmm4,%xmm6
cmpltpd %xmm0,%xmm6
movapd %xmm2,%xmm7
andpd  %xmm5,%xmm7
andnpd %xmm1,%xmm5
orpd   %xmm7,%xmm5
movapd %xmm2,%xmm7
andpd  %xmm6,%xmm7
andnpd %xmm1,%xmm6
orpd   %xmm7,%xmm6
addpd  %xmm3,%xmm5
addpd  %xmm4,%xmm6
cvttpd2dq %xmm5,%xmm3
cvttpd2dq %xmm6,%xmm4
cvtdq2pd %xmm3,%xmm3
cvtdq2pd %xmm4,%xmm4
movupd %xmm3,(%rsi,%rcx,8)
movupd %xmm4,0x10(%rsi,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    1ac0 <Daub97Analysis2D+0x990>
xor    %r12d,%r12d
cmp    %rdi,%rax
je     1b6c <Daub97Analysis2D+0xa3c>
xorpd  %xmm0,%xmm0
lea    0x4f4(%rip),%rcx
nopl   0x0(%rax)
movsd  (%rsi,%rax,8),%xmm1
xor    %edx,%edx
ucomisd %xmm1,%xmm0
seta   %dl
addsd  (%rcx,%rdx,8),%xmm1
cvttpd2dq %xmm1,%xmm1
cvtdq2pd %xmm1,%xmm1
movlpd %xmm1,(%rsi,%rax,8)
add    $0x1,%rax
cmp    %rax,%rdi
jne    1b40 <Daub97Analysis2D+0xa10>
xor    %r12d,%r12d
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r12d,%eax
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edi,%edi
test   $0x1,%r8b
jne    1240 <Daub97Analysis2D+0x110>
jmp    1268 <Daub97Analysis2D+0x138>

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

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