#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ free(double *);
double *malloc(int);
void conv(double *sigIn, int sigInLength, double *sigOut, int sigOutLength,
          double *filter, int filterLength) {
  int count = 0;
  int bufferLength = 0;
  int conCount = 0;
  double *pBuf;
  bufferLength = sigInLength + 2 * (filterLength - 1);
  pBuf = malloc(bufferLength * sizeof(double));
  for (count = 0; count < filterLength - 1; count++) {
    pBuf[count] = 0;
    pBuf[count + sigInLength + filterLength - 1] = 0;
  }
  for (count = 0; count < sigInLength; count++)
    pBuf[count + filterLength - 1] = sigIn[count];
  for (count = 0; count < sigOutLength; count++) {
    sigOut[count] = 0;
    for (conCount = filterLength - 1; conCount >= 0; conCount--) {
      sigOut[count] +=
          filter[conCount] * pBuf[count + filterLength - conCount - 1];
    }
  }
  free(pBuf);
  return;
}


x86 assembly (clang, -O0):
<conv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
shl    $0x1,%ecx
add    %ecx,%eax
mov    %eax,-0x34(%rbp)
movslq -0x34(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    11c8 <conv+0xa8>
mov    -0x40(%rbp),%rax
movslq -0x30(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    -0xc(%rbp),%ecx
add    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    117e <conv+0x5e>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    120b <conv+0xeb>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11cf <conv+0xaf>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12a1 <conv+0x181>
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x38(%rbp)
jl     128e <conv+0x16e>
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    -0x2c(%rbp),%ecx
sub    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x38(%rbp)
jmp    1237 <conv+0x117>
jmp    1293 <conv+0x173>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1212 <conv+0xf2>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<conv>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9d,%r14d
mov    %r8,%r15
mov    %ecx,0xc(%rsp)
mov    %rdx,%r12
mov    %esi,%r13d
mov    %rdi,%rbp
lea    -0x1(%r14),%ebx
lea    -0x2(%r13,%r14,2),%edi
shl    $0x3,%edi
call   1040 <malloc@plt>
mov    %ebx,%r11d
cmp    $0x2,%r14d
jl     11ef <conv+0xcf>
lea    (%rbx,%r13,1),%r9d
mov    %r11d,%r10d
cmp    $0x4,%ebx
jae    145d <conv+0x33d>
xor    %esi,%esi
mov    %rsi,%rcx
not    %rcx
test   $0x1,%r10b
je     1197 <conv+0x77>
movq   $0x0,(%rax,%rsi,8)
add    %esi,%r9d
movslq %r9d,%rdx
movq   $0x0,(%rax,%rdx,8)
or     $0x1,%rsi
neg    %r10
cmp    %r10,%rcx
je     11ef <conv+0xcf>
lea    0x1(%rsi),%rcx
add    %r14d,%esi
add    %r13d,%esi
nopl   0x0(%rax)
movq   $0x0,-0x8(%rax,%rcx,8)
lea    -0x1(%rsi),%edx
movslq %edx,%rdx
movq   $0x0,(%rax,%rdx,8)
movq   $0x0,(%rax,%rcx,8)
movslq %esi,%rsi
movq   $0x0,(%rax,%rsi,8)
lea    (%r10,%rcx,1),%rdx
add    $0x2,%rdx
add    $0x2,%rcx
add    $0x2,%esi
cmp    $0x1,%rdx
jne    11b0 <conv+0x90>
test   %r13d,%r13d
mov    0xc(%rsp),%r10d
jle    135c <conv+0x23c>
mov    %r13d,%r9d
cmp    $0x4,%r13d
jae    12a4 <conv+0x184>
xor    %esi,%esi
mov    %rsi,%rdi
not    %rdi
add    %r9,%rdi
mov    %r9,%rcx
and    $0x3,%rcx
je     123c <conv+0x11c>
xchg   %ax,%ax
movsd  0x0(%rbp,%rsi,8),%xmm0
lea    (%r11,%rsi,1),%edx
movslq %edx,%rdx
movsd  %xmm0,(%rax,%rdx,8)
add    $0x1,%rsi
add    $0xffffffffffffffff,%rcx
jne    1220 <conv+0x100>
cmp    $0x3,%rdi
jb     135c <conv+0x23c>
mov    %r14d,%edi
nopl   0x0(%rax)
movsd  0x0(%rbp,%rsi,8),%xmm0
lea    (%r11,%rsi,1),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  0x8(%rbp,%rsi,8),%xmm0
lea    (%rdi,%rsi,1),%rcx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  0x10(%rbp,%rsi,8),%xmm0
lea    0x1(%rcx),%edx
movslq %edx,%rdx
movsd  %xmm0,(%rax,%rdx,8)
movsd  0x18(%rbp,%rsi,8),%xmm0
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
add    $0x4,%rsi
cmp    %rsi,%r9
jne    1250 <conv+0x130>
jmp    135c <conv+0x23c>
lea    -0x1(%r9),%rcx
lea    (%rbx,%rcx,1),%edi
xor    %esi,%esi
cmp    %ebx,%edi
jl     120c <conv+0xec>
shr    $0x20,%rcx
jne    120c <conv+0xec>
mov    %rbx,%r13
mov    %r9d,%esi
and    $0xfffffffc,%esi
lea    -0x4(%rsi),%rcx
mov    %rcx,%r8
shr    $0x2,%r8
add    $0x1,%r8
test   %rcx,%rcx
je     156d <conv+0x44d>
mov    %r8,%rbx
and    $0xfffffffffffffffe,%rbx
lea    0x3(%r14),%ecx
xor    %edi,%edi
nopl   (%rax)
movups 0x0(%rbp,%rdi,8),%xmm0
movups 0x10(%rbp,%rdi,8),%xmm1
lea    -0x4(%rcx),%edx
movslq %edx,%rdx
movups %xmm0,(%rax,%rdx,8)
movups %xmm1,0x10(%rax,%rdx,8)
movupd 0x20(%rbp,%rdi,8),%xmm0
movupd 0x30(%rbp,%rdi,8),%xmm1
movslq %ecx,%rcx
movupd %xmm0,(%rax,%rcx,8)
movupd %xmm1,0x10(%rax,%rcx,8)
add    $0x8,%rdi
add    $0x8,%ecx
add    $0xfffffffffffffffe,%rbx
jne    12f0 <conv+0x1d0>
test   $0x1,%r8b
je     1353 <conv+0x233>
movupd 0x0(%rbp,%rdi,8),%xmm0
movupd 0x10(%rbp,%rdi,8),%xmm1
add    %edi,%r13d
movslq %r13d,%rcx
movupd %xmm0,(%rax,%rcx,8)
movupd %xmm1,0x10(%rax,%rcx,8)
cmp    %r9,%rsi
jne    120c <conv+0xec>
test   %r10d,%r10d
jle    1447 <conv+0x327>
movslq %r14d,%r11
mov    %r10d,%r10d
lea    -0x1(%r11),%r8
mov    %r8d,%r9d
not    %r9d
lea    0x1(%r14),%ebp
xor    %esi,%esi
xorpd  %xmm0,%xmm0
mov    %r14d,%edi
jmp    13a3 <conv+0x283>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rsi
add    $0x1,%ebp
add    $0x1,%edi
cmp    %r10,%rsi
je     1447 <conv+0x327>
movq   $0x0,(%r12,%rsi,8)
test   %r14d,%r14d
jle    1390 <conv+0x270>
xorpd  %xmm1,%xmm1
mov    %r11,%r13
test   $0x1,%r11b
je     13e0 <conv+0x2c0>
lea    (%rsi,%r14,1),%ecx
add    %r9d,%ecx
movsd  -0x8(%r15,%r11,8),%xmm1
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%r12,%rsi,8)
mov    %r8,%r13
cmp    $0x1,%r14d
je     1390 <conv+0x270>
lea    0x2(%r13),%rdx
mov    %ebp,%ecx
sub    %r13d,%ecx
mov    %edi,%ebx
sub    %r13d,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  -0x18(%r15,%rdx,8),%xmm2
movslq %ebx,%rbx
mulsd  (%rax,%rbx,8),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%r12,%rsi,8)
movsd  -0x20(%r15,%rdx,8),%xmm1
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,(%r12,%rsi,8)
add    $0xfffffffffffffffe,%rdx
add    $0x2,%ecx
add    $0x2,%ebx
cmp    $0x2,%rdx
jg     1400 <conv+0x2e0>
jmp    1390 <conv+0x270>
mov    %rax,%rdi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
lea    -0x1(%r10),%rcx
lea    (%r14,%r13,1),%edx
lea    (%r14,%r13,1),%edi
add    $0xffffffff,%edi
add    %ecx,%edx
add    $0xffffffff,%edx
xor    %esi,%esi
cmp    %edi,%edx
jl     1171 <conv+0x51>
shr    $0x20,%rcx
jne    1171 <conv+0x51>
lea    (%r14,%r13,1),%ecx
add    $0xffffffff,%ecx
movslq %ecx,%rcx
lea    (%rcx,%r10,1),%rdx
lea    (%rax,%rdx,8),%rdx
cmp    %rdx,%rax
jae    14ad <conv+0x38d>
lea    (%rax,%r10,8),%rdx
lea    (%rax,%rcx,8),%rcx
cmp    %rdx,%rcx
jb     116f <conv+0x4f>
mov    %rbx,0x10(%rsp)
mov    %r10d,%esi
and    $0xfffffffc,%esi
lea    -0x4(%rsi),%rcx
mov    %rcx,%r8
shr    $0x2,%r8
add    $0x1,%r8
test   %rcx,%rcx
je     157e <conv+0x45e>
mov    %r8,%rbx
and    $0xfffffffffffffffe,%rbx
lea    (%r14,%r13,1),%edx
add    $0x3,%edx
xor    %edi,%edi
xorpd  %xmm0,%xmm0
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd %xmm0,(%rax,%rdi,8)
movupd %xmm0,0x10(%rax,%rdi,8)
lea    -0x4(%rdx),%ecx
movslq %ecx,%rcx
movupd %xmm0,(%rax,%rcx,8)
movupd %xmm0,0x10(%rax,%rcx,8)
movupd %xmm0,0x20(%rax,%rdi,8)
movupd %xmm0,0x30(%rax,%rdi,8)
movslq %edx,%rdx
movupd %xmm0,(%rax,%rdx,8)
movupd %xmm0,0x10(%rax,%rdx,8)
add    $0x8,%rdi
add    $0x8,%edx
add    $0xfffffffffffffffe,%rbx
jne    14f0 <conv+0x3d0>
test   $0x1,%r8b
je     155a <conv+0x43a>
xorpd  %xmm0,%xmm0
movupd %xmm0,(%rax,%rdi,8)
movupd %xmm0,0x10(%rax,%rdi,8)
lea    (%r9,%rdi,1),%ecx
movslq %ecx,%rcx
movupd %xmm0,(%rax,%rcx,8)
movupd %xmm0,0x10(%rax,%rcx,8)
cmp    %r10,%rsi
mov    0x10(%rsp),%rbx
jne    1171 <conv+0x51>
jmp    11ef <conv+0xcf>
xor    %edi,%edi
test   $0x1,%r8b
jne    1336 <conv+0x216>
jmp    1353 <conv+0x233>
xor    %edi,%edi
test   $0x1,%r8b
jne    1539 <conv+0x419>
jmp    155a <conv+0x43a>

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

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