; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (interpolation)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::barycentricinterpolant" = type { i64, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.354 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.355 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.356 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.357 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl15barycentriccalcEPNS_22barycentricinterpolantEdPNS_8ae_stateE(ptr noundef, double noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl17polynomialbar2powEPNS_22barycentricinterpolantEddPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !9
  store double %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %30, ptr noundef %11)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 64, i1 false)
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %31)
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %32, i1 noundef zeroext true)
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %33, i1 noundef zeroext true)
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 3, ptr noundef %34, i1 noundef zeroext true)
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 3, ptr noundef %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 3, ptr noundef %36, i1 noundef zeroext true)
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %26, i64 noundef 0, i64 noundef 3, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 3, ptr noundef %38, i1 noundef zeroext true)
  %39 = load double, ptr %7, align 8, !tbaa !9
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %39, ptr noundef %40)
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef @.str.354, ptr noundef %42)
  %43 = load double, ptr %8, align 8, !tbaa !9
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %43, ptr noundef %44)
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %45, ptr noundef @.str.355, ptr noundef %46)
  %47 = load double, ptr %8, align 8, !tbaa !9
  %48 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %47, double noundef 0.000000e+00)
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.356, ptr noundef %49)
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %50, i32 0, i32 0
  %52 = load i64, ptr %51, align 8, !tbaa !11
  %53 = icmp sgt i64 %52, 0
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef @.str.357, ptr noundef %54)
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %55, i32 0, i32 2
  %57 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %56, i32 0, i32 4
  %58 = load ptr, ptr %57, align 8, !tbaa !17
  %59 = getelementptr inbounds double, ptr %58, i64 0
  %60 = load double, ptr %59, align 8, !tbaa !9
  store double %60, ptr %28, align 8, !tbaa !9
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %61, i32 0, i32 2
  %63 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %62, i32 0, i32 4
  %64 = load ptr, ptr %63, align 8, !tbaa !17
  %65 = getelementptr inbounds double, ptr %64, i64 0
  %66 = load double, ptr %65, align 8, !tbaa !9
  store double %66, ptr %29, align 8, !tbaa !9
  store i64 1, ptr %12, align 8, !tbaa !18
  br label %67

67:                                               ; preds = %95, %5
  %68 = load i64, ptr %12, align 8, !tbaa !18
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %69, i32 0, i32 0
  %71 = load i64, ptr %70, align 8, !tbaa !11
  %72 = sub nsw i64 %71, 1
  %73 = icmp sle i64 %68, %72
  br i1 %73, label %74, label %98

74:                                               ; preds = %67
  %75 = load double, ptr %28, align 8, !tbaa !9
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %76, i32 0, i32 2
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %77, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !17
  %80 = load i64, ptr %12, align 8, !tbaa !18
  %81 = getelementptr inbounds double, ptr %79, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !9
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %75, double noundef %82, ptr noundef %83)
  store double %84, ptr %28, align 8, !tbaa !9
  %85 = load double, ptr %29, align 8, !tbaa !9
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %86, i32 0, i32 2
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %87, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !17
  %90 = load i64, ptr %12, align 8, !tbaa !18
  %91 = getelementptr inbounds double, ptr %89, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %85, double noundef %92, ptr noundef %93)
  store double %94, ptr %29, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %74
  %96 = load i64, ptr %12, align 8, !tbaa !18
  %97 = add nsw i64 %96, 1
  store i64 %97, ptr %12, align 8, !tbaa !18
  br label %67, !llvm.loop !19

98:                                               ; preds = %67
  %99 = load double, ptr %28, align 8, !tbaa !9
  %100 = load double, ptr %29, align 8, !tbaa !9
  %101 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %99, double noundef %100)
  br i1 %101, label %102, label %104

102:                                              ; preds = %98
  %103 = load double, ptr %28, align 8, !tbaa !9
  store double %103, ptr %22, align 8, !tbaa !9
  store double 1.000000e+00, ptr %23, align 8, !tbaa !9
  br label %113

104:                                              ; preds = %98
  %105 = load double, ptr %29, align 8, !tbaa !9
  %106 = load double, ptr %28, align 8, !tbaa !9
  %107 = fadd double %105, %106
  %108 = fmul double 5.000000e-01, %107
  store double %108, ptr %22, align 8, !tbaa !9
  %109 = load double, ptr %29, align 8, !tbaa !9
  %110 = load double, ptr %28, align 8, !tbaa !9
  %111 = fsub double %109, %110
  %112 = fmul double 5.000000e-01, %111
  store double %112, ptr %23, align 8, !tbaa !9
  br label %113

113:                                              ; preds = %104, %102
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %114, i32 0, i32 0
  %116 = load i64, ptr %115, align 8, !tbaa !11
  %117 = add nsw i64 %116, 1
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %117, ptr noundef %118)
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %119, i32 0, i32 0
  %121 = load i64, ptr %120, align 8, !tbaa !11
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %121, ptr noundef %122)
  store i64 0, ptr %12, align 8, !tbaa !18
  br label %123

123:                                              ; preds = %161, %113
  %124 = load i64, ptr %12, align 8, !tbaa !18
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %125, i32 0, i32 0
  %127 = load i64, ptr %126, align 8, !tbaa !11
  %128 = sub nsw i64 %127, 1
  %129 = icmp sle i64 %124, %128
  br i1 %129, label %130, label %164

130:                                              ; preds = %123
  %131 = load i64, ptr %12, align 8, !tbaa !18
  %132 = sitofp i64 %131 to double
  %133 = fadd double %132, 5.000000e-01
  %134 = fmul double 0x400921FB54442D18, %133
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %135, i32 0, i32 0
  %137 = load i64, ptr %136, align 8, !tbaa !11
  %138 = sitofp i64 %137 to double
  %139 = fdiv double %134, %138
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %139, ptr noundef %140)
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !17
  %144 = load i64, ptr %12, align 8, !tbaa !18
  %145 = getelementptr inbounds double, ptr %143, i64 %144
  store double %141, ptr %145, align 8, !tbaa !9
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = load double, ptr %23, align 8, !tbaa !9
  %148 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %149 = load ptr, ptr %148, align 8, !tbaa !17
  %150 = load i64, ptr %12, align 8, !tbaa !18
  %151 = getelementptr inbounds double, ptr %149, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !9
  %153 = load double, ptr %22, align 8, !tbaa !9
  %154 = call double @llvm.fmuladd.f64(double %147, double %152, double %153)
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = call noundef double @_ZN11alglib_impl15barycentriccalcEPNS_22barycentricinterpolantEdPNS_8ae_stateE(ptr noundef %146, double noundef %154, ptr noundef %155)
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !17
  %159 = load i64, ptr %12, align 8, !tbaa !18
  %160 = getelementptr inbounds double, ptr %158, i64 %159
  store double %156, ptr %160, align 8, !tbaa !9
  br label %161

161:                                              ; preds = %130
  %162 = load i64, ptr %12, align 8, !tbaa !18
  %163 = add nsw i64 %162, 1
  store i64 %163, ptr %12, align 8, !tbaa !18
  br label %123, !llvm.loop !21

164:                                              ; preds = %123
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %165, i32 0, i32 0
  %167 = load i64, ptr %166, align 8, !tbaa !11
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %167, ptr noundef %168)
  store double 0.000000e+00, ptr %21, align 8, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !18
  br label %169

169:                                              ; preds = %184, %164
  %170 = load i64, ptr %12, align 8, !tbaa !18
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %171, i32 0, i32 0
  %173 = load i64, ptr %172, align 8, !tbaa !11
  %174 = sub nsw i64 %173, 1
  %175 = icmp sle i64 %170, %174
  br i1 %175, label %176, label %187

176:                                              ; preds = %169
  %177 = load double, ptr %21, align 8, !tbaa !9
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !17
  %180 = load i64, ptr %12, align 8, !tbaa !18
  %181 = getelementptr inbounds double, ptr %179, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !9
  %183 = fadd double %177, %182
  store double %183, ptr %21, align 8, !tbaa !9
  br label %184

184:                                              ; preds = %176
  %185 = load i64, ptr %12, align 8, !tbaa !18
  %186 = add nsw i64 %185, 1
  store i64 %186, ptr %12, align 8, !tbaa !18
  br label %169, !llvm.loop !22

187:                                              ; preds = %169
  %188 = load double, ptr %21, align 8, !tbaa !9
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %189, i32 0, i32 0
  %191 = load i64, ptr %190, align 8, !tbaa !11
  %192 = sitofp i64 %191 to double
  %193 = fdiv double %188, %192
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %195 = load ptr, ptr %194, align 8, !tbaa !17
  %196 = getelementptr inbounds double, ptr %195, i64 0
  store double %193, ptr %196, align 8, !tbaa !9
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %197, i32 0, i32 0
  %199 = load i64, ptr %198, align 8, !tbaa !11
  %200 = icmp sgt i64 %199, 1
  br i1 %200, label %201, label %314

201:                                              ; preds = %187
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %202, i32 0, i32 0
  %204 = load i64, ptr %203, align 8, !tbaa !11
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %204, ptr noundef %205)
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %206, i32 0, i32 0
  %208 = load i64, ptr %207, align 8, !tbaa !11
  %209 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %208, ptr noundef %209)
  store i64 0, ptr %12, align 8, !tbaa !18
  br label %210

210:                                              ; preds = %231, %201
  %211 = load i64, ptr %12, align 8, !tbaa !18
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %212, i32 0, i32 0
  %214 = load i64, ptr %213, align 8, !tbaa !11
  %215 = sub nsw i64 %214, 1
  %216 = icmp sle i64 %211, %215
  br i1 %216, label %217, label %234

217:                                              ; preds = %210
  %218 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %219 = load ptr, ptr %218, align 8, !tbaa !17
  %220 = load i64, ptr %12, align 8, !tbaa !18
  %221 = getelementptr inbounds double, ptr %219, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !9
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !17
  %225 = load i64, ptr %12, align 8, !tbaa !18
  %226 = getelementptr inbounds double, ptr %224, i64 %225
  store double %222, ptr %226, align 8, !tbaa !9
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %228 = load ptr, ptr %227, align 8, !tbaa !17
  %229 = load i64, ptr %12, align 8, !tbaa !18
  %230 = getelementptr inbounds double, ptr %228, i64 %229
  store double 1.000000e+00, ptr %230, align 8, !tbaa !9
  br label %231

231:                                              ; preds = %217
  %232 = load i64, ptr %12, align 8, !tbaa !18
  %233 = add nsw i64 %232, 1
  store i64 %233, ptr %12, align 8, !tbaa !18
  br label %210, !llvm.loop !23

234:                                              ; preds = %210
  store i64 1, ptr %13, align 8, !tbaa !18
  br label %235

235:                                              ; preds = %310, %234
  %236 = load i64, ptr %13, align 8, !tbaa !18
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  %238 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %237, i32 0, i32 0
  %239 = load i64, ptr %238, align 8, !tbaa !11
  %240 = sub nsw i64 %239, 1
  %241 = icmp sle i64 %236, %240
  br i1 %241, label %242, label %313

242:                                              ; preds = %235
  %243 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %244 = load ptr, ptr %243, align 8, !tbaa !17
  %245 = getelementptr inbounds double, ptr %244, i64 0
  %246 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %247 = load ptr, ptr %246, align 8, !tbaa !17
  %248 = getelementptr inbounds double, ptr %247, i64 0
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %249, i32 0, i32 0
  %251 = load i64, ptr %250, align 8, !tbaa !11
  %252 = sub nsw i64 %251, 1
  %253 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %252)
  %254 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %245, i64 noundef 1, ptr noundef %248, i64 noundef 1, i64 noundef %253)
  store double %254, ptr %21, align 8, !tbaa !9
  %255 = load double, ptr %21, align 8, !tbaa !9
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %256, i32 0, i32 0
  %258 = load i64, ptr %257, align 8, !tbaa !11
  %259 = sitofp i64 %258 to double
  %260 = fmul double 5.000000e-01, %259
  %261 = fdiv double %255, %260
  %262 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %263 = load ptr, ptr %262, align 8, !tbaa !17
  %264 = load i64, ptr %13, align 8, !tbaa !18
  %265 = getelementptr inbounds double, ptr %263, i64 %264
  store double %261, ptr %265, align 8, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !18
  br label %266

266:                                              ; preds = %306, %242
  %267 = load i64, ptr %12, align 8, !tbaa !18
  %268 = load ptr, ptr %6, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %268, i32 0, i32 0
  %270 = load i64, ptr %269, align 8, !tbaa !11
  %271 = sub nsw i64 %270, 1
  %272 = icmp sle i64 %267, %271
  br i1 %272, label %273, label %309

273:                                              ; preds = %266
  %274 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %275 = load ptr, ptr %274, align 8, !tbaa !17
  %276 = load i64, ptr %12, align 8, !tbaa !18
  %277 = getelementptr inbounds double, ptr %275, i64 %276
  %278 = load double, ptr %277, align 8, !tbaa !9
  %279 = fmul double 2.000000e+00, %278
  %280 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %281 = load ptr, ptr %280, align 8, !tbaa !17
  %282 = load i64, ptr %12, align 8, !tbaa !18
  %283 = getelementptr inbounds double, ptr %281, i64 %282
  %284 = load double, ptr %283, align 8, !tbaa !9
  %285 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %286 = load ptr, ptr %285, align 8, !tbaa !17
  %287 = load i64, ptr %12, align 8, !tbaa !18
  %288 = getelementptr inbounds double, ptr %286, i64 %287
  %289 = load double, ptr %288, align 8, !tbaa !9
  %290 = fneg double %289
  %291 = call double @llvm.fmuladd.f64(double %279, double %284, double %290)
  store double %291, ptr %21, align 8, !tbaa !9
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %293 = load ptr, ptr %292, align 8, !tbaa !17
  %294 = load i64, ptr %12, align 8, !tbaa !18
  %295 = getelementptr inbounds double, ptr %293, i64 %294
  %296 = load double, ptr %295, align 8, !tbaa !9
  %297 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %298 = load ptr, ptr %297, align 8, !tbaa !17
  %299 = load i64, ptr %12, align 8, !tbaa !18
  %300 = getelementptr inbounds double, ptr %298, i64 %299
  store double %296, ptr %300, align 8, !tbaa !9
  %301 = load double, ptr %21, align 8, !tbaa !9
  %302 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %303 = load ptr, ptr %302, align 8, !tbaa !17
  %304 = load i64, ptr %12, align 8, !tbaa !18
  %305 = getelementptr inbounds double, ptr %303, i64 %304
  store double %301, ptr %305, align 8, !tbaa !9
  br label %306

306:                                              ; preds = %273
  %307 = load i64, ptr %12, align 8, !tbaa !18
  %308 = add nsw i64 %307, 1
  store i64 %308, ptr %12, align 8, !tbaa !18
  br label %266, !llvm.loop !24

309:                                              ; preds = %266
  br label %310

310:                                              ; preds = %309
  %311 = load i64, ptr %13, align 8, !tbaa !18
  %312 = add nsw i64 %311, 1
  store i64 %312, ptr %13, align 8, !tbaa !18
  br label %235, !llvm.loop !25

313:                                              ; preds = %235
  br label %314

314:                                              ; preds = %313, %187
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = load ptr, ptr %6, align 8, !tbaa !5
  %317 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %316, i32 0, i32 0
  %318 = load i64, ptr %317, align 8, !tbaa !11
  %319 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %315, i64 noundef %318, ptr noundef %319)
  store i64 0, ptr %12, align 8, !tbaa !18
  br label %320

320:                                              ; preds = %333, %314
  %321 = load i64, ptr %12, align 8, !tbaa !18
  %322 = load ptr, ptr %6, align 8, !tbaa !5
  %323 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %322, i32 0, i32 0
  %324 = load i64, ptr %323, align 8, !tbaa !11
  %325 = sub nsw i64 %324, 1
  %326 = icmp sle i64 %321, %325
  br i1 %326, label %327, label %336

327:                                              ; preds = %320
  %328 = load ptr, ptr %9, align 8, !tbaa !5
  %329 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %328, i32 0, i32 4
  %330 = load ptr, ptr %329, align 8, !tbaa !17
  %331 = load i64, ptr %12, align 8, !tbaa !18
  %332 = getelementptr inbounds double, ptr %330, i64 %331
  store double 0.000000e+00, ptr %332, align 8, !tbaa !9
  br label %333

333:                                              ; preds = %327
  %334 = load i64, ptr %12, align 8, !tbaa !18
  %335 = add nsw i64 %334, 1
  store i64 %335, ptr %12, align 8, !tbaa !18
  br label %320, !llvm.loop !26

336:                                              ; preds = %320
  store double 0.000000e+00, ptr %15, align 8, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !18
  br label %337

337:                                              ; preds = %457, %336
  %338 = load i64, ptr %12, align 8, !tbaa !18
  %339 = load ptr, ptr %6, align 8, !tbaa !5
  %340 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %339, i32 0, i32 0
  %341 = load i64, ptr %340, align 8, !tbaa !11
  %342 = sub nsw i64 %341, 1
  %343 = icmp sle i64 %338, %342
  br i1 %343, label %344, label %460

344:                                              ; preds = %337
  %345 = load i64, ptr %12, align 8, !tbaa !18
  store i64 %345, ptr %13, align 8, !tbaa !18
  br label %346

346:                                              ; preds = %416, %344
  %347 = load i64, ptr %13, align 8, !tbaa !18
  %348 = load ptr, ptr %6, align 8, !tbaa !5
  %349 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %348, i32 0, i32 0
  %350 = load i64, ptr %349, align 8, !tbaa !11
  %351 = sub nsw i64 %350, 1
  %352 = icmp sle i64 %347, %351
  br i1 %352, label %353, label %419

353:                                              ; preds = %346
  %354 = load ptr, ptr %9, align 8, !tbaa !5
  %355 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %354, i32 0, i32 4
  %356 = load ptr, ptr %355, align 8, !tbaa !17
  %357 = load i64, ptr %13, align 8, !tbaa !18
  %358 = getelementptr inbounds double, ptr %356, i64 %357
  %359 = load double, ptr %358, align 8, !tbaa !9
  store double %359, ptr %14, align 8, !tbaa !9
  %360 = load ptr, ptr %9, align 8, !tbaa !5
  %361 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %360, i32 0, i32 4
  %362 = load ptr, ptr %361, align 8, !tbaa !17
  %363 = load i64, ptr %13, align 8, !tbaa !18
  %364 = getelementptr inbounds double, ptr %362, i64 %363
  store double 0.000000e+00, ptr %364, align 8, !tbaa !9
  %365 = load i64, ptr %12, align 8, !tbaa !18
  %366 = icmp sle i64 %365, 1
  br i1 %366, label %367, label %377

367:                                              ; preds = %353
  %368 = load i64, ptr %13, align 8, !tbaa !18
  %369 = load i64, ptr %12, align 8, !tbaa !18
  %370 = icmp eq i64 %368, %369
  br i1 %370, label %371, label %377

371:                                              ; preds = %367
  %372 = load ptr, ptr %9, align 8, !tbaa !5
  %373 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %372, i32 0, i32 4
  %374 = load ptr, ptr %373, align 8, !tbaa !17
  %375 = load i64, ptr %13, align 8, !tbaa !18
  %376 = getelementptr inbounds double, ptr %374, i64 %375
  store double 1.000000e+00, ptr %376, align 8, !tbaa !9
  br label %414

377:                                              ; preds = %367, %353
  %378 = load i64, ptr %12, align 8, !tbaa !18
  %379 = icmp ne i64 %378, 0
  br i1 %379, label %380, label %388

380:                                              ; preds = %377
  %381 = load double, ptr %15, align 8, !tbaa !9
  %382 = fmul double 2.000000e+00, %381
  %383 = load ptr, ptr %9, align 8, !tbaa !5
  %384 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %383, i32 0, i32 4
  %385 = load ptr, ptr %384, align 8, !tbaa !17
  %386 = load i64, ptr %13, align 8, !tbaa !18
  %387 = getelementptr inbounds double, ptr %385, i64 %386
  store double %382, ptr %387, align 8, !tbaa !9
  br label %388

388:                                              ; preds = %380, %377
  %389 = load i64, ptr %13, align 8, !tbaa !18
  %390 = load i64, ptr %12, align 8, !tbaa !18
  %391 = add nsw i64 %390, 1
  %392 = icmp sgt i64 %389, %391
  br i1 %392, label %393, label %413

393:                                              ; preds = %388
  %394 = load ptr, ptr %9, align 8, !tbaa !5
  %395 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %394, i32 0, i32 4
  %396 = load ptr, ptr %395, align 8, !tbaa !17
  %397 = load i64, ptr %13, align 8, !tbaa !18
  %398 = getelementptr inbounds double, ptr %396, i64 %397
  %399 = load double, ptr %398, align 8, !tbaa !9
  %400 = load ptr, ptr %9, align 8, !tbaa !5
  %401 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %400, i32 0, i32 4
  %402 = load ptr, ptr %401, align 8, !tbaa !17
  %403 = load i64, ptr %13, align 8, !tbaa !18
  %404 = sub nsw i64 %403, 2
  %405 = getelementptr inbounds double, ptr %402, i64 %404
  %406 = load double, ptr %405, align 8, !tbaa !9
  %407 = fsub double %399, %406
  %408 = load ptr, ptr %9, align 8, !tbaa !5
  %409 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %408, i32 0, i32 4
  %410 = load ptr, ptr %409, align 8, !tbaa !17
  %411 = load i64, ptr %13, align 8, !tbaa !18
  %412 = getelementptr inbounds double, ptr %410, i64 %411
  store double %407, ptr %412, align 8, !tbaa !9
  br label %413

413:                                              ; preds = %393, %388
  br label %414

414:                                              ; preds = %413, %371
  %415 = load double, ptr %14, align 8, !tbaa !9
  store double %415, ptr %15, align 8, !tbaa !9
  br label %416

416:                                              ; preds = %414
  %417 = load i64, ptr %13, align 8, !tbaa !18
  %418 = add nsw i64 %417, 1
  store i64 %418, ptr %13, align 8, !tbaa !18
  br label %346, !llvm.loop !27

419:                                              ; preds = %346
  %420 = load ptr, ptr %9, align 8, !tbaa !5
  %421 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %420, i32 0, i32 4
  %422 = load ptr, ptr %421, align 8, !tbaa !17
  %423 = load i64, ptr %12, align 8, !tbaa !18
  %424 = getelementptr inbounds double, ptr %422, i64 %423
  %425 = load double, ptr %424, align 8, !tbaa !9
  store double %425, ptr %15, align 8, !tbaa !9
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  %426 = load i64, ptr %12, align 8, !tbaa !18
  store i64 %426, ptr %13, align 8, !tbaa !18
  br label %427

427:                                              ; preds = %434, %419
  %428 = load i64, ptr %13, align 8, !tbaa !18
  %429 = load ptr, ptr %6, align 8, !tbaa !5
  %430 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %429, i32 0, i32 0
  %431 = load i64, ptr %430, align 8, !tbaa !11
  %432 = sub nsw i64 %431, 1
  %433 = icmp sle i64 %428, %432
  br i1 %433, label %434, label %450

434:                                              ; preds = %427
  %435 = load double, ptr %14, align 8, !tbaa !9
  %436 = load ptr, ptr %9, align 8, !tbaa !5
  %437 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %436, i32 0, i32 4
  %438 = load ptr, ptr %437, align 8, !tbaa !17
  %439 = load i64, ptr %13, align 8, !tbaa !18
  %440 = getelementptr inbounds double, ptr %438, i64 %439
  %441 = load double, ptr %440, align 8, !tbaa !9
  %442 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %443 = load ptr, ptr %442, align 8, !tbaa !17
  %444 = load i64, ptr %13, align 8, !tbaa !18
  %445 = getelementptr inbounds double, ptr %443, i64 %444
  %446 = load double, ptr %445, align 8, !tbaa !9
  %447 = call double @llvm.fmuladd.f64(double %441, double %446, double %435)
  store double %447, ptr %14, align 8, !tbaa !9
  %448 = load i64, ptr %13, align 8, !tbaa !18
  %449 = add nsw i64 %448, 2
  store i64 %449, ptr %13, align 8, !tbaa !18
  br label %427, !llvm.loop !28

450:                                              ; preds = %427
  %451 = load double, ptr %14, align 8, !tbaa !9
  %452 = load ptr, ptr %9, align 8, !tbaa !5
  %453 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %452, i32 0, i32 4
  %454 = load ptr, ptr %453, align 8, !tbaa !17
  %455 = load i64, ptr %12, align 8, !tbaa !18
  %456 = getelementptr inbounds double, ptr %454, i64 %455
  store double %451, ptr %456, align 8, !tbaa !9
  br label %457

457:                                              ; preds = %450
  %458 = load i64, ptr %12, align 8, !tbaa !18
  %459 = add nsw i64 %458, 1
  store i64 %459, ptr %12, align 8, !tbaa !18
  br label %337, !llvm.loop !29

460:                                              ; preds = %337
  %461 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 0
  %462 = load i64, ptr %461, align 8, !tbaa !30
  %463 = load ptr, ptr %6, align 8, !tbaa !5
  %464 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %463, i32 0, i32 0
  %465 = load i64, ptr %464, align 8, !tbaa !11
  %466 = add nsw i64 %465, 1
  %467 = icmp sge i64 %462, %466
  %468 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %467, ptr noundef @.str.358, ptr noundef %468)
  %469 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %470 = load i64, ptr %469, align 8, !tbaa !30
  %471 = load ptr, ptr %6, align 8, !tbaa !5
  %472 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %471, i32 0, i32 0
  %473 = load i64, ptr %472, align 8, !tbaa !11
  %474 = icmp sge i64 %470, %473
  %475 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %474, ptr noundef @.str.358, ptr noundef %475)
  store i64 0, ptr %12, align 8, !tbaa !18
  br label %476

476:                                              ; preds = %488, %460
  %477 = load i64, ptr %12, align 8, !tbaa !18
  %478 = load ptr, ptr %6, align 8, !tbaa !5
  %479 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %478, i32 0, i32 0
  %480 = load i64, ptr %479, align 8, !tbaa !11
  %481 = sub nsw i64 %480, 1
  %482 = icmp sle i64 %477, %481
  br i1 %482, label %483, label %491

483:                                              ; preds = %476
  %484 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %485 = load ptr, ptr %484, align 8, !tbaa !17
  %486 = load i64, ptr %12, align 8, !tbaa !18
  %487 = getelementptr inbounds double, ptr %485, i64 %486
  store double 0.000000e+00, ptr %487, align 8, !tbaa !9
  br label %488

488:                                              ; preds = %483
  %489 = load i64, ptr %12, align 8, !tbaa !18
  %490 = add nsw i64 %489, 1
  store i64 %490, ptr %12, align 8, !tbaa !18
  br label %476, !llvm.loop !31

491:                                              ; preds = %476
  %492 = load double, ptr %8, align 8, !tbaa !9
  %493 = load double, ptr %23, align 8, !tbaa !9
  %494 = fdiv double %492, %493
  store double %494, ptr %24, align 8, !tbaa !9
  %495 = load double, ptr %7, align 8, !tbaa !9
  %496 = load double, ptr %23, align 8, !tbaa !9
  %497 = fdiv double %495, %496
  %498 = load double, ptr %22, align 8, !tbaa !9
  %499 = load double, ptr %23, align 8, !tbaa !9
  %500 = fdiv double %498, %499
  %501 = fsub double %497, %500
  store double %501, ptr %25, align 8, !tbaa !9
  %502 = load ptr, ptr %6, align 8, !tbaa !5
  %503 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %502, i32 0, i32 0
  %504 = load i64, ptr %503, align 8, !tbaa !11
  %505 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %504, ptr noundef %505)
  %506 = load ptr, ptr %6, align 8, !tbaa !5
  %507 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %506, i32 0, i32 0
  %508 = load i64, ptr %507, align 8, !tbaa !11
  %509 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %27, i64 noundef %508, ptr noundef %509)
  %510 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %511 = load ptr, ptr %510, align 8, !tbaa !17
  %512 = getelementptr inbounds double, ptr %511, i64 0
  store double 1.000000e+00, ptr %512, align 8, !tbaa !9
  %513 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %514 = load ptr, ptr %513, align 8, !tbaa !17
  %515 = getelementptr inbounds double, ptr %514, i64 0
  store double 1.000000e+00, ptr %515, align 8, !tbaa !9
  store i64 1, ptr %13, align 8, !tbaa !18
  br label %516

516:                                              ; preds = %548, %491
  %517 = load i64, ptr %13, align 8, !tbaa !18
  %518 = load ptr, ptr %6, align 8, !tbaa !5
  %519 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %518, i32 0, i32 0
  %520 = load i64, ptr %519, align 8, !tbaa !11
  %521 = sub nsw i64 %520, 1
  %522 = icmp sle i64 %517, %521
  br i1 %522, label %523, label %551

523:                                              ; preds = %516
  %524 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %525 = load ptr, ptr %524, align 8, !tbaa !17
  %526 = load i64, ptr %13, align 8, !tbaa !18
  %527 = sub nsw i64 %526, 1
  %528 = getelementptr inbounds double, ptr %525, i64 %527
  %529 = load double, ptr %528, align 8, !tbaa !9
  %530 = load double, ptr %24, align 8, !tbaa !9
  %531 = fmul double %529, %530
  %532 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %533 = load ptr, ptr %532, align 8, !tbaa !17
  %534 = load i64, ptr %13, align 8, !tbaa !18
  %535 = getelementptr inbounds double, ptr %533, i64 %534
  store double %531, ptr %535, align 8, !tbaa !9
  %536 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %537 = load ptr, ptr %536, align 8, !tbaa !17
  %538 = load i64, ptr %13, align 8, !tbaa !18
  %539 = sub nsw i64 %538, 1
  %540 = getelementptr inbounds double, ptr %537, i64 %539
  %541 = load double, ptr %540, align 8, !tbaa !9
  %542 = load double, ptr %25, align 8, !tbaa !9
  %543 = fmul double %541, %542
  %544 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %545 = load ptr, ptr %544, align 8, !tbaa !17
  %546 = load i64, ptr %13, align 8, !tbaa !18
  %547 = getelementptr inbounds double, ptr %545, i64 %546
  store double %543, ptr %547, align 8, !tbaa !9
  br label %548

548:                                              ; preds = %523
  %549 = load i64, ptr %13, align 8, !tbaa !18
  %550 = add nsw i64 %549, 1
  store i64 %550, ptr %13, align 8, !tbaa !18
  br label %516, !llvm.loop !32

551:                                              ; preds = %516
  store i64 0, ptr %13, align 8, !tbaa !18
  br label %552

552:                                              ; preds = %645, %551
  %553 = load i64, ptr %13, align 8, !tbaa !18
  %554 = load ptr, ptr %6, align 8, !tbaa !5
  %555 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %554, i32 0, i32 0
  %556 = load i64, ptr %555, align 8, !tbaa !11
  %557 = sub nsw i64 %556, 1
  %558 = icmp sle i64 %553, %557
  br i1 %558, label %559, label %648

559:                                              ; preds = %552
  %560 = load i64, ptr %13, align 8, !tbaa !18
  %561 = icmp sgt i64 %560, 0
  br i1 %561, label %562, label %596

562:                                              ; preds = %559
  %563 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %564 = load ptr, ptr %563, align 8, !tbaa !17
  %565 = load i64, ptr %13, align 8, !tbaa !18
  %566 = getelementptr inbounds double, ptr %564, i64 %565
  store double 1.000000e+00, ptr %566, align 8, !tbaa !9
  %567 = load i64, ptr %13, align 8, !tbaa !18
  %568 = sub nsw i64 %567, 1
  store i64 %568, ptr %12, align 8, !tbaa !18
  br label %569

569:                                              ; preds = %589, %562
  %570 = load i64, ptr %12, align 8, !tbaa !18
  %571 = icmp sge i64 %570, 1
  br i1 %571, label %572, label %592

572:                                              ; preds = %569
  %573 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %574 = load ptr, ptr %573, align 8, !tbaa !17
  %575 = load i64, ptr %12, align 8, !tbaa !18
  %576 = getelementptr inbounds double, ptr %574, i64 %575
  %577 = load double, ptr %576, align 8, !tbaa !9
  %578 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %579 = load ptr, ptr %578, align 8, !tbaa !17
  %580 = load i64, ptr %12, align 8, !tbaa !18
  %581 = sub nsw i64 %580, 1
  %582 = getelementptr inbounds double, ptr %579, i64 %581
  %583 = load double, ptr %582, align 8, !tbaa !9
  %584 = fadd double %577, %583
  %585 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %586 = load ptr, ptr %585, align 8, !tbaa !17
  %587 = load i64, ptr %12, align 8, !tbaa !18
  %588 = getelementptr inbounds double, ptr %586, i64 %587
  store double %584, ptr %588, align 8, !tbaa !9
  br label %589

589:                                              ; preds = %572
  %590 = load i64, ptr %12, align 8, !tbaa !18
  %591 = add nsw i64 %590, -1
  store i64 %591, ptr %12, align 8, !tbaa !18
  br label %569, !llvm.loop !33

592:                                              ; preds = %569
  %593 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %594 = load ptr, ptr %593, align 8, !tbaa !17
  %595 = getelementptr inbounds double, ptr %594, i64 0
  store double 1.000000e+00, ptr %595, align 8, !tbaa !9
  br label %600

596:                                              ; preds = %559
  %597 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %598 = load ptr, ptr %597, align 8, !tbaa !17
  %599 = getelementptr inbounds double, ptr %598, i64 0
  store double 1.000000e+00, ptr %599, align 8, !tbaa !9
  br label %600

600:                                              ; preds = %596, %592
  store i64 0, ptr %12, align 8, !tbaa !18
  br label %601

601:                                              ; preds = %641, %600
  %602 = load i64, ptr %12, align 8, !tbaa !18
  %603 = load i64, ptr %13, align 8, !tbaa !18
  %604 = icmp sle i64 %602, %603
  br i1 %604, label %605, label %644

605:                                              ; preds = %601
  %606 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %607 = load ptr, ptr %606, align 8, !tbaa !17
  %608 = load i64, ptr %12, align 8, !tbaa !18
  %609 = getelementptr inbounds double, ptr %607, i64 %608
  %610 = load double, ptr %609, align 8, !tbaa !9
  %611 = load ptr, ptr %9, align 8, !tbaa !5
  %612 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %611, i32 0, i32 4
  %613 = load ptr, ptr %612, align 8, !tbaa !17
  %614 = load i64, ptr %13, align 8, !tbaa !18
  %615 = getelementptr inbounds double, ptr %613, i64 %614
  %616 = load double, ptr %615, align 8, !tbaa !9
  %617 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %618 = load ptr, ptr %617, align 8, !tbaa !17
  %619 = load i64, ptr %12, align 8, !tbaa !18
  %620 = getelementptr inbounds double, ptr %618, i64 %619
  %621 = load double, ptr %620, align 8, !tbaa !9
  %622 = fmul double %616, %621
  %623 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %624 = load ptr, ptr %623, align 8, !tbaa !17
  %625 = load i64, ptr %13, align 8, !tbaa !18
  %626 = load i64, ptr %12, align 8, !tbaa !18
  %627 = sub nsw i64 %625, %626
  %628 = getelementptr inbounds double, ptr %624, i64 %627
  %629 = load double, ptr %628, align 8, !tbaa !9
  %630 = fmul double %622, %629
  %631 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %632 = load ptr, ptr %631, align 8, !tbaa !17
  %633 = load i64, ptr %12, align 8, !tbaa !18
  %634 = getelementptr inbounds double, ptr %632, i64 %633
  %635 = load double, ptr %634, align 8, !tbaa !9
  %636 = call double @llvm.fmuladd.f64(double %630, double %635, double %610)
  %637 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %638 = load ptr, ptr %637, align 8, !tbaa !17
  %639 = load i64, ptr %12, align 8, !tbaa !18
  %640 = getelementptr inbounds double, ptr %638, i64 %639
  store double %636, ptr %640, align 8, !tbaa !9
  br label %641

641:                                              ; preds = %605
  %642 = load i64, ptr %12, align 8, !tbaa !18
  %643 = add nsw i64 %642, 1
  store i64 %643, ptr %12, align 8, !tbaa !18
  br label %601, !llvm.loop !34

644:                                              ; preds = %601
  br label %645

645:                                              ; preds = %644
  %646 = load i64, ptr %13, align 8, !tbaa !18
  %647 = add nsw i64 %646, 1
  store i64 %647, ptr %13, align 8, !tbaa !18
  br label %552, !llvm.loop !35

648:                                              ; preds = %552
  store i64 0, ptr %13, align 8, !tbaa !18
  br label %649

649:                                              ; preds = %667, %648
  %650 = load i64, ptr %13, align 8, !tbaa !18
  %651 = load ptr, ptr %6, align 8, !tbaa !5
  %652 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %651, i32 0, i32 0
  %653 = load i64, ptr %652, align 8, !tbaa !11
  %654 = sub nsw i64 %653, 1
  %655 = icmp sle i64 %650, %654
  br i1 %655, label %656, label %670

656:                                              ; preds = %649
  %657 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %658 = load ptr, ptr %657, align 8, !tbaa !17
  %659 = load i64, ptr %13, align 8, !tbaa !18
  %660 = getelementptr inbounds double, ptr %658, i64 %659
  %661 = load double, ptr %660, align 8, !tbaa !9
  %662 = load ptr, ptr %9, align 8, !tbaa !5
  %663 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %662, i32 0, i32 4
  %664 = load ptr, ptr %663, align 8, !tbaa !17
  %665 = load i64, ptr %13, align 8, !tbaa !18
  %666 = getelementptr inbounds double, ptr %664, i64 %665
  store double %661, ptr %666, align 8, !tbaa !9
  br label %667

667:                                              ; preds = %656
  %668 = load i64, ptr %13, align 8, !tbaa !18
  %669 = add nsw i64 %668, 1
  store i64 %669, ptr %13, align 8, !tbaa !18
  br label %649, !llvm.loop !36

670:                                              ; preds = %649
  %671 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %671)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #2

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #2

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN11alglib_impl22barycentricinterpolantE", !13, i64 0, !10, i64 8, !14, i64 16, !14, i64 80, !14, i64 144}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !15, i64 16, !16, i64 24, !7, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!7, !7, i64 0}
!18 = !{!13, !13, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}
!30 = !{!14, !13, i64 0}
!31 = distinct !{!31, !20}
!32 = distinct !{!32, !20}
!33 = distinct !{!33, !20}
!34 = distinct !{!34, !20}
!35 = distinct !{!35, !20}
!36 = distinct !{!36, !20}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.354 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.355 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.356 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.357 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl15barycentriccalcEPNS_22barycentricinterpolantEdPNS_8ae_stateE(ptr noundef, double noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl17polynomialbar2powEPNS_22barycentricinterpolantEddPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #3 {
  %6 = alloca %"struct.alglib_impl::ae_frame", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %4, ptr noundef nonnull %6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %3)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  %14 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %1, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.354, ptr noundef %4)
  %15 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.355, ptr noundef %4)
  %16 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %2, double noundef 0.000000e+00)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.356, ptr noundef %4)
  %17 = load i64, ptr %0, align 8, !tbaa !5
  %18 = icmp sgt i64 %17, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.357, ptr noundef %4)
  %19 = getelementptr inbounds i8, ptr %0, i64 72
  %20 = load ptr, ptr %19, align 8, !tbaa !15
  %21 = load double, ptr %20, align 8, !tbaa !16
  %22 = load i64, ptr %0, align 8, !tbaa !5
  %.not.not237 = icmp sgt i64 %22, 1
  br i1 %.not.not237, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5, %.lr.ph
  %.0240 = phi double [ %30, %.lr.ph ], [ %21, %5 ]
  %.0198239 = phi double [ %26, %.lr.ph ], [ %21, %5 ]
  %.0199238 = phi i64 [ %31, %.lr.ph ], [ 1, %5 ]
  %23 = load ptr, ptr %19, align 8, !tbaa !15
  %24 = getelementptr inbounds double, ptr %23, i64 %.0199238
  %25 = load double, ptr %24, align 8, !tbaa !16
  %26 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %.0198239, double noundef %25, ptr noundef %4)
  %27 = load ptr, ptr %19, align 8, !tbaa !15
  %28 = getelementptr inbounds double, ptr %27, i64 %.0199238
  %29 = load double, ptr %28, align 8, !tbaa !16
  %30 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0240, double noundef %29, ptr noundef %4)
  %31 = add nuw nsw i64 %.0199238, 1
  %32 = load i64, ptr %0, align 8, !tbaa !5
  %.not.not = icmp slt i64 %31, %32
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph, %5
  %.0198.lcssa = phi double [ %21, %5 ], [ %26, %.lr.ph ]
  %.0.lcssa = phi double [ %21, %5 ], [ %30, %.lr.ph ]
  %33 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %.0198.lcssa, double noundef %.0.lcssa)
  %34 = fadd double %.0198.lcssa, %.0.lcssa
  %35 = fmul double %34, 5.000000e-01
  %36 = fsub double %.0.lcssa, %.0198.lcssa
  %37 = fmul double %36, 5.000000e-01
  %.0207 = select i1 %33, double %.0198.lcssa, double %35
  %.0206 = select i1 %33, double 1.000000e+00, double %37
  %38 = load i64, ptr %0, align 8, !tbaa !5
  %39 = add nsw i64 %38, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %39, ptr noundef %4)
  %40 = load i64, ptr %0, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %40, ptr noundef %4)
  %41 = load i64, ptr %0, align 8, !tbaa !5
  %.not.not214242 = icmp sgt i64 %41, 0
  br i1 %.not.not214242, label %.lr.ph245, label %._crit_edge246

.lr.ph245:                                        ; preds = %._crit_edge
  %42 = getelementptr inbounds i8, ptr %8, i64 56
  %43 = getelementptr inbounds i8, ptr %7, i64 56
  br label %44

44:                                               ; preds = %.lr.ph245, %44
  %45 = phi i64 [ %41, %.lr.ph245 ], [ %62, %44 ]
  %.1243 = phi i64 [ 0, %.lr.ph245 ], [ %61, %44 ]
  %46 = uitofp nneg i64 %.1243 to double
  %47 = fadd double %46, 5.000000e-01
  %48 = fmul double %47, 0x400921FB54442D18
  %49 = sitofp i64 %45 to double
  %50 = fdiv double %48, %49
  %51 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %50, ptr noundef %4)
  %52 = load ptr, ptr %42, align 8, !tbaa !15
  %53 = getelementptr inbounds double, ptr %52, i64 %.1243
  store double %51, ptr %53, align 8, !tbaa !16
  %54 = load ptr, ptr %42, align 8, !tbaa !15
  %55 = getelementptr inbounds double, ptr %54, i64 %.1243
  %56 = load double, ptr %55, align 8, !tbaa !16
  %57 = call double @llvm.fmuladd.f64(double %.0206, double %56, double %.0207)
  %58 = call noundef double @_ZN11alglib_impl15barycentriccalcEPNS_22barycentricinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %0, double noundef %57, ptr noundef %4)
  %59 = load ptr, ptr %43, align 8, !tbaa !15
  %60 = getelementptr inbounds double, ptr %59, i64 %.1243
  store double %58, ptr %60, align 8, !tbaa !16
  %61 = add nuw nsw i64 %.1243, 1
  %62 = load i64, ptr %0, align 8, !tbaa !5
  %.not.not214 = icmp slt i64 %61, %62
  br i1 %.not.not214, label %44, label %._crit_edge246, !llvm.loop !19

._crit_edge246:                                   ; preds = %44, %._crit_edge
  %.lcssa236 = phi i64 [ %41, %._crit_edge ], [ %62, %44 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %.lcssa236, ptr noundef %4)
  %63 = load i64, ptr %0, align 8, !tbaa !5
  %.not.not215248 = icmp sgt i64 %63, 0
  br i1 %.not.not215248, label %.lr.ph252, label %._crit_edge253.thread

._crit_edge253.thread:                            ; preds = %._crit_edge246
  %64 = sitofp i64 %63 to double
  %65 = fdiv double 0.000000e+00, %64
  %66 = getelementptr inbounds i8, ptr %11, i64 56
  %67 = load ptr, ptr %66, align 8, !tbaa !15
  store double %65, ptr %67, align 8, !tbaa !16
  br label %.loopexit

.lr.ph252:                                        ; preds = %._crit_edge246
  %68 = getelementptr inbounds i8, ptr %7, i64 56
  %69 = load ptr, ptr %68, align 8, !tbaa !15
  %xtraiter = and i64 %63, 7
  %70 = icmp ult i64 %63, 8
  br i1 %70, label %._crit_edge253.unr-lcssa, label %.lr.ph252.new

.lr.ph252.new:                                    ; preds = %.lr.ph252
  %unroll_iter = and i64 %63, 9223372036854775800
  br label %71

71:                                               ; preds = %71, %.lr.ph252.new
  %.2250 = phi i64 [ 0, %.lr.ph252.new ], [ %103, %71 ]
  %.0208249 = phi double [ 0.000000e+00, %.lr.ph252.new ], [ %102, %71 ]
  %niter = phi i64 [ 0, %.lr.ph252.new ], [ %niter.next.7, %71 ]
  %72 = getelementptr inbounds double, ptr %69, i64 %.2250
  %73 = load double, ptr %72, align 8, !tbaa !16
  %74 = fadd double %.0208249, %73
  %75 = or disjoint i64 %.2250, 1
  %76 = getelementptr inbounds double, ptr %69, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !16
  %78 = fadd double %74, %77
  %79 = or disjoint i64 %.2250, 2
  %80 = getelementptr inbounds double, ptr %69, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !16
  %82 = fadd double %78, %81
  %83 = or disjoint i64 %.2250, 3
  %84 = getelementptr inbounds double, ptr %69, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !16
  %86 = fadd double %82, %85
  %87 = or disjoint i64 %.2250, 4
  %88 = getelementptr inbounds double, ptr %69, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !16
  %90 = fadd double %86, %89
  %91 = or disjoint i64 %.2250, 5
  %92 = getelementptr inbounds double, ptr %69, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !16
  %94 = fadd double %90, %93
  %95 = or disjoint i64 %.2250, 6
  %96 = getelementptr inbounds double, ptr %69, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !16
  %98 = fadd double %94, %97
  %99 = or disjoint i64 %.2250, 7
  %100 = getelementptr inbounds double, ptr %69, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !16
  %102 = fadd double %98, %101
  %103 = add nuw nsw i64 %.2250, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge253.unr-lcssa, label %71, !llvm.loop !20

._crit_edge253.unr-lcssa:                         ; preds = %71, %.lr.ph252
  %.lcssa357.ph = phi double [ poison, %.lr.ph252 ], [ %102, %71 ]
  %.2250.unr = phi i64 [ 0, %.lr.ph252 ], [ %103, %71 ]
  %.0208249.unr = phi double [ 0.000000e+00, %.lr.ph252 ], [ %102, %71 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge253, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge253.unr-lcssa, %.epil.preheader
  %.2250.epil = phi i64 [ %107, %.epil.preheader ], [ %.2250.unr, %._crit_edge253.unr-lcssa ]
  %.0208249.epil = phi double [ %106, %.epil.preheader ], [ %.0208249.unr, %._crit_edge253.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge253.unr-lcssa ]
  %104 = getelementptr inbounds double, ptr %69, i64 %.2250.epil
  %105 = load double, ptr %104, align 8, !tbaa !16
  %106 = fadd double %.0208249.epil, %105
  %107 = add nuw nsw i64 %.2250.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge253, label %.epil.preheader, !llvm.loop !21

._crit_edge253:                                   ; preds = %.epil.preheader, %._crit_edge253.unr-lcssa
  %.lcssa357 = phi double [ %.lcssa357.ph, %._crit_edge253.unr-lcssa ], [ %106, %.epil.preheader ]
  %108 = sitofp i64 %63 to double
  %109 = fdiv double %.lcssa357, %108
  %110 = getelementptr inbounds i8, ptr %11, i64 56
  %111 = load ptr, ptr %110, align 8, !tbaa !15
  store double %109, ptr %111, align 8, !tbaa !16
  %.not346 = icmp eq i64 %63, 1
  br i1 %.not346, label %.loopexit, label %112

112:                                              ; preds = %._crit_edge253
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %63, ptr noundef %4)
  %113 = load i64, ptr %0, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %113, ptr noundef %4)
  %114 = load i64, ptr %0, align 8, !tbaa !5
  %.not.not216256 = icmp sgt i64 %114, 0
  br i1 %.not.not216256, label %.lr.ph259, label %.loopexit

.lr.ph259:                                        ; preds = %112
  %115 = getelementptr inbounds i8, ptr %8, i64 56
  %116 = getelementptr inbounds i8, ptr %9, i64 56
  %117 = getelementptr inbounds i8, ptr %10, i64 56
  %xtraiter363 = and i64 %114, 1
  %118 = icmp eq i64 %114, 1
  br i1 %118, label %.preheader232.unr-lcssa, label %.lr.ph259.new

.lr.ph259.new:                                    ; preds = %.lr.ph259
  %unroll_iter366 = and i64 %114, 9223372036854775806
  br label %130

.preheader232.unr-lcssa:                          ; preds = %130, %.lr.ph259
  %.3257.unr = phi i64 [ 0, %.lr.ph259 ], [ %146, %130 ]
  %lcmp.mod365.not = icmp eq i64 %xtraiter363, 0
  br i1 %lcmp.mod365.not, label %.preheader232, label %.preheader232.epilog-lcssa

.preheader232.epilog-lcssa:                       ; preds = %.preheader232.unr-lcssa
  %119 = load ptr, ptr %115, align 8, !tbaa !15
  %120 = getelementptr inbounds double, ptr %119, i64 %.3257.unr
  %121 = load double, ptr %120, align 8, !tbaa !16
  %122 = load ptr, ptr %116, align 8, !tbaa !15
  %123 = getelementptr inbounds double, ptr %122, i64 %.3257.unr
  store double %121, ptr %123, align 8, !tbaa !16
  %124 = load ptr, ptr %117, align 8, !tbaa !15
  %125 = getelementptr inbounds double, ptr %124, i64 %.3257.unr
  store double 1.000000e+00, ptr %125, align 8, !tbaa !16
  br label %.preheader232

.preheader232:                                    ; preds = %.preheader232.unr-lcssa, %.preheader232.epilog-lcssa
  %.not.not217265.not = icmp eq i64 %114, 1
  br i1 %.not.not217265.not, label %.loopexit, label %.lr.ph267

.lr.ph267:                                        ; preds = %.preheader232
  %126 = getelementptr inbounds i8, ptr %9, i64 56
  %127 = getelementptr inbounds i8, ptr %7, i64 56
  %128 = getelementptr inbounds i8, ptr %8, i64 56
  %129 = getelementptr inbounds i8, ptr %10, i64 56
  br label %147

130:                                              ; preds = %130, %.lr.ph259.new
  %.3257 = phi i64 [ 0, %.lr.ph259.new ], [ %146, %130 ]
  %niter367 = phi i64 [ 0, %.lr.ph259.new ], [ %niter367.next.1, %130 ]
  %131 = load ptr, ptr %115, align 8, !tbaa !15
  %132 = getelementptr inbounds double, ptr %131, i64 %.3257
  %133 = load double, ptr %132, align 8, !tbaa !16
  %134 = load ptr, ptr %116, align 8, !tbaa !15
  %135 = getelementptr inbounds double, ptr %134, i64 %.3257
  store double %133, ptr %135, align 8, !tbaa !16
  %136 = load ptr, ptr %117, align 8, !tbaa !15
  %137 = getelementptr inbounds double, ptr %136, i64 %.3257
  store double 1.000000e+00, ptr %137, align 8, !tbaa !16
  %138 = or disjoint i64 %.3257, 1
  %139 = load ptr, ptr %115, align 8, !tbaa !15
  %140 = getelementptr inbounds double, ptr %139, i64 %138
  %141 = load double, ptr %140, align 8, !tbaa !16
  %142 = load ptr, ptr %116, align 8, !tbaa !15
  %143 = getelementptr inbounds double, ptr %142, i64 %138
  store double %141, ptr %143, align 8, !tbaa !16
  %144 = load ptr, ptr %117, align 8, !tbaa !15
  %145 = getelementptr inbounds double, ptr %144, i64 %138
  store double 1.000000e+00, ptr %145, align 8, !tbaa !16
  %146 = add nuw nsw i64 %.3257, 2
  %niter367.next.1 = add i64 %niter367, 2
  %niter367.ncmp.1 = icmp eq i64 %niter367.next.1, %unroll_iter366
  br i1 %niter367.ncmp.1, label %.preheader232.unr-lcssa, label %130, !llvm.loop !23

147:                                              ; preds = %.lr.ph267, %._crit_edge264
  %148 = phi i64 [ %114, %.lr.ph267 ], [ %154, %._crit_edge264 ]
  %.0200266 = phi i64 [ 1, %.lr.ph267 ], [ %175, %._crit_edge264 ]
  %149 = add nsw i64 %148, -1
  %150 = load ptr, ptr %126, align 8, !tbaa !15
  %151 = load ptr, ptr %127, align 8, !tbaa !15
  %152 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %149)
  %153 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %150, i64 noundef 1, ptr noundef %151, i64 noundef 1, i64 noundef %152)
  %154 = load i64, ptr %0, align 8, !tbaa !5
  %155 = sitofp i64 %154 to double
  %156 = fmul double %155, 5.000000e-01
  %157 = fdiv double %153, %156
  %158 = load ptr, ptr %110, align 8, !tbaa !15
  %159 = getelementptr inbounds double, ptr %158, i64 %.0200266
  store double %157, ptr %159, align 8, !tbaa !16
  %.not228.not260 = icmp sgt i64 %154, 0
  br i1 %.not228.not260, label %.lr.ph263, label %._crit_edge264

.lr.ph263:                                        ; preds = %147, %.lr.ph263
  %.4261 = phi i64 [ %174, %.lr.ph263 ], [ 0, %147 ]
  %160 = load ptr, ptr %128, align 8, !tbaa !15
  %161 = getelementptr inbounds double, ptr %160, i64 %.4261
  %162 = load double, ptr %161, align 8, !tbaa !16
  %163 = fmul double %162, 2.000000e+00
  %164 = load ptr, ptr %126, align 8, !tbaa !15
  %165 = getelementptr inbounds double, ptr %164, i64 %.4261
  %166 = load double, ptr %165, align 8, !tbaa !16
  %167 = load ptr, ptr %129, align 8, !tbaa !15
  %168 = getelementptr inbounds double, ptr %167, i64 %.4261
  %169 = load double, ptr %168, align 8, !tbaa !16
  %170 = fneg double %169
  %171 = call double @llvm.fmuladd.f64(double %163, double %166, double %170)
  store double %166, ptr %168, align 8, !tbaa !16
  %172 = load ptr, ptr %126, align 8, !tbaa !15
  %173 = getelementptr inbounds double, ptr %172, i64 %.4261
  store double %171, ptr %173, align 8, !tbaa !16
  %174 = add nuw nsw i64 %.4261, 1
  %exitcond316.not = icmp eq i64 %174, %154
  br i1 %exitcond316.not, label %._crit_edge264, label %.lr.ph263, !llvm.loop !24

._crit_edge264:                                   ; preds = %.lr.ph263, %147
  %175 = add nuw nsw i64 %.0200266, 1
  %.not.not217 = icmp slt i64 %175, %154
  br i1 %.not.not217, label %147, label %.loopexit, !llvm.loop !25

.loopexit:                                        ; preds = %._crit_edge264, %112, %._crit_edge253.thread, %.preheader232, %._crit_edge253
  %176 = phi ptr [ %110, %.preheader232 ], [ %110, %._crit_edge253 ], [ %66, %._crit_edge253.thread ], [ %110, %112 ], [ %110, %._crit_edge264 ]
  %177 = phi i64 [ %114, %.preheader232 ], [ %63, %._crit_edge253 ], [ %63, %._crit_edge253.thread ], [ %114, %112 ], [ %154, %._crit_edge264 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %3, i64 noundef %177, ptr noundef %4)
  %178 = load i64, ptr %0, align 8, !tbaa !5
  %.not.not218268 = icmp sgt i64 %178, 0
  br i1 %.not.not218268, label %.lr.ph271, label %._crit_edge285

.lr.ph271:                                        ; preds = %.loopexit
  %179 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter369 = and i64 %178, 3
  %180 = icmp ult i64 %178, 4
  br i1 %180, label %.preheader231.unr-lcssa, label %.lr.ph271.new

.lr.ph271.new:                                    ; preds = %.lr.ph271
  %unroll_iter372 = and i64 %178, 9223372036854775804
  br label %188

.preheader231.unr-lcssa:                          ; preds = %188, %.lr.ph271
  %.5269.unr = phi i64 [ 0, %.lr.ph271 ], [ %200, %188 ]
  %lcmp.mod371.not = icmp eq i64 %xtraiter369, 0
  br i1 %lcmp.mod371.not, label %.preheader231, label %.epil.preheader368

.epil.preheader368:                               ; preds = %.preheader231.unr-lcssa, %.epil.preheader368
  %.5269.epil = phi i64 [ %183, %.epil.preheader368 ], [ %.5269.unr, %.preheader231.unr-lcssa ]
  %epil.iter370 = phi i64 [ %epil.iter370.next, %.epil.preheader368 ], [ 0, %.preheader231.unr-lcssa ]
  %181 = load ptr, ptr %179, align 8, !tbaa !15
  %182 = getelementptr inbounds double, ptr %181, i64 %.5269.epil
  store double 0.000000e+00, ptr %182, align 8, !tbaa !16
  %183 = add nuw nsw i64 %.5269.epil, 1
  %epil.iter370.next = add i64 %epil.iter370, 1
  %epil.iter370.cmp.not = icmp eq i64 %epil.iter370.next, %xtraiter369
  br i1 %epil.iter370.cmp.not, label %.preheader231, label %.epil.preheader368, !llvm.loop !26

.preheader231:                                    ; preds = %.epil.preheader368, %.preheader231.unr-lcssa
  br i1 %.not.not218268, label %.preheader230.lr.ph, label %._crit_edge285

.preheader230.lr.ph:                              ; preds = %.preheader231
  %184 = getelementptr inbounds i8, ptr %3, i64 56
  %.not225.not.us.peel.not = icmp eq i64 %178, 1
  %.not225.not.us.peel326 = icmp sgt i64 %178, 2
  %xtraiter374 = and i64 %178, 1
  %185 = icmp eq i64 %178, 3
  %186 = and i64 %178, 9223372036854775806
  %187 = add nsw i64 %186, -4
  %lcmp.mod376.not = icmp eq i64 %xtraiter374, 0
  br label %.preheader230

188:                                              ; preds = %188, %.lr.ph271.new
  %.5269 = phi i64 [ 0, %.lr.ph271.new ], [ %200, %188 ]
  %niter373 = phi i64 [ 0, %.lr.ph271.new ], [ %niter373.next.3, %188 ]
  %189 = load ptr, ptr %179, align 8, !tbaa !15
  %190 = getelementptr inbounds double, ptr %189, i64 %.5269
  store double 0.000000e+00, ptr %190, align 8, !tbaa !16
  %191 = or disjoint i64 %.5269, 1
  %192 = load ptr, ptr %179, align 8, !tbaa !15
  %193 = getelementptr inbounds double, ptr %192, i64 %191
  store double 0.000000e+00, ptr %193, align 8, !tbaa !16
  %194 = or disjoint i64 %.5269, 2
  %195 = load ptr, ptr %179, align 8, !tbaa !15
  %196 = getelementptr inbounds double, ptr %195, i64 %194
  store double 0.000000e+00, ptr %196, align 8, !tbaa !16
  %197 = or disjoint i64 %.5269, 3
  %198 = load ptr, ptr %179, align 8, !tbaa !15
  %199 = getelementptr inbounds double, ptr %198, i64 %197
  store double 0.000000e+00, ptr %199, align 8, !tbaa !16
  %200 = add nuw nsw i64 %.5269, 4
  %niter373.next.3 = add i64 %niter373, 4
  %niter373.ncmp.3 = icmp eq i64 %niter373.next.3, %unroll_iter372
  br i1 %niter373.ncmp.3, label %.preheader231.unr-lcssa, label %188, !llvm.loop !27

.preheader230:                                    ; preds = %.preheader230.lr.ph, %._crit_edge280
  %.6284 = phi i64 [ 0, %.preheader230.lr.ph ], [ %202, %._crit_edge280 ]
  %.0209283 = phi double [ 0.000000e+00, %.preheader230.lr.ph ], [ %278, %._crit_edge280 ]
  %201 = icmp ult i64 %.6284, 2
  %.not227 = icmp eq i64 %.6284, 0
  %202 = add nuw nsw i64 %.6284, 1
  %203 = load ptr, ptr %184, align 8, !tbaa !15
  br i1 %.not227, label %217, label %.preheader230.split.preheader

.preheader230.split.preheader:                    ; preds = %.preheader230
  %204 = getelementptr inbounds double, ptr %203, i64 %.6284
  %205 = load double, ptr %204, align 8, !tbaa !16
  store double 0.000000e+00, ptr %204, align 8, !tbaa !16
  %206 = fmul double %.0209283, 2.000000e+00
  %.sink = select i1 %201, double 1.000000e+00, double %206
  %207 = load ptr, ptr %184, align 8, !tbaa !15
  %208 = getelementptr inbounds double, ptr %207, i64 %.6284
  store double %.sink, ptr %208, align 8, !tbaa !16
  %.not225.not.peel = icmp slt i64 %202, %178
  br i1 %.not225.not.peel, label %209, label %.lr.ph279

209:                                              ; preds = %.preheader230.split.preheader
  %210 = load ptr, ptr %184, align 8, !tbaa !15
  %211 = getelementptr inbounds double, ptr %210, i64 %202
  %212 = load double, ptr %211, align 8, !tbaa !16
  store double 0.000000e+00, ptr %211, align 8, !tbaa !16
  %213 = fmul double %205, 2.000000e+00
  %214 = load ptr, ptr %184, align 8, !tbaa !15
  %215 = getelementptr inbounds double, ptr %214, i64 %202
  store double %213, ptr %215, align 8, !tbaa !16
  %216 = add nuw nsw i64 %.6284, 2
  %.not225.not.peel321 = icmp slt i64 %216, %178
  br i1 %.not225.not.peel321, label %.preheader230.split, label %.lr.ph279

217:                                              ; preds = %.preheader230
  store double 0.000000e+00, ptr %203, align 8, !tbaa !16
  %218 = load ptr, ptr %184, align 8, !tbaa !15
  store double 1.000000e+00, ptr %218, align 8, !tbaa !16
  br i1 %.not225.not.us.peel.not, label %.lr.ph279, label %219

219:                                              ; preds = %217
  %220 = load ptr, ptr %184, align 8, !tbaa !15
  %221 = getelementptr inbounds i8, ptr %220, i64 8
  store double 0.000000e+00, ptr %221, align 8, !tbaa !16
  br i1 %.not225.not.us.peel326, label %.preheader230.split.us.peel.next323.preheader, label %.lr.ph279

.preheader230.split.us.peel.next323.preheader:    ; preds = %219
  br i1 %185, label %.lr.ph279.loopexit.unr-lcssa, label %.preheader230.split.us.peel.next323

.preheader230.split.us.peel.next323:              ; preds = %.preheader230.split.us.peel.next323.preheader, %243
  %.1201274.us = phi i64 [ %244, %243 ], [ 2, %.preheader230.split.us.peel.next323.preheader ]
  %niter378 = phi i64 [ %niter378.next.1, %243 ], [ 0, %.preheader230.split.us.peel.next323.preheader ]
  %222 = load ptr, ptr %184, align 8, !tbaa !15
  %223 = getelementptr inbounds double, ptr %222, i64 %.1201274.us
  store double 0.000000e+00, ptr %223, align 8, !tbaa !16
  %224 = icmp ugt i64 %.1201274.us, %202
  br i1 %224, label %225, label %.preheader230.split.us.peel.next323.1

225:                                              ; preds = %.preheader230.split.us.peel.next323
  %226 = load ptr, ptr %184, align 8, !tbaa !15
  %227 = getelementptr inbounds double, ptr %226, i64 %.1201274.us
  %228 = load double, ptr %227, align 8, !tbaa !16
  %229 = getelementptr i8, ptr %227, i64 -16
  %230 = load double, ptr %229, align 8, !tbaa !16
  %231 = fsub double %228, %230
  store double %231, ptr %227, align 8, !tbaa !16
  br label %.preheader230.split.us.peel.next323.1

.preheader230.split.us.peel.next323.1:            ; preds = %225, %.preheader230.split.us.peel.next323
  %232 = or disjoint i64 %.1201274.us, 1
  %233 = load ptr, ptr %184, align 8, !tbaa !15
  %234 = getelementptr inbounds double, ptr %233, i64 %232
  store double 0.000000e+00, ptr %234, align 8, !tbaa !16
  %235 = icmp ugt i64 %.1201274.us, %.6284
  br i1 %235, label %236, label %243

236:                                              ; preds = %.preheader230.split.us.peel.next323.1
  %237 = load ptr, ptr %184, align 8, !tbaa !15
  %238 = getelementptr inbounds double, ptr %237, i64 %232
  %239 = load double, ptr %238, align 8, !tbaa !16
  %240 = getelementptr i8, ptr %238, i64 -16
  %241 = load double, ptr %240, align 8, !tbaa !16
  %242 = fsub double %239, %241
  store double %242, ptr %238, align 8, !tbaa !16
  br label %243

243:                                              ; preds = %236, %.preheader230.split.us.peel.next323.1
  %244 = add nuw nsw i64 %.1201274.us, 2
  %niter378.next.1 = add i64 %niter378, 2
  %niter378.ncmp.1.not = icmp eq i64 %niter378, %187
  br i1 %niter378.ncmp.1.not, label %.lr.ph279.loopexit.unr-lcssa, label %.preheader230.split.us.peel.next323, !llvm.loop !28

.preheader230.split:                              ; preds = %209, %264
  %.1201274 = phi i64 [ %265, %264 ], [ %216, %209 ]
  %.1210273 = phi double [ %247, %264 ], [ %212, %209 ]
  %245 = load ptr, ptr %184, align 8, !tbaa !15
  %246 = getelementptr inbounds double, ptr %245, i64 %.1201274
  %247 = load double, ptr %246, align 8, !tbaa !16
  store double 0.000000e+00, ptr %246, align 8, !tbaa !16
  %248 = icmp eq i64 %.1201274, %.6284
  %or.cond = and i1 %201, %248
  br i1 %or.cond, label %249, label %252

249:                                              ; preds = %.preheader230.split
  %250 = load ptr, ptr %184, align 8, !tbaa !15
  %251 = getelementptr inbounds double, ptr %250, i64 %.6284
  store double 1.000000e+00, ptr %251, align 8, !tbaa !16
  br label %264

252:                                              ; preds = %.preheader230.split
  %253 = fmul double %.1210273, 2.000000e+00
  %254 = load ptr, ptr %184, align 8, !tbaa !15
  %255 = getelementptr inbounds double, ptr %254, i64 %.1201274
  store double %253, ptr %255, align 8, !tbaa !16
  %256 = icmp ugt i64 %.1201274, %202
  br i1 %256, label %257, label %264

257:                                              ; preds = %252
  %258 = load ptr, ptr %184, align 8, !tbaa !15
  %259 = getelementptr inbounds double, ptr %258, i64 %.1201274
  %260 = load double, ptr %259, align 8, !tbaa !16
  %261 = getelementptr i8, ptr %259, i64 -16
  %262 = load double, ptr %261, align 8, !tbaa !16
  %263 = fsub double %260, %262
  store double %263, ptr %259, align 8, !tbaa !16
  br label %264

264:                                              ; preds = %252, %257, %249
  %265 = add nuw nsw i64 %.1201274, 1
  %.not225.not = icmp slt i64 %265, %178
  br i1 %.not225.not, label %.preheader230.split, label %.lr.ph279, !llvm.loop !30

.lr.ph279.loopexit.unr-lcssa:                     ; preds = %243, %.preheader230.split.us.peel.next323.preheader
  %.1201274.us.unr = phi i64 [ 2, %.preheader230.split.us.peel.next323.preheader ], [ %244, %243 ]
  br i1 %lcmp.mod376.not, label %.lr.ph279, label %.preheader230.split.us.peel.next323.epil

.preheader230.split.us.peel.next323.epil:         ; preds = %.lr.ph279.loopexit.unr-lcssa
  %266 = load ptr, ptr %184, align 8, !tbaa !15
  %267 = getelementptr inbounds double, ptr %266, i64 %.1201274.us.unr
  store double 0.000000e+00, ptr %267, align 8, !tbaa !16
  %268 = icmp ugt i64 %.1201274.us.unr, %202
  br i1 %268, label %269, label %.lr.ph279

269:                                              ; preds = %.preheader230.split.us.peel.next323.epil
  %270 = load ptr, ptr %184, align 8, !tbaa !15
  %271 = getelementptr inbounds double, ptr %270, i64 %.1201274.us.unr
  %272 = load double, ptr %271, align 8, !tbaa !16
  %273 = getelementptr i8, ptr %271, i64 -16
  %274 = load double, ptr %273, align 8, !tbaa !16
  %275 = fsub double %272, %274
  store double %275, ptr %271, align 8, !tbaa !16
  br label %.lr.ph279

.lr.ph279:                                        ; preds = %264, %.lr.ph279.loopexit.unr-lcssa, %269, %.preheader230.split.us.peel.next323.epil, %219, %217, %209, %.preheader230.split.preheader
  %276 = load ptr, ptr %184, align 8, !tbaa !15
  %277 = getelementptr inbounds double, ptr %276, i64 %.6284
  %278 = load double, ptr %277, align 8, !tbaa !16
  %279 = load ptr, ptr %176, align 8, !tbaa !15
  br label %280

280:                                              ; preds = %.lr.ph279, %280
  %.2202277 = phi i64 [ %.6284, %.lr.ph279 ], [ %286, %280 ]
  %.0211276 = phi double [ 0.000000e+00, %.lr.ph279 ], [ %285, %280 ]
  %281 = getelementptr inbounds double, ptr %276, i64 %.2202277
  %282 = load double, ptr %281, align 8, !tbaa !16
  %283 = getelementptr inbounds double, ptr %279, i64 %.2202277
  %284 = load double, ptr %283, align 8, !tbaa !16
  %285 = call double @llvm.fmuladd.f64(double %282, double %284, double %.0211276)
  %286 = add nuw nsw i64 %.2202277, 2
  %.not226.not = icmp slt i64 %286, %178
  br i1 %.not226.not, label %280, label %._crit_edge280, !llvm.loop !31

._crit_edge280:                                   ; preds = %280
  store double %285, ptr %277, align 8, !tbaa !16
  %exitcond328.not = icmp eq i64 %202, %178
  br i1 %exitcond328.not, label %._crit_edge285, label %.preheader230, !llvm.loop !32

._crit_edge285:                                   ; preds = %._crit_edge280, %.loopexit, %.preheader231
  %287 = load i64, ptr %7, align 8, !tbaa !33
  %288 = icmp sgt i64 %287, %178
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %288, ptr noundef nonnull @.str.358, ptr noundef %4)
  %289 = load i64, ptr %11, align 8, !tbaa !33
  %290 = load i64, ptr %0, align 8, !tbaa !5
  %291 = icmp sge i64 %289, %290
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %291, ptr noundef nonnull @.str.358, ptr noundef %4)
  %292 = load i64, ptr %0, align 8, !tbaa !5
  %.not.not220286 = icmp sgt i64 %292, 0
  br i1 %.not.not220286, label %.lr.ph289.preheader, label %._crit_edge290

.lr.ph289.preheader:                              ; preds = %._crit_edge285
  %xtraiter379 = and i64 %292, 3
  %293 = icmp ult i64 %292, 4
  br i1 %293, label %._crit_edge290.loopexit.unr-lcssa, label %.lr.ph289.preheader.new

.lr.ph289.preheader.new:                          ; preds = %.lr.ph289.preheader
  %unroll_iter382 = and i64 %292, 9223372036854775804
  br label %.lr.ph289

.lr.ph289:                                        ; preds = %.lr.ph289, %.lr.ph289.preheader.new
  %.7287 = phi i64 [ 0, %.lr.ph289.preheader.new ], [ %305, %.lr.ph289 ]
  %niter383 = phi i64 [ 0, %.lr.ph289.preheader.new ], [ %niter383.next.3, %.lr.ph289 ]
  %294 = load ptr, ptr %176, align 8, !tbaa !15
  %295 = getelementptr inbounds double, ptr %294, i64 %.7287
  store double 0.000000e+00, ptr %295, align 8, !tbaa !16
  %296 = or disjoint i64 %.7287, 1
  %297 = load ptr, ptr %176, align 8, !tbaa !15
  %298 = getelementptr inbounds double, ptr %297, i64 %296
  store double 0.000000e+00, ptr %298, align 8, !tbaa !16
  %299 = or disjoint i64 %.7287, 2
  %300 = load ptr, ptr %176, align 8, !tbaa !15
  %301 = getelementptr inbounds double, ptr %300, i64 %299
  store double 0.000000e+00, ptr %301, align 8, !tbaa !16
  %302 = or disjoint i64 %.7287, 3
  %303 = load ptr, ptr %176, align 8, !tbaa !15
  %304 = getelementptr inbounds double, ptr %303, i64 %302
  store double 0.000000e+00, ptr %304, align 8, !tbaa !16
  %305 = add nuw nsw i64 %.7287, 4
  %niter383.next.3 = add i64 %niter383, 4
  %niter383.ncmp.3 = icmp eq i64 %niter383.next.3, %unroll_iter382
  br i1 %niter383.ncmp.3, label %._crit_edge290.loopexit.unr-lcssa, label %.lr.ph289, !llvm.loop !34

._crit_edge290.loopexit.unr-lcssa:                ; preds = %.lr.ph289, %.lr.ph289.preheader
  %.7287.unr = phi i64 [ 0, %.lr.ph289.preheader ], [ %305, %.lr.ph289 ]
  %lcmp.mod381.not = icmp eq i64 %xtraiter379, 0
  br i1 %lcmp.mod381.not, label %._crit_edge290, label %.lr.ph289.epil

.lr.ph289.epil:                                   ; preds = %._crit_edge290.loopexit.unr-lcssa, %.lr.ph289.epil
  %.7287.epil = phi i64 [ %308, %.lr.ph289.epil ], [ %.7287.unr, %._crit_edge290.loopexit.unr-lcssa ]
  %epil.iter380 = phi i64 [ %epil.iter380.next, %.lr.ph289.epil ], [ 0, %._crit_edge290.loopexit.unr-lcssa ]
  %306 = load ptr, ptr %176, align 8, !tbaa !15
  %307 = getelementptr inbounds double, ptr %306, i64 %.7287.epil
  store double 0.000000e+00, ptr %307, align 8, !tbaa !16
  %308 = add nuw nsw i64 %.7287.epil, 1
  %epil.iter380.next = add i64 %epil.iter380, 1
  %epil.iter380.cmp.not = icmp eq i64 %epil.iter380.next, %xtraiter379
  br i1 %epil.iter380.cmp.not, label %._crit_edge290, label %.lr.ph289.epil, !llvm.loop !35

._crit_edge290:                                   ; preds = %._crit_edge290.loopexit.unr-lcssa, %.lr.ph289.epil, %._crit_edge285
  %309 = fdiv double %2, %.0206
  %310 = fdiv double %1, %.0206
  %311 = fdiv double %.0207, %.0206
  %312 = fsub double %310, %311
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %292, ptr noundef %4)
  %313 = load i64, ptr %0, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %313, ptr noundef %4)
  %314 = getelementptr inbounds i8, ptr %12, i64 56
  %315 = load ptr, ptr %314, align 8, !tbaa !15
  store double 1.000000e+00, ptr %315, align 8, !tbaa !16
  %316 = getelementptr inbounds i8, ptr %13, i64 56
  %317 = load ptr, ptr %316, align 8, !tbaa !15
  store double 1.000000e+00, ptr %317, align 8, !tbaa !16
  %318 = load i64, ptr %0, align 8, !tbaa !5
  %.not.not221292 = icmp sgt i64 %318, 1
  br i1 %.not.not221292, label %.lr.ph295.preheader, label %.preheader229

.lr.ph295.preheader:                              ; preds = %._crit_edge290
  %319 = add nsw i64 %318, -1
  %xtraiter384 = and i64 %319, 1
  %320 = icmp eq i64 %318, 2
  br i1 %320, label %.preheader229.loopexit.unr-lcssa, label %.lr.ph295.preheader.new

.lr.ph295.preheader.new:                          ; preds = %.lr.ph295.preheader
  %unroll_iter387 = and i64 %319, -2
  br label %.lr.ph295

.preheader229.loopexit.unr-lcssa:                 ; preds = %.lr.ph295, %.lr.ph295.preheader
  %.3203293.unr = phi i64 [ 1, %.lr.ph295.preheader ], [ %356, %.lr.ph295 ]
  %lcmp.mod386.not = icmp eq i64 %xtraiter384, 0
  br i1 %lcmp.mod386.not, label %.preheader229, label %.lr.ph295.epil

.lr.ph295.epil:                                   ; preds = %.preheader229.loopexit.unr-lcssa
  %321 = load ptr, ptr %314, align 8, !tbaa !15
  %322 = add nsw i64 %.3203293.unr, -1
  %323 = getelementptr inbounds double, ptr %321, i64 %322
  %324 = load double, ptr %323, align 8, !tbaa !16
  %325 = fmul double %309, %324
  %326 = getelementptr inbounds double, ptr %321, i64 %.3203293.unr
  store double %325, ptr %326, align 8, !tbaa !16
  %327 = load ptr, ptr %316, align 8, !tbaa !15
  %328 = getelementptr inbounds double, ptr %327, i64 %322
  %329 = load double, ptr %328, align 8, !tbaa !16
  %330 = fmul double %312, %329
  %331 = getelementptr inbounds double, ptr %327, i64 %.3203293.unr
  store double %330, ptr %331, align 8, !tbaa !16
  br label %.preheader229

.preheader229:                                    ; preds = %.lr.ph295.epil, %.preheader229.loopexit.unr-lcssa, %._crit_edge290
  %.not.not222302 = icmp sgt i64 %318, 0
  br i1 %.not.not222302, label %.lr.ph305, label %._crit_edge309

.lr.ph305:                                        ; preds = %.preheader229
  %332 = getelementptr inbounds i8, ptr %7, i64 56
  %333 = getelementptr inbounds i8, ptr %3, i64 56
  br label %359

.lr.ph295:                                        ; preds = %.lr.ph295, %.lr.ph295.preheader.new
  %.3203293 = phi i64 [ 1, %.lr.ph295.preheader.new ], [ %356, %.lr.ph295 ]
  %niter388 = phi i64 [ 0, %.lr.ph295.preheader.new ], [ %niter388.next.1, %.lr.ph295 ]
  %334 = load ptr, ptr %314, align 8, !tbaa !15
  %335 = add nsw i64 %.3203293, -1
  %336 = getelementptr inbounds double, ptr %334, i64 %335
  %337 = load double, ptr %336, align 8, !tbaa !16
  %338 = fmul double %309, %337
  %339 = getelementptr inbounds double, ptr %334, i64 %.3203293
  store double %338, ptr %339, align 8, !tbaa !16
  %340 = load ptr, ptr %316, align 8, !tbaa !15
  %341 = getelementptr inbounds double, ptr %340, i64 %335
  %342 = load double, ptr %341, align 8, !tbaa !16
  %343 = fmul double %312, %342
  %344 = getelementptr inbounds double, ptr %340, i64 %.3203293
  store double %343, ptr %344, align 8, !tbaa !16
  %345 = add nuw nsw i64 %.3203293, 1
  %346 = load ptr, ptr %314, align 8, !tbaa !15
  %347 = getelementptr inbounds double, ptr %346, i64 %.3203293
  %348 = load double, ptr %347, align 8, !tbaa !16
  %349 = fmul double %309, %348
  %350 = getelementptr inbounds double, ptr %346, i64 %345
  store double %349, ptr %350, align 8, !tbaa !16
  %351 = load ptr, ptr %316, align 8, !tbaa !15
  %352 = getelementptr inbounds double, ptr %351, i64 %.3203293
  %353 = load double, ptr %352, align 8, !tbaa !16
  %354 = fmul double %312, %353
  %355 = getelementptr inbounds double, ptr %351, i64 %345
  store double %354, ptr %355, align 8, !tbaa !16
  %356 = add nuw nsw i64 %.3203293, 2
  %niter388.next.1 = add nuw i64 %niter388, 2
  %niter388.ncmp.1 = icmp eq i64 %niter388.next.1, %unroll_iter387
  br i1 %niter388.ncmp.1, label %.preheader229.loopexit.unr-lcssa, label %.lr.ph295, !llvm.loop !36

.preheader:                                       ; preds = %394
  br i1 %.not.not222302, label %.lr.ph308, label %._crit_edge309

.lr.ph308:                                        ; preds = %.preheader
  %357 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter390 = and i64 %318, 3
  %358 = icmp ult i64 %318, 4
  br i1 %358, label %._crit_edge309.loopexit.unr-lcssa, label %.lr.ph308.new

.lr.ph308.new:                                    ; preds = %.lr.ph308
  %unroll_iter393 = and i64 %318, 9223372036854775804
  br label %396

359:                                              ; preds = %.lr.ph305, %394
  %indvars.iv = phi i64 [ 1, %.lr.ph305 ], [ %indvars.iv.next, %394 ]
  %.4204303 = phi i64 [ 0, %.lr.ph305 ], [ %395, %394 ]
  %.not = icmp eq i64 %.4204303, 0
  %360 = load ptr, ptr %332, align 8, !tbaa !15
  br i1 %.not, label %372, label %361

361:                                              ; preds = %359
  %362 = getelementptr inbounds double, ptr %360, i64 %.4204303
  store double 1.000000e+00, ptr %362, align 8, !tbaa !16
  %.not334 = icmp eq i64 %.4204303, 1
  br i1 %.not334, label %._crit_edge300, label %.lr.ph299

.lr.ph299:                                        ; preds = %361, %.lr.ph299
  %.8.in297 = phi i64 [ %.8, %.lr.ph299 ], [ %.4204303, %361 ]
  %.8 = add nsw i64 %.8.in297, -1
  %363 = load ptr, ptr %332, align 8, !tbaa !15
  %364 = getelementptr inbounds double, ptr %363, i64 %.8
  %365 = load double, ptr %364, align 8, !tbaa !16
  %366 = getelementptr double, ptr %363, i64 %.8.in297
  %367 = getelementptr i8, ptr %366, i64 -16
  %368 = load double, ptr %367, align 8, !tbaa !16
  %369 = fadd double %365, %368
  store double %369, ptr %364, align 8, !tbaa !16
  %370 = icmp sgt i64 %.8.in297, 2
  br i1 %370, label %.lr.ph299, label %._crit_edge300, !llvm.loop !37

._crit_edge300:                                   ; preds = %.lr.ph299, %361
  %371 = load ptr, ptr %332, align 8, !tbaa !15
  br label %372

372:                                              ; preds = %359, %._crit_edge300
  %.sink345 = phi ptr [ %371, %._crit_edge300 ], [ %360, %359 ]
  store double 1.000000e+00, ptr %.sink345, align 8, !tbaa !16
  br label %373

373:                                              ; preds = %372, %373
  %.9301 = phi i64 [ 0, %372 ], [ %393, %373 ]
  %374 = load ptr, ptr %176, align 8, !tbaa !15
  %375 = getelementptr inbounds double, ptr %374, i64 %.9301
  %376 = load double, ptr %375, align 8, !tbaa !16
  %377 = load ptr, ptr %333, align 8, !tbaa !15
  %378 = getelementptr inbounds double, ptr %377, i64 %.4204303
  %379 = load double, ptr %378, align 8, !tbaa !16
  %380 = load ptr, ptr %314, align 8, !tbaa !15
  %381 = getelementptr inbounds double, ptr %380, i64 %.9301
  %382 = load double, ptr %381, align 8, !tbaa !16
  %383 = fmul double %379, %382
  %384 = load ptr, ptr %316, align 8, !tbaa !15
  %385 = sub nsw i64 %.4204303, %.9301
  %386 = getelementptr inbounds double, ptr %384, i64 %385
  %387 = load double, ptr %386, align 8, !tbaa !16
  %388 = fmul double %383, %387
  %389 = load ptr, ptr %332, align 8, !tbaa !15
  %390 = getelementptr inbounds double, ptr %389, i64 %.9301
  %391 = load double, ptr %390, align 8, !tbaa !16
  %392 = call double @llvm.fmuladd.f64(double %388, double %391, double %376)
  store double %392, ptr %375, align 8, !tbaa !16
  %393 = add nuw nsw i64 %.9301, 1
  %exitcond331.not = icmp eq i64 %393, %indvars.iv
  br i1 %exitcond331.not, label %394, label %373, !llvm.loop !38

394:                                              ; preds = %373
  %395 = add nuw nsw i64 %.4204303, 1
  %indvars.iv.next = add nuw i64 %indvars.iv, 1
  %exitcond332.not = icmp eq i64 %395, %318
  br i1 %exitcond332.not, label %.preheader, label %359, !llvm.loop !39

396:                                              ; preds = %396, %.lr.ph308.new
  %.5205307 = phi i64 [ 0, %.lr.ph308.new ], [ %420, %396 ]
  %niter394 = phi i64 [ 0, %.lr.ph308.new ], [ %niter394.next.3, %396 ]
  %397 = load ptr, ptr %176, align 8, !tbaa !15
  %398 = getelementptr inbounds double, ptr %397, i64 %.5205307
  %399 = load double, ptr %398, align 8, !tbaa !16
  %400 = load ptr, ptr %357, align 8, !tbaa !15
  %401 = getelementptr inbounds double, ptr %400, i64 %.5205307
  store double %399, ptr %401, align 8, !tbaa !16
  %402 = or disjoint i64 %.5205307, 1
  %403 = load ptr, ptr %176, align 8, !tbaa !15
  %404 = getelementptr inbounds double, ptr %403, i64 %402
  %405 = load double, ptr %404, align 8, !tbaa !16
  %406 = load ptr, ptr %357, align 8, !tbaa !15
  %407 = getelementptr inbounds double, ptr %406, i64 %402
  store double %405, ptr %407, align 8, !tbaa !16
  %408 = or disjoint i64 %.5205307, 2
  %409 = load ptr, ptr %176, align 8, !tbaa !15
  %410 = getelementptr inbounds double, ptr %409, i64 %408
  %411 = load double, ptr %410, align 8, !tbaa !16
  %412 = load ptr, ptr %357, align 8, !tbaa !15
  %413 = getelementptr inbounds double, ptr %412, i64 %408
  store double %411, ptr %413, align 8, !tbaa !16
  %414 = or disjoint i64 %.5205307, 3
  %415 = load ptr, ptr %176, align 8, !tbaa !15
  %416 = getelementptr inbounds double, ptr %415, i64 %414
  %417 = load double, ptr %416, align 8, !tbaa !16
  %418 = load ptr, ptr %357, align 8, !tbaa !15
  %419 = getelementptr inbounds double, ptr %418, i64 %414
  store double %417, ptr %419, align 8, !tbaa !16
  %420 = add nuw nsw i64 %.5205307, 4
  %niter394.next.3 = add i64 %niter394, 4
  %niter394.ncmp.3 = icmp eq i64 %niter394.next.3, %unroll_iter393
  br i1 %niter394.ncmp.3, label %._crit_edge309.loopexit.unr-lcssa, label %396, !llvm.loop !40

._crit_edge309.loopexit.unr-lcssa:                ; preds = %396, %.lr.ph308
  %.5205307.unr = phi i64 [ 0, %.lr.ph308 ], [ %420, %396 ]
  %lcmp.mod392.not = icmp eq i64 %xtraiter390, 0
  br i1 %lcmp.mod392.not, label %._crit_edge309, label %.epil.preheader389

.epil.preheader389:                               ; preds = %._crit_edge309.loopexit.unr-lcssa, %.epil.preheader389
  %.5205307.epil = phi i64 [ %426, %.epil.preheader389 ], [ %.5205307.unr, %._crit_edge309.loopexit.unr-lcssa ]
  %epil.iter391 = phi i64 [ %epil.iter391.next, %.epil.preheader389 ], [ 0, %._crit_edge309.loopexit.unr-lcssa ]
  %421 = load ptr, ptr %176, align 8, !tbaa !15
  %422 = getelementptr inbounds double, ptr %421, i64 %.5205307.epil
  %423 = load double, ptr %422, align 8, !tbaa !16
  %424 = load ptr, ptr %357, align 8, !tbaa !15
  %425 = getelementptr inbounds double, ptr %424, i64 %.5205307.epil
  store double %423, ptr %425, align 8, !tbaa !16
  %426 = add nuw nsw i64 %.5205307.epil, 1
  %epil.iter391.next = add i64 %epil.iter391, 1
  %epil.iter391.cmp.not = icmp eq i64 %epil.iter391.next, %xtraiter390
  br i1 %epil.iter391.cmp.not, label %._crit_edge309, label %.epil.preheader389, !llvm.loop !41

._crit_edge309:                                   ; preds = %._crit_edge309.loopexit.unr-lcssa, %.epil.preheader389, %.preheader229, %.preheader
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl22barycentricinterpolantE", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 80, !11, i64 144}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !12, i64 16, !13, i64 24, !8, i64 56}
!12 = !{!"bool", !8, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!10, !10, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !18}
!28 = distinct !{!28, !18, !29}
!29 = !{!"llvm.loop.peeled.count", i32 2}
!30 = distinct !{!30, !18, !29}
!31 = distinct !{!31, !18}
!32 = distinct !{!32, !18}
!33 = !{!11, !7, i64 0}
!34 = distinct !{!34, !18}
!35 = distinct !{!35, !22}
!36 = distinct !{!36, !18}
!37 = distinct !{!37, !18}
!38 = distinct !{!38, !18}
!39 = distinct !{!39, !18}
!40 = distinct !{!40, !18}
!41 = distinct !{!41, !22}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass