#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 floor(double);
int /*<<< orphan*/ free(double *);
double *malloc(int);
double *retRepTimers(double C, double D, double tau, double a,
                     int maxRepTimers) {
  double k = floor((C + D) / tau);
  double *replication_timers = malloc(sizeof(double) * maxRepTimers);
  int i;
  for (i = 0; i < maxRepTimers; i++) {
    replication_timers[i] = 0.0;
  }
  double *ain = (double *)malloc(sizeof(double) * ((int)k + 1));
  ain[(int)k] = tau * (k + 1.0) - C - D;
  for (i = (int)k - 1; i >= 0; i--) {
    ain[i] = ain[i + 1] - tau;
  }
  int count = 0;
  for (i = 0; i < ((int)k + 1); i++) {
    double tmpRepTimer = 0.0;
    if (ain[i] < 0.0 && ain[i] + C > 0.0) {
      tmpRepTimer = C - (C + ain[i]) + a;
      if (tmpRepTimer >= C) {
        tmpRepTimer = 0.0;
      }
    } else if (ain[i] >= 0.0 && a > ain[i]) {
      tmpRepTimer = a - ain[i];
      if (tmpRepTimer >= C) {
        tmpRepTimer = 0.0;
      }
    }
    if (tmpRepTimer != 0.0) {
      replication_timers[count] = tmpRepTimer;
    }
    count++;
  }
  free(ain);
  return replication_timers;
}


x86 assembly (clang, -O0):
<retRepTimers>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
mov    %edi,-0x24(%rbp)
movsd  -0x8(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
call   1050 <floor@plt>
movsd  %xmm0,-0x30(%rbp)
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    11ac <retRepTimers+0x7c>
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1182 <retRepTimers+0x52>
cvttsd2si -0x30(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xe2e(%rip),%xmm2
addsd  -0x30(%rbp),%xmm2
movsd  -0x8(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
subsd  -0x10(%rbp),%xmm0
mov    -0x48(%rbp),%rax
cvttsd2si -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
cvttsd2si -0x30(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jl     1258 <retRepTimers+0x128>
mov    -0x48(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x18(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x3c(%rbp)
jmp    121c <retRepTimers+0xec>
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cvttsd2si -0x30(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    13a9 <retRepTimers+0x279>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x48(%rbp),%rax
movslq -0x3c(%rbp),%rcx
xorps  %xmm0,%xmm0
ucomisd (%rax,%rcx,8),%xmm0
jbe    12f8 <retRepTimers+0x1c8>
mov    -0x48(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    12f8 <retRepTimers+0x1c8>
movsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
mov    -0x48(%rbp),%rax
movslq -0x3c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm1
subsd  %xmm1,%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
ucomisd -0x8(%rbp),%xmm0
jb     12f3 <retRepTimers+0x1c3>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    1363 <retRepTimers+0x233>
mov    -0x48(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     135e <retRepTimers+0x22e>
movsd  -0x20(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x3c(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jbe    135e <retRepTimers+0x22e>
movsd  -0x20(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x3c(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
ucomisd -0x8(%rbp),%xmm0
jb     1359 <retRepTimers+0x229>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    135e <retRepTimers+0x22e>
jmp    1363 <retRepTimers+0x233>
movsd  -0x58(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1380 <retRepTimers+0x250>
jp     1380 <retRepTimers+0x250>
jmp    1392 <retRepTimers+0x262>
movsd  -0x58(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1266 <retRepTimers+0x136>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<retRepTimers>:
push   %r15
push   %r14
push   %rbx
sub    $0x30,%rsp
mov    %edi,%ebx
movsd  %xmm3,0x18(%rsp)
movsd  %xmm0,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
addsd  %xmm1,%xmm0
movapd %xmm2,0x20(%rsp)
divsd  %xmm2,%xmm0
call   1060 <floor@plt>
movsd  %xmm0,(%rsp)
lea    0x0(,%rbx,8),%edi
call   1050 <malloc@plt>
mov    %rax,%r14
test   %ebx,%ebx
jle    1198 <retRepTimers+0x58>
mov    %ebx,%edx
shl    $0x3,%rdx
mov    %r14,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
cvttsd2si (%rsp),%ebx
lea    0x8(,%rbx,8),%edi
call   1050 <malloc@plt>
mov    %rax,%rdi
movsd  (%rsp),%xmm0
addsd  0xe47(%rip),%xmm0
movapd 0x20(%rsp),%xmm3
mulsd  %xmm3,%xmm0
movsd  0x10(%rsp),%xmm5
subsd  %xmm5,%xmm0
subsd  0x8(%rsp),%xmm0
movslq %ebx,%rax
movsd  %xmm0,(%rdi,%rax,8)
test   %eax,%eax
movsd  0x18(%rsp),%xmm4
jle    121c <retRepTimers+0xdc>
mov    %ebx,%r10d
cmp    $0x4,%ebx
jae    12ac <retRepTimers+0x16c>
mov    %r10,%rax
add    $0x1,%rax
nopl   0x0(%rax,%rax,1)
lea    -0x2(%rax),%ecx
movsd  -0x8(%rdi,%rax,8),%xmm0
subsd  %xmm3,%xmm0
movsd  %xmm0,(%rdi,%rcx,8)
add    $0xffffffffffffffff,%rax
cmp    $0x1,%rax
ja     1200 <retRepTimers+0xc0>
test   %ebx,%ebx
js     129a <retRepTimers+0x15a>
add    $0x1,%ebx
xor    %eax,%eax
xorpd  %xmm0,%xmm0
jmp    1239 <retRepTimers+0xf9>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rax
cmp    %rax,%rbx
je     129a <retRepTimers+0x15a>
movsd  (%rdi,%rax,8),%xmm2
ucomisd %xmm2,%xmm0
jbe    1270 <retRepTimers+0x130>
movapd %xmm2,%xmm3
addsd  %xmm5,%xmm3
ucomisd %xmm0,%xmm3
jbe    1270 <retRepTimers+0x130>
movapd %xmm5,%xmm1
subsd  %xmm3,%xmm1
addsd  %xmm4,%xmm1
ucomisd %xmm5,%xmm1
jb     128a <retRepTimers+0x14a>
jmp    1230 <retRepTimers+0xf0>
cs nopw 0x0(%rax,%rax,1)
ucomisd %xmm0,%xmm2
jb     1230 <retRepTimers+0xf0>
ucomisd %xmm2,%xmm4
jbe    1230 <retRepTimers+0xf0>
movapd %xmm4,%xmm1
subsd  %xmm2,%xmm1
ucomisd %xmm5,%xmm1
jae    1230 <retRepTimers+0xf0>
ucomisd %xmm0,%xmm1
jne    1292 <retRepTimers+0x152>
jnp    1230 <retRepTimers+0xf0>
movsd  %xmm1,(%r14,%rax,8)
jmp    1230 <retRepTimers+0xf0>
call   1030 <free@plt>
mov    %r14,%rax
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
lea    -0x1(%r10),%r8
lea    -0x1(%rbx),%ecx
mov    $0x8,%edx
mov    %r8,%rax
mul    %rdx
seto   %r9b
cmp    %r8d,%ecx
jb     11f1 <retRepTimers+0xb1>
mov    %r8,%rsi
shr    $0x20,%rsi
jne    11f1 <retRepTimers+0xb1>
lea    (%rdi,%rcx,8),%rdx
mov    %rdx,%rsi
sub    %rax,%rsi
cmp    %rdx,%rsi
ja     11f1 <retRepTimers+0xb1>
test   %r9b,%r9b
jne    11f1 <retRepTimers+0xb1>
lea    (%rdi,%r10,8),%rdx
mov    %rdx,%rsi
sub    %rax,%rsi
cmp    %rdx,%rsi
ja     11f1 <retRepTimers+0xb1>
test   %r9b,%r9b
jne    11f1 <retRepTimers+0xb1>
lea    0x1(%rcx),%rax
sub    %r10,%rax
lea    (%rdi,%rax,8),%rax
lea    (%rdi,%r10,8),%rdx
add    $0x8,%rdx
cmp    %rdx,%rax
jae    133d <retRepTimers+0x1fd>
lea    (%rdi,%rcx,8),%rax
add    $0x8,%rax
lea    0x8(%rdi),%rcx
cmp    %rax,%rcx
jb     11f1 <retRepTimers+0xb1>
mov    %r10d,%r9d
and    $0xfffffffc,%r9d
mov    %r10d,%eax
and    $0x3,%eax
movapd %xmm3,%xmm0
unpcklpd %xmm3,%xmm0
mov    %r9,%r11
neg    %r11
mov    $0xffffffff,%r15d
add    %r10,%r15
lea    (%rdi,%r8,8),%rsi
xor    %edx,%edx
shufpd $0x1,%xmm0,%xmm0
nopl   0x0(%rax)
lea    (%r15,%rdx,1),%ecx
movupd -0x10(%rsi,%rdx,8),%xmm1
movupd (%rsi,%rdx,8),%xmm2
subpd  %xmm0,%xmm2
movupd %xmm2,-0x8(%rdi,%rcx,8)
subpd  %xmm0,%xmm1
movupd %xmm1,-0x18(%rdi,%rcx,8)
add    $0xfffffffffffffffc,%rdx
cmp    %rdx,%r11
jne    1370 <retRepTimers+0x230>
cmp    %r10,%r9
jne    11f4 <retRepTimers+0xb4>
jmp    121c <retRepTimers+0xdc>

LLVM IR (-O0):
define double* @retRepTimers(double %0, double %1, double %2, double %3, i32 %4) {
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca i32
%11 = alloca double
%12 = alloca double*
%13 = alloca i32
%14 = alloca double*
%15 = alloca i32
%16 = alloca double
store double %0, double* %6
store double %1, double* %7
store double %2, double* %8
store double %3, double* %9
store i32 %4, i32* %10
%17 = load double, double* %6
%18 = load double, double* %7
%19 = fadd double %17, %18
%20 = load double, double* %8
%21 = fdiv double %19, %20
%22 = call double @llvm.floor.f64(double %21)
store double %22, double* %11
%23 = load i32, i32* %10
%24 = sext i32 %23 to i64
%25 = mul i64 8, %24
%26 = trunc i64 %25 to i32
%27 = call double* @malloc(i32 %26)
store double* %27, double** %12
store i32 0, i32* %13
br label %28
28: ; preds = %37, %5
%29 = load i32, i32* %13
%30 = load i32, i32* %10
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %40
32: ; preds = %28
%33 = load double*, double** %12
%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
br label %37
37: ; preds = %32
%38 = load i32, i32* %13
%39 = add nsw i32 %38, 1
store i32 %39, i32* %13
br label %28
40: ; preds = %28
%41 = load double, double* %11
%42 = fptosi double %41 to i32
%43 = add nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = mul i64 8, %44
%46 = trunc i64 %45 to i32
%47 = call double* @malloc(i32 %46)
store double* %47, double** %14
%48 = load double, double* %8
%49 = load double, double* %11
%50 = fadd double %49, 1.000000e+00
%51 = load double, double* %6
%52 = fneg double %51
%53 = call double @llvm.fmuladd.f64(double %48, double %50, double %52)
%54 = load double, double* %7
%55 = fsub double %53, %54
%56 = load double*, double** %14
%57 = load double, double* %11
%58 = fptosi double %57 to i32
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, double* %56, i64 %59
store double %55, double* %60
%61 = load double, double* %11
%62 = fptosi double %61 to i32
%63 = sub nsw i32 %62, 1
store i32 %63, i32* %13
br label %64
64: ; preds = %80, %40
%65 = load i32, i32* %13
%66 = icmp sge i32 %65, 0
br i1 %66, label %67, label %83
67: ; preds = %64
%68 = load double*, double** %14
%69 = load i32, i32* %13
%70 = add nsw i32 %69, 1
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, double* %68, i64 %71
%73 = load double, double* %72
%74 = load double, double* %8
%75 = fsub double %73, %74
%76 = load double*, double** %14
%77 = load i32, i32* %13
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double, double* %76, i64 %78
store double %75, double* %79
br label %80
80: ; preds = %67
%81 = load i32, i32* %13
%82 = add nsw i32 %81, -1
store i32 %82, i32* %13
br label %64
83: ; preds = %64
store i32 0, i32* %15
store i32 0, i32* %13
br label %84
84: ; preds = %164, %83
%85 = load i32, i32* %13
%86 = load double, double* %11
%87 = fptosi double %86 to i32
%88 = add nsw i32 %87, 1
%89 = icmp slt i32 %85, %88
br i1 %89, label %90, label %167
90: ; preds = %84
store double 0.000000e+00, double* %16
%91 = load double*, double** %14
%92 = load i32, i32* %13
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, double* %91, i64 %93
%95 = load double, double* %94
%96 = fcmp olt double %95, 0.000000e+00
br i1 %96, label %97, label %123
97: ; preds = %90
%98 = load double*, double** %14
%99 = load i32, i32* %13
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, double* %98, i64 %100
%102 = load double, double* %101
%103 = load double, double* %6
%104 = fadd double %102, %103
%105 = fcmp ogt double %104, 0.000000e+00
br i1 %105, label %106, label %123
106: ; preds = %97
%107 = load double, double* %6
%108 = load double, double* %6
%109 = load double*, double** %14
%110 = load i32, i32* %13
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double, double* %109, i64 %111
%113 = load double, double* %112
%114 = fadd double %108, %113
%115 = fsub double %107, %114
%116 = load double, double* %9
%117 = fadd double %115, %116
store double %117, double* %16
%118 = load double, double* %16
%119 = load double, double* %6
%120 = fcmp oge double %118, %119
br i1 %120, label %121, label %122
121: ; preds = %106
store double 0.000000e+00, double* %16
br label %122
122: ; preds = %121, %106
br label %152
123: ; preds = %97, %90
%124 = load double*, double** %14
%125 = load i32, i32* %13
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, double* %124, i64 %126
%128 = load double, double* %127
%129 = fcmp oge double %128, 0.000000e+00
br i1 %129, label %130, label %151
130: ; preds = %123
%131 = load double, double* %9
%132 = load double*, double** %14
%133 = load i32, i32* %13
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds double, double* %132, i64 %134
%136 = load double, double* %135
%137 = fcmp ogt double %131, %136
br i1 %137, label %138, label %151
138: ; preds = %130
%139 = load double, double* %9
%140 = load double*, double** %14
%141 = load i32, i32* %13
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds double, double* %140, i64 %142
%144 = load double, double* %143
%145 = fsub double %139, %144
store double %145, double* %16
%146 = load double, double* %16
%147 = load double, double* %6
%148 = fcmp oge double %146, %147
br i1 %148, label %149, label %150
149: ; preds = %138
store double 0.000000e+00, double* %16
br label %150
150: ; preds = %149, %138
br label %151
151: ; preds = %150, %130, %123
br label %152
152: ; preds = %151, %122
%153 = load double, double* %16
%154 = fcmp une double %153, 0.000000e+00
br i1 %154, label %155, label %161
155: ; preds = %152
%156 = load double, double* %16
%157 = load double*, double** %12
%158 = load i32, i32* %15
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, double* %157, i64 %159
store double %156, double* %160
br label %161
161: ; preds = %155, %152
%162 = load i32, i32* %15
%163 = add nsw i32 %162, 1
store i32 %163, i32* %15
br label %164
164: ; preds = %161
%165 = load i32, i32* %13
%166 = add nsw i32 %165, 1
store i32 %166, i32* %13
br label %84
167: ; preds = %84
%168 = load double*, double** %14
%169 = call i32 @free(double* %168)
%170 = load double*, double** %12
ret double* %170
}

LLVM IR (-O2):
define noalias double* @retRepTimers(double %0, double %1, double %2, double %3, i32 %4) {
%6 = fadd double %0, %1
%7 = fdiv double %6, %2
%8 = tail call double @llvm.floor.f64(double %7)
%9 = shl i32 %4, 3
%10 = tail call double* @malloc(i32 %9)
%11 = icmp sgt i32 %4, 0
br i1 %11, label %12, label %16
12: ; preds = %5
%13 = bitcast double* %10 to i8*
%14 = zext i32 %4 to i64
%15 = shl nuw nsw i64 %14, 3
br label %16
16: ; preds = %12, %5
%17 = fptosi double %8 to i32
%18 = shl i32 %17, 3
%19 = add i32 %18, 8
%20 = tail call double* @malloc(i32 %19)
%21 = fadd double %8, 1.000000e+00
%22 = fneg double %0
%23 = tail call double @llvm.fmuladd.f64(double %2, double %21, double %22)
%24 = fsub double %23, %1
%25 = sext i32 %17 to i64
%26 = getelementptr inbounds double, double* %20, i64 %25
store double %24, double* %26
%27 = icmp sgt i32 %17, 0
br i1 %27, label %28, label %111
28: ; preds = %16
%29 = zext i32 %17 to i64
%30 = icmp ult i32 %17, 4
br i1 %30, label %109, label %31
31: ; preds = %28
%32 = add nsw i64 %29, -1
%33 = add i32 %17, -1
%34 = trunc i64 %32 to i32
%35 = icmp ult i32 %33, %34
%36 = icmp ugt i64 %32, 4294967295
%37 = or i1 %35, %36
%38 = zext i32 %33 to i64
%39 = getelementptr double, double* %20, i64 %38
%40 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %32, i64 8)
%41 = extractvalue { i64, i1 } %40, 0
%42 = extractvalue { i64, i1 } %40, 1
%43 = bitcast double* %39 to i8*
%44 = sub i64 0, %41
%45 = getelementptr i8, i8* %43, i64 %44
%46 = icmp ugt i8* %45, %43
%47 = or i1 %46, %42
%48 = getelementptr double, double* %20, i64 %29
%49 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %32, i64 8)
%50 = extractvalue { i64, i1 } %49, 0
%51 = extractvalue { i64, i1 } %49, 1
%52 = bitcast double* %48 to i8*
%53 = sub i64 0, %50
%54 = getelementptr i8, i8* %52, i64 %53
%55 = icmp ugt i8* %54, %52
%56 = or i1 %55, %51
%57 = or i1 %37, %47
%58 = or i1 %57, %56
br i1 %58, label %109, label %59
59: ; preds = %31
%60 = add i32 %17, -1
%61 = zext i32 %60 to i64
%62 = add nuw nsw i64 %61, 1
%63 = sub nsw i64 %62, %29
%64 = getelementptr double, double* %20, i64 %63
%65 = add nuw nsw i64 %61, 1
%66 = getelementptr double, double* %20, i64 %65
%67 = getelementptr double, double* %20, i64 1
%68 = add nuw nsw i64 %29, 1
%69 = getelementptr double, double* %20, i64 %68
%70 = icmp ult double* %64, %69
%71 = icmp ult double* %67, %66
%72 = and i1 %70, %71
br i1 %72, label %109, label %73
73: ; preds = %59
%74 = and i64 %29, 4294967292
%75 = and i64 %29, 3
%76 = insertelement <2 x double> poison, double %2, i64 0
%77 = shufflevector <2 x double> %76, <2 x double> poison, <2 x i32> zeroinitializer
%78 = insertelement <2 x double> poison, double %2, i64 0
%79 = shufflevector <2 x double> %78, <2 x double> poison, <2 x i32> zeroinitializer
br label %80
80: ; preds = %80, %73
%81 = phi i64 [ 0, %73 ], [ %105, %80 ]
%82 = sub i64 %29, %81
%83 = add i64 %82, 4294967295
%84 = getelementptr inbounds double, double* %20, i64 %82
%85 = getelementptr inbounds double, double* %84, i64 -1
%86 = bitcast double* %85 to <2 x double>*
%87 = load <2 x double>, <2 x double>* %86
%88 = shufflevector <2 x double> %87, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%89 = getelementptr inbounds double, double* %84, i64 -2
%90 = getelementptr inbounds double, double* %89, i64 -1
%91 = bitcast double* %90 to <2 x double>*
%92 = load <2 x double>, <2 x double>* %91
%93 = shufflevector <2 x double> %92, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%94 = fsub <2 x double> %88, %77
%95 = fsub <2 x double> %93, %79
%96 = and i64 %83, 4294967295
%97 = getelementptr inbounds double, double* %20, i64 %96
%98 = shufflevector <2 x double> %94, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%99 = getelementptr inbounds double, double* %97, i64 -1
%100 = bitcast double* %99 to <2 x double>*
store <2 x double> %98, <2 x double>* %100
%101 = shufflevector <2 x double> %95, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%102 = getelementptr inbounds double, double* %97, i64 -2
%103 = getelementptr inbounds double, double* %102, i64 -1
%104 = bitcast double* %103 to <2 x double>*
store <2 x double> %101, <2 x double>* %104
%105 = add nuw i64 %81, 4
%106 = icmp eq i64 %105, %74
br i1 %106, label %107, label %80
107: ; preds = %80
%108 = icmp eq i64 %74, %29
br i1 %108, label %111, label %109
109: ; preds = %59, %31, %28, %107
%110 = phi i64 [ %29, %59 ], [ %29, %31 ], [ %29, %28 ], [ %75, %107 ]
br label %116
111: ; preds = %116, %107, %16
%112 = icmp slt i32 %17, 0
br i1 %112, label %152, label %113
113: ; preds = %111
%114 = add nuw i32 %17, 1
%115 = zext i32 %114 to i64
br label %125
116: ; preds = %109, %116
%117 = phi i64 [ %118, %116 ], [ %110, %109 ]
%118 = add nsw i64 %117, -1
%119 = getelementptr inbounds double, double* %20, i64 %117
%120 = load double, double* %119
%121 = fsub double %120, %2
%122 = and i64 %118, 4294967295
%123 = getelementptr inbounds double, double* %20, i64 %122
store double %121, double* %123
%124 = icmp ugt i64 %117, 1
br i1 %124, label %116, label %111
125: ; preds = %113, %149
%126 = phi i64 [ 0, %113 ], [ %150, %149 ]
%127 = getelementptr inbounds double, double* %20, i64 %126
%128 = load double, double* %127
%129 = fcmp olt double %128, 0.000000e+00
br i1 %129, label %130, label %137
130: ; preds = %125
%131 = fadd double %128, %0
%132 = fcmp ogt double %131, 0.000000e+00
br i1 %132, label %133, label %137
133: ; preds = %130
%134 = fsub double %0, %131
%135 = fadd double %134, %3
%136 = fcmp ult double %135, %0
br i1 %136, label %144, label %149
137: ; preds = %130, %125
%138 = fcmp oge double %128, 0.000000e+00
%139 = fcmp olt double %128, %3
%140 = and i1 %138, %139
%141 = fsub double %3, %128
%142 = fcmp ult double %141, %0
%143 = and i1 %140, %142
br i1 %143, label %144, label %149
144: ; preds = %137, %133
%145 = phi double [ %135, %133 ], [ %141, %137 ]
%146 = fcmp une double %145, 0.000000e+00
br i1 %146, label %147, label %149
147: ; preds = %144
%148 = getelementptr inbounds double, double* %10, i64 %126
store double %145, double* %148
br label %149
149: ; preds = %133, %137, %147, %144
%150 = add nuw nsw i64 %126, 1
%151 = icmp eq i64 %150, %115
br i1 %151, label %152, label %125
152: ; preds = %149, %111
%153 = tail call i32 @free(double* %20)
ret double* %10
}