#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 abs(int);
double *bspline(double *, double *, int, double *, int, int, int, int, int);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
double *bspline_prod(double *x, int nx, double *knots, int nknots, int m, int l,
                     int r, int dl, int dr) {
  double *result, *bl, *br;
  int k;
  if (abs(r - l) <= m) {
    result = (double *)malloc(sizeof(double) * nx);
    bl = (double *)malloc(sizeof(double) * nx);
    br = (double *)malloc(sizeof(double) * nx);
    bl = bspline(bl, x, nx, knots, nknots, m, dl, l, l + 1);
    br = bspline(br, x, nx, knots, nknots, m, dr, r, r + 1);
    for (k = 0; k < nx; k++) {
      result[k] = bl[k] * br[k];
    }
    free(bl);
    free(br);
  } else {
    for (k = 0; k < nx; k++) {
      result[k] = 0.;
    }
  }
  return (result);
}


x86 assembly (clang, -O0):
<bspline_prod>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
mov    0x10(%rbp),%edi
sub    -0x24(%rbp),%edi
call   1040 <abs@plt>
cmp    -0x20(%rbp),%eax
jg     1289 <bspline_prod+0x149>
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
mov    -0x20(%rbp),%r9d
mov    0x18(%rbp),%r11d
mov    -0x24(%rbp),%r10d
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1050 <bspline@plt>
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
mov    -0x20(%rbp),%r9d
mov    0x20(%rbp),%r11d
mov    0x10(%rbp),%r10d
mov    0x10(%rbp),%eax
add    $0x1,%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1050 <bspline@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1272 <bspline_prod+0x132>
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1231 <bspline_prod+0xf1>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
jmp    12bf <bspline_prod+0x17f>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12ba <bspline_prod+0x17a>
mov    -0x30(%rbp),%rax
movslq -0x44(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1290 <bspline_prod+0x150>
jmp    12bf <bspline_prod+0x17f>
mov    -0x30(%rbp),%rax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bspline_prod>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %esi,%r12d
mov    0x60(%rsp),%eax
sub    %r9d,%eax
mov    %eax,%esi
neg    %esi
cmovs  %eax,%esi
cmp    %r8d,%esi
jg     13e3 <bspline_prod+0x2b3>
mov    %r9d,%ebp
mov    %r8d,%r13d
lea    0x0(,%r12,8),%ebx
mov    %rdi,0x8(%rsp)
mov    %ebx,%edi
mov    %ecx,0x4(%rsp)
mov    %rdx,%r15
mov    %rdx,0x18(%rsp)
call   1050 <malloc@plt>
mov    %rax,%r14
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,0x10(%rsp)
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,0x20(%rsp)
lea    0x1(%rbp),%eax
sub    $0x8,%rsp
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    %r12d,%edx
mov    %r15,%rcx
mov    0xc(%rsp),%ebx
mov    %ebx,%r8d
mov    %r13d,%r9d
push   %rax
push   %rbp
mov    0x80(%rsp),%eax
push   %rax
call   1040 <bspline@plt>
add    $0x20,%rsp
mov    %rax,%r15
mov    0x60(%rsp),%ebp
lea    0x1(%rbp),%eax
sub    $0x8,%rsp
mov    0x28(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    %r12d,%edx
mov    0x20(%rsp),%rcx
mov    %ebx,%r8d
mov    %r13d,%r9d
push   %rax
push   %rbp
mov    0x88(%rsp),%eax
push   %rax
call   1040 <bspline@plt>
add    $0x20,%rsp
mov    %rax,%rbx
test   %r12d,%r12d
jle    13d3 <bspline_prod+0x2a3>
mov    %r12d,%eax
cmp    $0x4,%r12d
jae    12cb <bspline_prod+0x19b>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %rax,%rdx
mov    %rax,%rsi
and    $0x3,%rsi
je     125b <bspline_prod+0x12b>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%r15,%rcx,8),%xmm0
mulsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%r14,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    1240 <bspline_prod+0x110>
cmp    $0x3,%rdx
jb     13d3 <bspline_prod+0x2a3>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%r15,%rcx,8),%xmm0
mulsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%r14,%rcx,8)
movsd  0x8(%r15,%rcx,8),%xmm0
mulsd  0x8(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x8(%r14,%rcx,8)
movsd  0x10(%r15,%rcx,8),%xmm0
mulsd  0x10(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x10(%r14,%rcx,8)
movsd  0x18(%r15,%rcx,8),%xmm0
mulsd  0x18(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x18(%r14,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    1270 <bspline_prod+0x140>
jmp    13d3 <bspline_prod+0x2a3>
lea    (%r14,%rax,8),%rcx
lea    (%r15,%rax,8),%rdx
lea    (%rbx,%rax,8),%rsi
cmp    %rdx,%r14
setb   %dil
cmp    %rcx,%r15
setb   %r8b
cmp    %rsi,%r14
setb   %dl
cmp    %rcx,%rbx
setb   %sil
xor    %ecx,%ecx
test   %r8b,%dil
jne    1221 <bspline_prod+0xf1>
and    %sil,%dl
jne    1221 <bspline_prod+0xf1>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     13f5 <bspline_prod+0x2c5>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
nopl   0x0(%rax)
movupd (%r15,%rdx,8),%xmm0
movupd 0x10(%r15,%rdx,8),%xmm1
movupd (%rbx,%rdx,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rdx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,(%r14,%rdx,8)
movupd %xmm0,0x10(%r14,%rdx,8)
movupd 0x20(%r15,%rdx,8),%xmm0
movupd 0x30(%r15,%rdx,8),%xmm1
movupd 0x20(%rbx,%rdx,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x30(%rbx,%rdx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,0x20(%r14,%rdx,8)
movupd %xmm0,0x30(%r14,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rdi
jne    1330 <bspline_prod+0x200>
test   $0x1,%sil
je     13ca <bspline_prod+0x29a>
movupd (%r15,%rdx,8),%xmm0
movupd 0x10(%r15,%rdx,8),%xmm1
movupd (%rbx,%rdx,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rdx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,(%r14,%rdx,8)
movupd %xmm0,0x10(%r14,%rdx,8)
cmp    %rax,%rcx
jne    1221 <bspline_prod+0xf1>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r14,%rax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edx,%edx
test   $0x1,%sil
jne    139d <bspline_prod+0x26d>
jmp    13ca <bspline_prod+0x29a>

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

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