; LLVM IR from Dimandragon/non-parametric-dsp :: 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::barycentricinterpolant" = type { i64, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"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::barycentricfitreport" = type { i64, double, i64, double, double, double, double }

@.str.471 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.472 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.473 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.474 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.475 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.476 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.477 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.478 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.479 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.480 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.481 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.482 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.483 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.484 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.485 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.486 = external hidden unnamed_addr constant [79 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: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl28_barycentricinterpolant_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

; 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) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl26_barycentricfitreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl30barycentricfitfloaterhormannwcEPKNS_9ae_vectorES2_S2_lS2_S2_S2_llPNS_22barycentricinterpolantEPNS_20barycentricfitreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i64 noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) #2 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"struct.alglib_impl::ae_frame", align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca %"struct.alglib_impl::barycentricinterpolant", align 8
  %31 = alloca %"struct.alglib_impl::barycentricfitreport", align 8
  %32 = alloca i64, align 8
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store i64 %3, ptr %16, align 8, !tbaa !9
  store ptr %4, ptr %17, align 8, !tbaa !5
  store ptr %5, ptr %18, align 8, !tbaa !5
  store ptr %6, ptr %19, align 8, !tbaa !5
  store i64 %7, ptr %20, align 8, !tbaa !9
  store i64 %8, ptr %21, align 8, !tbaa !9
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  store ptr %11, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 208, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 56, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %33 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %33, ptr noundef %25)
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 208, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 56, i1 false)
  %34 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl29_barycentricinterpolant_clearEPv(ptr noundef %34)
  %35 = load ptr, ptr %23, align 8, !tbaa !5
  call void @_ZN11alglib_impl27_barycentricfitreport_clearEPv(ptr noundef %35)
  %36 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl28_barycentricinterpolant_initEPvPNS_8ae_stateEb(ptr noundef %30, ptr noundef %36, i1 noundef zeroext true)
  %37 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl26_barycentricfitreport_initEPvPNS_8ae_stateEb(ptr noundef %31, ptr noundef %37, i1 noundef zeroext true)
  %38 = load i64, ptr %16, align 8, !tbaa !9
  %39 = icmp sgt i64 %38, 0
  %40 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef @.str.471, ptr noundef %40)
  %41 = load i64, ptr %21, align 8, !tbaa !9
  %42 = icmp sgt i64 %41, 0
  %43 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.472, ptr noundef %43)
  %44 = load i64, ptr %20, align 8, !tbaa !9
  %45 = icmp sge i64 %44, 0
  %46 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %45, ptr noundef @.str.473, ptr noundef %46)
  %47 = load i64, ptr %20, align 8, !tbaa !9
  %48 = load i64, ptr %21, align 8, !tbaa !9
  %49 = icmp slt i64 %47, %48
  %50 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.474, ptr noundef %50)
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %51, i32 0, i32 0
  %53 = load i64, ptr %52, align 8, !tbaa !11
  %54 = load i64, ptr %16, align 8, !tbaa !9
  %55 = icmp sge i64 %53, %54
  %56 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %55, ptr noundef @.str.475, ptr noundef %56)
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %57, i32 0, i32 0
  %59 = load i64, ptr %58, align 8, !tbaa !11
  %60 = load i64, ptr %16, align 8, !tbaa !9
  %61 = icmp sge i64 %59, %60
  %62 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %61, ptr noundef @.str.476, ptr noundef %62)
  %63 = load ptr, ptr %15, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %63, i32 0, i32 0
  %65 = load i64, ptr %64, align 8, !tbaa !11
  %66 = load i64, ptr %16, align 8, !tbaa !9
  %67 = icmp sge i64 %65, %66
  %68 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %67, ptr noundef @.str.477, ptr noundef %68)
  %69 = load ptr, ptr %17, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %69, i32 0, i32 0
  %71 = load i64, ptr %70, align 8, !tbaa !11
  %72 = load i64, ptr %20, align 8, !tbaa !9
  %73 = icmp sge i64 %71, %72
  %74 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %73, ptr noundef @.str.478, ptr noundef %74)
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %75, i32 0, i32 0
  %77 = load i64, ptr %76, align 8, !tbaa !11
  %78 = load i64, ptr %20, align 8, !tbaa !9
  %79 = icmp sge i64 %77, %78
  %80 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %79, ptr noundef @.str.479, ptr noundef %80)
  %81 = load ptr, ptr %19, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %81, i32 0, i32 0
  %83 = load i64, ptr %82, align 8, !tbaa !11
  %84 = load i64, ptr %20, align 8, !tbaa !9
  %85 = icmp sge i64 %83, %84
  %86 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %85, ptr noundef @.str.480, ptr noundef %86)
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = load i64, ptr %16, align 8, !tbaa !9
  %89 = load ptr, ptr %24, align 8, !tbaa !5
  %90 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %87, i64 noundef %88, ptr noundef %89)
  %91 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %90, ptr noundef @.str.481, ptr noundef %91)
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load i64, ptr %16, align 8, !tbaa !9
  %94 = load ptr, ptr %24, align 8, !tbaa !5
  %95 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %92, i64 noundef %93, ptr noundef %94)
  %96 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %95, ptr noundef @.str.482, ptr noundef %96)
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = load i64, ptr %16, align 8, !tbaa !9
  %99 = load ptr, ptr %24, align 8, !tbaa !5
  %100 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %97, i64 noundef %98, ptr noundef %99)
  %101 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %100, ptr noundef @.str.481, ptr noundef %101)
  %102 = load ptr, ptr %17, align 8, !tbaa !5
  %103 = load i64, ptr %20, align 8, !tbaa !9
  %104 = load ptr, ptr %24, align 8, !tbaa !5
  %105 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %102, i64 noundef %103, ptr noundef %104)
  %106 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %105, ptr noundef @.str.483, ptr noundef %106)
  %107 = load ptr, ptr %18, align 8, !tbaa !5
  %108 = load i64, ptr %20, align 8, !tbaa !9
  %109 = load ptr, ptr %24, align 8, !tbaa !5
  %110 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %107, i64 noundef %108, ptr noundef %109)
  %111 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %110, ptr noundef @.str.484, ptr noundef %111)
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %136, %12
  %113 = load i64, ptr %27, align 8, !tbaa !9
  %114 = load i64, ptr %20, align 8, !tbaa !9
  %115 = sub nsw i64 %114, 1
  %116 = icmp sle i64 %113, %115
  br i1 %116, label %117, label %139

117:                                              ; preds = %112
  %118 = load ptr, ptr %19, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %118, i32 0, i32 4
  %120 = load ptr, ptr %119, align 8, !tbaa !15
  %121 = load i64, ptr %27, align 8, !tbaa !9
  %122 = getelementptr inbounds i64, ptr %120, i64 %121
  %123 = load i64, ptr %122, align 8, !tbaa !9
  %124 = icmp eq i64 %123, 0
  br i1 %124, label %133, label %125

125:                                              ; preds = %117
  %126 = load ptr, ptr %19, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %126, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !15
  %129 = load i64, ptr %27, align 8, !tbaa !9
  %130 = getelementptr inbounds i64, ptr %128, i64 %129
  %131 = load i64, ptr %130, align 8, !tbaa !9
  %132 = icmp eq i64 %131, 1
  br label %133

133:                                              ; preds = %125, %117
  %134 = phi i1 [ true, %117 ], [ %132, %125 ]
  %135 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %134, ptr noundef @.str.485, ptr noundef %135)
  br label %136

136:                                              ; preds = %133
  %137 = load i64, ptr %27, align 8, !tbaa !9
  %138 = add nsw i64 %137, 1
  store i64 %138, ptr %27, align 8, !tbaa !9
  br label %112, !llvm.loop !16

139:                                              ; preds = %112
  store double 1.000000e+300, ptr %29, align 8, !tbaa !18
  %140 = load ptr, ptr %23, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %140, i32 0, i32 2
  store i64 -1, ptr %141, align 8, !tbaa !20
  %142 = load ptr, ptr %23, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %142, i32 0, i32 0
  store i64 -3, ptr %143, align 8, !tbaa !22
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %144

144:                                              ; preds = %271, %139
  %145 = load i64, ptr %26, align 8, !tbaa !9
  %146 = load i64, ptr %16, align 8, !tbaa !9
  %147 = sub nsw i64 %146, 1
  %148 = load ptr, ptr %24, align 8, !tbaa !5
  %149 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 9, i64 noundef %147, ptr noundef %148)
  %150 = icmp sle i64 %145, %149
  br i1 %150, label %151, label %274

151:                                              ; preds = %144
  %152 = load ptr, ptr %13, align 8, !tbaa !5
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = load ptr, ptr %15, align 8, !tbaa !5
  %155 = load i64, ptr %16, align 8, !tbaa !9
  %156 = load ptr, ptr %17, align 8, !tbaa !5
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  %158 = load ptr, ptr %19, align 8, !tbaa !5
  %159 = load i64, ptr %20, align 8, !tbaa !9
  %160 = load i64, ptr %21, align 8, !tbaa !9
  %161 = load i64, ptr %26, align 8, !tbaa !9
  %162 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_implL28lsfit_barycentricfitwcfixeddEPKNS_9ae_vectorES2_S2_lS2_S2_S2_lllPlPNS_22barycentricinterpolantEPNS_20barycentricfitreportEPNS_8ae_stateE(ptr noundef %152, ptr noundef %153, ptr noundef %154, i64 noundef %155, ptr noundef %156, ptr noundef %157, ptr noundef %158, i64 noundef %159, i64 noundef %160, i64 noundef %161, ptr noundef %32, ptr noundef %30, ptr noundef %31, ptr noundef %162)
  %163 = load i64, ptr %32, align 8, !tbaa !9
  %164 = icmp eq i64 %163, -4
  br i1 %164, label %171, label %165

165:                                              ; preds = %151
  %166 = load i64, ptr %32, align 8, !tbaa !9
  %167 = icmp eq i64 %166, -3
  br i1 %167, label %171, label %168

168:                                              ; preds = %165
  %169 = load i64, ptr %32, align 8, !tbaa !9
  %170 = icmp sgt i64 %169, 0
  br label %171

171:                                              ; preds = %168, %165, %151
  %172 = phi i1 [ true, %165 ], [ true, %151 ], [ %170, %168 ]
  %173 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %172, ptr noundef @.str.486, ptr noundef %173)
  %174 = load i64, ptr %32, align 8, !tbaa !9
  %175 = icmp sgt i64 %174, 0
  br i1 %175, label %176, label %257

176:                                              ; preds = %171
  store double 0.000000e+00, ptr %28, align 8, !tbaa !18
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %177

177:                                              ; preds = %209, %176
  %178 = load i64, ptr %27, align 8, !tbaa !9
  %179 = load i64, ptr %16, align 8, !tbaa !9
  %180 = sub nsw i64 %179, 1
  %181 = icmp sle i64 %178, %180
  br i1 %181, label %182, label %212

182:                                              ; preds = %177
  %183 = load double, ptr %28, align 8, !tbaa !18
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %184, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !15
  %187 = load i64, ptr %27, align 8, !tbaa !9
  %188 = getelementptr inbounds double, ptr %186, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !18
  %190 = load ptr, ptr %14, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !15
  %193 = load i64, ptr %27, align 8, !tbaa !9
  %194 = getelementptr inbounds double, ptr %192, i64 %193
  %195 = load double, ptr %194, align 8, !tbaa !18
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %196, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !15
  %199 = load i64, ptr %27, align 8, !tbaa !9
  %200 = getelementptr inbounds double, ptr %198, i64 %199
  %201 = load double, ptr %200, align 8, !tbaa !18
  %202 = load ptr, ptr %24, align 8, !tbaa !5
  %203 = call noundef double @_ZN11alglib_impl15barycentriccalcEPKNS_22barycentricinterpolantEdPNS_8ae_stateE(ptr noundef %30, double noundef %201, ptr noundef %202)
  %204 = fsub double %195, %203
  %205 = fmul double %189, %204
  %206 = load ptr, ptr %24, align 8, !tbaa !5
  %207 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %205, ptr noundef %206)
  %208 = fadd double %183, %207
  store double %208, ptr %28, align 8, !tbaa !18
  br label %209

209:                                              ; preds = %182
  %210 = load i64, ptr %27, align 8, !tbaa !9
  %211 = add nsw i64 %210, 1
  store i64 %211, ptr %27, align 8, !tbaa !9
  br label %177, !llvm.loop !23

212:                                              ; preds = %177
  %213 = load double, ptr %28, align 8, !tbaa !18
  %214 = load i64, ptr %16, align 8, !tbaa !9
  %215 = sitofp i64 %214 to double
  %216 = fdiv double %213, %215
  %217 = load ptr, ptr %24, align 8, !tbaa !5
  %218 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %216, ptr noundef %217)
  store double %218, ptr %28, align 8, !tbaa !18
  %219 = load double, ptr %28, align 8, !tbaa !18
  %220 = load double, ptr %29, align 8, !tbaa !18
  %221 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %219, double noundef %220)
  br i1 %221, label %227, label %222

222:                                              ; preds = %212
  %223 = load ptr, ptr %23, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %223, i32 0, i32 2
  %225 = load i64, ptr %224, align 8, !tbaa !20
  %226 = icmp slt i64 %225, 0
  br i1 %226, label %227, label %256

227:                                              ; preds = %222, %212
  %228 = load ptr, ptr %22, align 8, !tbaa !5
  %229 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl15barycentriccopyEPKNS_22barycentricinterpolantEPS0_PNS_8ae_stateE(ptr noundef %30, ptr noundef %228, ptr noundef %229)
  %230 = load i64, ptr %26, align 8, !tbaa !9
  %231 = load ptr, ptr %23, align 8, !tbaa !5
  %232 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %231, i32 0, i32 2
  store i64 %230, ptr %232, align 8, !tbaa !20
  %233 = load ptr, ptr %23, align 8, !tbaa !5
  %234 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %233, i32 0, i32 0
  store i64 1, ptr %234, align 8, !tbaa !22
  %235 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %31, i32 0, i32 3
  %236 = load double, ptr %235, align 8, !tbaa !24
  %237 = load ptr, ptr %23, align 8, !tbaa !5
  %238 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %237, i32 0, i32 3
  store double %236, ptr %238, align 8, !tbaa !24
  %239 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %31, i32 0, i32 4
  %240 = load double, ptr %239, align 8, !tbaa !25
  %241 = load ptr, ptr %23, align 8, !tbaa !5
  %242 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %241, i32 0, i32 4
  store double %240, ptr %242, align 8, !tbaa !25
  %243 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %31, i32 0, i32 5
  %244 = load double, ptr %243, align 8, !tbaa !26
  %245 = load ptr, ptr %23, align 8, !tbaa !5
  %246 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %245, i32 0, i32 5
  store double %244, ptr %246, align 8, !tbaa !26
  %247 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %31, i32 0, i32 6
  %248 = load double, ptr %247, align 8, !tbaa !27
  %249 = load ptr, ptr %23, align 8, !tbaa !5
  %250 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %249, i32 0, i32 6
  store double %248, ptr %250, align 8, !tbaa !27
  %251 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %31, i32 0, i32 1
  %252 = load double, ptr %251, align 8, !tbaa !28
  %253 = load ptr, ptr %23, align 8, !tbaa !5
  %254 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %253, i32 0, i32 1
  store double %252, ptr %254, align 8, !tbaa !28
  %255 = load double, ptr %28, align 8, !tbaa !18
  store double %255, ptr %29, align 8, !tbaa !18
  br label %256

256:                                              ; preds = %227, %222
  br label %270

257:                                              ; preds = %171
  %258 = load i64, ptr %32, align 8, !tbaa !9
  %259 = icmp ne i64 %258, -3
  br i1 %259, label %260, label %269

260:                                              ; preds = %257
  %261 = load ptr, ptr %23, align 8, !tbaa !5
  %262 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %261, i32 0, i32 0
  %263 = load i64, ptr %262, align 8, !tbaa !22
  %264 = icmp slt i64 %263, 0
  br i1 %264, label %265, label %269

265:                                              ; preds = %260
  %266 = load i64, ptr %32, align 8, !tbaa !9
  %267 = load ptr, ptr %23, align 8, !tbaa !5
  %268 = getelementptr inbounds %"struct.alglib_impl::barycentricfitreport", ptr %267, i32 0, i32 0
  store i64 %266, ptr %268, align 8, !tbaa !22
  br label %269

269:                                              ; preds = %265, %260, %257
  br label %270

270:                                              ; preds = %269, %256
  br label %271

271:                                              ; preds = %270
  %272 = load i64, ptr %26, align 8, !tbaa !9
  %273 = add nsw i64 %272, 1
  store i64 %273, ptr %26, align 8, !tbaa !9
  br label %144, !llvm.loop !29

274:                                              ; preds = %144
  %275 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %275)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 208, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #4
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) #3

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl29_barycentricinterpolant_clearEPv(ptr noundef) #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15barycentriccopyEPKNS_22barycentricinterpolantEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #3

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl27_barycentricfitreport_clearEPv(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL28lsfit_barycentricfitwcfixeddEPKNS_9ae_vectorES2_S2_lS2_S2_S2_lllPlPNS_22barycentricinterpolantEPNS_20barycentricfitreportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { "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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = !{!21, !10, i64 16}
!21 = !{!"_ZTSN11alglib_impl20barycentricfitreportE", !10, i64 0, !19, i64 8, !10, i64 16, !19, i64 24, !19, i64 32, !19, i64 40, !19, i64 48}
!22 = !{!21, !10, i64 0}
!23 = distinct !{!23, !17}
!24 = !{!21, !19, i64 24}
!25 = !{!21, !19, i64 32}
!26 = !{!21, !19, i64 40}
!27 = !{!21, !19, i64 48}
!28 = !{!21, !19, i64 8}
!29 = distinct !{!29, !17}


; 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::barycentricinterpolant" = type { i64, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"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::barycentricfitreport" = type { i64, double, i64, double, double, double, double }

@.str.471 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.472 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.473 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.474 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.475 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.476 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.477 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.478 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.479 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.480 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.481 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.482 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.483 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.484 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.485 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.486 = external hidden unnamed_addr constant [79 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 uwtable
declare dso_local void @_ZN11alglib_impl28_barycentricinterpolant_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

; 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 #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl26_barycentricfitreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl30barycentricfitfloaterhormannwcEPKNS_9ae_vectorES2_S2_lS2_S2_S2_llPNS_22barycentricinterpolantEPNS_20barycentricfitreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i64 noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) local_unnamed_addr #2 {
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca %"struct.alglib_impl::barycentricinterpolant", align 8
  %15 = alloca %"struct.alglib_impl::barycentricfitreport", align 8
  %16 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %11, ptr noundef nonnull %13)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(208) %14, i8 0, i64 208, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %15, i8 0, i64 56, i1 false)
  call void @_ZN11alglib_impl29_barycentricinterpolant_clearEPv(ptr noundef %9)
  call void @_ZN11alglib_impl27_barycentricfitreport_clearEPv(ptr noundef %10)
  call void @_ZN11alglib_impl28_barycentricinterpolant_initEPvPNS_8ae_stateEb(ptr noundef nonnull %14, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl26_barycentricfitreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %15, ptr noundef %11, i1 noundef zeroext true)
  %17 = icmp sgt i64 %3, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.471, ptr noundef %11)
  %18 = icmp sgt i64 %8, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.472, ptr noundef %11)
  %19 = icmp sgt i64 %7, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.473, ptr noundef %11)
  %20 = icmp slt i64 %7, %8
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.474, ptr noundef %11)
  %21 = load i64, ptr %0, align 8, !tbaa !5
  %22 = icmp sge i64 %21, %3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.475, ptr noundef %11)
  %23 = load i64, ptr %1, align 8, !tbaa !5
  %24 = icmp sge i64 %23, %3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.476, ptr noundef %11)
  %25 = load i64, ptr %2, align 8, !tbaa !5
  %26 = icmp sge i64 %25, %3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef nonnull @.str.477, ptr noundef %11)
  %27 = load i64, ptr %4, align 8, !tbaa !5
  %28 = icmp sge i64 %27, %7
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef nonnull @.str.478, ptr noundef %11)
  %29 = load i64, ptr %5, align 8, !tbaa !5
  %30 = icmp sge i64 %29, %7
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef nonnull @.str.479, ptr noundef %11)
  %31 = load i64, ptr %6, align 8, !tbaa !5
  %32 = icmp sge i64 %31, %7
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef nonnull @.str.480, ptr noundef %11)
  %33 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %3, ptr noundef %11)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %33, ptr noundef nonnull @.str.481, ptr noundef %11)
  %34 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %3, ptr noundef %11)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef nonnull @.str.482, ptr noundef %11)
  %35 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %2, i64 noundef %3, ptr noundef %11)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef nonnull @.str.481, ptr noundef %11)
  %36 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %7, ptr noundef %11)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef nonnull @.str.483, ptr noundef %11)
  %37 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %7, ptr noundef %11)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %37, ptr noundef nonnull @.str.484, ptr noundef %11)
  %.not.not120 = icmp sgt i64 %7, 0
  br i1 %.not.not120, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %12
  %38 = getelementptr inbounds i8, ptr %6, i64 56
  br label %39

39:                                               ; preds = %.lr.ph, %39
  %.0111121 = phi i64 [ 0, %.lr.ph ], [ %43, %39 ]
  %40 = load ptr, ptr %38, align 8, !tbaa !13
  %41 = getelementptr inbounds i64, ptr %40, i64 %.0111121
  %42 = load i64, ptr %41, align 8, !tbaa !14
  %spec.select = icmp ult i64 %42, 2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.485, ptr noundef %11)
  %43 = add nuw nsw i64 %.0111121, 1
  %exitcond.not = icmp eq i64 %43, %7
  br i1 %exitcond.not, label %._crit_edge, label %39, !llvm.loop !15

._crit_edge:                                      ; preds = %39, %12
  %44 = getelementptr inbounds i8, ptr %10, i64 16
  store i64 -1, ptr %44, align 8, !tbaa !17
  store i64 -3, ptr %10, align 8, !tbaa !20
  %45 = add nsw i64 %3, -1
  %46 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 9, i64 noundef %45, ptr noundef %11)
  %.not127 = icmp slt i64 %46, 0
  br i1 %.not127, label %._crit_edge132, label %.lr.ph131

.lr.ph131:                                        ; preds = %._crit_edge
  %47 = getelementptr inbounds i8, ptr %2, i64 56
  %48 = getelementptr inbounds i8, ptr %1, i64 56
  %49 = getelementptr inbounds i8, ptr %0, i64 56
  %50 = sitofp i64 %3 to double
  %51 = getelementptr inbounds i8, ptr %15, i64 24
  %52 = getelementptr inbounds i8, ptr %10, i64 24
  %53 = getelementptr inbounds i8, ptr %15, i64 40
  %54 = getelementptr inbounds i8, ptr %10, i64 40
  %55 = getelementptr inbounds i8, ptr %15, i64 8
  %56 = getelementptr inbounds i8, ptr %10, i64 8
  br label %57

57:                                               ; preds = %.lr.ph131, %93
  %.0129 = phi double [ 1.000000e+300, %.lr.ph131 ], [ %.1, %93 ]
  %.0113128 = phi i64 [ 0, %.lr.ph131 ], [ %94, %93 ]
  call void @_ZN11alglib_implL28lsfit_barycentricfitwcfixeddEPKNS_9ae_vectorES2_S2_lS2_S2_S2_lllPlPNS_22barycentricinterpolantEPNS_20barycentricfitreportEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, i64 noundef %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %7, i64 noundef %8, i64 noundef %.0113128, ptr noundef nonnull %16, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %11)
  %58 = load i64, ptr %16, align 8
  %59 = and i64 %58, -2
  %or.cond = icmp eq i64 %59, -4
  %60 = icmp sgt i64 %58, 0
  %spec.select119 = or i1 %60, %or.cond
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select119, ptr noundef nonnull @.str.486, ptr noundef %11)
  %61 = load i64, ptr %16, align 8, !tbaa !14
  %62 = icmp sgt i64 %61, 0
  br i1 %62, label %.preheader, label %88

.preheader:                                       ; preds = %57
  br i1 %17, label %.lr.ph125, label %._crit_edge126

.lr.ph125:                                        ; preds = %.preheader, %.lr.ph125
  %.0110124 = phi double [ %76, %.lr.ph125 ], [ 0.000000e+00, %.preheader ]
  %.1112123 = phi i64 [ %77, %.lr.ph125 ], [ 0, %.preheader ]
  %63 = load ptr, ptr %47, align 8, !tbaa !13
  %64 = getelementptr inbounds double, ptr %63, i64 %.1112123
  %65 = load double, ptr %64, align 8, !tbaa !21
  %66 = load ptr, ptr %48, align 8, !tbaa !13
  %67 = getelementptr inbounds double, ptr %66, i64 %.1112123
  %68 = load double, ptr %67, align 8, !tbaa !21
  %69 = load ptr, ptr %49, align 8, !tbaa !13
  %70 = getelementptr inbounds double, ptr %69, i64 %.1112123
  %71 = load double, ptr %70, align 8, !tbaa !21
  %72 = call noundef double @_ZN11alglib_impl15barycentriccalcEPKNS_22barycentricinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %14, double noundef %71, ptr noundef %11)
  %73 = fsub double %68, %72
  %74 = fmul double %65, %73
  %75 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %74, ptr noundef %11)
  %76 = fadd double %.0110124, %75
  %77 = add nuw nsw i64 %.1112123, 1
  %exitcond134.not = icmp eq i64 %77, %3
  br i1 %exitcond134.not, label %._crit_edge126, label %.lr.ph125, !llvm.loop !22

._crit_edge126:                                   ; preds = %.lr.ph125, %.preheader
  %.0110.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %76, %.lr.ph125 ]
  %78 = fdiv double %.0110.lcssa, %50
  %79 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %78, ptr noundef %11)
  %80 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %79, double noundef %.0129)
  br i1 %80, label %84, label %81

81:                                               ; preds = %._crit_edge126
  %82 = load i64, ptr %44, align 8, !tbaa !17
  %83 = icmp slt i64 %82, 0
  br i1 %83, label %84, label %93

84:                                               ; preds = %81, %._crit_edge126
  call void @_ZN11alglib_impl15barycentriccopyEPKNS_22barycentricinterpolantEPS0_PNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef %9, ptr noundef %11)
  store i64 %.0113128, ptr %44, align 8, !tbaa !17
  store i64 1, ptr %10, align 8, !tbaa !20
  %85 = load <2 x double>, ptr %51, align 8, !tbaa !21
  store <2 x double> %85, ptr %52, align 8, !tbaa !21
  %86 = load <2 x double>, ptr %53, align 8, !tbaa !21
  store <2 x double> %86, ptr %54, align 8, !tbaa !21
  %87 = load double, ptr %55, align 8, !tbaa !23
  store double %87, ptr %56, align 8, !tbaa !23
  br label %93

88:                                               ; preds = %57
  %.not117 = icmp eq i64 %61, -3
  br i1 %.not117, label %93, label %89

89:                                               ; preds = %88
  %90 = load i64, ptr %10, align 8, !tbaa !20
  %91 = icmp slt i64 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %89
  store i64 %61, ptr %10, align 8, !tbaa !20
  br label %93

93:                                               ; preds = %84, %81, %92, %89, %88
  %.1 = phi double [ %79, %84 ], [ %.0129, %81 ], [ %.0129, %92 ], [ %.0129, %89 ], [ %.0129, %88 ]
  %94 = add nuw nsw i64 %.0113128, 1
  %95 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 9, i64 noundef %45, ptr noundef %11)
  %.not.not133 = icmp slt i64 %.0113128, %95
  br i1 %.not.not133, label %57, label %._crit_edge132, !llvm.loop !24

._crit_edge132:                                   ; preds = %93, %._crit_edge
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #4
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) local_unnamed_addr #3

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl29_barycentricinterpolant_clearEPv(ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15barycentriccopyEPKNS_22barycentricinterpolantEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl27_barycentricfitreport_clearEPv(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL28lsfit_barycentricfitwcfixeddEPKNS_9ae_vectorES2_S2_lS2_S2_S2_lllPlPNS_22barycentricinterpolantEPNS_20barycentricfitreportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr 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 = { 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 #3 = { "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 = { 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_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !7, i64 16}
!18 = !{!"_ZTSN11alglib_impl20barycentricfitreportE", !7, i64 0, !19, i64 8, !7, i64 16, !19, i64 24, !19, i64 32, !19, i64 40, !19, i64 48}
!19 = !{!"double", !8, i64 0}
!20 = !{!18, !7, i64 0}
!21 = !{!19, !19, i64 0}
!22 = distinct !{!22, !16}
!23 = !{!18, !19, i64 8}
!24 = distinct !{!24, !16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass