#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*/ CCC_posi(double *, int, double *, int, int *, double *, int);
scalar_t__ fabs(double);
int CCC(double *x, int npts_x, double *y, int npts_y, int *shift, double *ccc,
        int flag) {
  int i, j;
  double x_tmp[npts_x + 1];
  double y_tmp[npts_y + 1];
  int shift_posi, shift_nega;
  double ccc_posi, ccc_nega;
  for (i = 0; i < npts_x; i++)
    x_tmp[i] = x[i];
  for (i = 0; i < npts_y; i++)
    y_tmp[i] = y[i];
  CCC_posi(x_tmp, npts_x, y_tmp, npts_y, &shift_posi, &ccc_posi, 1);
  for (i = 0; i < npts_x; i++)
    x_tmp[i] = x[i];
  for (i = 0; i < npts_y; i++)
    y_tmp[i] = -1.0 * y[i];
  CCC_posi(x_tmp, npts_x, y_tmp, npts_y, &shift_nega, &ccc_nega, 1);
  ccc_nega = -1 * ccc_nega;
  if (flag == 1) {
    *shift = shift_posi;
    *ccc = ccc_posi;
  } else if (flag == -1) {
    *shift = shift_nega;
    *ccc = ccc_nega;
  } else {
    if (fabs(ccc_posi) >= fabs(ccc_nega)) {
      *shift = shift_posi;
      *ccc = ccc_posi;
    } else if (fabs(ccc_posi) < fabs(ccc_nega)) {
      *shift = shift_nega;
      *ccc = ccc_nega;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<CCC>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x40(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x78(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x48(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x70(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11cc <CCC+0xac>
mov    -0x78(%rbp),%rax
mov    -0x8(%rbp),%rcx
movslq -0x34(%rbp),%rdx
movsd  (%rcx,%rdx,8),%xmm0
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1198 <CCC+0x78>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1207 <CCC+0xe7>
mov    -0x70(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq -0x34(%rbp),%rdx
movsd  (%rcx,%rdx,8),%xmm0
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11d3 <CCC+0xb3>
mov    -0x70(%rbp),%rdx
mov    -0x78(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x1c(%rbp),%ecx
lea    -0x54(%rbp),%r8
lea    -0x60(%rbp),%r9
sub    $0x10,%rsp
movl   $0x1,(%rsp)
call   1040 <CCC_posi@plt>
add    $0x10,%rsp
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    126c <CCC+0x14c>
mov    -0x78(%rbp),%rax
mov    -0x8(%rbp),%rcx
movslq -0x34(%rbp),%rdx
movsd  (%rcx,%rdx,8),%xmm0
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1238 <CCC+0x118>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12af <CCC+0x18f>
mov    -0x70(%rbp),%rax
mov    -0x18(%rbp),%rcx
movslq -0x34(%rbp),%rdx
movsd  0xd6d(%rip),%xmm0
mulsd  (%rcx,%rdx,8),%xmm0
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1273 <CCC+0x153>
mov    -0x70(%rbp),%rdx
mov    -0x78(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x1c(%rbp),%ecx
lea    -0x58(%rbp),%r8
lea    -0x68(%rbp),%r9
sub    $0x10,%rsp
movl   $0x1,(%rsp)
call   1040 <CCC_posi@plt>
add    $0x10,%rsp
movsd  0xd1f(%rip),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
cmpl   $0x1,0x10(%rbp)
jne    1310 <CCC+0x1f0>
mov    -0x54(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
movsd  -0x60(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    13cb <CCC+0x2ab>
cmpl   $0xffffffff,0x10(%rbp)
jne    1335 <CCC+0x215>
mov    -0x58(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    13c6 <CCC+0x2a6>
movsd  -0x60(%rbp),%xmm0
call   1030 <fabs@plt>
mov    %rax,-0x80(%rbp)
movsd  -0x68(%rbp),%xmm0
call   1030 <fabs@plt>
mov    %rax,%rcx
mov    -0x80(%rbp),%rax
cmp    %rcx,%rax
jl     1378 <CCC+0x258>
mov    -0x54(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
movsd  -0x60(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    13c1 <CCC+0x2a1>
movsd  -0x60(%rbp),%xmm0
call   1030 <fabs@plt>
mov    %rax,-0x88(%rbp)
movsd  -0x68(%rbp),%xmm0
call   1030 <fabs@plt>
mov    %rax,%rcx
mov    -0x88(%rbp),%rax
cmp    %rcx,%rax
jge    13bc <CCC+0x29c>
mov    -0x58(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    13c1 <CCC+0x2a1>
jmp    13c6 <CCC+0x2a6>
jmp    13cb <CCC+0x2ab>
mov    -0x40(%rbp),%rax
mov    %rax,%rsp
xor    %eax,%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CCC>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9,-0x48(%rbp)
mov    %r8,-0x40(%rbp)
mov    %rdx,%rbx
mov    %rdi,%r12
lea    0x1(%rsi),%eax
mov    %rsp,%r14
lea    0xf(,%rax,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r14
mov    %r14,%rsp
lea    0x1(%rcx),%eax
mov    %rsp,%r15
lea    0xf(,%rax,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r15
mov    %r15,%rsp
mov    %esi,%r13d
mov    %rsi,-0x60(%rbp)
test   %esi,%esi
mov    %rcx,-0x58(%rbp)
jle    11a5 <CCC+0x75>
lea    0x0(,%r13,8),%rdx
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <memcpy@plt>
mov    -0x58(%rbp),%rcx
mov    %r13,-0x68(%rbp)
mov    %r12,-0x70(%rbp)
mov    %ecx,%r13d
test   %ecx,%ecx
jle    11cb <CCC+0x9b>
lea    0x0(,%r13,8),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <memcpy@plt>
mov    -0x58(%rbp),%rcx
sub    $0x8,%rsp
lea    -0x38(%rbp),%r8
lea    -0x50(%rbp),%r9
mov    %r14,%rdi
mov    %r14,%r12
mov    -0x60(%rbp),%r14
mov    %r14d,%esi
mov    %r15,%rdx
push   $0x1
call   1050 <CCC_posi@plt>
add    $0x10,%rsp
test   %r14d,%r14d
mov    %r12,%r14
jle    120e <CCC+0xde>
mov    -0x68(%rbp),%rdx
shl    $0x3,%rdx
mov    %r14,%rdi
mov    -0x70(%rbp),%rsi
call   1040 <memcpy@plt>
mov    0x10(%rbp),%r12d
mov    -0x58(%rbp),%rcx
test   %ecx,%ecx
jle    12f6 <CCC+0x1c6>
cmp    $0x4,%ecx
jae    122a <CCC+0xfa>
xor    %eax,%eax
jmp    12cb <CCC+0x19b>
mov    %r13d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rsi,%rsi
je     13ad <CCC+0x27d>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %edi,%edi
movaps 0xda8(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movups (%rbx,%rdi,8),%xmm1
movups 0x10(%rbx,%rdi,8),%xmm2
xorps  %xmm0,%xmm1
xorps  %xmm0,%xmm2
movaps %xmm1,(%r15,%rdi,8)
movaps %xmm2,0x10(%r15,%rdi,8)
movups 0x20(%rbx,%rdi,8),%xmm1
movups 0x30(%rbx,%rdi,8),%xmm2
xorps  %xmm0,%xmm1
xorps  %xmm0,%xmm2
movaps %xmm1,0x20(%r15,%rdi,8)
movaps %xmm2,0x30(%r15,%rdi,8)
add    $0x8,%rdi
add    $0xfffffffffffffffe,%rsi
jne    1260 <CCC+0x130>
test   $0x1,%dl
je     12c6 <CCC+0x196>
movups (%rbx,%rdi,8),%xmm0
movups 0x10(%rbx,%rdi,8),%xmm1
movaps 0xd4b(%rip),%xmm2
xorps  %xmm2,%xmm0
xorps  %xmm2,%xmm1
movaps %xmm0,(%r15,%rdi,8)
movaps %xmm1,0x10(%r15,%rdi,8)
cmp    %r13,%rax
je     12f6 <CCC+0x1c6>
movaps 0xd2e(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rbx,%rax,8),%xmm1
xorps  %xmm0,%xmm1
movlps %xmm1,(%r15,%rax,8)
add    $0x1,%rax
cmp    %rax,%r13
jne    12e0 <CCC+0x1b0>
sub    $0x8,%rsp
lea    -0x34(%rbp),%r8
lea    -0x30(%rbp),%r9
mov    %r14,%rdi
mov    -0x60(%rbp),%rsi
mov    %r15,%rdx
push   $0x1
call   1050 <CCC_posi@plt>
add    $0x10,%rsp
movsd  -0x30(%rbp),%xmm0
xorps  0xcdd(%rip),%xmm0
movlps %xmm0,-0x30(%rbp)
cmp    $0xffffffff,%r12d
je     138b <CCC+0x25b>
cmp    $0x1,%r12d
je     137b <CCC+0x24b>
movsd  -0x50(%rbp),%xmm0
call   1030 <fabs@plt>
mov    %rax,%rbx
movsd  -0x30(%rbp),%xmm0
call   1030 <fabs@plt>
cmp    %rax,%rbx
jge    137b <CCC+0x24b>
movsd  -0x50(%rbp),%xmm0
call   1030 <fabs@plt>
mov    %rax,%rbx
movsd  -0x30(%rbp),%xmm0
call   1030 <fabs@plt>
cmp    %rax,%rbx
jge    139c <CCC+0x26c>
mov    -0x34(%rbp),%eax
mov    -0x40(%rbp),%rcx
mov    %eax,(%rcx)
movsd  -0x30(%rbp),%xmm0
jmp    1394 <CCC+0x264>
mov    -0x38(%rbp),%eax
mov    -0x40(%rbp),%rcx
mov    %eax,(%rcx)
movsd  -0x50(%rbp),%xmm0
jmp    1394 <CCC+0x264>
mov    -0x34(%rbp),%eax
mov    -0x40(%rbp),%rcx
mov    %eax,(%rcx)
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edi,%edi
test   $0x1,%dl
jne    12a5 <CCC+0x175>
jmp    12c6 <CCC+0x196>

LLVM IR (-O0):
define i32 @CCC(double* %0, i32 %1, double* %2, i32 %3, i32* %4, double* %5, i32 %6) {
%8 = alloca double*
%9 = alloca i32
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32*
%13 = alloca double*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i8*
%18 = alloca i64
%19 = alloca i64
%20 = alloca i32
%21 = alloca i32
%22 = alloca double
%23 = alloca double
store double* %0, double** %8
store i32 %1, i32* %9
store double* %2, double** %10
store i32 %3, i32* %11
store i32* %4, i32** %12
store double* %5, double** %13
store i32 %6, i32* %14
%24 = load i32, i32* %9
%25 = add nsw i32 %24, 1
%26 = zext i32 %25 to i64
%27 = call i8* @llvm.stacksave()
store i8* %27, i8** %17
%28 = alloca double, i64 %26
store i64 %26, i64* %18
%29 = load i32, i32* %11
%30 = add nsw i32 %29, 1
%31 = zext i32 %30 to i64
%32 = alloca double, i64 %31
store i64 %31, i64* %19
store i32 0, i32* %15
br label %33
33: ; preds = %46, %7
%34 = load i32, i32* %15
%35 = load i32, i32* %9
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %49
37: ; preds = %33
%38 = load double*, double** %8
%39 = load i32, i32* %15
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, double* %38, i64 %40
%42 = load double, double* %41
%43 = load i32, i32* %15
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, double* %28, i64 %44
store double %42, double* %45
br label %46
46: ; preds = %37
%47 = load i32, i32* %15
%48 = add nsw i32 %47, 1
store i32 %48, i32* %15
br label %33
49: ; preds = %33
store i32 0, i32* %15
br label %50
50: ; preds = %63, %49
%51 = load i32, i32* %15
%52 = load i32, i32* %11
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %66
54: ; preds = %50
%55 = load double*, double** %10
%56 = load i32, i32* %15
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds double, double* %55, i64 %57
%59 = load double, double* %58
%60 = load i32, i32* %15
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, double* %32, i64 %61
store double %59, double* %62
br label %63
63: ; preds = %54
%64 = load i32, i32* %15
%65 = add nsw i32 %64, 1
store i32 %65, i32* %15
br label %50
66: ; preds = %50
%67 = load i32, i32* %9
%68 = load i32, i32* %11
%69 = call i32 @CCC_posi(double* %28, i32 %67, double* %32, i32 %68, i32* %20, double* %22, i32 1)
store i32 0, i32* %15
br label %70
70: ; preds = %83, %66
%71 = load i32, i32* %15
%72 = load i32, i32* %9
%73 = icmp slt i32 %71, %72
br i1 %73, label %74, label %86
74: ; preds = %70
%75 = load double*, double** %8
%76 = load i32, i32* %15
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, double* %75, i64 %77
%79 = load double, double* %78
%80 = load i32, i32* %15
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, double* %28, i64 %81
store double %79, double* %82
br label %83
83: ; preds = %74
%84 = load i32, i32* %15
%85 = add nsw i32 %84, 1
store i32 %85, i32* %15
br label %70
86: ; preds = %70
store i32 0, i32* %15
br label %87
87: ; preds = %101, %86
%88 = load i32, i32* %15
%89 = load i32, i32* %11
%90 = icmp slt i32 %88, %89
br i1 %90, label %91, label %104
91: ; preds = %87
%92 = load double*, double** %10
%93 = load i32, i32* %15
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %92, i64 %94
%96 = load double, double* %95
%97 = fmul double -1.000000e+00, %96
%98 = load i32, i32* %15
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, double* %32, i64 %99
store double %97, double* %100
br label %101
101: ; preds = %91
%102 = load i32, i32* %15
%103 = add nsw i32 %102, 1
store i32 %103, i32* %15
br label %87
104: ; preds = %87
%105 = load i32, i32* %9
%106 = load i32, i32* %11
%107 = call i32 @CCC_posi(double* %28, i32 %105, double* %32, i32 %106, i32* %21, double* %23, i32 1)
%108 = load double, double* %23
%109 = fmul double -1.000000e+00, %108
store double %109, double* %23
%110 = load i32, i32* %14
%111 = icmp eq i32 %110, 1
br i1 %111, label %112, label %117
112: ; preds = %104
%113 = load i32, i32* %20
%114 = load i32*, i32** %12
store i32 %113, i32* %114
%115 = load double, double* %22
%116 = load double*, double** %13
store double %115, double* %116
br label %150
117: ; preds = %104
%118 = load i32, i32* %14
%119 = icmp eq i32 %118, -1
br i1 %119, label %120, label %125
120: ; preds = %117
%121 = load i32, i32* %21
%122 = load i32*, i32** %12
store i32 %121, i32* %122
%123 = load double, double* %23
%124 = load double*, double** %13
store double %123, double* %124
br label %149
125: ; preds = %117
%126 = load double, double* %22
%127 = call i64 @fabs(double %126)
%128 = load double, double* %23
%129 = call i64 @fabs(double %128)
%130 = icmp sge i64 %127, %129
br i1 %130, label %131, label %136
131: ; preds = %125
%132 = load i32, i32* %20
%133 = load i32*, i32** %12
store i32 %132, i32* %133
%134 = load double, double* %22
%135 = load double*, double** %13
store double %134, double* %135
br label %148
136: ; preds = %125
%137 = load double, double* %22
%138 = call i64 @fabs(double %137)
%139 = load double, double* %23
%140 = call i64 @fabs(double %139)
%141 = icmp slt i64 %138, %140
br i1 %141, label %142, label %147
142: ; preds = %136
%143 = load i32, i32* %21
%144 = load i32*, i32** %12
store i32 %143, i32* %144
%145 = load double, double* %23
%146 = load double*, double** %13
store double %145, double* %146
br label %147
147: ; preds = %142, %136
br label %148
148: ; preds = %147, %131
br label %149
149: ; preds = %148, %120
br label %150
150: ; preds = %149, %112
%151 = load i8*, i8** %17
ret i32 0
}

LLVM IR (-O2):
define i32 @CCC(double* nocapture %0, i32 %1, double* nocapture %2, i32 %3, i32* nocapture writeonly %4, double* nocapture writeonly %5, i32 %6) {
%8 = bitcast double* %0 to i8*
%9 = bitcast double* %2 to i8*
%10 = alloca i32
%11 = alloca i32
%12 = alloca double
%13 = alloca double
%14 = add nsw i32 %1, 1
%15 = zext i32 %14 to i64
%16 = alloca double, i64 %15
%17 = bitcast double* %16 to i8*
%18 = add nsw i32 %3, 1
%19 = zext i32 %18 to i64
%20 = alloca double, i64 %19
%21 = bitcast double* %20 to i8*
%22 = bitcast i32* %10 to i8*
%23 = bitcast i32* %11 to i8*
%24 = bitcast double* %12 to i8*
%25 = bitcast double* %13 to i8*
%26 = icmp sgt i32 %1, 0
br i1 %26, label %27, label %30
27: ; preds = %7
%28 = zext i32 %1 to i64
%29 = shl nuw nsw i64 %28, 3
br label %30
30: ; preds = %27, %7
%31 = icmp sgt i32 %3, 0
br i1 %31, label %32, label %35
32: ; preds = %30
%33 = zext i32 %3 to i64
%34 = shl nuw nsw i64 %33, 3
br label %35
35: ; preds = %32, %30
%36 = call i32 @CCC_posi(double* %16, i32 %1, double* %20, i32 %3, i32* %10, double* %12, i32 1)
br i1 %26, label %37, label %40
37: ; preds = %35
%38 = zext i32 %1 to i64
%39 = shl nuw nsw i64 %38, 3
br label %40
40: ; preds = %37, %35
br i1 %31, label %41, label %112
41: ; preds = %40
%42 = zext i32 %3 to i64
%43 = icmp ult i32 %3, 4
br i1 %43, label %102, label %44
44: ; preds = %41
%45 = and i64 %42, 4294967292
%46 = add nsw i64 %45, -4
%47 = lshr exact i64 %46, 2
%48 = add nuw nsw i64 %47, 1
%49 = and i64 %48, 1
%50 = icmp eq i64 %46, 0
br i1 %50, label %84, label %51
51: ; preds = %44
%52 = and i64 %48, 9223372036854775806
br label %53
53: ; preds = %53, %51
%54 = phi i64 [ 0, %51 ], [ %81, %53 ]
%55 = phi i64 [ 0, %51 ], [ %82, %53 ]
%56 = getelementptr inbounds double, double* %2, i64 %54
%57 = bitcast double* %56 to <2 x double>*
%58 = load <2 x double>, <2 x double>* %57
%59 = getelementptr inbounds double, double* %56, i64 2
%60 = bitcast double* %59 to <2 x double>*
%61 = load <2 x double>, <2 x double>* %60
%62 = fneg <2 x double> %58
%63 = fneg <2 x double> %61
%64 = getelementptr inbounds double, double* %20, i64 %54
%65 = bitcast double* %64 to <2 x double>*
store <2 x double> %62, <2 x double>* %65
%66 = getelementptr inbounds double, double* %64, i64 2
%67 = bitcast double* %66 to <2 x double>*
store <2 x double> %63, <2 x double>* %67
%68 = or i64 %54, 4
%69 = getelementptr inbounds double, double* %2, i64 %68
%70 = bitcast double* %69 to <2 x double>*
%71 = load <2 x double>, <2 x double>* %70
%72 = getelementptr inbounds double, double* %69, i64 2
%73 = bitcast double* %72 to <2 x double>*
%74 = load <2 x double>, <2 x double>* %73
%75 = fneg <2 x double> %71
%76 = fneg <2 x double> %74
%77 = getelementptr inbounds double, double* %20, i64 %68
%78 = bitcast double* %77 to <2 x double>*
store <2 x double> %75, <2 x double>* %78
%79 = getelementptr inbounds double, double* %77, i64 2
%80 = bitcast double* %79 to <2 x double>*
store <2 x double> %76, <2 x double>* %80
%81 = add nuw i64 %54, 8
%82 = add i64 %55, 2
%83 = icmp eq i64 %82, %52
br i1 %83, label %84, label %53
84: ; preds = %53, %44
%85 = phi i64 [ 0, %44 ], [ %81, %53 ]
%86 = icmp eq i64 %49, 0
br i1 %86, label %100, label %87
87: ; preds = %84
%88 = getelementptr inbounds double, double* %2, i64 %85
%89 = bitcast double* %88 to <2 x double>*
%90 = load <2 x double>, <2 x double>* %89
%91 = getelementptr inbounds double, double* %88, i64 2
%92 = bitcast double* %91 to <2 x double>*
%93 = load <2 x double>, <2 x double>* %92
%94 = fneg <2 x double> %90
%95 = fneg <2 x double> %93
%96 = getelementptr inbounds double, double* %20, i64 %85
%97 = bitcast double* %96 to <2 x double>*
store <2 x double> %94, <2 x double>* %97
%98 = getelementptr inbounds double, double* %96, i64 2
%99 = bitcast double* %98 to <2 x double>*
store <2 x double> %95, <2 x double>* %99
br label %100
100: ; preds = %84, %87
%101 = icmp eq i64 %45, %42
br i1 %101, label %112, label %102
102: ; preds = %41, %100
%103 = phi i64 [ 0, %41 ], [ %45, %100 ]
br label %104
104: ; preds = %102, %104
%105 = phi i64 [ %110, %104 ], [ %103, %102 ]
%106 = getelementptr inbounds double, double* %2, i64 %105
%107 = load double, double* %106
%108 = fneg double %107
%109 = getelementptr inbounds double, double* %20, i64 %105
store double %108, double* %109
%110 = add nuw nsw i64 %105, 1
%111 = icmp eq i64 %110, %42
br i1 %111, label %112, label %104
112: ; preds = %104, %100, %40
%113 = call i32 @CCC_posi(double* %16, i32 %1, double* %20, i32 %3, i32* %11, double* %13, i32 1)
%114 = load double, double* %13
%115 = fneg double %114
store double %115, double* %13
switch i32 %6, label %121 [
i32 1, label %116
i32 -1, label %119
]
116: ; preds = %112
%117 = load i32, i32* %10
store i32 %117, i32* %4
%118 = load double, double* %12
br label %139
119: ; preds = %112
%120 = load i32, i32* %11
store i32 %120, i32* %4
br label %139
121: ; preds = %112
%122 = load double, double* %12
%123 = call i64 @fabs(double %122)
%124 = load double, double* %13
%125 = call i64 @fabs(double %124)
%126 = icmp slt i64 %123, %125
br i1 %126, label %130, label %127
127: ; preds = %121
%128 = load i32, i32* %10
store i32 %128, i32* %4
%129 = load double, double* %12
br label %139
130: ; preds = %121
%131 = load double, double* %12
%132 = call i64 @fabs(double %131)
%133 = load double, double* %13
%134 = call i64 @fabs(double %133)
%135 = icmp slt i64 %132, %134
br i1 %135, label %136, label %141
136: ; preds = %130
%137 = load i32, i32* %11
store i32 %137, i32* %4
%138 = load double, double* %13
br label %139
139: ; preds = %116, %127, %136, %119
%140 = phi double [ %115, %119 ], [ %138, %136 ], [ %129, %127 ], [ %118, %116 ]
store double %140, double* %5
br label %141
141: ; preds = %139, %130
ret i32 0
}