#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*/ free(double *);
scalar_t__ malloc(int);
int pow(double, double);
double sin(int);
double levy(double sol[], int DIM) {
  double aux, *y;
  int i;
  y = (double *)malloc(DIM * sizeof(double));
  for (i = 0; i < DIM; i++)
    y[i] = 1 + (sol[i] - 1) / 4.0;
  aux = pow(sin(3.14159265 * y[0]), 2.0);
  for (i = 0; i < DIM - 1; i++)
    aux = aux +
          pow(y[i] - 1, 2.0) * (1 + 10 * pow(sin(3.14159265 * y[i] + 1), 2.0));
  aux = aux + pow(y[DIM - 1] - 1, 2.0) *
                  (1 + pow(sin(2 * 3.14159265 * y[DIM - 1]), 2.0));
  free(y);
  return (aux);
}


x86 assembly (clang, -O0):
<levy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11c1 <levy+0x81>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xe8e(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xe8a(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xe76(%rip),%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1169 <levy+0x29>
mov    -0x20(%rbp),%rax
movsd  0xe3b(%rip),%xmm0
mulsd  (%rax),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <sin@plt>
movsd  0xe1e(%rip),%xmm1
call   1060 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x18(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    12a4 <levy+0x164>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xdf1(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xdcd(%rip),%xmm1
call   1060 <pow@plt>
mov    %eax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xdb8(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xdbc(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <sin@plt>
movsd  0xd8f(%rip),%xmm1
call   1060 <pow@plt>
movsd  -0x30(%rbp),%xmm0
mov    %eax,%ecx
mov    -0x28(%rbp),%eax
imul   $0xa,%ecx,%ecx
add    $0x1,%ecx
imul   %ecx,%eax
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11f7 <levy+0xb7>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xd50(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xd2c(%rip),%xmm1
call   1060 <pow@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xd1f(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <sin@plt>
movsd  0xcf9(%rip),%xmm1
call   1060 <pow@plt>
movsd  -0x40(%rbp),%xmm0
mov    %eax,%ecx
mov    -0x34(%rbp),%eax
add    $0x1,%ecx
imul   %ecx,%eax
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
movsd  -0x18(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<levy>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %esi,%r14d
mov    %rdi,%r15
lea    0x0(,%r14,8),%edi
call   1050 <malloc@plt>
mov    %rax,%r12
test   %r14d,%r14d
jle    1339 <levy+0x1f9>
mov    %r14d,%eax
cmp    $0x4,%r14d
jb     118e <levy+0x4e>
lea    (%r15,%rax,8),%rcx
cmp    %rcx,%r12
jae    1230 <levy+0xf0>
lea    (%r12,%rax,8),%rcx
cmp    %r15,%rcx
jbe    1230 <levy+0xf0>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
test   $0x1,%al
je     11c2 <levy+0x82>
movsd  (%r15,%rcx,8),%xmm0
addsd  0xe88(%rip),%xmm0
mulsd  0xe88(%rip),%xmm0
addsd  0xe88(%rip),%xmm0
movsd  %xmm0,(%r12,%rcx,8)
or     $0x1,%rcx
add    %rax,%rdx
je     1339 <levy+0x1f9>
movsd  0xe5d(%rip),%xmm0
movsd  0xe5d(%rip),%xmm1
movsd  0xe5d(%rip),%xmm2
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%r15,%rcx,8),%xmm3
addsd  %xmm0,%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  %xmm3,(%r12,%rcx,8)
movsd  0x8(%r15,%rcx,8),%xmm3
addsd  %xmm0,%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  %xmm3,0x8(%r12,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%rax
jne    11f0 <levy+0xb0>
jmp    1339 <levy+0x1f9>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     146c <levy+0x32c>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
movapd 0xda2(%rip),%xmm0
movapd 0xdaa(%rip),%xmm1
movapd 0xdb2(%rip),%xmm2
xchg   %ax,%ax
movupd (%r15,%rdx,8),%xmm3
movupd 0x10(%r15,%rdx,8),%xmm4
addpd  %xmm0,%xmm3
addpd  %xmm0,%xmm4
mulpd  %xmm1,%xmm3
mulpd  %xmm1,%xmm4
addpd  %xmm2,%xmm3
addpd  %xmm2,%xmm4
movupd %xmm3,(%r12,%rdx,8)
movupd %xmm4,0x10(%r12,%rdx,8)
movupd 0x20(%r15,%rdx,8),%xmm3
movupd 0x30(%r15,%rdx,8),%xmm4
addpd  %xmm0,%xmm3
addpd  %xmm0,%xmm4
mulpd  %xmm1,%xmm3
mulpd  %xmm1,%xmm4
addpd  %xmm2,%xmm3
addpd  %xmm2,%xmm4
movupd %xmm3,0x20(%r12,%rdx,8)
movupd %xmm4,0x30(%r12,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rdi
jne    1270 <levy+0x130>
test   $0x1,%sil
je     1330 <levy+0x1f0>
movupd (%r15,%rdx,8),%xmm0
movupd 0x10(%r15,%rdx,8),%xmm1
movapd 0xd05(%rip),%xmm2
addpd  %xmm2,%xmm0
addpd  %xmm2,%xmm1
movapd 0xd05(%rip),%xmm2
mulpd  %xmm2,%xmm0
mulpd  %xmm2,%xmm1
movapd 0xd05(%rip),%xmm2
addpd  %xmm2,%xmm0
addpd  %xmm2,%xmm1
movupd %xmm0,(%r12,%rdx,8)
movupd %xmm1,0x10(%r12,%rdx,8)
cmp    %rax,%rcx
jne    1190 <levy+0x50>
movsd  (%r12),%xmm0
mulsd  0xd01(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <sin@plt>
movsd  0xcf8(%rip),%xmm1
call   1060 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
lea    -0x1(%r14),%r15d
cmp    $0x2,%r14d
movsd  %xmm0,0x8(%rsp)
jl     13f4 <levy+0x2b4>
mov    %r15d,%r14d
xor    %ebx,%ebx
nopl   (%rax)
movsd  (%r12,%rbx,8),%xmm0
addsd  0xca2(%rip),%xmm0
movsd  0xcba(%rip),%xmm1
call   1060 <pow@plt>
mov    %eax,%ebp
movsd  (%r12,%rbx,8),%xmm0
mulsd  0xc9d(%rip),%xmm0
addsd  0xc8d(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <sin@plt>
movsd  0xc8c(%rip),%xmm1
call   1060 <pow@plt>
add    %eax,%eax
lea    (%rax,%rax,4),%eax
or     $0x1,%eax
imul   %ebp,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
add    $0x1,%rbx
cmp    %rbx,%r14
jne    1380 <levy+0x240>
movslq %r15d,%rbx
movsd  (%r12,%rbx,8),%xmm0
addsd  0xc2b(%rip),%xmm0
movsd  0xc43(%rip),%xmm1
call   1060 <pow@plt>
mov    %eax,%ebp
movsd  (%r12,%rbx,8),%xmm0
mulsd  0xc36(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <sin@plt>
movsd  0xc1d(%rip),%xmm1
call   1060 <pow@plt>
add    $0x1,%eax
imul   %ebp,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r12,%rdi
call   1030 <free@plt>
movsd  0x8(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edx,%edx
test   $0x1,%sil
jne    12e6 <levy+0x1a6>
jmp    1330 <levy+0x1f0>

LLVM IR (-O0):
define double @levy(double* %0, i32 %1) {
%3 = alloca double*
%4 = alloca i32
%5 = alloca double
%6 = alloca double*
%7 = alloca i32
store double* %0, double** %3
store i32 %1, i32* %4
%8 = load i32, i32* %4
%9 = sext i32 %8 to i64
%10 = mul i64 %9, 8
%11 = trunc i64 %10 to i32
%12 = call i64 @malloc(i32 %11)
%13 = inttoptr i64 %12 to double*
store double* %13, double** %6
store i32 0, i32* %7
br label %14
14: ; preds = %31, %2
%15 = load i32, i32* %7
%16 = load i32, i32* %4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %34
18: ; preds = %14
%19 = load double*, double** %3
%20 = load i32, i32* %7
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, double* %19, i64 %21
%23 = load double, double* %22
%24 = fsub double %23, 1.000000e+00
%25 = fdiv double %24, 4.000000e+00
%26 = fadd double 1.000000e+00, %25
%27 = load double*, double** %6
%28 = load i32, i32* %7
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, double* %27, i64 %29
store double %26, double* %30
br label %31
31: ; preds = %18
%32 = load i32, i32* %7
%33 = add nsw i32 %32, 1
store i32 %33, i32* %7
br label %14
34: ; preds = %14
%35 = load double*, double** %6
%36 = getelementptr inbounds double, double* %35, i64 0
%37 = load double, double* %36
%38 = fmul double 0x400921FB53C8D4F1, %37
%39 = fptosi double %38 to i32
%40 = call double @sin(i32 %39)
%41 = call i32 @pow(double %40, double 2.000000e+00)
%42 = sitofp i32 %41 to double
store double %42, double* %5
store i32 0, i32* %7
br label %43
43: ; preds = %71, %34
%44 = load i32, i32* %7
%45 = load i32, i32* %4
%46 = sub nsw i32 %45, 1
%47 = icmp slt i32 %44, %46
br i1 %47, label %48, label %74
48: ; preds = %43
%49 = load double, double* %5
%50 = load double*, double** %6
%51 = load i32, i32* %7
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double, double* %50, i64 %52
%54 = load double, double* %53
%55 = fsub double %54, 1.000000e+00
%56 = call i32 @pow(double %55, double 2.000000e+00)
%57 = load double*, double** %6
%58 = load i32, i32* %7
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, double* %57, i64 %59
%61 = load double, double* %60
%62 = call double @llvm.fmuladd.f64(double 0x400921FB53C8D4F1, double %61, double 1.000000e+00)
%63 = fptosi double %62 to i32
%64 = call double @sin(i32 %63)
%65 = call i32 @pow(double %64, double 2.000000e+00)
%66 = mul nsw i32 10, %65
%67 = add nsw i32 1, %66
%68 = mul nsw i32 %56, %67
%69 = sitofp i32 %68 to double
%70 = fadd double %49, %69
store double %70, double* %5
br label %71
71: ; preds = %48
%72 = load i32, i32* %7
%73 = add nsw i32 %72, 1
store i32 %73, i32* %7
br label %43
74: ; preds = %43
%75 = load double, double* %5
%76 = load double*, double** %6
%77 = load i32, i32* %4
%78 = sub nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, double* %76, i64 %79
%81 = load double, double* %80
%82 = fsub double %81, 1.000000e+00
%83 = call i32 @pow(double %82, double 2.000000e+00)
%84 = load double*, double** %6
%85 = load i32, i32* %4
%86 = sub nsw i32 %85, 1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds double, double* %84, i64 %87
%89 = load double, double* %88
%90 = fmul double 0x401921FB53C8D4F1, %89
%91 = fptosi double %90 to i32
%92 = call double @sin(i32 %91)
%93 = call i32 @pow(double %92, double 2.000000e+00)
%94 = add nsw i32 1, %93
%95 = mul nsw i32 %83, %94
%96 = sitofp i32 %95 to double
%97 = fadd double %75, %96
store double %97, double* %5
%98 = load double*, double** %6
%99 = call i32 @free(double* %98)
%100 = load double, double* %5
ret double %100
}

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