#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 *malloc(int);
int rand();
int sqrt(int);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
double *koch_curve(int n_iter) {
  int i;
  int test;
  double *points = malloc(2 * n_iter * sizeof(double));
  points[0] = 0.0;
  points[1] = 0.0;
  srand(time(NULL));
  for (i = 2; i < (2 * n_iter); i += 2) {
    test = rand() % 4;
    if (test < 1) {
      points[i] = 1.0 / 3 * points[i - 2];
      points[i + 1] = 1.0 / 3 * points[i - 1];
    } else if (test < 2) {
      points[i] =
          1.0 / 6 * points[i - 2] - sqrt(3) / 6 * points[i - 1] + 1.0 / 3;
      points[i + 1] = sqrt(3) / 6 * points[i - 2] + 1.0 / 6 * points[i - 1];
    } else if (test < 3) {
      points[i] = 1.0 / 6 * points[i - 2] + sqrt(3) / 6 * points[i - 1] + 0.5;
      points[i + 1] =
          -sqrt(3) / 6 * points[i - 2] + 1.0 / 6 * points[i - 1] + sqrt(3) / 6;
    } else {
      points[i] = 1.0 / 3 * points[i - 2] + 2.0 / 3;
      points[i + 1] = 1.0 / 3 * points[i - 1];
    }
  }
  return points;
}


x86 assembly (clang, -O0):
<koch_curve>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
xor    %eax,%eax
mov    %eax,%edi
call   1040 <time@plt>
mov    %eax,%edi
call   1030 <srand@plt>
movl   $0x2,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x4(%rbp),%ecx
shl    $0x1,%ecx
cmp    %ecx,%eax
jge    1496 <koch_curve+0x346>
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %edx,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
jge    1225 <koch_curve+0xd5>
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  0xe1e(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xdf7(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1483 <koch_curve+0x333>
cmpl   $0x2,-0xc(%rbp)
jge    1314 <koch_curve+0x1c4>
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    $0x3,%edi
call   1060 <sqrt@plt>
movsd  -0x20(%rbp),%xmm0
mov    $0x6,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm1
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xd7e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xd5e(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    $0x3,%edi
call   1060 <sqrt@plt>
mov    $0x6,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xd20(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    147e <koch_curve+0x32e>
cmpl   $0x3,-0xc(%rbp)
jge    1416 <koch_curve+0x2c6>
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    $0x3,%edi
call   1060 <sqrt@plt>
movsd  -0x30(%rbp),%xmm0
mov    $0x6,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm1
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm1
movsd  0xca6(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xc9e(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    $0x3,%edi
call   1060 <sqrt@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    $0x6,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xc42(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    $0x3,%edi
call   1060 <sqrt@plt>
movsd  -0x28(%rbp),%xmm0
mov    $0x6,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1479 <koch_curve+0x329>
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xbd0(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xbcc(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xb9e(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    147e <koch_curve+0x32e>
jmp    1483 <koch_curve+0x333>
jmp    1488 <koch_curve+0x338>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    11a0 <koch_curve+0x50>
mov    -0x18(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<koch_curve>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %edi,%ebp
shl    $0x4,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
xorpd  %xmm0,%xmm0
movupd %xmm0,(%rax)
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,%edi
call   1030 <srand@plt>
cmp    $0x2,%ebp
jl     13b2 <koch_curve+0x262>
add    %ebp,%ebp
movslq %ebp,%r14
xorpd  %xmm2,%xmm2
mov    $0x1,%ebp
jmp    125f <koch_curve+0x10f>
nopw   0x0(%rax,%rax,1)
mov    $0x3,%edi
call   1060 <sqrt@plt>
cltq
imul   $0x2aaaaaab,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rbx,%rbp,8),%xmm1
movsd  %xmm1,0x18(%rsp)
mulsd  %xmm1,%xmm0
movsd  0x8(%rsp),%xmm2
movsd  0xe2c(%rip),%xmm1
mulsd  %xmm1,%xmm2
subsd  %xmm0,%xmm2
addsd  0xe0c(%rip),%xmm2
movsd  %xmm2,0x10(%rsp)
movsd  %xmm2,0x8(%rbx,%rbp,8)
mov    $0x3,%edi
call   1060 <sqrt@plt>
cltq
imul   $0x2aaaaaab,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  0xddb(%rip),%xmm1
mulsd  0x8(%rsp),%xmm0
addsd  %xmm1,%xmm0
movsd  0x10(%rsp),%xmm2
movsd  %xmm0,0x10(%rbx,%rbp,8)
lea    0x2(%rbp),%rax
add    $0x3,%rbp
cmp    %r14,%rbp
mov    %rax,%rbp
jge    13b2 <koch_curve+0x262>
movsd  %xmm2,0x8(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
lea    0x3(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffffc,%ecx
sub    %ecx,%eax
test   %eax,%eax
jle    1370 <koch_curve+0x220>
cmp    $0x1,%eax
je     11a0 <koch_curve+0x50>
cmp    $0x2,%eax
ja     1384 <koch_curve+0x234>
mov    $0x3,%edi
call   1060 <sqrt@plt>
cltq
imul   $0x2aaaaaab,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rbx,%rbp,8),%xmm1
movsd  %xmm1,0x10(%rsp)
mulsd  %xmm1,%xmm0
movsd  0x8(%rsp),%xmm2
movsd  0xd39(%rip),%xmm1
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
addsd  0xd31(%rip),%xmm2
movsd  %xmm2,0x18(%rsp)
movsd  %xmm2,0x8(%rbx,%rbp,8)
mov    $0x3,%edi
call   1060 <sqrt@plt>
cltq
imul   $0xffffffffd5555555,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x10(%rsp),%xmm0
mulsd  0xce8(%rip),%xmm0
mulsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    $0x3,%edi
call   1060 <sqrt@plt>
cltq
imul   $0x2aaaaaab,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x8(%rsp),%xmm0
movsd  0x18(%rsp),%xmm2
jmp    1245 <koch_curve+0xf5>
movsd  0xc88(%rip),%xmm1
movsd  0x8(%rsp),%xmm2
mulsd  %xmm1,%xmm2
jmp    139e <koch_curve+0x24e>
movsd  0xc74(%rip),%xmm1
movsd  0x8(%rsp),%xmm2
mulsd  %xmm1,%xmm2
addsd  0xc6a(%rip),%xmm2
movsd  %xmm2,0x8(%rbx,%rbp,8)
movsd  (%rbx,%rbp,8),%xmm0
mulsd  %xmm1,%xmm0
jmp    1245 <koch_curve+0xf5>
mov    %rbx,%rax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define noalias double* @koch_curve(i32 %0) {
%2 = shl i32 %0, 4
%3 = tail call double* @malloc(i32 %2)
%4 = bitcast double* %3 to i8*
%5 = tail call i32 @time(i32* null)
%6 = tail call i32 @srand(i32 %5)
%7 = icmp sgt i32 %0, 1
br i1 %7, label %8, label %79
8: ; preds = %1
%9 = shl nuw nsw i32 %0, 1
%10 = sext i32 %9 to i64
br label %11
11: ; preds = %8, %72
%12 = phi double [ 0.000000e+00, %8 ], [ %74, %72 ]
%13 = phi i64 [ 2, %8 ], [ %77, %72 ]
%14 = tail call i32 (...) @rand()
%15 = srem i32 %14, 4
%16 = icmp slt i32 %15, 1
br i1 %16, label %17, label %24
17: ; preds = %11
%18 = fmul double %12, 0x3FD5555555555555
%19 = getelementptr inbounds double, double* %3, i64 %13
store double %18, double* %19
%20 = add nsw i64 %13, -1
%21 = getelementptr inbounds double, double* %3, i64 %20
%22 = load double, double* %21
%23 = fmul double %22, 0x3FD5555555555555
br label %72
24: ; preds = %11
%25 = icmp eq i32 %15, 1
br i1 %25, label %26, label %43
26: ; preds = %24
%27 = tail call i32 @sqrt(i32 3)
%28 = sdiv i32 %27, 6
%29 = sitofp i32 %28 to double
%30 = add nsw i64 %13, -1
%31 = getelementptr inbounds double, double* %3, i64 %30
%32 = load double, double* %31
%33 = fneg double %32
%34 = fmul double %33, %29
%35 = tail call double @llvm.fmuladd.f64(double %12, double 0x3FC5555555555555, double %34)
%36 = fadd double %35, 0x3FD5555555555555
%37 = getelementptr inbounds double, double* %3, i64 %13
store double %36, double* %37
%38 = tail call i32 @sqrt(i32 3)
%39 = sdiv i32 %38, 6
%40 = sitofp i32 %39 to double
%41 = fmul double %32, 0x3FC5555555555555
%42 = tail call double @llvm.fmuladd.f64(double %40, double %12, double %41)
br label %72
43: ; preds = %24
%44 = icmp ult i32 %15, 3
br i1 %44, label %45, label %65
45: ; preds = %43
%46 = tail call i32 @sqrt(i32 3)
%47 = sdiv i32 %46, 6
%48 = sitofp i32 %47 to double
%49 = add nsw i64 %13, -1
%50 = getelementptr inbounds double, double* %3, i64 %49
%51 = load double, double* %50
%52 = fmul double %51, %48
%53 = tail call double @llvm.fmuladd.f64(double %12, double 0x3FC5555555555555, double %52)
%54 = fadd double %53, 5.000000e-01
%55 = getelementptr inbounds double, double* %3, i64 %13
store double %54, double* %55
%56 = tail call i32 @sqrt(i32 3)
%57 = sdiv i32 %56, -6
%58 = sitofp i32 %57 to double
%59 = fmul double %51, 0x3FC5555555555555
%60 = tail call double @llvm.fmuladd.f64(double %58, double %12, double %59)
%61 = tail call i32 @sqrt(i32 3)
%62 = sdiv i32 %61, 6
%63 = sitofp i32 %62 to double
%64 = fadd double %60, %63
br label %72
65: ; preds = %43
%66 = tail call double @llvm.fmuladd.f64(double %12, double 0x3FD5555555555555, double 0x3FE5555555555555)
%67 = getelementptr inbounds double, double* %3, i64 %13
store double %66, double* %67
%68 = add nsw i64 %13, -1
%69 = getelementptr inbounds double, double* %3, i64 %68
%70 = load double, double* %69
%71 = fmul double %70, 0x3FD5555555555555
br label %72
72: ; preds = %17, %45, %65, %26
%73 = phi double [ %23, %17 ], [ %64, %45 ], [ %71, %65 ], [ %42, %26 ]
%74 = phi double [ %18, %17 ], [ %54, %45 ], [ %66, %65 ], [ %36, %26 ]
%75 = or i64 %13, 1
%76 = getelementptr inbounds double, double* %3, i64 %75
store double %73, double* %76
%77 = add nuw nsw i64 %13, 2
%78 = icmp slt i64 %77, %10
br i1 %78, label %11, label %79
79: ; preds = %72, %1
ret double* %3
}