#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 */
double L2Norm(unsigned int, double *);
double *doubleVector(unsigned int, int /*<<< orphan*/);
int /*<<< orphan*/ free(double *);
int /*<<< orphan*/ matVectProd(unsigned int, double **, double *, double *);
void initRes(unsigned int size, double **A, double *x, double *B, double *r) {
  unsigned int i;
  double norm;
  double *y;
  y = doubleVector(size, 0);
  norm = L2Norm(size, x);
  if (norm != 0.0) {
    matVectProd(size, A, x, y);
    for (i = 0; i < size; i++)
      r[i] = B[i] - y[i];
  } else
    for (i = 0; i < size; i++)
      r[i] = B[i];
  free(y);
}


x86 assembly (clang, -O0):
<initRes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1040 <doubleVector@plt>
mov    %rax,-0x40(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1050 <L2Norm@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1197 <initRes+0x57>
jp     1197 <initRes+0x57>
jmp    11f5 <initRes+0xb5>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x40(%rbp),%rcx
call   1060 <matVectProd@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    11f0 <initRes+0xb0>
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x2c(%rbp),%ecx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11b2 <initRes+0x72>
jmp    1233 <initRes+0xf3>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    122e <initRes+0xee>
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11fc <initRes+0xbc>
jmp    1233 <initRes+0xf3>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<initRes>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r8,%rbx
mov    %rcx,%r14
mov    %rdx,%r12
mov    %rsi,%r13
mov    %edi,%ebp
xor    %esi,%esi
call   1040 <doubleVector@plt>
mov    %rax,%r15
mov    %ebp,%edi
mov    %r12,%rsi
call   1050 <L2Norm@plt>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1179 <initRes+0x39>
jnp    11a3 <initRes+0x63>
mov    %ebp,%edi
mov    %r13,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
call   1060 <matVectProd@plt>
test   %ebp,%ebp
je     13f6 <initRes+0x2b6>
mov    %ebp,%eax
cmp    $0x4,%ebp
jae    1240 <initRes+0x100>
xor    %ecx,%ecx
jmp    1352 <initRes+0x212>
test   %ebp,%ebp
je     13f6 <initRes+0x2b6>
mov    %ebp,%eax
cmp    $0x4,%ebp
jb     11cc <initRes+0x8c>
lea    (%r14,%rax,8),%rcx
cmp    %rbx,%rcx
jbe    140c <initRes+0x2cc>
lea    (%rbx,%rax,8),%rcx
cmp    %r14,%rcx
jbe    140c <initRes+0x2cc>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %rax,%rdx
mov    %rax,%rsi
and    $0x3,%rsi
je     11f5 <initRes+0xb5>
movsd  (%r14,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    11e0 <initRes+0xa0>
cmp    $0x3,%rdx
jb     13f6 <initRes+0x2b6>
nop
movsd  (%r14,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  0x8(%r14,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rcx,8)
movsd  0x10(%r14,%rcx,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rcx,8)
movsd  0x18(%r14,%rcx,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    1200 <initRes+0xc0>
jmp    13f6 <initRes+0x2b6>
lea    (%r14,%rax,8),%rcx
cmp    %rbx,%rcx
seta   %dil
lea    (%rbx,%rax,8),%rcx
cmp    %r14,%rcx
seta   %r8b
lea    (%r15,%rax,8),%rdx
cmp    %rbx,%rdx
seta   %dl
cmp    %rcx,%r15
setb   %sil
xor    %ecx,%ecx
test   %r8b,%dil
jne    1352 <initRes+0x212>
and    %sil,%dl
jne    1352 <initRes+0x212>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rsi,%rsi
je     1432 <initRes+0x2f2>
movabs $0x7ffffffffffffffc,%rdi
ff ff 7f
or     $0x2,%rdi
and    %rdx,%rdi
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
movupd (%r14,%rsi,8),%xmm0
movupd 0x10(%r14,%rsi,8),%xmm1
movupd (%r15,%rsi,8),%xmm2
subpd  %xmm2,%xmm0
movupd 0x10(%r15,%rsi,8),%xmm2
subpd  %xmm2,%xmm1
movupd %xmm0,(%rbx,%rsi,8)
movupd %xmm1,0x10(%rbx,%rsi,8)
movupd 0x20(%r14,%rsi,8),%xmm0
movupd 0x30(%r14,%rsi,8),%xmm1
movupd 0x20(%r15,%rsi,8),%xmm2
subpd  %xmm2,%xmm0
movupd 0x30(%r15,%rsi,8),%xmm2
subpd  %xmm2,%xmm1
movupd %xmm0,0x20(%rbx,%rsi,8)
movupd %xmm1,0x30(%rbx,%rsi,8)
add    $0x8,%rsi
add    $0xfffffffffffffffe,%rdi
jne    12b0 <initRes+0x170>
test   $0x1,%dl
je     1349 <initRes+0x209>
movupd (%r14,%rsi,8),%xmm0
movupd 0x10(%r14,%rsi,8),%xmm1
movupd (%r15,%rsi,8),%xmm2
subpd  %xmm2,%xmm0
movupd 0x10(%r15,%rsi,8),%xmm2
subpd  %xmm2,%xmm1
movupd %xmm0,(%rbx,%rsi,8)
movupd %xmm1,0x10(%rbx,%rsi,8)
cmp    %rax,%rcx
je     13f6 <initRes+0x2b6>
mov    %rcx,%rdx
not    %rdx
add    %rax,%rdx
mov    %rax,%rsi
and    $0x3,%rsi
je     138b <initRes+0x24b>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%r14,%rcx,8),%xmm0
subsd  (%r15,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    1370 <initRes+0x230>
cmp    $0x3,%rdx
jb     13f6 <initRes+0x2b6>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%r14,%rcx,8),%xmm0
subsd  (%r15,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  0x8(%r14,%rcx,8),%xmm0
subsd  0x8(%r15,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rcx,8)
movsd  0x10(%r14,%rcx,8),%xmm0
subsd  0x10(%r15,%rcx,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rcx,8)
movsd  0x18(%r14,%rcx,8),%xmm0
subsd  0x18(%r15,%rcx,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    13a0 <initRes+0x260>
mov    %r15,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdi
mov    %rdi,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %esi,%edx
and    $0x3,%edx
cmp    $0xc,%rdi
jae    1442 <initRes+0x302>
xor    %edi,%edi
jmp    14b4 <initRes+0x374>
xor    %esi,%esi
test   $0x1,%dl
jne    131c <initRes+0x1dc>
jmp    1349 <initRes+0x209>
and    $0xfffffffffffffffc,%rsi
xor    %edi,%edi
nopl   0x0(%rax,%rax,1)
movups (%r14,%rdi,8),%xmm0
movups 0x10(%r14,%rdi,8),%xmm1
movups %xmm0,(%rbx,%rdi,8)
movups %xmm1,0x10(%rbx,%rdi,8)
movups 0x20(%r14,%rdi,8),%xmm0
movups 0x30(%r14,%rdi,8),%xmm1
movups %xmm0,0x20(%rbx,%rdi,8)
movups %xmm1,0x30(%rbx,%rdi,8)
movups 0x40(%r14,%rdi,8),%xmm0
movups 0x50(%r14,%rdi,8),%xmm1
movups %xmm0,0x40(%rbx,%rdi,8)
movups %xmm1,0x50(%rbx,%rdi,8)
movupd 0x60(%r14,%rdi,8),%xmm0
movupd 0x70(%r14,%rdi,8),%xmm1
movupd %xmm0,0x60(%rbx,%rdi,8)
movupd %xmm1,0x70(%rbx,%rdi,8)
add    $0x10,%rdi
add    $0xfffffffffffffffc,%rsi
jne    1450 <initRes+0x310>
test   %rdx,%rdx
je     14ef <initRes+0x3af>
lea    (%rbx,%rdi,8),%rsi
add    $0x10,%rsi
lea    (%r14,%rdi,8),%rdi
add    $0x10,%rdi
shl    $0x5,%rdx
xor    %ebp,%ebp
nop
movupd -0x10(%rdi,%rbp,1),%xmm0
movupd (%rdi,%rbp,1),%xmm1
movupd %xmm0,-0x10(%rsi,%rbp,1)
movupd %xmm1,(%rsi,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rdx
jne    14d0 <initRes+0x390>
cmp    %rax,%rcx
je     13f6 <initRes+0x2b6>
jmp    11ce <initRes+0x8e>

LLVM IR (-O0):
define void @initRes(i32 %0, double** %1, double* %2, double* %3, double* %4) {
%6 = alloca i32
%7 = alloca double**
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca double
%13 = alloca double*
store i32 %0, i32* %6
store double** %1, double*** %7
store double* %2, double** %8
store double* %3, double** %9
store double* %4, double** %10
%14 = load i32, i32* %6
%15 = call double* @doubleVector(i32 %14, i32 0)
store double* %15, double** %13
%16 = load i32, i32* %6
%17 = load double*, double** %8
%18 = call double @L2Norm(i32 %16, double* %17)
store double %18, double* %12
%19 = load double, double* %12
%20 = fcmp une double %19, 0.000000e+00
br i1 %20, label %21, label %51
21: ; preds = %5
%22 = load i32, i32* %6
%23 = load double**, double*** %7
%24 = load double*, double** %8
%25 = load double*, double** %13
%26 = call i32 @matVectProd(i32 %22, double** %23, double* %24, double* %25)
store i32 0, i32* %11
br label %27
27: ; preds = %47, %21
%28 = load i32, i32* %11
%29 = load i32, i32* %6
%30 = icmp ult i32 %28, %29
br i1 %30, label %31, label %50
31: ; preds = %27
%32 = load double*, double** %9
%33 = load i32, i32* %11
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds double, double* %32, i64 %34
%36 = load double, double* %35
%37 = load double*, double** %13
%38 = load i32, i32* %11
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds double, double* %37, i64 %39
%41 = load double, double* %40
%42 = fsub double %36, %41
%43 = load double*, double** %10
%44 = load i32, i32* %11
%45 = zext i32 %44 to i64
%46 = getelementptr inbounds double, double* %43, i64 %45
store double %42, double* %46
br label %47
47: ; preds = %31
%48 = load i32, i32* %11
%49 = add i32 %48, 1
store i32 %49, i32* %11
br label %27
50: ; preds = %27
br label %70
51: ; preds = %5
store i32 0, i32* %11
br label %52
52: ; preds = %66, %51
%53 = load i32, i32* %11
%54 = load i32, i32* %6
%55 = icmp ult i32 %53, %54
br i1 %55, label %56, label %69
56: ; preds = %52
%57 = load double*, double** %9
%58 = load i32, i32* %11
%59 = zext i32 %58 to i64
%60 = getelementptr inbounds double, double* %57, i64 %59
%61 = load double, double* %60
%62 = load double*, double** %10
%63 = load i32, i32* %11
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds double, double* %62, i64 %64
store double %61, double* %65
br label %66
66: ; preds = %56
%67 = load i32, i32* %11
%68 = add i32 %67, 1
store i32 %68, i32* %11
br label %52
69: ; preds = %52
br label %70
70: ; preds = %69, %50
%71 = load double*, double** %13
%72 = call i32 @free(double* %71)
ret void
}

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