; 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.139 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [40 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
define dso_local void @_ZN11alglib_impl30barycentricbuildfloaterhormannEPNS_9ae_vectorES1_llPNS_22barycentricinterpolantEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #4
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %25, ptr noundef %13)
  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 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 64, i1 false)
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl29_barycentricinterpolant_clearEPv(ptr noundef %26)
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 2, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 3, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 3, ptr noundef %30, i1 noundef zeroext true)
  %31 = load i64, ptr %9, align 8, !tbaa !9
  %32 = icmp sgt i64 %31, 0
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef @.str.139, ptr noundef %33)
  %34 = load i64, ptr %10, align 8, !tbaa !9
  %35 = icmp sge i64 %34, 0
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef @.str.140, ptr noundef %36)
  %37 = load i64, ptr %10, align 8, !tbaa !9
  %38 = load i64, ptr %9, align 8, !tbaa !9
  %39 = sub nsw i64 %38, 1
  %40 = icmp sgt i64 %37, %39
  br i1 %40, label %41, label %44

41:                                               ; preds = %6
  %42 = load i64, ptr %9, align 8, !tbaa !9
  %43 = sub nsw i64 %42, 1
  store i64 %43, ptr %10, align 8, !tbaa !9
  br label %44

44:                                               ; preds = %41, %6
  %45 = load i64, ptr %9, align 8, !tbaa !9
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %46, i32 0, i32 0
  store i64 %45, ptr %47, align 8, !tbaa !11
  %48 = load i64, ptr %9, align 8, !tbaa !9
  %49 = icmp eq i64 %48, 1
  br i1 %49, label %50, label %91

50:                                               ; preds = %44
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %51, i32 0, i32 2
  %53 = load i64, ptr %9, align 8, !tbaa !9
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %52, i64 noundef %53, ptr noundef %54)
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %55, i32 0, i32 3
  %57 = load i64, ptr %9, align 8, !tbaa !9
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %56, i64 noundef %57, ptr noundef %58)
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %59, i32 0, i32 4
  %61 = load i64, ptr %9, align 8, !tbaa !9
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %60, i64 noundef %61, ptr noundef %62)
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %63, i32 0, i32 4
  %65 = load ptr, ptr %64, align 8, !tbaa !17
  %66 = getelementptr inbounds double, ptr %65, i64 0
  %67 = load double, ptr %66, align 8, !tbaa !18
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %68, i32 0, i32 2
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !17
  %72 = getelementptr inbounds double, ptr %71, i64 0
  store double %67, ptr %72, align 8, !tbaa !18
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !17
  %76 = getelementptr inbounds double, ptr %75, i64 0
  %77 = load double, ptr %76, align 8, !tbaa !18
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %78, i32 0, i32 3
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !17
  %82 = getelementptr inbounds double, ptr %81, i64 0
  store double %77, ptr %82, align 8, !tbaa !18
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %83, i32 0, i32 4
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !17
  %87 = getelementptr inbounds double, ptr %86, i64 0
  store double 1.000000e+00, ptr %87, align 8, !tbaa !18
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL27ratint_barycentricnormalizeEPNS_22barycentricinterpolantEPNS_8ae_stateE(ptr noundef %88, ptr noundef %89)
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %90)
  store i32 1, ptr %24, align 4
  br label %228

91:                                               ; preds = %44
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %92, i32 0, i32 2
  %94 = load i64, ptr %9, align 8, !tbaa !9
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %93, i64 noundef %94, ptr noundef %95)
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %96, i32 0, i32 3
  %98 = load i64, ptr %9, align 8, !tbaa !9
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %97, i64 noundef %98, ptr noundef %99)
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %100, i32 0, i32 2
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %101, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !17
  %104 = getelementptr inbounds double, ptr %103, i64 0
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %105, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !17
  %108 = getelementptr inbounds double, ptr %107, i64 0
  %109 = load i64, ptr %9, align 8, !tbaa !9
  %110 = sub nsw i64 %109, 1
  %111 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %110)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %104, i64 noundef 1, ptr noundef %108, i64 noundef 1, i64 noundef %111)
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %112, i32 0, i32 3
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %113, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !17
  %116 = getelementptr inbounds double, ptr %115, i64 0
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %117, i32 0, i32 4
  %119 = load ptr, ptr %118, align 8, !tbaa !17
  %120 = getelementptr inbounds double, ptr %119, i64 0
  %121 = load i64, ptr %9, align 8, !tbaa !9
  %122 = sub nsw i64 %121, 1
  %123 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %122)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %116, i64 noundef 1, ptr noundef %120, i64 noundef 1, i64 noundef %123)
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %124, i32 0, i32 2
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %126, i32 0, i32 3
  %128 = load i64, ptr %9, align 8, !tbaa !9
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl12tagsortfastrEPNS_9ae_vectorES1_S1_S1_lPNS_8ae_stateE(ptr noundef %125, ptr noundef %127, ptr noundef %22, ptr noundef %23, i64 noundef %128, ptr noundef %129)
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %130, i32 0, i32 4
  %132 = load i64, ptr %9, align 8, !tbaa !9
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %131, i64 noundef %132, ptr noundef %133)
  store double 1.000000e+00, ptr %14, align 8, !tbaa !18
  store i64 1, ptr %19, align 8, !tbaa !9
  br label %134

134:                                              ; preds = %141, %91
  %135 = load i64, ptr %19, align 8, !tbaa !9
  %136 = load i64, ptr %10, align 8, !tbaa !9
  %137 = icmp sle i64 %135, %136
  br i1 %137, label %138, label %144

138:                                              ; preds = %134
  %139 = load double, ptr %14, align 8, !tbaa !18
  %140 = fneg double %139
  store double %140, ptr %14, align 8, !tbaa !18
  br label %141

141:                                              ; preds = %138
  %142 = load i64, ptr %19, align 8, !tbaa !9
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %19, align 8, !tbaa !9
  br label %134, !llvm.loop !19

144:                                              ; preds = %134
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %145

145:                                              ; preds = %221, %144
  %146 = load i64, ptr %19, align 8, !tbaa !9
  %147 = load i64, ptr %9, align 8, !tbaa !9
  %148 = sub nsw i64 %147, 1
  %149 = icmp sle i64 %146, %148
  br i1 %149, label %150, label %224

150:                                              ; preds = %145
  store double 0.000000e+00, ptr %15, align 8, !tbaa !18
  %151 = load i64, ptr %19, align 8, !tbaa !9
  %152 = load i64, ptr %10, align 8, !tbaa !9
  %153 = sub nsw i64 %151, %152
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %155 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %153, i64 noundef 0, ptr noundef %154)
  store i64 %155, ptr %17, align 8, !tbaa !9
  br label %156

156:                                              ; preds = %206, %150
  %157 = load i64, ptr %17, align 8, !tbaa !9
  %158 = load i64, ptr %19, align 8, !tbaa !9
  %159 = load i64, ptr %9, align 8, !tbaa !9
  %160 = sub nsw i64 %159, 1
  %161 = load i64, ptr %10, align 8, !tbaa !9
  %162 = sub nsw i64 %160, %161
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  %164 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %158, i64 noundef %162, ptr noundef %163)
  %165 = icmp sle i64 %157, %164
  br i1 %165, label %166, label %209

166:                                              ; preds = %156
  store double 1.000000e+00, ptr %16, align 8, !tbaa !18
  %167 = load i64, ptr %17, align 8, !tbaa !9
  store i64 %167, ptr %18, align 8, !tbaa !9
  br label %168

168:                                              ; preds = %199, %166
  %169 = load i64, ptr %18, align 8, !tbaa !9
  %170 = load i64, ptr %17, align 8, !tbaa !9
  %171 = load i64, ptr %10, align 8, !tbaa !9
  %172 = add nsw i64 %170, %171
  %173 = icmp sle i64 %169, %172
  br i1 %173, label %174, label %202

174:                                              ; preds = %168
  %175 = load i64, ptr %18, align 8, !tbaa !9
  %176 = load i64, ptr %19, align 8, !tbaa !9
  %177 = icmp ne i64 %175, %176
  br i1 %177, label %178, label %198

178:                                              ; preds = %174
  %179 = load double, ptr %16, align 8, !tbaa !18
  %180 = load ptr, ptr %11, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %180, i32 0, i32 2
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %181, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !17
  %184 = load i64, ptr %19, align 8, !tbaa !9
  %185 = getelementptr inbounds double, ptr %183, i64 %184
  %186 = load double, ptr %185, align 8, !tbaa !18
  %187 = load ptr, ptr %11, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %187, i32 0, i32 2
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %188, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !17
  %191 = load i64, ptr %18, align 8, !tbaa !9
  %192 = getelementptr inbounds double, ptr %190, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !18
  %194 = fsub double %186, %193
  %195 = load ptr, ptr %12, align 8, !tbaa !5
  %196 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %194, ptr noundef %195)
  %197 = fdiv double %179, %196
  store double %197, ptr %16, align 8, !tbaa !18
  br label %198

198:                                              ; preds = %178, %174
  br label %199

199:                                              ; preds = %198
  %200 = load i64, ptr %18, align 8, !tbaa !9
  %201 = add nsw i64 %200, 1
  store i64 %201, ptr %18, align 8, !tbaa !9
  br label %168, !llvm.loop !21

202:                                              ; preds = %168
  %203 = load double, ptr %15, align 8, !tbaa !18
  %204 = load double, ptr %16, align 8, !tbaa !18
  %205 = fadd double %203, %204
  store double %205, ptr %15, align 8, !tbaa !18
  br label %206

206:                                              ; preds = %202
  %207 = load i64, ptr %17, align 8, !tbaa !9
  %208 = add nsw i64 %207, 1
  store i64 %208, ptr %17, align 8, !tbaa !9
  br label %156, !llvm.loop !22

209:                                              ; preds = %156
  %210 = load double, ptr %14, align 8, !tbaa !18
  %211 = load double, ptr %15, align 8, !tbaa !18
  %212 = fmul double %210, %211
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.alglib_impl::barycentricinterpolant", ptr %213, i32 0, i32 4
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %214, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !17
  %217 = load i64, ptr %19, align 8, !tbaa !9
  %218 = getelementptr inbounds double, ptr %216, i64 %217
  store double %212, ptr %218, align 8, !tbaa !18
  %219 = load double, ptr %14, align 8, !tbaa !18
  %220 = fneg double %219
  store double %220, ptr %14, align 8, !tbaa !18
  br label %221

221:                                              ; preds = %209
  %222 = load i64, ptr %19, align 8, !tbaa !9
  %223 = add nsw i64 %222, 1
  store i64 %223, ptr %19, align 8, !tbaa !9
  br label %145, !llvm.loop !23

224:                                              ; preds = %145
  %225 = load ptr, ptr %11, align 8, !tbaa !5
  %226 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL27ratint_barycentricnormalizeEPNS_22barycentricinterpolantEPNS_8ae_stateE(ptr noundef %225, ptr noundef %226)
  %227 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %227)
  store i32 0, ptr %24, align 4
  br label %228

228:                                              ; preds = %224, %50
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  %229 = load i32, ptr %24, align 4
  switch i32 %229, label %231 [
    i32 0, label %230
    i32 1, label %230
  ]

230:                                              ; preds = %228, %228
  ret void

231:                                              ; preds = %228
  unreachable
}

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #2

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

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(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 i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL27ratint_barycentricnormalizeEPNS_22barycentricinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

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 void @_ZN11alglib_impl12tagsortfastrEPNS_9ae_vectorES1_S1_S1_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 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 = { "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 = { 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_impl22barycentricinterpolantE", !10, i64 0, !13, i64 8, !14, i64 16, !14, i64 80, !14, i64 144}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, 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}


; 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.139 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [40 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
define dso_local void @_ZN11alglib_impl30barycentricbuildfloaterhormannEPNS_9ae_vectorES1_llPNS_22barycentricinterpolantEPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca %"struct.alglib_impl::ae_frame", 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
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %5, ptr noundef nonnull %7)
  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 @_ZN11alglib_impl29_barycentricinterpolant_clearEPv(ptr noundef %4)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 2, ptr noundef %5, 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 %5, 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 %5, 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 %5, i1 noundef zeroext true)
  %12 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef nonnull @.str.139, ptr noundef %5)
  %13 = icmp sgt i64 %3, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.140, ptr noundef %5)
  %14 = add nsw i64 %2, -1
  %.not = icmp sgt i64 %2, %3
  %spec.select = select i1 %.not, i64 %3, i64 %14
  store i64 %2, ptr %4, align 8, !tbaa !5
  %15 = icmp eq i64 %2, 1
  %16 = getelementptr inbounds i8, ptr %4, i64 16
  %17 = getelementptr inbounds i8, ptr %4, i64 80
  %18 = getelementptr inbounds i8, ptr %0, i64 56
  %19 = getelementptr inbounds i8, ptr %1, i64 56
  br i1 %15, label %20, label %32

20:                                               ; preds = %6
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef 1, ptr noundef %5)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef 1, ptr noundef %5)
  %21 = getelementptr inbounds i8, ptr %4, i64 144
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %21, i64 noundef 1, ptr noundef %5)
  %22 = load ptr, ptr %18, align 8, !tbaa !15
  %23 = load double, ptr %22, align 8, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %4, i64 72
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  store double %23, ptr %25, align 8, !tbaa !16
  %26 = load ptr, ptr %19, align 8, !tbaa !15
  %27 = load double, ptr %26, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %4, i64 136
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  store double %27, ptr %29, align 8, !tbaa !16
  %30 = getelementptr inbounds i8, ptr %4, i64 200
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  store double 1.000000e+00, ptr %31, align 8, !tbaa !16
  br label %._crit_edge126

32:                                               ; preds = %6
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %2, ptr noundef %5)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %2, ptr noundef %5)
  %33 = getelementptr inbounds i8, ptr %4, i64 72
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = load ptr, ptr %18, align 8, !tbaa !15
  %36 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %14)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %34, i64 noundef 1, ptr noundef %35, i64 noundef 1, i64 noundef %36)
  %37 = getelementptr inbounds i8, ptr %4, i64 136
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = load ptr, ptr %19, align 8, !tbaa !15
  %40 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %14)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %38, i64 noundef 1, ptr noundef %39, i64 noundef 1, i64 noundef %40)
  call void @_ZN11alglib_impl12tagsortfastrEPNS_9ae_vectorES1_S1_S1_lPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %10, ptr noundef nonnull %11, i64 noundef %2, ptr noundef %5)
  %41 = getelementptr inbounds i8, ptr %4, i64 144
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %41, i64 noundef %2, ptr noundef %5)
  %.not103109 = icmp slt i64 %spec.select, 1
  br i1 %.not103109, label %.preheader108, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %32
  %xtraiter = and i64 %spec.select, 7
  %42 = icmp ult i64 %spec.select, 8
  br i1 %42, label %.preheader108.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %spec.select, 9223372036854775800
  br label %.lr.ph

.preheader108.loopexit.unr-lcssa:                 ; preds = %.lr.ph, %.lr.ph.preheader
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader108, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader108.loopexit.unr-lcssa, %.lr.ph.epil
  %.095110.epil = phi double [ %43, %.lr.ph.epil ], [ 1.000000e+00, %.preheader108.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader108.loopexit.unr-lcssa ]
  %43 = fneg double %.095110.epil
  %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 %.preheader108, label %.lr.ph.epil, !llvm.loop !17

.preheader108:                                    ; preds = %.preheader108.loopexit.unr-lcssa, %.lr.ph.epil, %32
  %.095.lcssa = phi double [ 1.000000e+00, %32 ], [ 1.000000e+00, %.preheader108.loopexit.unr-lcssa ], [ %43, %.lr.ph.epil ]
  br i1 %12, label %.lr.ph125, label %._crit_edge126

.lr.ph125:                                        ; preds = %.preheader108
  %44 = sub nsw i64 %14, %spec.select
  %45 = getelementptr inbounds i8, ptr %4, i64 200
  %.not106112 = icmp slt i64 %spec.select, 0
  br label %46

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.7, %.lr.ph ]
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.preheader108.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !19

46:                                               ; preds = %.lr.ph125, %._crit_edge120
  %.1124 = phi i64 [ 0, %.lr.ph125 ], [ %69, %._crit_edge120 ]
  %.196123 = phi double [ %.095.lcssa, %.lr.ph125 ], [ %68, %._crit_edge120 ]
  %47 = sub nsw i64 %.1124, %spec.select
  %48 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %47, i64 noundef 0, ptr noundef %5)
  %49 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %.1124, i64 noundef %44, ptr noundef %5)
  %.not105117 = icmp sgt i64 %48, %49
  br i1 %.not105117, label %._crit_edge120, label %.preheader

.preheader:                                       ; preds = %46, %._crit_edge
  %.091119 = phi i64 [ %63, %._crit_edge ], [ %48, %46 ]
  %.094118 = phi double [ %62, %._crit_edge ], [ 0.000000e+00, %46 ]
  %50 = add nsw i64 %.091119, %spec.select
  br i1 %.not106112, label %._crit_edge, label %.lr.ph115

.lr.ph115:                                        ; preds = %.preheader, %60
  %.090114 = phi i64 [ %61, %60 ], [ %.091119, %.preheader ]
  %.092113 = phi double [ %.193, %60 ], [ 1.000000e+00, %.preheader ]
  %.not107 = icmp eq i64 %.090114, %.1124
  br i1 %.not107, label %60, label %51

51:                                               ; preds = %.lr.ph115
  %52 = load ptr, ptr %33, align 8, !tbaa !15
  %53 = getelementptr inbounds double, ptr %52, i64 %.1124
  %54 = load double, ptr %53, align 8, !tbaa !16
  %55 = getelementptr inbounds double, ptr %52, i64 %.090114
  %56 = load double, ptr %55, align 8, !tbaa !16
  %57 = fsub double %54, %56
  %58 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %57, ptr noundef %5)
  %59 = fdiv double %.092113, %58
  br label %60

60:                                               ; preds = %.lr.ph115, %51
  %.193 = phi double [ %59, %51 ], [ %.092113, %.lr.ph115 ]
  %61 = add nsw i64 %.090114, 1
  %.not106.not = icmp slt i64 %.090114, %50
  br i1 %.not106.not, label %.lr.ph115, label %._crit_edge, !llvm.loop !21

._crit_edge:                                      ; preds = %60, %.preheader
  %.092.lcssa = phi double [ 1.000000e+00, %.preheader ], [ %.193, %60 ]
  %62 = fadd double %.094118, %.092.lcssa
  %63 = add nsw i64 %.091119, 1
  %64 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %.1124, i64 noundef %44, ptr noundef %5)
  %.not105.not = icmp slt i64 %.091119, %64
  br i1 %.not105.not, label %.preheader, label %._crit_edge120, !llvm.loop !22

._crit_edge120:                                   ; preds = %._crit_edge, %46
  %.094.lcssa = phi double [ 0.000000e+00, %46 ], [ %62, %._crit_edge ]
  %65 = fmul double %.196123, %.094.lcssa
  %66 = load ptr, ptr %45, align 8, !tbaa !15
  %67 = getelementptr inbounds double, ptr %66, i64 %.1124
  store double %65, ptr %67, align 8, !tbaa !16
  %68 = fneg double %.196123
  %69 = add nuw nsw i64 %.1124, 1
  %exitcond128.not = icmp eq i64 %69, %2
  br i1 %exitcond128.not, label %._crit_edge126, label %46, !llvm.loop !23

._crit_edge126:                                   ; preds = %._crit_edge120, %.preheader108, %20
  call void @_ZN11alglib_implL27ratint_barycentricnormalizeEPNS_22barycentricinterpolantEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %5)
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  ret void
}

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, 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

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(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 i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL27ratint_barycentricnormalizeEPNS_22barycentricinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

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 void @_ZN11alglib_impl12tagsortfastrEPNS_9ae_vectorES1_S1_S1_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 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 = { "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 = { 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.unroll.disable"}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}


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