#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*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ memcpy(double *, double const *, long);
int /*<<< orphan*/ stderr;
void presh(double *restrict fullp, double *halfp, const double *restrict vct,
           const double *restrict ps, long nhlev, long ngp) {
  long i, lh;
  double zp, ze;
  double *halfpres = halfp;
  if (ps == NULL) {
    fprintf(stderr, "ps undefined!\n");
    exit(EXIT_FAILURE);
  }
  for (lh = 0; lh < nhlev; lh++) {
    zp = vct[lh];
    ze = vct[lh + nhlev + 1];
    for (i = 0; i < ngp; i++)
      halfpres[i] = zp + ze * ps[i];
    halfpres += ngp;
  }
  memcpy(halfpres, ps, ngp * sizeof(double));
  if (fullp) {
    halfpres = halfp;
    for (i = 0; i < ngp * nhlev; i++)
      fullp[i] = 0.5 * (halfpres[i] + halfpres[i + ngp]);
  }
}


x86 assembly (clang, -O0):
<presh>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1186 <presh+0x56>
mov    0x2e76(%rip),%rax
mov    (%rax),%edi
lea    0xe95(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e59(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
movq   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x28(%rbp),%rax
jge    1239 <presh+0x109>
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
add    -0x28(%rbp),%rcx
movsd  0x8(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    1218 <presh+0xe8>
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x58(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    11cd <presh+0x9d>
mov    -0x30(%rbp),%rax
shl    $0x3,%rax
add    -0x58(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    118e <presh+0x5e>
mov    -0x58(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x30(%rbp),%rdx
shl    $0x3,%rdx
call   1040 <memcpy@plt>
cmpq   $0x0,-0x8(%rbp)
je     12cc <presh+0x19c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x30(%rbp),%rcx
imul   -0x28(%rbp),%rcx
cmp    %rcx,%rax
jge    12c7 <presh+0x197>
mov    -0x58(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x58(%rbp),%rax
mov    -0x38(%rbp),%rcx
add    -0x30(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm1
movsd  0xd5b(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    1269 <presh+0x139>
jmp    12cc <presh+0x19c>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<presh>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
test   %rcx,%rcx
je     141b <presh+0x2eb>
mov    %r9,%rbx
mov    %r8,%r12
mov    %rsi,%r14
mov    %rdi,%r15
mov    %rsi,%rdi
test   %r8,%r8
jle    12a0 <presh+0x170>
lea    -0x4(%rbx),%r8
mov    %r8,%r10
shr    $0x2,%r10
add    $0x1,%r10
mov    %rbx,%r11
and    $0xfffffffffffffffc,%r11
mov    %r10,%r9
and    $0xfffffffffffffffe,%r9
lea    0x0(,%rbx,8),%r13
xor    %eax,%eax
mov    %r14,%rdi
jmp    119c <presh+0x6c>
nopl   0x0(%rax,%rax,1)
add    %r13,%rdi
cmp    %r12,%rax
je     12a0 <presh+0x170>
mov    %rax,%rsi
add    $0x1,%rax
test   %rbx,%rbx
jle    1190 <presh+0x60>
movsd  (%rdx,%rsi,8),%xmm0
add    %r12,%rsi
add    $0x1,%rsi
movsd  (%rdx,%rsi,8),%xmm1
cmp    $0x4,%rbx
jae    11d0 <presh+0xa0>
xor    %esi,%esi
jmp    1280 <presh+0x150>
cs nopw 0x0(%rax,%rax,1)
movapd %xmm1,%xmm2
unpcklpd %xmm1,%xmm2
movapd %xmm0,%xmm3
unpcklpd %xmm0,%xmm3
cmp    $0x4,%r8
jae    11ea <presh+0xba>
xor    %esi,%esi
jmp    1248 <presh+0x118>
mov    %r9,%rbp
xor    %esi,%esi
nop
movupd (%rcx,%rsi,8),%xmm4
movupd 0x10(%rcx,%rsi,8),%xmm5
mulpd  %xmm2,%xmm4
addpd  %xmm3,%xmm4
mulpd  %xmm2,%xmm5
addpd  %xmm3,%xmm5
movupd %xmm4,(%rdi,%rsi,8)
movupd %xmm5,0x10(%rdi,%rsi,8)
movupd 0x20(%rcx,%rsi,8),%xmm4
movupd 0x30(%rcx,%rsi,8),%xmm5
mulpd  %xmm2,%xmm4
addpd  %xmm3,%xmm4
mulpd  %xmm2,%xmm5
addpd  %xmm3,%xmm5
movupd %xmm4,0x20(%rdi,%rsi,8)
movupd %xmm5,0x30(%rdi,%rsi,8)
add    $0x8,%rsi
add    $0xfffffffffffffffe,%rbp
jne    11f0 <presh+0xc0>
test   $0x1,%r10b
je     1274 <presh+0x144>
movupd (%rcx,%rsi,8),%xmm4
movupd 0x10(%rcx,%rsi,8),%xmm5
mulpd  %xmm2,%xmm4
addpd  %xmm3,%xmm4
mulpd  %xmm2,%xmm5
addpd  %xmm3,%xmm5
movupd %xmm4,(%rdi,%rsi,8)
movupd %xmm5,0x10(%rdi,%rsi,8)
mov    %r11,%rsi
cmp    %rbx,%r11
je     1190 <presh+0x60>
movsd  (%rcx,%rsi,8),%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
movsd  %xmm2,(%rdi,%rsi,8)
add    $0x1,%rsi
cmp    %rsi,%rbx
jne    1280 <presh+0x150>
jmp    1190 <presh+0x60>
lea    0x0(,%rbx,8),%rdx
mov    %rcx,%rsi
call   1040 <memcpy@plt>
test   %r15,%r15
je     13fe <presh+0x2ce>
imul   %rbx,%r12
test   %r12,%r12
jle    13fe <presh+0x2ce>
cmp    $0x4,%r12
jae    12d3 <presh+0x1a3>
xor    %eax,%eax
jmp    13d1 <presh+0x2a1>
mov    %r12,%rax
and    $0xfffffffffffffffc,%rax
lea    -0x4(%rax),%rcx
mov    %rcx,%r8
shr    $0x2,%r8
add    $0x1,%r8
test   %rcx,%rcx
je     140d <presh+0x2dd>
mov    %r8,%rsi
and    $0xfffffffffffffffe,%rsi
lea    0x30(%r14),%rdi
lea    (%r14,%rbx,8),%rdx
add    $0x30,%rdx
xor    %ecx,%ecx
movapd 0xcf1(%rip),%xmm0
nop
movupd -0x30(%rdi,%rcx,8),%xmm1
movupd -0x20(%rdi,%rcx,8),%xmm2
movupd -0x30(%rdx,%rcx,8),%xmm3
addpd  %xmm1,%xmm3
movupd -0x20(%rdx,%rcx,8),%xmm1
addpd  %xmm2,%xmm1
mulpd  %xmm0,%xmm3
mulpd  %xmm0,%xmm1
movupd %xmm3,(%r15,%rcx,8)
movupd %xmm1,0x10(%r15,%rcx,8)
movupd -0x10(%rdi,%rcx,8),%xmm1
movupd (%rdi,%rcx,8),%xmm2
movupd -0x10(%rdx,%rcx,8),%xmm3
addpd  %xmm1,%xmm3
movupd (%rdx,%rcx,8),%xmm1
addpd  %xmm2,%xmm1
mulpd  %xmm0,%xmm3
mulpd  %xmm0,%xmm1
movupd %xmm3,0x20(%r15,%rcx,8)
movupd %xmm1,0x30(%r15,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rsi
jne    1310 <presh+0x1e0>
test   $0x1,%r8b
je     13cc <presh+0x29c>
movupd (%r14,%rcx,8),%xmm0
movupd 0x10(%r14,%rcx,8),%xmm1
lea    (%rcx,%rbx,1),%rdx
movupd (%r14,%rdx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%r14,%rdx,8),%xmm0
addpd  %xmm1,%xmm0
movapd 0xc49(%rip),%xmm1
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm0
movupd %xmm2,(%r15,%rcx,8)
movupd %xmm0,0x10(%r15,%rcx,8)
cmp    %rax,%r12
je     13fe <presh+0x2ce>
lea    (%r14,%rbx,8),%rcx
movsd  0xc33(%rip),%xmm0
nopl   (%rax)
movsd  (%r14,%rax,8),%xmm1
addsd  (%rcx,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%r15,%rax,8)
add    $0x1,%rax
cmp    %rax,%r12
jne    13e0 <presh+0x2b0>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ecx,%ecx
test   $0x1,%r8b
jne    1389 <presh+0x259>
jmp    13cc <presh+0x29c>
mov    0x2bbe(%rip),%rax
mov    (%rax),%edi
lea    0xbed(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ba1(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [15 x i8] c"ps undefined!\0A\00"
@EXIT_FAILURE = global i32 0
define void @presh(double* noalias %0, double* %1, double* noalias %2, double* noalias %3, i64 %4, i64 %5) {
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca double
%16 = alloca double
%17 = alloca double*
store double* %0, double** %7
store double* %1, double** %8
store double* %2, double** %9
store double* %3, double** %10
store i64 %4, i64* %11
store i64 %5, i64* %12
%18 = load double*, double** %8
store double* %18, double** %17
%19 = load double*, double** %10
%20 = icmp eq double* %19, null
br i1 %20, label %21, label %26
21: ; preds = %6
%22 = load i32, i32* @stderr
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%24 = load i32, i32* @EXIT_FAILURE
%25 = call i32 @exit(i32 %24)
unreachable
26: ; preds = %6
store i64 0, i64* %14
br label %27
27: ; preds = %65, %26
%28 = load i64, i64* %14
%29 = load i64, i64* %11
%30 = icmp slt i64 %28, %29
br i1 %30, label %31, label %68
31: ; preds = %27
%32 = load double*, double** %9
%33 = load i64, i64* %14
%34 = getelementptr inbounds double, double* %32, i64 %33
%35 = load double, double* %34
store double %35, double* %15
%36 = load double*, double** %9
%37 = load i64, i64* %14
%38 = load i64, i64* %11
%39 = add nsw i64 %37, %38
%40 = add nsw i64 %39, 1
%41 = getelementptr inbounds double, double* %36, i64 %40
%42 = load double, double* %41
store double %42, double* %16
store i64 0, i64* %13
br label %43
43: ; preds = %58, %31
%44 = load i64, i64* %13
%45 = load i64, i64* %12
%46 = icmp slt i64 %44, %45
br i1 %46, label %47, label %61
47: ; preds = %43
%48 = load double, double* %15
%49 = load double, double* %16
%50 = load double*, double** %10
%51 = load i64, i64* %13
%52 = getelementptr inbounds double, double* %50, i64 %51
%53 = load double, double* %52
%54 = call double @llvm.fmuladd.f64(double %49, double %53, double %48)
%55 = load double*, double** %17
%56 = load i64, i64* %13
%57 = getelementptr inbounds double, double* %55, i64 %56
store double %54, double* %57
br label %58
58: ; preds = %47
%59 = load i64, i64* %13
%60 = add nsw i64 %59, 1
store i64 %60, i64* %13
br label %43
61: ; preds = %43
%62 = load i64, i64* %12
%63 = load double*, double** %17
%64 = getelementptr inbounds double, double* %63, i64 %62
store double* %64, double** %17
br label %65
65: ; preds = %61
%66 = load i64, i64* %14
%67 = add nsw i64 %66, 1
store i64 %67, i64* %14
br label %27
68: ; preds = %27
%69 = load double*, double** %17
%70 = load double*, double** %10
%71 = load i64, i64* %12
%72 = mul i64 %71, 8
%73 = call i32 @memcpy(double* %69, double* %70, i64 %72)
%74 = load double*, double** %7
%75 = icmp ne double* %74, null
br i1 %75, label %76, label %104
76: ; preds = %68
%77 = load double*, double** %8
store double* %77, double** %17
store i64 0, i64* %13
br label %78
78: ; preds = %100, %76
%79 = load i64, i64* %13
%80 = load i64, i64* %12
%81 = load i64, i64* %11
%82 = mul nsw i64 %80, %81
%83 = icmp slt i64 %79, %82
br i1 %83, label %84, label %103
84: ; preds = %78
%85 = load double*, double** %17
%86 = load i64, i64* %13
%87 = getelementptr inbounds double, double* %85, i64 %86
%88 = load double, double* %87
%89 = load double*, double** %17
%90 = load i64, i64* %13
%91 = load i64, i64* %12
%92 = add nsw i64 %90, %91
%93 = getelementptr inbounds double, double* %89, i64 %92
%94 = load double, double* %93
%95 = fadd double %88, %94
%96 = fmul double 5.000000e-01, %95
%97 = load double*, double** %7
%98 = load i64, i64* %13
%99 = getelementptr inbounds double, double* %97, i64 %98
store double %96, double* %99
br label %100
100: ; preds = %84
%101 = load i64, i64* %13
%102 = add nsw i64 %101, 1
store i64 %102, i64* %13
br label %78
103: ; preds = %78
br label %104
104: ; preds = %103, %68
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [15 x i8] c"ps undefined!\0A\00"
@EXIT_FAILURE = global i32 0
define void @presh(double* noalias writeonly %0, double* %1, double* noalias nocapture %2, double* noalias %3, i64 %4, i64 %5) {
%7 = icmp eq double* %3, null
br i1 %7, label %22, label %8
8: ; preds = %6
%9 = icmp sgt i64 %4, 0
br i1 %9, label %10, label %106
10: ; preds = %8
%11 = icmp sgt i64 %5, 0
%12 = add i64 %5, -4
%13 = lshr i64 %12, 2
%14 = add nuw nsw i64 %13, 1
%15 = icmp ult i64 %5, 4
%16 = and i64 %5, -4
%17 = and i64 %14, 1
%18 = icmp ult i64 %12, 4
%19 = and i64 %14, 9223372036854775806
%20 = icmp eq i64 %17, 0
%21 = icmp eq i64 %16, %5
br label %27
22: ; preds = %6
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%25 = load i32, i32* @EXIT_FAILURE
%26 = tail call i32 @exit(i32 %25)
unreachable
27: ; preds = %10, %103
%28 = phi double* [ %1, %10 ], [ %104, %103 ]
%29 = phi i64 [ 0, %10 ], [ %32, %103 ]
%30 = getelementptr inbounds double, double* %2, i64 %29
%31 = load double, double* %30
%32 = add nuw nsw i64 %29, 1
%33 = add i64 %32, %4
%34 = getelementptr inbounds double, double* %2, i64 %33
%35 = load double, double* %34
br i1 %11, label %36, label %103
36: ; preds = %27
br i1 %15, label %93, label %37
37: ; preds = %36
%38 = insertelement <2 x double> poison, double %35, i64 0
%39 = shufflevector <2 x double> %38, <2 x double> poison, <2 x i32> zeroinitializer
%40 = insertelement <2 x double> poison, double %31, i64 0
%41 = shufflevector <2 x double> %40, <2 x double> poison, <2 x i32> zeroinitializer
%42 = insertelement <2 x double> poison, double %35, i64 0
%43 = shufflevector <2 x double> %42, <2 x double> poison, <2 x i32> zeroinitializer
%44 = insertelement <2 x double> poison, double %31, i64 0
%45 = shufflevector <2 x double> %44, <2 x double> poison, <2 x i32> zeroinitializer
br i1 %18, label %77, label %46
46: ; preds = %37, %46
%47 = phi i64 [ %74, %46 ], [ 0, %37 ]
%48 = phi i64 [ %75, %46 ], [ 0, %37 ]
%49 = getelementptr inbounds double, double* %3, i64 %47
%50 = bitcast double* %49 to <2 x double>*
%51 = load <2 x double>, <2 x double>* %50
%52 = getelementptr inbounds double, double* %49, i64 2
%53 = bitcast double* %52 to <2 x double>*
%54 = load <2 x double>, <2 x double>* %53
%55 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %39, <2 x double> %51, <2 x double> %41)
%56 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %43, <2 x double> %54, <2 x double> %45)
%57 = getelementptr inbounds double, double* %28, i64 %47
%58 = bitcast double* %57 to <2 x double>*
store <2 x double> %55, <2 x double>* %58
%59 = getelementptr inbounds double, double* %57, i64 2
%60 = bitcast double* %59 to <2 x double>*
store <2 x double> %56, <2 x double>* %60
%61 = or i64 %47, 4
%62 = getelementptr inbounds double, double* %3, i64 %61
%63 = bitcast double* %62 to <2 x double>*
%64 = load <2 x double>, <2 x double>* %63
%65 = getelementptr inbounds double, double* %62, i64 2
%66 = bitcast double* %65 to <2 x double>*
%67 = load <2 x double>, <2 x double>* %66
%68 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %39, <2 x double> %64, <2 x double> %41)
%69 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %43, <2 x double> %67, <2 x double> %45)
%70 = getelementptr inbounds double, double* %28, i64 %61
%71 = bitcast double* %70 to <2 x double>*
store <2 x double> %68, <2 x double>* %71
%72 = getelementptr inbounds double, double* %70, i64 2
%73 = bitcast double* %72 to <2 x double>*
store <2 x double> %69, <2 x double>* %73
%74 = add nuw i64 %47, 8
%75 = add i64 %48, 2
%76 = icmp eq i64 %75, %19
br i1 %76, label %77, label %46
77: ; preds = %46, %37
%78 = phi i64 [ 0, %37 ], [ %74, %46 ]
br i1 %20, label %92, label %79
79: ; preds = %77
%80 = getelementptr inbounds double, double* %3, i64 %78
%81 = bitcast double* %80 to <2 x double>*
%82 = load <2 x double>, <2 x double>* %81
%83 = getelementptr inbounds double, double* %80, i64 2
%84 = bitcast double* %83 to <2 x double>*
%85 = load <2 x double>, <2 x double>* %84
%86 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %39, <2 x double> %82, <2 x double> %41)
%87 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %43, <2 x double> %85, <2 x double> %45)
%88 = getelementptr inbounds double, double* %28, i64 %78
%89 = bitcast double* %88 to <2 x double>*
store <2 x double> %86, <2 x double>* %89
%90 = getelementptr inbounds double, double* %88, i64 2
%91 = bitcast double* %90 to <2 x double>*
store <2 x double> %87, <2 x double>* %91
br label %92
92: ; preds = %77, %79
br i1 %21, label %103, label %93
93: ; preds = %36, %92
%94 = phi i64 [ 0, %36 ], [ %16, %92 ]
br label %95
95: ; preds = %93, %95
%96 = phi i64 [ %101, %95 ], [ %94, %93 ]
%97 = getelementptr inbounds double, double* %3, i64 %96
%98 = load double, double* %97
%99 = tail call double @llvm.fmuladd.f64(double %35, double %98, double %31)
%100 = getelementptr inbounds double, double* %28, i64 %96
store double %99, double* %100
%101 = add nuw nsw i64 %96, 1
%102 = icmp eq i64 %101, %5
br i1 %102, label %103, label %95
103: ; preds = %95, %92, %27
%104 = getelementptr inbounds double, double* %28, i64 %5
%105 = icmp eq i64 %32, %4
br i1 %105, label %106, label %27
106: ; preds = %103, %8
%107 = phi double* [ %1, %8 ], [ %104, %103 ]
%108 = shl i64 %5, 3
%109 = tail call i32 @memcpy(double* %107, double* %3, i64 %108)
%110 = icmp eq double* %0, null
br i1 %110, label %215, label %111
111: ; preds = %106
%112 = mul i64 %5, %4
%113 = icmp sgt i64 %112, 0
br i1 %113, label %114, label %215
114: ; preds = %111
%115 = icmp ult i64 %112, 4
br i1 %115, label %201, label %116
116: ; preds = %114
%117 = and i64 %112, -4
%118 = add i64 %117, -4
%119 = lshr exact i64 %118, 2
%120 = add nuw nsw i64 %119, 1
%121 = and i64 %120, 1
%122 = icmp eq i64 %118, 0
br i1 %122, label %174, label %123
123: ; preds = %116
%124 = and i64 %120, 9223372036854775806
br label %125
125: ; preds = %125, %123
%126 = phi i64 [ 0, %123 ], [ %171, %125 ]
%127 = phi i64 [ 0, %123 ], [ %172, %125 ]
%128 = getelementptr inbounds double, double* %1, i64 %126
%129 = bitcast double* %128 to <2 x double>*
%130 = load <2 x double>, <2 x double>* %129
%131 = getelementptr inbounds double, double* %128, i64 2
%132 = bitcast double* %131 to <2 x double>*
%133 = load <2 x double>, <2 x double>* %132
%134 = add nsw i64 %126, %5
%135 = getelementptr inbounds double, double* %1, i64 %134
%136 = bitcast double* %135 to <2 x double>*
%137 = load <2 x double>, <2 x double>* %136
%138 = getelementptr inbounds double, double* %135, i64 2
%139 = bitcast double* %138 to <2 x double>*
%140 = load <2 x double>, <2 x double>* %139
%141 = fadd <2 x double> %130, %137
%142 = fadd <2 x double> %133, %140
%143 = fmul <2 x double> %141, <double 5.000000e-01, double 5.000000e-01>
%144 = fmul <2 x double> %142, <double 5.000000e-01, double 5.000000e-01>
%145 = getelementptr inbounds double, double* %0, i64 %126
%146 = bitcast double* %145 to <2 x double>*
store <2 x double> %143, <2 x double>* %146
%147 = getelementptr inbounds double, double* %145, i64 2
%148 = bitcast double* %147 to <2 x double>*
store <2 x double> %144, <2 x double>* %148
%149 = or i64 %126, 4
%150 = getelementptr inbounds double, double* %1, i64 %149
%151 = bitcast double* %150 to <2 x double>*
%152 = load <2 x double>, <2 x double>* %151
%153 = getelementptr inbounds double, double* %150, i64 2
%154 = bitcast double* %153 to <2 x double>*
%155 = load <2 x double>, <2 x double>* %154
%156 = add nsw i64 %149, %5
%157 = getelementptr inbounds double, double* %1, i64 %156
%158 = bitcast double* %157 to <2 x double>*
%159 = load <2 x double>, <2 x double>* %158
%160 = getelementptr inbounds double, double* %157, i64 2
%161 = bitcast double* %160 to <2 x double>*
%162 = load <2 x double>, <2 x double>* %161
%163 = fadd <2 x double> %152, %159
%164 = fadd <2 x double> %155, %162
%165 = fmul <2 x double> %163, <double 5.000000e-01, double 5.000000e-01>
%166 = fmul <2 x double> %164, <double 5.000000e-01, double 5.000000e-01>
%167 = getelementptr inbounds double, double* %0, i64 %149
%168 = bitcast double* %167 to <2 x double>*
store <2 x double> %165, <2 x double>* %168
%169 = getelementptr inbounds double, double* %167, i64 2
%170 = bitcast double* %169 to <2 x double>*
store <2 x double> %166, <2 x double>* %170
%171 = add nuw i64 %126, 8
%172 = add i64 %127, 2
%173 = icmp eq i64 %172, %124
br i1 %173, label %174, label %125
174: ; preds = %125, %116
%175 = phi i64 [ 0, %116 ], [ %171, %125 ]
%176 = icmp eq i64 %121, 0
br i1 %176, label %199, label %177
177: ; preds = %174
%178 = getelementptr inbounds double, double* %1, i64 %175
%179 = bitcast double* %178 to <2 x double>*
%180 = load <2 x double>, <2 x double>* %179
%181 = getelementptr inbounds double, double* %178, i64 2
%182 = bitcast double* %181 to <2 x double>*
%183 = load <2 x double>, <2 x double>* %182
%184 = add nsw i64 %175, %5
%185 = getelementptr inbounds double, double* %1, i64 %184
%186 = bitcast double* %185 to <2 x double>*
%187 = load <2 x double>, <2 x double>* %186
%188 = getelementptr inbounds double, double* %185, i64 2
%189 = bitcast double* %188 to <2 x double>*
%190 = load <2 x double>, <2 x double>* %189
%191 = fadd <2 x double> %180, %187
%192 = fadd <2 x double> %183, %190
%193 = fmul <2 x double> %191, <double 5.000000e-01, double 5.000000e-01>
%194 = fmul <2 x double> %192, <double 5.000000e-01, double 5.000000e-01>
%195 = getelementptr inbounds double, double* %0, i64 %175
%196 = bitcast double* %195 to <2 x double>*
store <2 x double> %193, <2 x double>* %196
%197 = getelementptr inbounds double, double* %195, i64 2
%198 = bitcast double* %197 to <2 x double>*
store <2 x double> %194, <2 x double>* %198
br label %199
199: ; preds = %174, %177
%200 = icmp eq i64 %112, %117
br i1 %200, label %215, label %201
201: ; preds = %114, %199
%202 = phi i64 [ 0, %114 ], [ %117, %199 ]
br label %203
203: ; preds = %201, %203
%204 = phi i64 [ %213, %203 ], [ %202, %201 ]
%205 = getelementptr inbounds double, double* %1, i64 %204
%206 = load double, double* %205
%207 = add nsw i64 %204, %5
%208 = getelementptr inbounds double, double* %1, i64 %207
%209 = load double, double* %208
%210 = fadd double %206, %209
%211 = fmul double %210, 5.000000e-01
%212 = getelementptr inbounds double, double* %0, i64 %204
store double %211, double* %212
%213 = add nuw nsw i64 %204, 1
%214 = icmp eq i64 %213, %112
br i1 %214, label %215, label %203
215: ; preds = %203, %199, %111, %106
ret void
}