void haartransform(double *input, double *output, int n) {
  int k;
  double i, length;
  long long int a;
  for (k = 0; k < n; k++) {
    output[k] = 0.0;
  }
  i = log((double)n) / log(2);
  a = exp((i - 1) * log(2));
  for (length = i; length > 0; length--) {
    i = (exp((length - 1) * log(2)));
    for (k = 1; k <= i; k++) {
      output[k - 1] = input[k * 2 - 2] + input[k * 2 - 1];
      output[k + a - 1] = input[k * 2 - 2] - input[k * 2 - 1];
    }
    for (k = 0; k < n; k++) {
      input[k] = output[k];
    }
    a = a / 2;
  }
}


x86 assembly (clang, -O0):
<haartransform>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1164 <haartransform+0x44>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    113a <haartransform+0x1a>
cvtsi2sdl -0x14(%rbp),%xmm0
call   1040 <log@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  0xe85(%rip),%xmm0
call   1040 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xe6a(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe51(%rip),%xmm0
call   1040 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
cvttsd2si %xmm0,%rax
mov    %rax,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    132b <haartransform+0x20b>
movsd  -0x28(%rbp),%xmm0
movsd  0xe11(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xdf8(%rip),%xmm0
call   1040 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
movsd  %xmm0,-0x20(%rbp)
movl   $0x1,-0x18(%rbp)
cvtsi2sdl -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     12c7 <haartransform+0x1a7>
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
shl    $0x1,%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
shl    $0x1,%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
shl    $0x1,%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
shl    $0x1,%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
add    -0x30(%rbp),%rcx
sub    $0x1,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    122a <haartransform+0x10a>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1302 <haartransform+0x1e2>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12ce <haartransform+0x1ae>
mov    -0x30(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rax,-0x30(%rbp)
movsd  0xcf4(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    11d8 <haartransform+0xb8>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<haartransform>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,%rbx
mov    %rdi,%rbp
mov    %edx,%r15d
mov    %edx,0x4(%rsp)
test   %edx,%edx
jle    1161 <haartransform+0x31>
lea    0x0(,%r15,8),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <memset@plt>
cvtsi2sdl 0x4(%rsp),%xmm0
call   1050 <log@plt>
movapd %xmm0,%xmm2
movsd  0xe88(%rip),%xmm1
divsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
movsd  0xe7e(%rip),%xmm0
addsd  %xmm2,%xmm0
mulsd  %xmm1,%xmm0
call   1040 <exp@plt>
movsd  0x8(%rsp),%xmm2
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm2
jbe    143d <haartransform+0x30d>
cvttsd2si %xmm0,%r12
lea    0x0(,%r15,8),%rax
add    %rbp,%rax
lea    (%rbx,%r15,8),%rcx
mov    %r15d,%edx
and    $0xfffffffc,%edx
mov    %rdx,0x38(%rsp)
add    $0xfffffffffffffffc,%rdx
mov    %rdx,0x30(%rsp)
shr    $0x2,%rdx
add    $0x1,%rdx
cmp    %rbp,%rcx
seta   %cl
cmp    %rbx,%rax
seta   %al
and    %cl,%al
mov    %al,0x3(%rsp)
mov    %edx,%r13d
and    $0x3,%r13d
and    $0xfffffffffffffffc,%rdx
mov    %rdx,0x10(%rsp)
mov    %r15d,%r14d
and    $0x3,%r14d
lea    0x8(%rbp),%rax
mov    %rax,0x40(%rsp)
lea    0x10(%rbp),%rax
mov    %rax,0x20(%rsp)
lea    0x10(%rbx),%rax
mov    %rax,0x18(%rsp)
mov    %r13,0x28(%rsp)
shl    $0x5,%r13
jmp    124e <haartransform+0x11e>
nopw   0x0(%rax,%rax,1)
mov    %r12,%rax
shr    $0x3f,%rax
add    %r12,%rax
sar    %rax
ucomisd 0xdd3(%rip),%xmm2
mov    %rax,%r12
jbe    143d <haartransform+0x30d>
addsd  0xdb2(%rip),%xmm2
movsd  %xmm2,0x8(%rsp)
movapd %xmm2,%xmm0
mulsd  0xd98(%rip),%xmm0
call   1040 <exp@plt>
ucomisd 0xd9b(%rip),%xmm0
jb     12c4 <haartransform+0x194>
mov    $0x2,%eax
mov    %rbx,%rcx
mov    0x40(%rsp),%rdx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  -0x8(%rdx),%xmm1
addsd  (%rdx),%xmm1
movsd  %xmm1,(%rcx)
movsd  -0x8(%rdx),%xmm1
subsd  (%rdx),%xmm1
movsd  %xmm1,(%rcx,%r12,8)
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
add    $0x10,%rdx
add    $0x8,%rcx
add    $0x1,%eax
ucomisd %xmm1,%xmm0
jae    1290 <haartransform+0x160>
cmpl   $0x0,0x4(%rsp)
movsd  0x8(%rsp),%xmm2
jle    1230 <haartransform+0x100>
cmpl   $0x4,0x4(%rsp)
setb   %al
or     0x3(%rsp),%al
je     12f0 <haartransform+0x1c0>
xor    %eax,%eax
jmp    13c0 <haartransform+0x290>
nopw   0x0(%rax,%rax,1)
cmpq   $0xc,0x30(%rsp)
jae    12fc <haartransform+0x1cc>
xor    %eax,%eax
jmp    136d <haartransform+0x23d>
mov    0x10(%rsp),%rcx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups (%rbx,%rax,8),%xmm0
movups 0x10(%rbx,%rax,8),%xmm1
movups %xmm0,0x0(%rbp,%rax,8)
movups %xmm1,0x10(%rbp,%rax,8)
movups 0x20(%rbx,%rax,8),%xmm0
movups 0x30(%rbx,%rax,8),%xmm1
movups %xmm0,0x20(%rbp,%rax,8)
movups %xmm1,0x30(%rbp,%rax,8)
movups 0x40(%rbx,%rax,8),%xmm0
movups 0x50(%rbx,%rax,8),%xmm1
movups %xmm0,0x40(%rbp,%rax,8)
movups %xmm1,0x50(%rbp,%rax,8)
movupd 0x60(%rbx,%rax,8),%xmm0
movupd 0x70(%rbx,%rax,8),%xmm1
movupd %xmm0,0x60(%rbp,%rax,8)
movupd %xmm1,0x70(%rbp,%rax,8)
add    $0x10,%rax
add    $0xfffffffffffffffc,%rcx
jne    1310 <haartransform+0x1e0>
cmpq   $0x0,0x28(%rsp)
je     13af <haartransform+0x27f>
mov    0x20(%rsp),%rcx
lea    (%rcx,%rax,8),%rcx
mov    0x18(%rsp),%rdx
lea    (%rdx,%rax,8),%rax
xor    %edx,%edx
nopl   0x0(%rax)
movupd -0x10(%rax,%rdx,1),%xmm0
movupd (%rax,%rdx,1),%xmm1
movupd %xmm0,-0x10(%rcx,%rdx,1)
movupd %xmm1,(%rcx,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%r13
jne    1390 <haartransform+0x260>
mov    0x38(%rsp),%rcx
mov    %rcx,%rax
cmp    %r15,%rcx
je     1230 <haartransform+0x100>
mov    %rax,%rcx
not    %rcx
add    %r15,%rcx
test   %r14,%r14
je     13f5 <haartransform+0x2c5>
mov    %r14,%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rdx
jne    13e0 <haartransform+0x2b0>
cmp    $0x3,%rcx
jb     1230 <haartransform+0x100>
nop
movsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
movsd  0x8(%rbx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rbp,%rax,8)
movsd  0x10(%rbx,%rax,8),%xmm0
movsd  %xmm0,0x10(%rbp,%rax,8)
movsd  0x18(%rbx,%rax,8),%xmm0
movsd  %xmm0,0x18(%rbp,%rax,8)
add    $0x4,%rax
cmp    %rax,%r15
jne    1400 <haartransform+0x2d0>
jmp    1230 <haartransform+0x100>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @haartransform(double* %0, double* %1, i32 %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca i64
store double* %0, double** %4
store double* %1, double** %5
store i32 %2, i32* %6
store i32 0, i32* %7
br label %11
11: ; preds = %20, %3
%12 = load i32, i32* %7
%13 = load i32, i32* %6
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %23
15: ; preds = %11
%16 = load double*, double** %5
%17 = load i32, i32* %7
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds double, double* %16, i64 %18
store double 0.000000e+00, double* %19
br label %20
20: ; preds = %15
%21 = load i32, i32* %7
%22 = add nsw i32 %21, 1
store i32 %22, i32* %7
br label %11
23: ; preds = %11
%24 = load i32, i32* %6
%25 = sitofp i32 %24 to double
%26 = call double @log(double %25)
%27 = call double @log(double 2.000000e+00)
%28 = fdiv double %26, %27
store double %28, double* %8
%29 = load double, double* %8
%30 = fsub double %29, 1.000000e+00
%31 = call double @log(double 2.000000e+00)
%32 = fmul double %30, %31
%33 = call double @exp(double %32)
%34 = fptosi double %33 to i64
store i64 %34, i64* %10
%35 = load double, double* %8
store double %35, double* %9
br label %36
36: ; preds = %117, %23
%37 = load double, double* %9
%38 = fcmp ogt double %37, 0.000000e+00
br i1 %38, label %39, label %120
39: ; preds = %36
%40 = load double, double* %9
%41 = fsub double %40, 1.000000e+00
%42 = call double @log(double 2.000000e+00)
%43 = fmul double %41, %42
%44 = call double @exp(double %43)
store double %44, double* %8
store i32 1, i32* %7
br label %45
45: ; preds = %93, %39
%46 = load i32, i32* %7
%47 = sitofp i32 %46 to double
%48 = load double, double* %8
%49 = fcmp ole double %47, %48
br i1 %49, label %50, label %96
50: ; preds = %45
%51 = load double*, double** %4
%52 = load i32, i32* %7
%53 = mul nsw i32 %52, 2
%54 = sub nsw i32 %53, 2
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %51, i64 %55
%57 = load double, double* %56
%58 = load double*, double** %4
%59 = load i32, i32* %7
%60 = mul nsw i32 %59, 2
%61 = sub nsw i32 %60, 1
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, double* %58, i64 %62
%64 = load double, double* %63
%65 = fadd double %57, %64
%66 = load double*, double** %5
%67 = load i32, i32* %7
%68 = sub nsw i32 %67, 1
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, double* %66, i64 %69
store double %65, double* %70
%71 = load double*, double** %4
%72 = load i32, i32* %7
%73 = mul nsw i32 %72, 2
%74 = sub nsw i32 %73, 2
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, double* %71, i64 %75
%77 = load double, double* %76
%78 = load double*, double** %4
%79 = load i32, i32* %7
%80 = mul nsw i32 %79, 2
%81 = sub nsw i32 %80, 1
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %78, i64 %82
%84 = load double, double* %83
%85 = fsub double %77, %84
%86 = load double*, double** %5
%87 = load i32, i32* %7
%88 = sext i32 %87 to i64
%89 = load i64, i64* %10
%90 = add nsw i64 %88, %89
%91 = sub nsw i64 %90, 1
%92 = getelementptr inbounds double, double* %86, i64 %91
store double %85, double* %92
br label %93
93: ; preds = %50
%94 = load i32, i32* %7
%95 = add nsw i32 %94, 1
store i32 %95, i32* %7
br label %45
96: ; preds = %45
store i32 0, i32* %7
br label %97
97: ; preds = %111, %96
%98 = load i32, i32* %7
%99 = load i32, i32* %6
%100 = icmp slt i32 %98, %99
br i1 %100, label %101, label %114
101: ; preds = %97
%102 = load double*, double** %5
%103 = load i32, i32* %7
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds double, double* %102, i64 %104
%106 = load double, double* %105
%107 = load double*, double** %4
%108 = load i32, i32* %7
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds double, double* %107, i64 %109
store double %106, double* %110
br label %111
111: ; preds = %101
%112 = load i32, i32* %7
%113 = add nsw i32 %112, 1
store i32 %113, i32* %7
br label %97
114: ; preds = %97
%115 = load i64, i64* %10
%116 = sdiv i64 %115, 2
store i64 %116, i64* %10
br label %117
117: ; preds = %114
%118 = load double, double* %9
%119 = fadd double %118, -1.000000e+00
store double %119, double* %9
br label %36
120: ; preds = %36
ret void
}

LLVM IR (-O2):
define void @haartransform(double* nocapture %0, double* nocapture %1, i32 %2) {
%4 = icmp sgt i32 %2, 0
br i1 %4, label %5, label %9
5: ; preds = %3
%6 = bitcast double* %1 to i8*
%7 = zext i32 %2 to i64
%8 = shl nuw nsw i64 %7, 3
br label %9
9: ; preds = %5, %3
%10 = sitofp i32 %2 to double
%11 = tail call double @log(double %10)
%12 = fdiv double %11, 0x3FE62E42FEFA39EF
%13 = fadd double %12, -1.000000e+00
%14 = fmul double %13, 0x3FE62E42FEFA39EF
%15 = tail call double @exp(double %14)
%16 = fcmp ogt double %12, 0.000000e+00
br i1 %16, label %17, label %178
17: ; preds = %9
%18 = fptosi double %15 to i64
%19 = zext i32 %2 to i64
%20 = getelementptr double, double* %0, i64 %19
%21 = getelementptr double, double* %1, i64 %19
%22 = and i64 %19, 4294967292
%23 = add nsw i64 %22, -4
%24 = lshr exact i64 %23, 2
%25 = add nuw nsw i64 %24, 1
%26 = icmp ult i32 %2, 4
%27 = icmp ugt double* %21, %0
%28 = icmp ugt double* %20, %1
%29 = and i1 %27, %28
%30 = and i64 %19, 4294967292
%31 = and i64 %25, 3
%32 = icmp ult i64 %23, 12
%33 = and i64 %25, 9223372036854775804
%34 = icmp eq i64 %31, 0
%35 = icmp eq i64 %30, %19
%36 = and i64 %19, 3
%37 = icmp eq i64 %36, 0
br label %38
38: ; preds = %17, %175
%39 = phi i64 [ %18, %17 ], [ %176, %175 ]
%40 = phi double [ %12, %17 ], [ %41, %175 ]
%41 = fadd double %40, -1.000000e+00
%42 = fmul double %41, 0x3FE62E42FEFA39EF
%43 = tail call double @exp(double %42)
%44 = fcmp ult double %43, 1.000000e+00
br i1 %44, label %47, label %45
45: ; preds = %38
%46 = add i64 %39, -1
br label %135
47: ; preds = %135, %38
br i1 %4, label %48, label %175
48: ; preds = %47
%49 = or i1 %26, %29
br i1 %49, label %119, label %50
50: ; preds = %48
br i1 %32, label %100, label %51
51: ; preds = %50, %51
%52 = phi i64 [ %97, %51 ], [ 0, %50 ]
%53 = phi i64 [ %98, %51 ], [ 0, %50 ]
%54 = getelementptr inbounds double, double* %1, i64 %52
%55 = bitcast double* %54 to <2 x double>*
%56 = load <2 x double>, <2 x double>* %55
%57 = getelementptr inbounds double, double* %54, i64 2
%58 = bitcast double* %57 to <2 x double>*
%59 = load <2 x double>, <2 x double>* %58
%60 = getelementptr inbounds double, double* %0, i64 %52
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> %56, <2 x double>* %61
%62 = getelementptr inbounds double, double* %60, i64 2
%63 = bitcast double* %62 to <2 x double>*
store <2 x double> %59, <2 x double>* %63
%64 = or i64 %52, 4
%65 = getelementptr inbounds double, double* %1, i64 %64
%66 = bitcast double* %65 to <2 x double>*
%67 = load <2 x double>, <2 x double>* %66
%68 = getelementptr inbounds double, double* %65, i64 2
%69 = bitcast double* %68 to <2 x double>*
%70 = load <2 x double>, <2 x double>* %69
%71 = getelementptr inbounds double, double* %0, i64 %64
%72 = bitcast double* %71 to <2 x double>*
store <2 x double> %67, <2 x double>* %72
%73 = getelementptr inbounds double, double* %71, i64 2
%74 = bitcast double* %73 to <2 x double>*
store <2 x double> %70, <2 x double>* %74
%75 = or i64 %52, 8
%76 = getelementptr inbounds double, double* %1, i64 %75
%77 = bitcast double* %76 to <2 x double>*
%78 = load <2 x double>, <2 x double>* %77
%79 = getelementptr inbounds double, double* %76, i64 2
%80 = bitcast double* %79 to <2 x double>*
%81 = load <2 x double>, <2 x double>* %80
%82 = getelementptr inbounds double, double* %0, i64 %75
%83 = bitcast double* %82 to <2 x double>*
store <2 x double> %78, <2 x double>* %83
%84 = getelementptr inbounds double, double* %82, i64 2
%85 = bitcast double* %84 to <2 x double>*
store <2 x double> %81, <2 x double>* %85
%86 = or i64 %52, 12
%87 = getelementptr inbounds double, double* %1, i64 %86
%88 = bitcast double* %87 to <2 x double>*
%89 = load <2 x double>, <2 x double>* %88
%90 = getelementptr inbounds double, double* %87, i64 2
%91 = bitcast double* %90 to <2 x double>*
%92 = load <2 x double>, <2 x double>* %91
%93 = getelementptr inbounds double, double* %0, i64 %86
%94 = bitcast double* %93 to <2 x double>*
store <2 x double> %89, <2 x double>* %94
%95 = getelementptr inbounds double, double* %93, i64 2
%96 = bitcast double* %95 to <2 x double>*
store <2 x double> %92, <2 x double>* %96
%97 = add nuw i64 %52, 16
%98 = add nuw i64 %53, 4
%99 = icmp eq i64 %98, %33
br i1 %99, label %100, label %51
100: ; preds = %51, %50
%101 = phi i64 [ 0, %50 ], [ %97, %51 ]
br i1 %34, label %118, label %102
102: ; preds = %100, %102
%103 = phi i64 [ %115, %102 ], [ %101, %100 ]
%104 = phi i64 [ %116, %102 ], [ 0, %100 ]
%105 = getelementptr inbounds double, double* %1, i64 %103
%106 = bitcast double* %105 to <2 x double>*
%107 = load <2 x double>, <2 x double>* %106
%108 = getelementptr inbounds double, double* %105, i64 2
%109 = bitcast double* %108 to <2 x double>*
%110 = load <2 x double>, <2 x double>* %109
%111 = getelementptr inbounds double, double* %0, i64 %103
%112 = bitcast double* %111 to <2 x double>*
store <2 x double> %107, <2 x double>* %112
%113 = getelementptr inbounds double, double* %111, i64 2
%114 = bitcast double* %113 to <2 x double>*
store <2 x double> %110, <2 x double>* %114
%115 = add nuw i64 %103, 4
%116 = add i64 %104, 1
%117 = icmp eq i64 %116, %31
br i1 %117, label %118, label %102
118: ; preds = %102, %100
br i1 %35, label %175, label %119
119: ; preds = %48, %118
%120 = phi i64 [ 0, %48 ], [ %30, %118 ]
%121 = xor i64 %120, -1
%122 = add nsw i64 %121, %19
br i1 %37, label %132, label %123
123: ; preds = %119, %123
%124 = phi i64 [ %129, %123 ], [ %120, %119 ]
%125 = phi i64 [ %130, %123 ], [ 0, %119 ]
%126 = getelementptr inbounds double, double* %1, i64 %124
%127 = load double, double* %126
%128 = getelementptr inbounds double, double* %0, i64 %124
store double %127, double* %128
%129 = add nuw nsw i64 %124, 1
%130 = add i64 %125, 1
%131 = icmp eq i64 %130, %36
br i1 %131, label %132, label %123
132: ; preds = %123, %119
%133 = phi i64 [ %120, %119 ], [ %129, %123 ]
%134 = icmp ult i64 %122, 3
br i1 %134, label %175, label %156
135: ; preds = %45, %135
%136 = phi i64 [ 1, %45 ], [ %152, %135 ]
%137 = shl nuw nsw i64 %136, 1
%138 = add nsw i64 %137, -2
%139 = getelementptr inbounds double, double* %0, i64 %138
%140 = load double, double* %139
%141 = add nsw i64 %137, -1
%142 = getelementptr inbounds double, double* %0, i64 %141
%143 = load double, double* %142
%144 = fadd double %140, %143
%145 = add nsw i64 %136, -1
%146 = getelementptr inbounds double, double* %1, i64 %145
store double %144, double* %146
%147 = load double, double* %139
%148 = load double, double* %142
%149 = fsub double %147, %148
%150 = add i64 %46, %136
%151 = getelementptr inbounds double, double* %1, i64 %150
store double %149, double* %151
%152 = add nuw i64 %136, 1
%153 = trunc i64 %152 to i32
%154 = sitofp i32 %153 to double
%155 = fcmp ult double %43, %154
br i1 %155, label %47, label %135
156: ; preds = %132, %156
%157 = phi i64 [ %173, %156 ], [ %133, %132 ]
%158 = getelementptr inbounds double, double* %1, i64 %157
%159 = load double, double* %158
%160 = getelementptr inbounds double, double* %0, i64 %157
store double %159, double* %160
%161 = add nuw nsw i64 %157, 1
%162 = getelementptr inbounds double, double* %1, i64 %161
%163 = load double, double* %162
%164 = getelementptr inbounds double, double* %0, i64 %161
store double %163, double* %164
%165 = add nuw nsw i64 %157, 2
%166 = getelementptr inbounds double, double* %1, i64 %165
%167 = load double, double* %166
%168 = getelementptr inbounds double, double* %0, i64 %165
store double %167, double* %168
%169 = add nuw nsw i64 %157, 3
%170 = getelementptr inbounds double, double* %1, i64 %169
%171 = load double, double* %170
%172 = getelementptr inbounds double, double* %0, i64 %169
store double %171, double* %172
%173 = add nuw nsw i64 %157, 4
%174 = icmp eq i64 %173, %19
br i1 %174, label %175, label %156
175: ; preds = %132, %156, %118, %47
%176 = sdiv i64 %39, 2
%177 = fcmp ogt double %41, 0.000000e+00
br i1 %177, label %38, label %178
178: ; preds = %175, %9
ret void
}