; 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::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::linlsqrstate" = type { %"struct.alglib_impl::normestimatorstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, double, double, double, double, double, double, double, double, double, double, double, %"struct.alglib_impl::ae_vector", double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, i64, i8, i8, i8, i8, i8, i8, i8, i64, i64, i64, i8, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::normestimatorstate" = type { i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::hqrndstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, i8, double, %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::linlsqrreport" = type { i64, i64, i64 }
%"struct.alglib_impl::spline1dbbasis" = type { i64, i64, %"struct.alglib_impl::spline1dinterpolant", %"struct.alglib_impl::spline1dinterpolant", %"struct.alglib_impl::spline1dinterpolant", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::spline1dinterpolant" = type { i8, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::spline1dfitreport" = type { i64, double, double, double, double, double }

@.str.367 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.368 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.369 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.370 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.371 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.372 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.373 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.374 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.375 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.376 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.377 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.378 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.379 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.380 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.381 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.382 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.383 = external hidden unnamed_addr constant [83 x i8], align 1
@_ZN11alglib_implL18spline1d_lambdaregE = external hidden global double, align 8
@.str.384 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.385 = external hidden unnamed_addr constant [51 x i8], align 1
@_ZN11alglib_implL16spline1d_cholregE = external hidden global double, align 8
@.str.386 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.387 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.388 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.389 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.390 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.391 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.392 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.393 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.394 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.395 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.396 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.397 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.398 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.399 = external hidden unnamed_addr constant [18 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 void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11spline1dfitEPKNS_9ae_vectorES2_lldPNS_19spline1dinterpolantEPNS_17spline1dfitreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #3 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.alglib_impl::ae_frame", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca double, align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %30 = alloca %"struct.alglib_impl::ae_vector", align 8
  %31 = alloca %"struct.alglib_impl::ae_vector", align 8
  %32 = alloca %"struct.alglib_impl::ae_vector", align 8
  %33 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %34 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %35 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %36 = alloca %"struct.alglib_impl::ae_vector", align 8
  %37 = alloca double, align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca i64, align 8
  %43 = alloca %"struct.alglib_impl::ae_vector", align 8
  %44 = alloca %"struct.alglib_impl::ae_vector", align 8
  %45 = alloca %"struct.alglib_impl::ae_vector", align 8
  %46 = alloca %"struct.alglib_impl::linlsqrstate", align 8
  %47 = alloca %"struct.alglib_impl::linlsqrreport", align 8
  %48 = alloca double, align 8
  %49 = alloca double, align 8
  %50 = alloca i64, align 8
  %51 = alloca %"struct.alglib_impl::ae_vector", align 8
  %52 = alloca %"struct.alglib_impl::ae_vector", align 8
  %53 = alloca i64, align 8
  %54 = alloca %"struct.alglib_impl::ae_vector", align 8
  %55 = alloca %"struct.alglib_impl::ae_vector", align 8
  %56 = alloca i64, align 8
  %57 = alloca i64, align 8
  %58 = alloca i64, align 8
  %59 = alloca i64, align 8
  %60 = alloca double, align 8
  %61 = alloca double, align 8
  %62 = alloca %"struct.alglib_impl::spline1dbbasis", align 8
  %63 = alloca i8, align 1
  %64 = alloca i64, align 8
  %65 = alloca %"struct.alglib_impl::ae_vector", align 8
  %66 = alloca %"struct.alglib_impl::ae_vector", align 8
  %67 = alloca %"struct.alglib_impl::spline1dinterpolant", align 8
  %68 = alloca i64, align 8
  %69 = alloca i64, align 8
  %70 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %71 = alloca %"struct.alglib_impl::ae_vector", align 8
  %72 = alloca double, align 8
  %73 = alloca double, align 8
  %74 = alloca double, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i64 %2, ptr %11, align 8, !tbaa !9
  store i64 %3, ptr %12, align 8, !tbaa !9
  store double %4, ptr %13, align 8, !tbaa !11
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, 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 8, 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 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %43) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %44) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %45) #5
  call void @llvm.lifetime.start.p0(i64 2192, ptr %46) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %47) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %51) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %52) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %54) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %55) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #5
  call void @llvm.lifetime.start.p0(i64 624, ptr %62) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %63) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %65) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %66) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr %67) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %70) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %71) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #5
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %75, ptr noundef %17)
  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 %28, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %29, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %34, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %35, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %36, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %43, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %44, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %45, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %46, i8 0, i64 2192, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %47, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %51, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %52, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %54, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %55, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %62, i8 0, i64 624, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %65, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %66, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %67, i8 0, i64 160, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %70, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %71, i8 0, i64 64, i1 false)
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %18, ptr noundef %76, ptr noundef %77, i1 noundef zeroext true)
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %19, ptr noundef %78, ptr noundef %79, i1 noundef zeroext true)
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl26_spline1dinterpolant_clearEPv(ptr noundef %80)
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN11alglib_impl24_spline1dfitreport_clearEPv(ptr noundef %81)
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %28, i64 noundef 0, i64 noundef 3, ptr noundef %82, i1 noundef zeroext true)
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %29, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %83, i1 noundef zeroext true)
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %30, i64 noundef 0, i64 noundef 3, ptr noundef %84, i1 noundef zeroext true)
  %85 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %31, i64 noundef 0, i64 noundef 3, ptr noundef %85, i1 noundef zeroext true)
  %86 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %32, i64 noundef 0, i64 noundef 3, ptr noundef %86, i1 noundef zeroext true)
  %87 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %33, ptr noundef %87, i1 noundef zeroext true)
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %34, ptr noundef %88, i1 noundef zeroext true)
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %35, ptr noundef %89, i1 noundef zeroext true)
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %36, i64 noundef 0, i64 noundef 3, ptr noundef %90, i1 noundef zeroext true)
  %91 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %43, i64 noundef 0, i64 noundef 3, ptr noundef %91, i1 noundef zeroext true)
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %44, i64 noundef 0, i64 noundef 3, ptr noundef %92, i1 noundef zeroext true)
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %45, i64 noundef 0, i64 noundef 3, ptr noundef %93, i1 noundef zeroext true)
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_linlsqrstate_initEPvPNS_8ae_stateEb(ptr noundef %46, ptr noundef %94, i1 noundef zeroext true)
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl19_linlsqrreport_initEPvPNS_8ae_stateEb(ptr noundef %47, ptr noundef %95, i1 noundef zeroext true)
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %51, i64 noundef 0, i64 noundef 2, ptr noundef %96, i1 noundef zeroext true)
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %52, i64 noundef 0, i64 noundef 3, ptr noundef %97, i1 noundef zeroext true)
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %54, i64 noundef 0, i64 noundef 2, ptr noundef %98, i1 noundef zeroext true)
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %55, i64 noundef 0, i64 noundef 3, ptr noundef %99, i1 noundef zeroext true)
  %100 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20_spline1dbbasis_initEPvPNS_8ae_stateEb(ptr noundef %62, ptr noundef %100, i1 noundef zeroext true)
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %65, i64 noundef 0, i64 noundef 3, ptr noundef %101, i1 noundef zeroext true)
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %66, i64 noundef 0, i64 noundef 3, ptr noundef %102, i1 noundef zeroext true)
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef %67, ptr noundef %103, i1 noundef zeroext true)
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %70, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %104, i1 noundef zeroext true)
  %105 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %71, i64 noundef 0, i64 noundef 3, ptr noundef %105, i1 noundef zeroext true)
  %106 = load i64, ptr %11, align 8, !tbaa !9
  %107 = icmp sge i64 %106, 1
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %107, ptr noundef @.str.367, ptr noundef %108)
  %109 = load i64, ptr %12, align 8, !tbaa !9
  %110 = icmp sge i64 %109, 1
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %110, ptr noundef @.str.368, ptr noundef %111)
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 0
  %113 = load i64, ptr %112, align 8, !tbaa !13
  %114 = load i64, ptr %11, align 8, !tbaa !9
  %115 = icmp sge i64 %113, %114
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %115, ptr noundef @.str.369, ptr noundef %116)
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 0
  %118 = load i64, ptr %117, align 8, !tbaa !13
  %119 = load i64, ptr %11, align 8, !tbaa !9
  %120 = icmp sge i64 %118, %119
  %121 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %120, ptr noundef @.str.370, ptr noundef %121)
  %122 = load i64, ptr %11, align 8, !tbaa !9
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %122, ptr noundef %123)
  %125 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %124, ptr noundef @.str.371, ptr noundef %125)
  %126 = load i64, ptr %11, align 8, !tbaa !9
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  %128 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %126, ptr noundef %127)
  %129 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %128, ptr noundef @.str.372, ptr noundef %129)
  %130 = load double, ptr %13, align 8, !tbaa !11
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  %132 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %130, ptr noundef %131)
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %132, ptr noundef @.str.373, ptr noundef %133)
  %134 = load double, ptr %13, align 8, !tbaa !11
  %135 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %134, double noundef 0.000000e+00)
  %136 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %135, ptr noundef @.str.374, ptr noundef %136)
  store i64 10, ptr %38, align 8, !tbaa !9
  %137 = load i64, ptr %12, align 8, !tbaa !9
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  %139 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %137, i64 noundef 2, ptr noundef %138)
  store i64 %139, ptr %12, align 8, !tbaa !9
  %140 = load i64, ptr %11, align 8, !tbaa !9
  %141 = sitofp i64 %140 to double
  %142 = load ptr, ptr %16, align 8, !tbaa !5
  %143 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %141, ptr noundef %142)
  %144 = fdiv double 1.000000e+00, %143
  store double %144, ptr %60, align 8, !tbaa !11
  %145 = load i64, ptr %12, align 8, !tbaa !9
  %146 = sitofp i64 %145 to double
  %147 = load ptr, ptr %16, align 8, !tbaa !5
  %148 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %146, ptr noundef %147)
  %149 = fdiv double 1.000000e+00, %148
  store double %149, ptr %61, align 8, !tbaa !11
  %150 = call noundef zeroext i1 @_ZN11alglib_impl19ae_is_trace_enabledEPKc(ptr noundef @.str.375)
  %151 = zext i1 %150 to i8
  store i8 %151, ptr %63, align 1, !tbaa !17
  store i64 0, ptr %68, align 8, !tbaa !9
  store i64 0, ptr %69, align 8, !tbaa !9
  %152 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %153 = trunc i8 %152 to i1
  br i1 %153, label %154, label %156

154:                                              ; preds = %8
  %155 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  store i64 %155, ptr %68, align 8, !tbaa !9
  br label %156

156:                                              ; preds = %154, %8
  %157 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %158 = trunc i8 %157 to i1
  br i1 %158, label %159, label %165

159:                                              ; preds = %156
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.376)
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.377)
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.378)
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.377)
  %160 = load i64, ptr %11, align 8, !tbaa !9
  %161 = trunc i64 %160 to i32
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.379, i32 noundef %161)
  %162 = load i64, ptr %12, align 8, !tbaa !9
  %163 = trunc i64 %162 to i32
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.380, i32 noundef %163)
  %164 = load double, ptr %13, align 8, !tbaa !11
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.381, double noundef %164)
  br label %165

165:                                              ; preds = %159, %156
  %166 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %167 = trunc i8 %166 to i1
  br i1 %167, label %168, label %170

168:                                              ; preds = %165
  %169 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  store i64 %169, ptr %69, align 8, !tbaa !9
  br label %170

170:                                              ; preds = %168, %165
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !20
  %173 = getelementptr inbounds double, ptr %172, i64 0
  %174 = load double, ptr %173, align 8, !tbaa !11
  store double %174, ptr %20, align 8, !tbaa !11
  %175 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %176 = load ptr, ptr %175, align 8, !tbaa !20
  %177 = getelementptr inbounds double, ptr %176, i64 0
  %178 = load double, ptr %177, align 8, !tbaa !11
  store double %178, ptr %21, align 8, !tbaa !11
  store i64 1, ptr %22, align 8, !tbaa !9
  br label %179

179:                                              ; preds = %201, %170
  %180 = load i64, ptr %22, align 8, !tbaa !9
  %181 = load i64, ptr %11, align 8, !tbaa !9
  %182 = sub nsw i64 %181, 1
  %183 = icmp sle i64 %180, %182
  br i1 %183, label %184, label %204

184:                                              ; preds = %179
  %185 = load double, ptr %20, align 8, !tbaa !11
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %187 = load ptr, ptr %186, align 8, !tbaa !20
  %188 = load i64, ptr %22, align 8, !tbaa !9
  %189 = getelementptr inbounds double, ptr %187, i64 %188
  %190 = load double, ptr %189, align 8, !tbaa !11
  %191 = load ptr, ptr %16, align 8, !tbaa !5
  %192 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %185, double noundef %190, ptr noundef %191)
  store double %192, ptr %20, align 8, !tbaa !11
  %193 = load double, ptr %21, align 8, !tbaa !11
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %195 = load ptr, ptr %194, align 8, !tbaa !20
  %196 = load i64, ptr %22, align 8, !tbaa !9
  %197 = getelementptr inbounds double, ptr %195, i64 %196
  %198 = load double, ptr %197, align 8, !tbaa !11
  %199 = load ptr, ptr %16, align 8, !tbaa !5
  %200 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %193, double noundef %198, ptr noundef %199)
  store double %200, ptr %21, align 8, !tbaa !11
  br label %201

201:                                              ; preds = %184
  %202 = load i64, ptr %22, align 8, !tbaa !9
  %203 = add nsw i64 %202, 1
  store i64 %203, ptr %22, align 8, !tbaa !9
  br label %179, !llvm.loop !21

204:                                              ; preds = %179
  %205 = load double, ptr %20, align 8, !tbaa !11
  %206 = load double, ptr %21, align 8, !tbaa !11
  %207 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %205, double noundef %206)
  br i1 %207, label %208, label %225

208:                                              ; preds = %204
  %209 = load double, ptr %20, align 8, !tbaa !11
  store double %209, ptr %27, align 8, !tbaa !11
  %210 = load double, ptr %27, align 8, !tbaa !11
  %211 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %210, double noundef 0.000000e+00)
  br i1 %211, label %212, label %218

212:                                              ; preds = %208
  %213 = load double, ptr %27, align 8, !tbaa !11
  %214 = fdiv double %213, 2.000000e+00
  %215 = fsub double %214, 1.000000e+00
  store double %215, ptr %20, align 8, !tbaa !11
  %216 = load double, ptr %27, align 8, !tbaa !11
  %217 = call double @llvm.fmuladd.f64(double %216, double 2.000000e+00, double 1.000000e+00)
  store double %217, ptr %21, align 8, !tbaa !11
  br label %224

218:                                              ; preds = %208
  %219 = load double, ptr %27, align 8, !tbaa !11
  %220 = call double @llvm.fmuladd.f64(double %219, double 2.000000e+00, double -1.000000e+00)
  store double %220, ptr %20, align 8, !tbaa !11
  %221 = load double, ptr %27, align 8, !tbaa !11
  %222 = fdiv double %221, 2.000000e+00
  %223 = fadd double %222, 1.000000e+00
  store double %223, ptr %21, align 8, !tbaa !11
  br label %224

224:                                              ; preds = %218, %212
  br label %225

225:                                              ; preds = %224, %204
  %226 = load double, ptr %20, align 8, !tbaa !11
  %227 = load double, ptr %21, align 8, !tbaa !11
  %228 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %226, double noundef %227)
  %229 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %228, ptr noundef @.str.382, ptr noundef %229)
  %230 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %231 = trunc i8 %230 to i1
  br i1 %231, label %232, label %239

232:                                              ; preds = %225
  %233 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  %234 = load i64, ptr %69, align 8, !tbaa !9
  %235 = sub nsw i64 %233, %234
  %236 = trunc i64 %235 to i32
  %237 = load double, ptr %20, align 8, !tbaa !11
  %238 = load double, ptr %21, align 8, !tbaa !11
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.383, i32 noundef %236, double noundef %237, double noundef %238)
  br label %239

239:                                              ; preds = %232, %225
  %240 = load i64, ptr %11, align 8, !tbaa !9
  %241 = mul nsw i64 2, %240
  %242 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %28, i64 noundef %241, ptr noundef %242)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %243

243:                                              ; preds = %277, %239
  %244 = load i64, ptr %22, align 8, !tbaa !9
  %245 = load i64, ptr %11, align 8, !tbaa !9
  %246 = sub nsw i64 %245, 1
  %247 = icmp sle i64 %244, %246
  br i1 %247, label %248, label %280

248:                                              ; preds = %243
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %250 = load ptr, ptr %249, align 8, !tbaa !20
  %251 = load i64, ptr %22, align 8, !tbaa !9
  %252 = getelementptr inbounds double, ptr %250, i64 %251
  %253 = load double, ptr %252, align 8, !tbaa !11
  %254 = load double, ptr %20, align 8, !tbaa !11
  %255 = fsub double %253, %254
  %256 = load double, ptr %21, align 8, !tbaa !11
  %257 = load double, ptr %20, align 8, !tbaa !11
  %258 = fsub double %256, %257
  %259 = fdiv double %255, %258
  %260 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %261 = load ptr, ptr %260, align 8, !tbaa !20
  %262 = load i64, ptr %22, align 8, !tbaa !9
  %263 = mul nsw i64 2, %262
  %264 = add nsw i64 %263, 0
  %265 = getelementptr inbounds double, ptr %261, i64 %264
  store double %259, ptr %265, align 8, !tbaa !11
  %266 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %267 = load ptr, ptr %266, align 8, !tbaa !20
  %268 = load i64, ptr %22, align 8, !tbaa !9
  %269 = getelementptr inbounds double, ptr %267, i64 %268
  %270 = load double, ptr %269, align 8, !tbaa !11
  %271 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %272 = load ptr, ptr %271, align 8, !tbaa !20
  %273 = load i64, ptr %22, align 8, !tbaa !9
  %274 = mul nsw i64 2, %273
  %275 = add nsw i64 %274, 1
  %276 = getelementptr inbounds double, ptr %272, i64 %275
  store double %270, ptr %276, align 8, !tbaa !11
  br label %277

277:                                              ; preds = %248
  %278 = load i64, ptr %22, align 8, !tbaa !9
  %279 = add nsw i64 %278, 1
  store i64 %279, ptr %22, align 8, !tbaa !9
  br label %243, !llvm.loop !23

280:                                              ; preds = %243
  %281 = load i64, ptr %11, align 8, !tbaa !9
  %282 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15buildpriorterm1EPNS_9ae_vectorElllldPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %28, i64 noundef %281, i64 noundef 1, i64 noundef 1, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %29, ptr noundef %282)
  store double 0.000000e+00, ptr %37, align 8, !tbaa !11
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %283

283:                                              ; preds = %296, %280
  %284 = load i64, ptr %22, align 8, !tbaa !9
  %285 = load i64, ptr %11, align 8, !tbaa !9
  %286 = sub nsw i64 %285, 1
  %287 = icmp sle i64 %284, %286
  br i1 %287, label %288, label %299

288:                                              ; preds = %283
  %289 = load double, ptr %37, align 8, !tbaa !11
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !20
  %292 = load i64, ptr %22, align 8, !tbaa !9
  %293 = getelementptr inbounds double, ptr %291, i64 %292
  %294 = load double, ptr %293, align 8, !tbaa !11
  %295 = fadd double %289, %294
  store double %295, ptr %37, align 8, !tbaa !11
  br label %296

296:                                              ; preds = %288
  %297 = load i64, ptr %22, align 8, !tbaa !9
  %298 = add nsw i64 %297, 1
  store i64 %298, ptr %22, align 8, !tbaa !9
  br label %283, !llvm.loop !24

299:                                              ; preds = %283
  %300 = load double, ptr %37, align 8, !tbaa !11
  %301 = load i64, ptr %11, align 8, !tbaa !9
  %302 = sitofp i64 %301 to double
  %303 = fdiv double %300, %302
  store double %303, ptr %37, align 8, !tbaa !11
  store double 0.000000e+00, ptr %41, align 8, !tbaa !11
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %304

304:                                              ; preds = %321, %299
  %305 = load i64, ptr %22, align 8, !tbaa !9
  %306 = load i64, ptr %11, align 8, !tbaa !9
  %307 = sub nsw i64 %306, 1
  %308 = icmp sle i64 %305, %307
  br i1 %308, label %309, label %324

309:                                              ; preds = %304
  %310 = load double, ptr %41, align 8, !tbaa !11
  %311 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %312 = load ptr, ptr %311, align 8, !tbaa !20
  %313 = load i64, ptr %22, align 8, !tbaa !9
  %314 = getelementptr inbounds double, ptr %312, i64 %313
  %315 = load double, ptr %314, align 8, !tbaa !11
  %316 = load double, ptr %37, align 8, !tbaa !11
  %317 = fsub double %315, %316
  %318 = load ptr, ptr %16, align 8, !tbaa !5
  %319 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %317, ptr noundef %318)
  %320 = fadd double %310, %319
  store double %320, ptr %41, align 8, !tbaa !11
  br label %321

321:                                              ; preds = %309
  %322 = load i64, ptr %22, align 8, !tbaa !9
  %323 = add nsw i64 %322, 1
  store i64 %323, ptr %22, align 8, !tbaa !9
  br label %304, !llvm.loop !25

324:                                              ; preds = %304
  %325 = load i64, ptr %11, align 8, !tbaa !9
  %326 = load i64, ptr %12, align 8, !tbaa !9
  %327 = add nsw i64 %325, %326
  %328 = load i64, ptr %12, align 8, !tbaa !9
  %329 = add nsw i64 %327, %328
  store i64 %329, ptr %42, align 8, !tbaa !9
  %330 = load i64, ptr %12, align 8, !tbaa !9
  %331 = icmp sge i64 %330, 4
  br i1 %331, label %332, label %988

332:                                              ; preds = %324
  %333 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %334 = trunc i8 %333 to i1
  br i1 %334, label %335, label %337

335:                                              ; preds = %332
  %336 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  store i64 %336, ptr %69, align 8, !tbaa !9
  br label %337

337:                                              ; preds = %335, %332
  %338 = load i64, ptr %42, align 8, !tbaa !9
  %339 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %338, double noundef 0.000000e+00, ptr noundef %36, ptr noundef %339)
  %340 = load i64, ptr %12, align 8, !tbaa !9
  %341 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_implL19spline1d_bbasisinitEPNS_14spline1dbbasisElPNS_8ae_stateE(ptr noundef %62, i64 noundef %340, ptr noundef %341)
  %342 = load i64, ptr %11, align 8, !tbaa !9
  %343 = load i64, ptr %12, align 8, !tbaa !9
  %344 = add nsw i64 %342, %343
  %345 = mul nsw i64 %344, 2
  %346 = getelementptr inbounds %"struct.alglib_impl::spline1dbbasis", ptr %62, i32 0, i32 1
  %347 = load i64, ptr %346, align 8, !tbaa !26
  %348 = mul nsw i64 %345, %347
  %349 = load i64, ptr %12, align 8, !tbaa !9
  %350 = add nsw i64 %348, %349
  store i64 %350, ptr %57, align 8, !tbaa !9
  %351 = load i64, ptr %42, align 8, !tbaa !9
  %352 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 6
  store i64 %351, ptr %352, align 8, !tbaa !29
  %353 = load i64, ptr %12, align 8, !tbaa !9
  %354 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 7
  store i64 %353, ptr %354, align 8, !tbaa !31
  %355 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 6
  %356 = load i64, ptr %355, align 8, !tbaa !29
  %357 = add nsw i64 %356, 1
  %358 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 2
  %359 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7iallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %357, ptr noundef %358, ptr noundef %359)
  %360 = load i64, ptr %57, align 8, !tbaa !9
  %361 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 1
  %362 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7iallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %360, ptr noundef %361, ptr noundef %362)
  %363 = load i64, ptr %57, align 8, !tbaa !9
  %364 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 0
  %365 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %363, ptr noundef %364, ptr noundef %365)
  %366 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 2
  %367 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %366, i32 0, i32 4
  %368 = load ptr, ptr %367, align 8, !tbaa !20
  %369 = getelementptr inbounds i64, ptr %368, i64 0
  store i64 0, ptr %369, align 8, !tbaa !9
  store i64 0, ptr %58, align 8, !tbaa !9
  store i64 0, ptr %59, align 8, !tbaa !9
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %370

370:                                              ; preds = %468, %337
  %371 = load i64, ptr %22, align 8, !tbaa !9
  %372 = load i64, ptr %11, align 8, !tbaa !9
  %373 = sub nsw i64 %372, 1
  %374 = icmp sle i64 %371, %373
  br i1 %374, label %375, label %471

375:                                              ; preds = %370
  %376 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %377 = load ptr, ptr %376, align 8, !tbaa !20
  %378 = load i64, ptr %22, align 8, !tbaa !9
  %379 = mul nsw i64 2, %378
  %380 = add nsw i64 %379, 0
  %381 = getelementptr inbounds double, ptr %377, i64 %380
  %382 = load double, ptr %381, align 8, !tbaa !11
  %383 = load i64, ptr %12, align 8, !tbaa !9
  %384 = sub nsw i64 %383, 1
  %385 = sitofp i64 %384 to double
  %386 = fmul double %382, %385
  %387 = load i64, ptr %12, align 8, !tbaa !9
  %388 = sub nsw i64 %387, 1
  %389 = sitofp i64 %388 to double
  %390 = load ptr, ptr %16, align 8, !tbaa !5
  %391 = call noundef double @_ZN11alglib_impl8boundvalEdddPNS_8ae_stateE(double noundef %386, double noundef 0.000000e+00, double noundef %389, ptr noundef %390)
  %392 = load ptr, ptr %16, align 8, !tbaa !5
  %393 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %391, ptr noundef %392)
  store i64 %393, ptr %24, align 8, !tbaa !9
  %394 = load i64, ptr %24, align 8, !tbaa !9
  %395 = getelementptr inbounds %"struct.alglib_impl::spline1dbbasis", ptr %62, i32 0, i32 1
  %396 = load i64, ptr %395, align 8, !tbaa !26
  %397 = sub nsw i64 %396, 1
  %398 = sub nsw i64 %394, %397
  %399 = load ptr, ptr %16, align 8, !tbaa !5
  %400 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %398, i64 noundef 0, ptr noundef %399)
  store i64 %400, ptr %25, align 8, !tbaa !9
  %401 = load i64, ptr %24, align 8, !tbaa !9
  %402 = add nsw i64 %401, 1
  %403 = getelementptr inbounds %"struct.alglib_impl::spline1dbbasis", ptr %62, i32 0, i32 1
  %404 = load i64, ptr %403, align 8, !tbaa !26
  %405 = sub nsw i64 %404, 1
  %406 = add nsw i64 %402, %405
  %407 = load i64, ptr %12, align 8, !tbaa !9
  %408 = sub nsw i64 %407, 1
  %409 = load ptr, ptr %16, align 8, !tbaa !5
  %410 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %406, i64 noundef %408, ptr noundef %409)
  store i64 %410, ptr %26, align 8, !tbaa !9
  %411 = load i64, ptr %25, align 8, !tbaa !9
  store i64 %411, ptr %23, align 8, !tbaa !9
  br label %412

412:                                              ; preds = %442, %375
  %413 = load i64, ptr %23, align 8, !tbaa !9
  %414 = load i64, ptr %26, align 8, !tbaa !9
  %415 = icmp sle i64 %413, %414
  br i1 %415, label %416, label %445

416:                                              ; preds = %412
  %417 = load i64, ptr %23, align 8, !tbaa !9
  %418 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 1
  %419 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %418, i32 0, i32 4
  %420 = load ptr, ptr %419, align 8, !tbaa !20
  %421 = load i64, ptr %58, align 8, !tbaa !9
  %422 = getelementptr inbounds i64, ptr %420, i64 %421
  store i64 %417, ptr %422, align 8, !tbaa !9
  %423 = load i64, ptr %23, align 8, !tbaa !9
  %424 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %425 = load ptr, ptr %424, align 8, !tbaa !20
  %426 = load i64, ptr %22, align 8, !tbaa !9
  %427 = mul nsw i64 2, %426
  %428 = add nsw i64 %427, 0
  %429 = getelementptr inbounds double, ptr %425, i64 %428
  %430 = load double, ptr %429, align 8, !tbaa !11
  %431 = load ptr, ptr %16, align 8, !tbaa !5
  %432 = call noundef double @_ZN11alglib_implL18spline1d_basiscalcEPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef %62, i64 noundef %423, double noundef %430, ptr noundef %431)
  %433 = load double, ptr %60, align 8, !tbaa !11
  %434 = fmul double %432, %433
  %435 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 0
  %436 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %435, i32 0, i32 4
  %437 = load ptr, ptr %436, align 8, !tbaa !20
  %438 = load i64, ptr %58, align 8, !tbaa !9
  %439 = getelementptr inbounds double, ptr %437, i64 %438
  store double %434, ptr %439, align 8, !tbaa !11
  %440 = load i64, ptr %58, align 8, !tbaa !9
  %441 = add nsw i64 %440, 1
  store i64 %441, ptr %58, align 8, !tbaa !9
  br label %442

442:                                              ; preds = %416
  %443 = load i64, ptr %23, align 8, !tbaa !9
  %444 = add nsw i64 %443, 1
  store i64 %444, ptr %23, align 8, !tbaa !9
  br label %412, !llvm.loop !32

445:                                              ; preds = %412
  %446 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %447 = load ptr, ptr %446, align 8, !tbaa !20
  %448 = load i64, ptr %22, align 8, !tbaa !9
  %449 = mul nsw i64 2, %448
  %450 = add nsw i64 %449, 1
  %451 = getelementptr inbounds double, ptr %447, i64 %450
  %452 = load double, ptr %451, align 8, !tbaa !11
  %453 = load double, ptr %60, align 8, !tbaa !11
  %454 = fmul double %452, %453
  %455 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %456 = load ptr, ptr %455, align 8, !tbaa !20
  %457 = load i64, ptr %22, align 8, !tbaa !9
  %458 = getelementptr inbounds double, ptr %456, i64 %457
  store double %454, ptr %458, align 8, !tbaa !11
  %459 = load i64, ptr %58, align 8, !tbaa !9
  %460 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 2
  %461 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %460, i32 0, i32 4
  %462 = load ptr, ptr %461, align 8, !tbaa !20
  %463 = load i64, ptr %59, align 8, !tbaa !9
  %464 = add nsw i64 %463, 1
  %465 = getelementptr inbounds i64, ptr %462, i64 %464
  store i64 %459, ptr %465, align 8, !tbaa !9
  %466 = load i64, ptr %59, align 8, !tbaa !9
  %467 = add nsw i64 %466, 1
  store i64 %467, ptr %59, align 8, !tbaa !9
  br label %468

468:                                              ; preds = %445
  %469 = load i64, ptr %22, align 8, !tbaa !9
  %470 = add nsw i64 %469, 1
  store i64 %470, ptr %22, align 8, !tbaa !9
  br label %370, !llvm.loop !33

471:                                              ; preds = %370
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %472

472:                                              ; preds = %539, %471
  %473 = load i64, ptr %22, align 8, !tbaa !9
  %474 = load i64, ptr %12, align 8, !tbaa !9
  %475 = sub nsw i64 %474, 1
  %476 = icmp sle i64 %473, %475
  br i1 %476, label %477, label %542

477:                                              ; preds = %472
  %478 = load i64, ptr %22, align 8, !tbaa !9
  %479 = getelementptr inbounds %"struct.alglib_impl::spline1dbbasis", ptr %62, i32 0, i32 1
  %480 = load i64, ptr %479, align 8, !tbaa !26
  %481 = sub nsw i64 %480, 1
  %482 = sub nsw i64 %478, %481
  %483 = load ptr, ptr %16, align 8, !tbaa !5
  %484 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %482, i64 noundef 0, ptr noundef %483)
  store i64 %484, ptr %25, align 8, !tbaa !9
  %485 = load i64, ptr %22, align 8, !tbaa !9
  %486 = getelementptr inbounds %"struct.alglib_impl::spline1dbbasis", ptr %62, i32 0, i32 1
  %487 = load i64, ptr %486, align 8, !tbaa !26
  %488 = sub nsw i64 %487, 1
  %489 = add nsw i64 %485, %488
  %490 = load i64, ptr %12, align 8, !tbaa !9
  %491 = sub nsw i64 %490, 1
  %492 = load ptr, ptr %16, align 8, !tbaa !5
  %493 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %489, i64 noundef %491, ptr noundef %492)
  store i64 %493, ptr %26, align 8, !tbaa !9
  %494 = load i64, ptr %25, align 8, !tbaa !9
  store i64 %494, ptr %23, align 8, !tbaa !9
  br label %495

495:                                              ; preds = %526, %477
  %496 = load i64, ptr %23, align 8, !tbaa !9
  %497 = load i64, ptr %26, align 8, !tbaa !9
  %498 = icmp sle i64 %496, %497
  br i1 %498, label %499, label %529

499:                                              ; preds = %495
  %500 = load i64, ptr %23, align 8, !tbaa !9
  %501 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 1
  %502 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %501, i32 0, i32 4
  %503 = load ptr, ptr %502, align 8, !tbaa !20
  %504 = load i64, ptr %58, align 8, !tbaa !9
  %505 = getelementptr inbounds i64, ptr %503, i64 %504
  store i64 %500, ptr %505, align 8, !tbaa !9
  %506 = load i64, ptr %23, align 8, !tbaa !9
  %507 = load i64, ptr %22, align 8, !tbaa !9
  %508 = sitofp i64 %507 to double
  %509 = load i64, ptr %12, align 8, !tbaa !9
  %510 = sub nsw i64 %509, 1
  %511 = sitofp i64 %510 to double
  %512 = fdiv double %508, %511
  %513 = load ptr, ptr %16, align 8, !tbaa !5
  %514 = call noundef double @_ZN11alglib_implL19spline1d_basisdiff2EPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef %62, i64 noundef %506, double noundef %512, ptr noundef %513)
  %515 = load double, ptr %61, align 8, !tbaa !11
  %516 = fmul double %514, %515
  %517 = load double, ptr %13, align 8, !tbaa !11
  %518 = fmul double %516, %517
  %519 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 0
  %520 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %519, i32 0, i32 4
  %521 = load ptr, ptr %520, align 8, !tbaa !20
  %522 = load i64, ptr %58, align 8, !tbaa !9
  %523 = getelementptr inbounds double, ptr %521, i64 %522
  store double %518, ptr %523, align 8, !tbaa !11
  %524 = load i64, ptr %58, align 8, !tbaa !9
  %525 = add nsw i64 %524, 1
  store i64 %525, ptr %58, align 8, !tbaa !9
  br label %526

526:                                              ; preds = %499
  %527 = load i64, ptr %23, align 8, !tbaa !9
  %528 = add nsw i64 %527, 1
  store i64 %528, ptr %23, align 8, !tbaa !9
  br label %495, !llvm.loop !34

529:                                              ; preds = %495
  %530 = load i64, ptr %58, align 8, !tbaa !9
  %531 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 2
  %532 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %531, i32 0, i32 4
  %533 = load ptr, ptr %532, align 8, !tbaa !20
  %534 = load i64, ptr %59, align 8, !tbaa !9
  %535 = add nsw i64 %534, 1
  %536 = getelementptr inbounds i64, ptr %533, i64 %535
  store i64 %530, ptr %536, align 8, !tbaa !9
  %537 = load i64, ptr %59, align 8, !tbaa !9
  %538 = add nsw i64 %537, 1
  store i64 %538, ptr %59, align 8, !tbaa !9
  br label %539

539:                                              ; preds = %529
  %540 = load i64, ptr %22, align 8, !tbaa !9
  %541 = add nsw i64 %540, 1
  store i64 %541, ptr %22, align 8, !tbaa !9
  br label %472, !llvm.loop !35

542:                                              ; preds = %472
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %543

543:                                              ; preds = %572, %542
  %544 = load i64, ptr %22, align 8, !tbaa !9
  %545 = load i64, ptr %12, align 8, !tbaa !9
  %546 = sub nsw i64 %545, 1
  %547 = icmp sle i64 %544, %546
  br i1 %547, label %548, label %575

548:                                              ; preds = %543
  %549 = load i64, ptr %22, align 8, !tbaa !9
  %550 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 1
  %551 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %550, i32 0, i32 4
  %552 = load ptr, ptr %551, align 8, !tbaa !20
  %553 = load i64, ptr %58, align 8, !tbaa !9
  %554 = getelementptr inbounds i64, ptr %552, i64 %553
  store i64 %549, ptr %554, align 8, !tbaa !9
  %555 = load double, ptr @_ZN11alglib_implL18spline1d_lambdaregE, align 8, !tbaa !11
  %556 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 0
  %557 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %556, i32 0, i32 4
  %558 = load ptr, ptr %557, align 8, !tbaa !20
  %559 = load i64, ptr %58, align 8, !tbaa !9
  %560 = getelementptr inbounds double, ptr %558, i64 %559
  store double %555, ptr %560, align 8, !tbaa !11
  %561 = load i64, ptr %58, align 8, !tbaa !9
  %562 = add nsw i64 %561, 1
  store i64 %562, ptr %58, align 8, !tbaa !9
  %563 = load i64, ptr %58, align 8, !tbaa !9
  %564 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 2
  %565 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %564, i32 0, i32 4
  %566 = load ptr, ptr %565, align 8, !tbaa !20
  %567 = load i64, ptr %59, align 8, !tbaa !9
  %568 = add nsw i64 %567, 1
  %569 = getelementptr inbounds i64, ptr %566, i64 %568
  store i64 %563, ptr %569, align 8, !tbaa !9
  %570 = load i64, ptr %59, align 8, !tbaa !9
  %571 = add nsw i64 %570, 1
  store i64 %571, ptr %59, align 8, !tbaa !9
  br label %572

572:                                              ; preds = %548
  %573 = load i64, ptr %22, align 8, !tbaa !9
  %574 = add nsw i64 %573, 1
  store i64 %574, ptr %22, align 8, !tbaa !9
  br label %543, !llvm.loop !36

575:                                              ; preds = %543
  %576 = load i64, ptr %59, align 8, !tbaa !9
  %577 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 6
  %578 = load i64, ptr %577, align 8, !tbaa !29
  %579 = icmp eq i64 %576, %578
  br i1 %579, label %580, label %584

580:                                              ; preds = %575
  %581 = load i64, ptr %58, align 8, !tbaa !9
  %582 = load i64, ptr %57, align 8, !tbaa !9
  %583 = icmp sle i64 %581, %582
  br label %584

584:                                              ; preds = %580, %575
  %585 = phi i1 [ false, %575 ], [ %583, %580 ]
  %586 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %585, ptr noundef @.str.384, ptr noundef %586)
  %587 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl22sparsecreatecrsinplaceEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %33, ptr noundef %587)
  %588 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl22sparsecopytransposecrsEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %33, ptr noundef %34, ptr noundef %588)
  %589 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %590 = trunc i8 %589 to i1
  br i1 %590, label %591, label %604

591:                                              ; preds = %584
  %592 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  %593 = load i64, ptr %69, align 8, !tbaa !9
  %594 = sub nsw i64 %592, %593
  %595 = trunc i64 %594 to i32
  %596 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 2
  %597 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %596, i32 0, i32 4
  %598 = load ptr, ptr %597, align 8, !tbaa !20
  %599 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 6
  %600 = load i64, ptr %599, align 8, !tbaa !29
  %601 = getelementptr inbounds i64, ptr %598, i64 %600
  %602 = load i64, ptr %601, align 8, !tbaa !9
  %603 = trunc i64 %602 to i32
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.385, i32 noundef %595, i32 noundef %603)
  br label %604

604:                                              ; preds = %591, %584
  %605 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %606 = trunc i8 %605 to i1
  br i1 %606, label %607, label %609

607:                                              ; preds = %604
  %608 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  store i64 %608, ptr %69, align 8, !tbaa !9
  br label %609

609:                                              ; preds = %607, %604
  %610 = getelementptr inbounds %"struct.alglib_impl::spline1dbbasis", ptr %62, i32 0, i32 1
  %611 = load i64, ptr %610, align 8, !tbaa !26
  %612 = sub nsw i64 %611, 1
  %613 = mul nsw i64 2, %612
  store i64 %613, ptr %50, align 8, !tbaa !9
  %614 = load i64, ptr %12, align 8, !tbaa !9
  %615 = load i64, ptr %12, align 8, !tbaa !9
  %616 = load i64, ptr %50, align 8, !tbaa !9
  %617 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl19sparsecreatesksbandElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %614, i64 noundef %615, i64 noundef %616, ptr noundef %35, ptr noundef %617)
  store double 0.000000e+00, ptr %49, align 8, !tbaa !11
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %618

618:                                              ; preds = %717, %609
  %619 = load i64, ptr %22, align 8, !tbaa !9
  %620 = load i64, ptr %12, align 8, !tbaa !9
  %621 = sub nsw i64 %620, 1
  %622 = icmp sle i64 %619, %621
  br i1 %622, label %623, label %720

623:                                              ; preds = %618
  %624 = load i64, ptr %22, align 8, !tbaa !9
  store i64 %624, ptr %23, align 8, !tbaa !9
  br label %625

625:                                              ; preds = %713, %623
  %626 = load i64, ptr %23, align 8, !tbaa !9
  %627 = load i64, ptr %22, align 8, !tbaa !9
  %628 = load i64, ptr %50, align 8, !tbaa !9
  %629 = add nsw i64 %627, %628
  %630 = load i64, ptr %12, align 8, !tbaa !9
  %631 = sub nsw i64 %630, 1
  %632 = load ptr, ptr %16, align 8, !tbaa !5
  %633 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %629, i64 noundef %631, ptr noundef %632)
  %634 = icmp sle i64 %626, %633
  br i1 %634, label %635, label %716

635:                                              ; preds = %625
  %636 = load i64, ptr %22, align 8, !tbaa !9
  %637 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl22sparsegetcompressedrowEPKNS_12sparsematrixElPNS_9ae_vectorES4_PlPNS_8ae_stateE(ptr noundef %34, i64 noundef %636, ptr noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %637)
  %638 = load i64, ptr %23, align 8, !tbaa !9
  %639 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl22sparsegetcompressedrowEPKNS_12sparsematrixElPNS_9ae_vectorES4_PlPNS_8ae_stateE(ptr noundef %34, i64 noundef %638, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %639)
  store double 0.000000e+00, ptr %27, align 8, !tbaa !11
  store i64 0, ptr %25, align 8, !tbaa !9
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %640

640:                                              ; preds = %680, %677, %662, %635
  %641 = load i64, ptr %25, align 8, !tbaa !9
  %642 = load i64, ptr %53, align 8, !tbaa !9
  %643 = icmp eq i64 %641, %642
  br i1 %643, label %644, label %645

644:                                              ; preds = %640
  br label %697

645:                                              ; preds = %640
  %646 = load i64, ptr %26, align 8, !tbaa !9
  %647 = load i64, ptr %56, align 8, !tbaa !9
  %648 = icmp eq i64 %646, %647
  br i1 %648, label %649, label %650

649:                                              ; preds = %645
  br label %697

650:                                              ; preds = %645
  %651 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %51, i32 0, i32 4
  %652 = load ptr, ptr %651, align 8, !tbaa !20
  %653 = load i64, ptr %25, align 8, !tbaa !9
  %654 = getelementptr inbounds i64, ptr %652, i64 %653
  %655 = load i64, ptr %654, align 8, !tbaa !9
  %656 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %54, i32 0, i32 4
  %657 = load ptr, ptr %656, align 8, !tbaa !20
  %658 = load i64, ptr %26, align 8, !tbaa !9
  %659 = getelementptr inbounds i64, ptr %657, i64 %658
  %660 = load i64, ptr %659, align 8, !tbaa !9
  %661 = icmp slt i64 %655, %660
  br i1 %661, label %662, label %665

662:                                              ; preds = %650
  %663 = load i64, ptr %25, align 8, !tbaa !9
  %664 = add nsw i64 %663, 1
  store i64 %664, ptr %25, align 8, !tbaa !9
  br label %640, !llvm.loop !37

665:                                              ; preds = %650
  %666 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %51, i32 0, i32 4
  %667 = load ptr, ptr %666, align 8, !tbaa !20
  %668 = load i64, ptr %25, align 8, !tbaa !9
  %669 = getelementptr inbounds i64, ptr %667, i64 %668
  %670 = load i64, ptr %669, align 8, !tbaa !9
  %671 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %54, i32 0, i32 4
  %672 = load ptr, ptr %671, align 8, !tbaa !20
  %673 = load i64, ptr %26, align 8, !tbaa !9
  %674 = getelementptr inbounds i64, ptr %672, i64 %673
  %675 = load i64, ptr %674, align 8, !tbaa !9
  %676 = icmp sgt i64 %670, %675
  br i1 %676, label %677, label %680

677:                                              ; preds = %665
  %678 = load i64, ptr %26, align 8, !tbaa !9
  %679 = add nsw i64 %678, 1
  store i64 %679, ptr %26, align 8, !tbaa !9
  br label %640, !llvm.loop !37

680:                                              ; preds = %665
  %681 = load double, ptr %27, align 8, !tbaa !11
  %682 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %683 = load ptr, ptr %682, align 8, !tbaa !20
  %684 = load i64, ptr %25, align 8, !tbaa !9
  %685 = getelementptr inbounds double, ptr %683, i64 %684
  %686 = load double, ptr %685, align 8, !tbaa !11
  %687 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %55, i32 0, i32 4
  %688 = load ptr, ptr %687, align 8, !tbaa !20
  %689 = load i64, ptr %26, align 8, !tbaa !9
  %690 = getelementptr inbounds double, ptr %688, i64 %689
  %691 = load double, ptr %690, align 8, !tbaa !11
  %692 = call double @llvm.fmuladd.f64(double %686, double %691, double %681)
  store double %692, ptr %27, align 8, !tbaa !11
  %693 = load i64, ptr %25, align 8, !tbaa !9
  %694 = add nsw i64 %693, 1
  store i64 %694, ptr %25, align 8, !tbaa !9
  %695 = load i64, ptr %26, align 8, !tbaa !9
  %696 = add nsw i64 %695, 1
  store i64 %696, ptr %26, align 8, !tbaa !9
  br label %640, !llvm.loop !37

697:                                              ; preds = %649, %644
  %698 = load i64, ptr %22, align 8, !tbaa !9
  %699 = load i64, ptr %23, align 8, !tbaa !9
  %700 = load double, ptr %27, align 8, !tbaa !11
  %701 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %35, i64 noundef %698, i64 noundef %699, double noundef %700, ptr noundef %701)
  %702 = load i64, ptr %22, align 8, !tbaa !9
  %703 = load i64, ptr %23, align 8, !tbaa !9
  %704 = icmp eq i64 %702, %703
  br i1 %704, label %705, label %712

705:                                              ; preds = %697
  %706 = load double, ptr %49, align 8, !tbaa !11
  %707 = load double, ptr %27, align 8, !tbaa !11
  %708 = load ptr, ptr %16, align 8, !tbaa !5
  %709 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %707, ptr noundef %708)
  %710 = load ptr, ptr %16, align 8, !tbaa !5
  %711 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %706, double noundef %709, ptr noundef %710)
  store double %711, ptr %49, align 8, !tbaa !11
  br label %712

712:                                              ; preds = %705, %697
  br label %713

713:                                              ; preds = %712
  %714 = load i64, ptr %23, align 8, !tbaa !9
  %715 = add nsw i64 %714, 1
  store i64 %715, ptr %23, align 8, !tbaa !9
  br label %625, !llvm.loop !38

716:                                              ; preds = %625
  br label %717

717:                                              ; preds = %716
  %718 = load i64, ptr %22, align 8, !tbaa !9
  %719 = add nsw i64 %718, 1
  store i64 %719, ptr %22, align 8, !tbaa !9
  br label %618, !llvm.loop !39

720:                                              ; preds = %618
  %721 = load double, ptr %49, align 8, !tbaa !11
  %722 = load ptr, ptr %16, align 8, !tbaa !5
  %723 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %721, double noundef 1.000000e+00, ptr noundef %722)
  store double %723, ptr %49, align 8, !tbaa !11
  %724 = load double, ptr @_ZN11alglib_implL16spline1d_cholregE, align 8, !tbaa !11
  store double %724, ptr %48, align 8, !tbaa !11
  br label %725

725:                                              ; preds = %758, %720
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %726

726:                                              ; preds = %742, %725
  %727 = load i64, ptr %22, align 8, !tbaa !9
  %728 = load i64, ptr %12, align 8, !tbaa !9
  %729 = sub nsw i64 %728, 1
  %730 = icmp sle i64 %727, %729
  br i1 %730, label %731, label %745

731:                                              ; preds = %726
  %732 = load i64, ptr %22, align 8, !tbaa !9
  %733 = load i64, ptr %22, align 8, !tbaa !9
  %734 = load i64, ptr %22, align 8, !tbaa !9
  %735 = load i64, ptr %22, align 8, !tbaa !9
  %736 = load ptr, ptr %16, align 8, !tbaa !5
  %737 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %35, i64 noundef %734, i64 noundef %735, ptr noundef %736)
  %738 = load double, ptr %49, align 8, !tbaa !11
  %739 = load double, ptr %48, align 8, !tbaa !11
  %740 = call double @llvm.fmuladd.f64(double %738, double %739, double %737)
  %741 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %35, i64 noundef %732, i64 noundef %733, double noundef %740, ptr noundef %741)
  br label %742

742:                                              ; preds = %731
  %743 = load i64, ptr %22, align 8, !tbaa !9
  %744 = add nsw i64 %743, 1
  store i64 %744, ptr %22, align 8, !tbaa !9
  br label %726, !llvm.loop !40

745:                                              ; preds = %726
  %746 = load i64, ptr %12, align 8, !tbaa !9
  %747 = load ptr, ptr %16, align 8, !tbaa !5
  %748 = call noundef zeroext i1 @_ZN11alglib_impl21sparsecholeskyskylineEPNS_12sparsematrixElbPNS_8ae_stateE(ptr noundef %35, i64 noundef %746, i1 noundef zeroext true, ptr noundef %747)
  br i1 %748, label %759, label %749

749:                                              ; preds = %745
  %750 = load double, ptr %48, align 8, !tbaa !11
  %751 = fmul double 1.000000e+01, %750
  %752 = load ptr, ptr %16, align 8, !tbaa !5
  %753 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %751, double noundef 0x3D719799812DEA11, ptr noundef %752)
  store double %753, ptr %48, align 8, !tbaa !11
  %754 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %755 = trunc i8 %754 to i1
  br i1 %755, label %756, label %758

756:                                              ; preds = %749
  %757 = load double, ptr %48, align 8, !tbaa !11
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.386, double noundef %757)
  br label %758

758:                                              ; preds = %756, %749
  br label %725, !llvm.loop !41

759:                                              ; preds = %745
  br label %760

760:                                              ; preds = %759
  %761 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %762 = trunc i8 %761 to i1
  br i1 %762, label %763, label %768

763:                                              ; preds = %760
  %764 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  %765 = load i64, ptr %69, align 8, !tbaa !9
  %766 = sub nsw i64 %764, %765
  %767 = trunc i64 %766 to i32
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.387, i32 noundef %767)
  br label %768

768:                                              ; preds = %763, %760
  %769 = load i64, ptr %42, align 8, !tbaa !9
  %770 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %769, ptr noundef %43, ptr noundef %770)
  %771 = load i64, ptr %12, align 8, !tbaa !9
  %772 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %771, ptr noundef %44, ptr noundef %772)
  %773 = load i64, ptr %12, align 8, !tbaa !9
  %774 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %773, ptr noundef %45, ptr noundef %774)
  %775 = load i64, ptr %42, align 8, !tbaa !9
  %776 = load i64, ptr %12, align 8, !tbaa !9
  %777 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl16linlsqrcreatebufEllPNS_12linlsqrstateEPNS_8ae_stateE(i64 noundef %775, i64 noundef %776, ptr noundef %46, ptr noundef %777)
  %778 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl11linlsqrsetbEPNS_12linlsqrstateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %46, ptr noundef %36, ptr noundef %778)
  %779 = load i64, ptr %38, align 8, !tbaa !9
  %780 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14linlsqrsetcondEPNS_12linlsqrstateEddlPNS_8ae_stateE(ptr noundef %46, double noundef 5.000000e-13, double noundef 5.000000e-13, i64 noundef %779, ptr noundef %780)
  %781 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %782 = trunc i8 %781 to i1
  br i1 %782, label %783, label %786

783:                                              ; preds = %768
  %784 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  store i64 %784, ptr %69, align 8, !tbaa !9
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.388)
  %785 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14linlsqrsetxrepEPNS_12linlsqrstateEbPNS_8ae_stateE(ptr noundef %46, i1 noundef zeroext true, ptr noundef %785)
  br label %786

786:                                              ; preds = %783, %768
  store i64 0, ptr %64, align 8, !tbaa !9
  br label %787

787:                                              ; preds = %860, %857, %822, %814, %786
  %788 = load ptr, ptr %16, align 8, !tbaa !5
  %789 = call noundef zeroext i1 @_ZN11alglib_impl16linlsqriterationEPNS_12linlsqrstateEPNS_8ae_stateE(ptr noundef %46, ptr noundef %788)
  br i1 %789, label %790, label %862

790:                                              ; preds = %787
  %791 = getelementptr inbounds %"struct.alglib_impl::linlsqrstate", ptr %46, i32 0, i32 40
  %792 = load i8, ptr %791, align 2, !tbaa !42, !range !18, !noundef !19
  %793 = trunc i8 %792 to i1
  br i1 %793, label %794, label %818

794:                                              ; preds = %790
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %795

795:                                              ; preds = %811, %794
  %796 = load i64, ptr %22, align 8, !tbaa !9
  %797 = load i64, ptr %12, align 8, !tbaa !9
  %798 = sub nsw i64 %797, 1
  %799 = icmp sle i64 %796, %798
  br i1 %799, label %800, label %814

800:                                              ; preds = %795
  %801 = getelementptr inbounds %"struct.alglib_impl::linlsqrstate", ptr %46, i32 0, i32 31
  %802 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %801, i32 0, i32 4
  %803 = load ptr, ptr %802, align 8, !tbaa !20
  %804 = load i64, ptr %22, align 8, !tbaa !9
  %805 = getelementptr inbounds double, ptr %803, i64 %804
  %806 = load double, ptr %805, align 8, !tbaa !11
  %807 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %808 = load ptr, ptr %807, align 8, !tbaa !20
  %809 = load i64, ptr %22, align 8, !tbaa !9
  %810 = getelementptr inbounds double, ptr %808, i64 %809
  store double %806, ptr %810, align 8, !tbaa !11
  br label %811

811:                                              ; preds = %800
  %812 = load i64, ptr %22, align 8, !tbaa !9
  %813 = add nsw i64 %812, 1
  store i64 %813, ptr %22, align 8, !tbaa !9
  br label %795, !llvm.loop !48

814:                                              ; preds = %795
  %815 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %35, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %44, ptr noundef %815)
  %816 = getelementptr inbounds %"struct.alglib_impl::linlsqrstate", ptr %46, i32 0, i32 32
  %817 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl8sparsemvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %33, ptr noundef %44, ptr noundef %816, ptr noundef %817)
  br label %787, !llvm.loop !49

818:                                              ; preds = %790
  %819 = getelementptr inbounds %"struct.alglib_impl::linlsqrstate", ptr %46, i32 0, i32 41
  %820 = load i8, ptr %819, align 1, !tbaa !50, !range !18, !noundef !19
  %821 = trunc i8 %820 to i1
  br i1 %821, label %822, label %828

822:                                              ; preds = %818
  %823 = getelementptr inbounds %"struct.alglib_impl::linlsqrstate", ptr %46, i32 0, i32 31
  %824 = getelementptr inbounds %"struct.alglib_impl::linlsqrstate", ptr %46, i32 0, i32 33
  %825 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsemtvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %33, ptr noundef %823, ptr noundef %824, ptr noundef %825)
  %826 = getelementptr inbounds %"struct.alglib_impl::linlsqrstate", ptr %46, i32 0, i32 33
  %827 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %35, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 1, ptr noundef %826, ptr noundef %827)
  br label %787, !llvm.loop !49

828:                                              ; preds = %818
  %829 = getelementptr inbounds %"struct.alglib_impl::linlsqrstate", ptr %46, i32 0, i32 39
  %830 = load i8, ptr %829, align 1, !tbaa !51, !range !18, !noundef !19
  %831 = trunc i8 %830 to i1
  br i1 %831, label %832, label %860

832:                                              ; preds = %828
  %833 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %834 = trunc i8 %833 to i1
  br i1 %834, label %835, label %857

835:                                              ; preds = %832
  %836 = load i64, ptr %12, align 8, !tbaa !9
  %837 = getelementptr inbounds %"struct.alglib_impl::linlsqrstate", ptr %46, i32 0, i32 31
  %838 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %836, ptr noundef %837, ptr noundef %45, ptr noundef %838)
  %839 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %35, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %45, ptr noundef %839)
  %840 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl8sparsemvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %33, ptr noundef %45, ptr noundef %43, ptr noundef %840)
  %841 = load i64, ptr %42, align 8, !tbaa !9
  %842 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl5raddvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %841, double noundef -1.000000e+00, ptr noundef %36, ptr noundef %43, ptr noundef %842)
  %843 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsemtvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %33, ptr noundef %43, ptr noundef %44, ptr noundef %843)
  %844 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %35, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 1, ptr noundef %44, ptr noundef %844)
  %845 = load i64, ptr %64, align 8, !tbaa !9
  %846 = trunc i64 %845 to i32
  %847 = load i64, ptr %42, align 8, !tbaa !9
  %848 = load ptr, ptr %16, align 8, !tbaa !5
  %849 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %847, ptr noundef %43, ptr noundef %848)
  %850 = load ptr, ptr %16, align 8, !tbaa !5
  %851 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %849, ptr noundef %850)
  %852 = load i64, ptr %12, align 8, !tbaa !9
  %853 = load ptr, ptr %16, align 8, !tbaa !5
  %854 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %852, ptr noundef %44, ptr noundef %853)
  %855 = load ptr, ptr %16, align 8, !tbaa !5
  %856 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %854, ptr noundef %855)
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.389, i32 noundef %846, double noundef %851, double noundef %856)
  br label %857

857:                                              ; preds = %835, %832
  %858 = load i64, ptr %64, align 8, !tbaa !9
  %859 = add nsw i64 %858, 1
  store i64 %859, ptr %64, align 8, !tbaa !9
  br label %787, !llvm.loop !49

860:                                              ; preds = %828
  %861 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.390, ptr noundef %861)
  br label %787, !llvm.loop !49

862:                                              ; preds = %787
  %863 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14linlsqrresultsEPKNS_12linlsqrstateEPNS_9ae_vectorEPNS_13linlsqrreportEPNS_8ae_stateE(ptr noundef %46, ptr noundef %44, ptr noundef %47, ptr noundef %863)
  %864 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %35, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %44, ptr noundef %864)
  %865 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %866 = trunc i8 %865 to i1
  br i1 %866, label %867, label %877

867:                                              ; preds = %862
  %868 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  %869 = load i64, ptr %69, align 8, !tbaa !9
  %870 = sub nsw i64 %868, %869
  %871 = trunc i64 %870 to i32
  %872 = load i64, ptr %12, align 8, !tbaa !9
  %873 = load ptr, ptr %16, align 8, !tbaa !5
  %874 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %872, ptr noundef %44, ptr noundef %873)
  %875 = load ptr, ptr %16, align 8, !tbaa !5
  %876 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %874, ptr noundef %875)
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.391, i32 noundef %871, double noundef %876)
  br label %877

877:                                              ; preds = %867, %862
  %878 = load i64, ptr %12, align 8, !tbaa !9
  %879 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %878, ptr noundef %30, ptr noundef %879)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %880

880:                                              ; preds = %896, %877
  %881 = load i64, ptr %22, align 8, !tbaa !9
  %882 = load i64, ptr %12, align 8, !tbaa !9
  %883 = sub nsw i64 %882, 1
  %884 = icmp sle i64 %881, %883
  br i1 %884, label %885, label %899

885:                                              ; preds = %880
  %886 = load i64, ptr %22, align 8, !tbaa !9
  %887 = sitofp i64 %886 to double
  %888 = load i64, ptr %12, align 8, !tbaa !9
  %889 = sub nsw i64 %888, 1
  %890 = sitofp i64 %889 to double
  %891 = fdiv double %887, %890
  %892 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %893 = load ptr, ptr %892, align 8, !tbaa !20
  %894 = load i64, ptr %22, align 8, !tbaa !9
  %895 = getelementptr inbounds double, ptr %893, i64 %894
  store double %891, ptr %895, align 8, !tbaa !11
  br label %896

896:                                              ; preds = %885
  %897 = load i64, ptr %22, align 8, !tbaa !9
  %898 = add nsw i64 %897, 1
  store i64 %898, ptr %22, align 8, !tbaa !9
  br label %880, !llvm.loop !52

899:                                              ; preds = %880
  %900 = load i64, ptr %12, align 8, !tbaa !9
  %901 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %900, double noundef 0.000000e+00, ptr noundef %31, ptr noundef %901)
  %902 = load i64, ptr %12, align 8, !tbaa !9
  %903 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %902, double noundef 0.000000e+00, ptr noundef %32, ptr noundef %903)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %904

904:                                              ; preds = %982, %899
  %905 = load i64, ptr %22, align 8, !tbaa !9
  %906 = load i64, ptr %12, align 8, !tbaa !9
  %907 = sub nsw i64 %906, 1
  %908 = icmp sle i64 %905, %907
  br i1 %908, label %909, label %985

909:                                              ; preds = %904
  %910 = load i64, ptr %22, align 8, !tbaa !9
  %911 = getelementptr inbounds %"struct.alglib_impl::spline1dbbasis", ptr %62, i32 0, i32 1
  %912 = load i64, ptr %911, align 8, !tbaa !26
  %913 = sub nsw i64 %912, 1
  %914 = sub nsw i64 %910, %913
  %915 = load ptr, ptr %16, align 8, !tbaa !5
  %916 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %914, i64 noundef 0, ptr noundef %915)
  store i64 %916, ptr %23, align 8, !tbaa !9
  br label %917

917:                                              ; preds = %978, %909
  %918 = load i64, ptr %23, align 8, !tbaa !9
  %919 = load i64, ptr %22, align 8, !tbaa !9
  %920 = getelementptr inbounds %"struct.alglib_impl::spline1dbbasis", ptr %62, i32 0, i32 1
  %921 = load i64, ptr %920, align 8, !tbaa !26
  %922 = sub nsw i64 %921, 1
  %923 = add nsw i64 %919, %922
  %924 = load i64, ptr %12, align 8, !tbaa !9
  %925 = sub nsw i64 %924, 1
  %926 = load ptr, ptr %16, align 8, !tbaa !5
  %927 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %923, i64 noundef %925, ptr noundef %926)
  %928 = icmp sle i64 %918, %927
  br i1 %928, label %929, label %981

929:                                              ; preds = %917
  %930 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %931 = load ptr, ptr %930, align 8, !tbaa !20
  %932 = load i64, ptr %23, align 8, !tbaa !9
  %933 = getelementptr inbounds double, ptr %931, i64 %932
  %934 = load double, ptr %933, align 8, !tbaa !11
  %935 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %936 = load ptr, ptr %935, align 8, !tbaa !20
  %937 = load i64, ptr %22, align 8, !tbaa !9
  %938 = getelementptr inbounds double, ptr %936, i64 %937
  %939 = load double, ptr %938, align 8, !tbaa !11
  %940 = load i64, ptr %22, align 8, !tbaa !9
  %941 = load i64, ptr %23, align 8, !tbaa !9
  %942 = sitofp i64 %941 to double
  %943 = load i64, ptr %12, align 8, !tbaa !9
  %944 = sub nsw i64 %943, 1
  %945 = sitofp i64 %944 to double
  %946 = fdiv double %942, %945
  %947 = load ptr, ptr %16, align 8, !tbaa !5
  %948 = call noundef double @_ZN11alglib_implL18spline1d_basiscalcEPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef %62, i64 noundef %940, double noundef %946, ptr noundef %947)
  %949 = call double @llvm.fmuladd.f64(double %939, double %948, double %934)
  %950 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %951 = load ptr, ptr %950, align 8, !tbaa !20
  %952 = load i64, ptr %23, align 8, !tbaa !9
  %953 = getelementptr inbounds double, ptr %951, i64 %952
  store double %949, ptr %953, align 8, !tbaa !11
  %954 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %955 = load ptr, ptr %954, align 8, !tbaa !20
  %956 = load i64, ptr %23, align 8, !tbaa !9
  %957 = getelementptr inbounds double, ptr %955, i64 %956
  %958 = load double, ptr %957, align 8, !tbaa !11
  %959 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %960 = load ptr, ptr %959, align 8, !tbaa !20
  %961 = load i64, ptr %22, align 8, !tbaa !9
  %962 = getelementptr inbounds double, ptr %960, i64 %961
  %963 = load double, ptr %962, align 8, !tbaa !11
  %964 = load i64, ptr %22, align 8, !tbaa !9
  %965 = load i64, ptr %23, align 8, !tbaa !9
  %966 = sitofp i64 %965 to double
  %967 = load i64, ptr %12, align 8, !tbaa !9
  %968 = sub nsw i64 %967, 1
  %969 = sitofp i64 %968 to double
  %970 = fdiv double %966, %969
  %971 = load ptr, ptr %16, align 8, !tbaa !5
  %972 = call noundef double @_ZN11alglib_implL18spline1d_basisdiffEPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef %62, i64 noundef %964, double noundef %970, ptr noundef %971)
  %973 = call double @llvm.fmuladd.f64(double %963, double %972, double %958)
  %974 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %975 = load ptr, ptr %974, align 8, !tbaa !20
  %976 = load i64, ptr %23, align 8, !tbaa !9
  %977 = getelementptr inbounds double, ptr %975, i64 %976
  store double %973, ptr %977, align 8, !tbaa !11
  br label %978

978:                                              ; preds = %929
  %979 = load i64, ptr %23, align 8, !tbaa !9
  %980 = add nsw i64 %979, 1
  store i64 %980, ptr %23, align 8, !tbaa !9
  br label %917, !llvm.loop !53

981:                                              ; preds = %917
  br label %982

982:                                              ; preds = %981
  %983 = load i64, ptr %22, align 8, !tbaa !9
  %984 = add nsw i64 %983, 1
  store i64 %984, ptr %22, align 8, !tbaa !9
  br label %904, !llvm.loop !54

985:                                              ; preds = %904
  %986 = load i64, ptr %12, align 8, !tbaa !9
  %987 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPKNS_9ae_vectorES2_S2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %30, ptr noundef %31, ptr noundef %32, i64 noundef %986, ptr noundef %67, ptr noundef %987)
  br label %1213

988:                                              ; preds = %324
  %989 = load i64, ptr %42, align 8, !tbaa !9
  %990 = load i64, ptr %12, align 8, !tbaa !9
  %991 = add nsw i64 %990, 1
  %992 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %989, i64 noundef %991, double noundef 0.000000e+00, ptr noundef %70, ptr noundef %992)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %993

993:                                              ; preds = %1015, %988
  %994 = load i64, ptr %22, align 8, !tbaa !9
  %995 = load i64, ptr %11, align 8, !tbaa !9
  %996 = sub nsw i64 %995, 1
  %997 = icmp sle i64 %994, %996
  br i1 %997, label %998, label %1018

998:                                              ; preds = %993
  %999 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %1000 = load ptr, ptr %999, align 8, !tbaa !20
  %1001 = load i64, ptr %22, align 8, !tbaa !9
  %1002 = mul nsw i64 2, %1001
  %1003 = add nsw i64 %1002, 1
  %1004 = getelementptr inbounds double, ptr %1000, i64 %1003
  %1005 = load double, ptr %1004, align 8, !tbaa !11
  %1006 = load double, ptr %60, align 8, !tbaa !11
  %1007 = fmul double %1005, %1006
  %1008 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %70, i32 0, i32 6
  %1009 = load ptr, ptr %1008, align 8, !tbaa !20
  %1010 = load i64, ptr %22, align 8, !tbaa !9
  %1011 = getelementptr inbounds ptr, ptr %1009, i64 %1010
  %1012 = load ptr, ptr %1011, align 8, !tbaa !5
  %1013 = load i64, ptr %12, align 8, !tbaa !9
  %1014 = getelementptr inbounds double, ptr %1012, i64 %1013
  store double %1007, ptr %1014, align 8, !tbaa !11
  br label %1015

1015:                                             ; preds = %998
  %1016 = load i64, ptr %22, align 8, !tbaa !9
  %1017 = add nsw i64 %1016, 1
  store i64 %1017, ptr %22, align 8, !tbaa !9
  br label %993, !llvm.loop !55

1018:                                             ; preds = %993
  %1019 = load i64, ptr %12, align 8, !tbaa !9
  %1020 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %1019, ptr noundef %65, ptr noundef %1020)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %1021

1021:                                             ; preds = %1037, %1018
  %1022 = load i64, ptr %22, align 8, !tbaa !9
  %1023 = load i64, ptr %12, align 8, !tbaa !9
  %1024 = sub nsw i64 %1023, 1
  %1025 = icmp sle i64 %1022, %1024
  br i1 %1025, label %1026, label %1040

1026:                                             ; preds = %1021
  %1027 = load i64, ptr %22, align 8, !tbaa !9
  %1028 = sitofp i64 %1027 to double
  %1029 = load i64, ptr %12, align 8, !tbaa !9
  %1030 = sub nsw i64 %1029, 1
  %1031 = sitofp i64 %1030 to double
  %1032 = fdiv double %1028, %1031
  %1033 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %65, i32 0, i32 4
  %1034 = load ptr, ptr %1033, align 8, !tbaa !20
  %1035 = load i64, ptr %22, align 8, !tbaa !9
  %1036 = getelementptr inbounds double, ptr %1034, i64 %1035
  store double %1032, ptr %1036, align 8, !tbaa !11
  br label %1037

1037:                                             ; preds = %1026
  %1038 = load i64, ptr %22, align 8, !tbaa !9
  %1039 = add nsw i64 %1038, 1
  store i64 %1039, ptr %22, align 8, !tbaa !9
  br label %1021, !llvm.loop !56

1040:                                             ; preds = %1021
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %1041

1041:                                             ; preds = %1114, %1040
  %1042 = load i64, ptr %23, align 8, !tbaa !9
  %1043 = load i64, ptr %12, align 8, !tbaa !9
  %1044 = sub nsw i64 %1043, 1
  %1045 = icmp sle i64 %1042, %1044
  br i1 %1045, label %1046, label %1117

1046:                                             ; preds = %1041
  %1047 = load i64, ptr %12, align 8, !tbaa !9
  %1048 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %1047, double noundef 0.000000e+00, ptr noundef %66, ptr noundef %1048)
  %1049 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %66, i32 0, i32 4
  %1050 = load ptr, ptr %1049, align 8, !tbaa !20
  %1051 = load i64, ptr %23, align 8, !tbaa !9
  %1052 = getelementptr inbounds double, ptr %1050, i64 %1051
  store double 1.000000e+00, ptr %1052, align 8, !tbaa !11
  %1053 = load i64, ptr %12, align 8, !tbaa !9
  %1054 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %65, ptr noundef %66, i64 noundef %1053, i64 noundef 2, double noundef 0.000000e+00, i64 noundef 2, double noundef 0.000000e+00, ptr noundef %67, ptr noundef %1054)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %1055

1055:                                             ; preds = %1079, %1046
  %1056 = load i64, ptr %22, align 8, !tbaa !9
  %1057 = load i64, ptr %11, align 8, !tbaa !9
  %1058 = sub nsw i64 %1057, 1
  %1059 = icmp sle i64 %1056, %1058
  br i1 %1059, label %1060, label %1082

1060:                                             ; preds = %1055
  %1061 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %1062 = load ptr, ptr %1061, align 8, !tbaa !20
  %1063 = load i64, ptr %22, align 8, !tbaa !9
  %1064 = mul nsw i64 2, %1063
  %1065 = add nsw i64 %1064, 0
  %1066 = getelementptr inbounds double, ptr %1062, i64 %1065
  %1067 = load double, ptr %1066, align 8, !tbaa !11
  %1068 = load ptr, ptr %16, align 8, !tbaa !5
  %1069 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %67, double noundef %1067, ptr noundef %1068)
  %1070 = load double, ptr %60, align 8, !tbaa !11
  %1071 = fmul double %1069, %1070
  %1072 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %70, i32 0, i32 6
  %1073 = load ptr, ptr %1072, align 8, !tbaa !20
  %1074 = load i64, ptr %22, align 8, !tbaa !9
  %1075 = getelementptr inbounds ptr, ptr %1073, i64 %1074
  %1076 = load ptr, ptr %1075, align 8, !tbaa !5
  %1077 = load i64, ptr %23, align 8, !tbaa !9
  %1078 = getelementptr inbounds double, ptr %1076, i64 %1077
  store double %1071, ptr %1078, align 8, !tbaa !11
  br label %1079

1079:                                             ; preds = %1060
  %1080 = load i64, ptr %22, align 8, !tbaa !9
  %1081 = add nsw i64 %1080, 1
  store i64 %1081, ptr %22, align 8, !tbaa !9
  br label %1055, !llvm.loop !57

1082:                                             ; preds = %1055
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %1083

1083:                                             ; preds = %1110, %1082
  %1084 = load i64, ptr %22, align 8, !tbaa !9
  %1085 = load i64, ptr %12, align 8, !tbaa !9
  %1086 = sub nsw i64 %1085, 1
  %1087 = icmp sle i64 %1084, %1086
  br i1 %1087, label %1088, label %1113

1088:                                             ; preds = %1083
  %1089 = load i64, ptr %22, align 8, !tbaa !9
  %1090 = sitofp i64 %1089 to double
  %1091 = load i64, ptr %12, align 8, !tbaa !9
  %1092 = sub nsw i64 %1091, 1
  %1093 = sitofp i64 %1092 to double
  %1094 = fdiv double %1090, %1093
  %1095 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %67, double noundef %1094, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %1095)
  %1096 = load double, ptr %74, align 8, !tbaa !11
  %1097 = load double, ptr %61, align 8, !tbaa !11
  %1098 = fmul double %1096, %1097
  %1099 = load double, ptr %13, align 8, !tbaa !11
  %1100 = fmul double %1098, %1099
  %1101 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %70, i32 0, i32 6
  %1102 = load ptr, ptr %1101, align 8, !tbaa !20
  %1103 = load i64, ptr %11, align 8, !tbaa !9
  %1104 = load i64, ptr %22, align 8, !tbaa !9
  %1105 = add nsw i64 %1103, %1104
  %1106 = getelementptr inbounds ptr, ptr %1102, i64 %1105
  %1107 = load ptr, ptr %1106, align 8, !tbaa !5
  %1108 = load i64, ptr %23, align 8, !tbaa !9
  %1109 = getelementptr inbounds double, ptr %1107, i64 %1108
  store double %1100, ptr %1109, align 8, !tbaa !11
  br label %1110

1110:                                             ; preds = %1088
  %1111 = load i64, ptr %22, align 8, !tbaa !9
  %1112 = add nsw i64 %1111, 1
  store i64 %1112, ptr %22, align 8, !tbaa !9
  br label %1083, !llvm.loop !58

1113:                                             ; preds = %1083
  br label %1114

1114:                                             ; preds = %1113
  %1115 = load i64, ptr %23, align 8, !tbaa !9
  %1116 = add nsw i64 %1115, 1
  store i64 %1116, ptr %23, align 8, !tbaa !9
  br label %1041, !llvm.loop !59

1117:                                             ; preds = %1041
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %1118

1118:                                             ; preds = %1136, %1117
  %1119 = load i64, ptr %22, align 8, !tbaa !9
  %1120 = load i64, ptr %12, align 8, !tbaa !9
  %1121 = sub nsw i64 %1120, 1
  %1122 = icmp sle i64 %1119, %1121
  br i1 %1122, label %1123, label %1139

1123:                                             ; preds = %1118
  %1124 = load double, ptr @_ZN11alglib_implL18spline1d_lambdaregE, align 8, !tbaa !11
  %1125 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %70, i32 0, i32 6
  %1126 = load ptr, ptr %1125, align 8, !tbaa !20
  %1127 = load i64, ptr %11, align 8, !tbaa !9
  %1128 = load i64, ptr %12, align 8, !tbaa !9
  %1129 = add nsw i64 %1127, %1128
  %1130 = load i64, ptr %22, align 8, !tbaa !9
  %1131 = add nsw i64 %1129, %1130
  %1132 = getelementptr inbounds ptr, ptr %1126, i64 %1131
  %1133 = load ptr, ptr %1132, align 8, !tbaa !5
  %1134 = load i64, ptr %22, align 8, !tbaa !9
  %1135 = getelementptr inbounds double, ptr %1133, i64 %1134
  store double %1124, ptr %1135, align 8, !tbaa !11
  br label %1136

1136:                                             ; preds = %1123
  %1137 = load i64, ptr %22, align 8, !tbaa !9
  %1138 = add nsw i64 %1137, 1
  store i64 %1138, ptr %22, align 8, !tbaa !9
  br label %1118, !llvm.loop !60

1139:                                             ; preds = %1118
  %1140 = load i64, ptr %42, align 8, !tbaa !9
  %1141 = load i64, ptr %12, align 8, !tbaa !9
  %1142 = add nsw i64 %1141, 1
  %1143 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9rmatrixqrEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %70, i64 noundef %1140, i64 noundef %1142, ptr noundef %71, ptr noundef %1143)
  %1144 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %1145 = trunc i8 %1144 to i1
  br i1 %1145, label %1146, label %1157

1146:                                             ; preds = %1139
  %1147 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %70, i32 0, i32 6
  %1148 = load ptr, ptr %1147, align 8, !tbaa !20
  %1149 = load i64, ptr %12, align 8, !tbaa !9
  %1150 = getelementptr inbounds ptr, ptr %1148, i64 %1149
  %1151 = load ptr, ptr %1150, align 8, !tbaa !5
  %1152 = load i64, ptr %12, align 8, !tbaa !9
  %1153 = getelementptr inbounds double, ptr %1151, i64 %1152
  %1154 = load double, ptr %1153, align 8, !tbaa !11
  %1155 = load ptr, ptr %16, align 8, !tbaa !5
  %1156 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1154, ptr noundef %1155)
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.392, double noundef %1156)
  br label %1157

1157:                                             ; preds = %1146, %1139
  %1158 = load i64, ptr %12, align 8, !tbaa !9
  %1159 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %1158, ptr noundef %31, ptr noundef %1159)
  %1160 = load i64, ptr %12, align 8, !tbaa !9
  %1161 = load i64, ptr %12, align 8, !tbaa !9
  %1162 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopycvElPKNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %1160, ptr noundef %70, i64 noundef %1161, ptr noundef %31, ptr noundef %1162)
  %1163 = load i64, ptr %12, align 8, !tbaa !9
  %1164 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixtrsvElPKNS_9ae_matrixEllbblPNS_9ae_vectorElPNS_8ae_stateE(i64 noundef %1163, ptr noundef %70, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %31, i64 noundef 0, ptr noundef %1164)
  %1165 = load i64, ptr %12, align 8, !tbaa !9
  %1166 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %1165, ptr noundef %30, ptr noundef %1166)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %1167

1167:                                             ; preds = %1183, %1157
  %1168 = load i64, ptr %22, align 8, !tbaa !9
  %1169 = load i64, ptr %12, align 8, !tbaa !9
  %1170 = sub nsw i64 %1169, 1
  %1171 = icmp sle i64 %1168, %1170
  br i1 %1171, label %1172, label %1186

1172:                                             ; preds = %1167
  %1173 = load i64, ptr %22, align 8, !tbaa !9
  %1174 = sitofp i64 %1173 to double
  %1175 = load i64, ptr %12, align 8, !tbaa !9
  %1176 = sub nsw i64 %1175, 1
  %1177 = sitofp i64 %1176 to double
  %1178 = fdiv double %1174, %1177
  %1179 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1180 = load ptr, ptr %1179, align 8, !tbaa !20
  %1181 = load i64, ptr %22, align 8, !tbaa !9
  %1182 = getelementptr inbounds double, ptr %1180, i64 %1181
  store double %1178, ptr %1182, align 8, !tbaa !11
  br label %1183

1183:                                             ; preds = %1172
  %1184 = load i64, ptr %22, align 8, !tbaa !9
  %1185 = add nsw i64 %1184, 1
  store i64 %1185, ptr %22, align 8, !tbaa !9
  br label %1167, !llvm.loop !61

1186:                                             ; preds = %1167
  %1187 = load i64, ptr %12, align 8, !tbaa !9
  %1188 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %30, ptr noundef %31, i64 noundef %1187, i64 noundef 2, double noundef 0.000000e+00, i64 noundef 2, double noundef 0.000000e+00, ptr noundef %67, ptr noundef %1188)
  %1189 = load i64, ptr %12, align 8, !tbaa !9
  %1190 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %1189, ptr noundef %32, ptr noundef %1190)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %1191

1191:                                             ; preds = %1209, %1186
  %1192 = load i64, ptr %22, align 8, !tbaa !9
  %1193 = load i64, ptr %12, align 8, !tbaa !9
  %1194 = sub nsw i64 %1193, 1
  %1195 = icmp sle i64 %1192, %1194
  br i1 %1195, label %1196, label %1212

1196:                                             ; preds = %1191
  %1197 = load i64, ptr %22, align 8, !tbaa !9
  %1198 = sitofp i64 %1197 to double
  %1199 = load i64, ptr %12, align 8, !tbaa !9
  %1200 = sub nsw i64 %1199, 1
  %1201 = sitofp i64 %1200 to double
  %1202 = fdiv double %1198, %1201
  %1203 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %67, double noundef %1202, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %1203)
  %1204 = load double, ptr %73, align 8, !tbaa !11
  %1205 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1206 = load ptr, ptr %1205, align 8, !tbaa !20
  %1207 = load i64, ptr %22, align 8, !tbaa !9
  %1208 = getelementptr inbounds double, ptr %1206, i64 %1207
  store double %1204, ptr %1208, align 8, !tbaa !11
  br label %1209

1209:                                             ; preds = %1196
  %1210 = load i64, ptr %22, align 8, !tbaa !9
  %1211 = add nsw i64 %1210, 1
  store i64 %1211, ptr %22, align 8, !tbaa !9
  br label %1191, !llvm.loop !62

1212:                                             ; preds = %1191
  br label %1213

1213:                                             ; preds = %1212, %985
  store double 0.000000e+00, ptr %40, align 8, !tbaa !11
  store i64 0, ptr %39, align 8, !tbaa !9
  %1214 = load ptr, ptr %15, align 8, !tbaa !5
  %1215 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1214, i32 0, i32 0
  store i64 1, ptr %1215, align 8, !tbaa !63
  %1216 = load ptr, ptr %15, align 8, !tbaa !5
  %1217 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1216, i32 0, i32 2
  store double 0.000000e+00, ptr %1217, align 8, !tbaa !65
  %1218 = load ptr, ptr %15, align 8, !tbaa !5
  %1219 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1218, i32 0, i32 5
  store double 0.000000e+00, ptr %1219, align 8, !tbaa !66
  %1220 = load ptr, ptr %15, align 8, !tbaa !5
  %1221 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1220, i32 0, i32 3
  store double 0.000000e+00, ptr %1221, align 8, !tbaa !67
  %1222 = load ptr, ptr %15, align 8, !tbaa !5
  %1223 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1222, i32 0, i32 4
  store double 0.000000e+00, ptr %1223, align 8, !tbaa !68
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %1224

1224:                                             ; preds = %1304, %1213
  %1225 = load i64, ptr %22, align 8, !tbaa !9
  %1226 = load i64, ptr %11, align 8, !tbaa !9
  %1227 = sub nsw i64 %1226, 1
  %1228 = icmp sle i64 %1225, %1227
  br i1 %1228, label %1229, label %1307

1229:                                             ; preds = %1224
  %1230 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %1231 = load ptr, ptr %1230, align 8, !tbaa !20
  %1232 = load i64, ptr %22, align 8, !tbaa !9
  %1233 = mul nsw i64 2, %1232
  %1234 = add nsw i64 %1233, 0
  %1235 = getelementptr inbounds double, ptr %1231, i64 %1234
  %1236 = load double, ptr %1235, align 8, !tbaa !11
  %1237 = load ptr, ptr %16, align 8, !tbaa !5
  %1238 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %67, double noundef %1236, ptr noundef %1237)
  %1239 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %1240 = load ptr, ptr %1239, align 8, !tbaa !20
  %1241 = load i64, ptr %22, align 8, !tbaa !9
  %1242 = mul nsw i64 2, %1241
  %1243 = add nsw i64 %1242, 1
  %1244 = getelementptr inbounds double, ptr %1240, i64 %1243
  %1245 = load double, ptr %1244, align 8, !tbaa !11
  %1246 = fsub double %1238, %1245
  store double %1246, ptr %27, align 8, !tbaa !11
  %1247 = load double, ptr %40, align 8, !tbaa !11
  %1248 = load double, ptr %27, align 8, !tbaa !11
  %1249 = load double, ptr %27, align 8, !tbaa !11
  %1250 = call double @llvm.fmuladd.f64(double %1248, double %1249, double %1247)
  store double %1250, ptr %40, align 8, !tbaa !11
  %1251 = load ptr, ptr %15, align 8, !tbaa !5
  %1252 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1251, i32 0, i32 2
  %1253 = load double, ptr %1252, align 8, !tbaa !65
  %1254 = load double, ptr %27, align 8, !tbaa !11
  %1255 = load ptr, ptr %16, align 8, !tbaa !5
  %1256 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1254, ptr noundef %1255)
  %1257 = fadd double %1253, %1256
  %1258 = load ptr, ptr %15, align 8, !tbaa !5
  %1259 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1258, i32 0, i32 2
  store double %1257, ptr %1259, align 8, !tbaa !65
  %1260 = load ptr, ptr %15, align 8, !tbaa !5
  %1261 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1260, i32 0, i32 3
  %1262 = load double, ptr %1261, align 8, !tbaa !67
  %1263 = load double, ptr %27, align 8, !tbaa !11
  %1264 = load ptr, ptr %16, align 8, !tbaa !5
  %1265 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1263, ptr noundef %1264)
  %1266 = fadd double %1262, %1265
  %1267 = load ptr, ptr %15, align 8, !tbaa !5
  %1268 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1267, i32 0, i32 3
  store double %1266, ptr %1268, align 8, !tbaa !67
  %1269 = load ptr, ptr %15, align 8, !tbaa !5
  %1270 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1269, i32 0, i32 5
  %1271 = load double, ptr %1270, align 8, !tbaa !66
  %1272 = load double, ptr %27, align 8, !tbaa !11
  %1273 = load ptr, ptr %16, align 8, !tbaa !5
  %1274 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1272, ptr noundef %1273)
  %1275 = load ptr, ptr %16, align 8, !tbaa !5
  %1276 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1271, double noundef %1274, ptr noundef %1275)
  %1277 = load ptr, ptr %15, align 8, !tbaa !5
  %1278 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1277, i32 0, i32 5
  store double %1276, ptr %1278, align 8, !tbaa !66
  %1279 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %1280 = load ptr, ptr %1279, align 8, !tbaa !20
  %1281 = load i64, ptr %22, align 8, !tbaa !9
  %1282 = getelementptr inbounds double, ptr %1280, i64 %1281
  %1283 = load double, ptr %1282, align 8, !tbaa !11
  %1284 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %1283, double noundef 0.000000e+00)
  br i1 %1284, label %1285, label %1303

1285:                                             ; preds = %1229
  %1286 = load ptr, ptr %15, align 8, !tbaa !5
  %1287 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1286, i32 0, i32 4
  %1288 = load double, ptr %1287, align 8, !tbaa !68
  %1289 = load double, ptr %27, align 8, !tbaa !11
  %1290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %1291 = load ptr, ptr %1290, align 8, !tbaa !20
  %1292 = load i64, ptr %22, align 8, !tbaa !9
  %1293 = getelementptr inbounds double, ptr %1291, i64 %1292
  %1294 = load double, ptr %1293, align 8, !tbaa !11
  %1295 = fdiv double %1289, %1294
  %1296 = load ptr, ptr %16, align 8, !tbaa !5
  %1297 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1295, ptr noundef %1296)
  %1298 = fadd double %1288, %1297
  %1299 = load ptr, ptr %15, align 8, !tbaa !5
  %1300 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1299, i32 0, i32 4
  store double %1298, ptr %1300, align 8, !tbaa !68
  %1301 = load i64, ptr %39, align 8, !tbaa !9
  %1302 = add nsw i64 %1301, 1
  store i64 %1302, ptr %39, align 8, !tbaa !9
  br label %1303

1303:                                             ; preds = %1285, %1229
  br label %1304

1304:                                             ; preds = %1303
  %1305 = load i64, ptr %22, align 8, !tbaa !9
  %1306 = add nsw i64 %1305, 1
  store i64 %1306, ptr %22, align 8, !tbaa !9
  br label %1224, !llvm.loop !69

1307:                                             ; preds = %1224
  %1308 = load ptr, ptr %15, align 8, !tbaa !5
  %1309 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1308, i32 0, i32 2
  %1310 = load double, ptr %1309, align 8, !tbaa !65
  %1311 = load i64, ptr %11, align 8, !tbaa !9
  %1312 = sitofp i64 %1311 to double
  %1313 = fdiv double %1310, %1312
  %1314 = load ptr, ptr %16, align 8, !tbaa !5
  %1315 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %1313, ptr noundef %1314)
  %1316 = load ptr, ptr %15, align 8, !tbaa !5
  %1317 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1316, i32 0, i32 2
  store double %1315, ptr %1317, align 8, !tbaa !65
  %1318 = load ptr, ptr %15, align 8, !tbaa !5
  %1319 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1318, i32 0, i32 3
  %1320 = load double, ptr %1319, align 8, !tbaa !67
  %1321 = load i64, ptr %11, align 8, !tbaa !9
  %1322 = sitofp i64 %1321 to double
  %1323 = fdiv double %1320, %1322
  %1324 = load ptr, ptr %15, align 8, !tbaa !5
  %1325 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1324, i32 0, i32 3
  store double %1323, ptr %1325, align 8, !tbaa !67
  %1326 = load ptr, ptr %15, align 8, !tbaa !5
  %1327 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1326, i32 0, i32 4
  %1328 = load double, ptr %1327, align 8, !tbaa !68
  %1329 = load i64, ptr %39, align 8, !tbaa !9
  %1330 = sitofp i64 %1329 to double
  %1331 = load ptr, ptr %16, align 8, !tbaa !5
  %1332 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %1330, double noundef 1.000000e+00, ptr noundef %1331)
  %1333 = fdiv double %1328, %1332
  %1334 = load ptr, ptr %15, align 8, !tbaa !5
  %1335 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1334, i32 0, i32 4
  store double %1333, ptr %1335, align 8, !tbaa !68
  %1336 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %1337 = trunc i8 %1336 to i1
  br i1 %1337, label %1338, label %1357

1338:                                             ; preds = %1307
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.393)
  %1339 = load ptr, ptr %15, align 8, !tbaa !5
  %1340 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1339, i32 0, i32 2
  %1341 = load double, ptr %1340, align 8, !tbaa !65
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.394, double noundef %1341)
  %1342 = load ptr, ptr %15, align 8, !tbaa !5
  %1343 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1342, i32 0, i32 5
  %1344 = load double, ptr %1343, align 8, !tbaa !66
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.395, double noundef %1344)
  %1345 = load ptr, ptr %15, align 8, !tbaa !5
  %1346 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1345, i32 0, i32 3
  %1347 = load double, ptr %1346, align 8, !tbaa !67
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.396, double noundef %1347)
  %1348 = load ptr, ptr %15, align 8, !tbaa !5
  %1349 = getelementptr inbounds %"struct.alglib_impl::spline1dfitreport", ptr %1348, i32 0, i32 4
  %1350 = load double, ptr %1349, align 8, !tbaa !68
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.397, double noundef %1350)
  %1351 = load double, ptr %40, align 8, !tbaa !11
  %1352 = load double, ptr %41, align 8, !tbaa !11
  %1353 = load ptr, ptr %16, align 8, !tbaa !5
  %1354 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %1352, double noundef 1.000000e+00, ptr noundef %1353)
  %1355 = fdiv double %1351, %1354
  %1356 = fsub double 1.000000e+00, %1355
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.398, double noundef %1356)
  br label %1357

1357:                                             ; preds = %1338, %1307
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %1358

1358:                                             ; preds = %1408, %1357
  %1359 = load i64, ptr %22, align 8, !tbaa !9
  %1360 = load i64, ptr %12, align 8, !tbaa !9
  %1361 = sub nsw i64 %1360, 1
  %1362 = icmp sle i64 %1359, %1361
  br i1 %1362, label %1363, label %1411

1363:                                             ; preds = %1358
  %1364 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1365 = load ptr, ptr %1364, align 8, !tbaa !20
  %1366 = load i64, ptr %22, align 8, !tbaa !9
  %1367 = getelementptr inbounds double, ptr %1365, i64 %1366
  %1368 = load double, ptr %1367, align 8, !tbaa !11
  %1369 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %29, i32 0, i32 6
  %1370 = load ptr, ptr %1369, align 8, !tbaa !20
  %1371 = getelementptr inbounds ptr, ptr %1370, i64 0
  %1372 = load ptr, ptr %1371, align 8, !tbaa !5
  %1373 = getelementptr inbounds double, ptr %1372, i64 0
  %1374 = load double, ptr %1373, align 8, !tbaa !11
  %1375 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1376 = load ptr, ptr %1375, align 8, !tbaa !20
  %1377 = load i64, ptr %22, align 8, !tbaa !9
  %1378 = getelementptr inbounds double, ptr %1376, i64 %1377
  %1379 = load double, ptr %1378, align 8, !tbaa !11
  %1380 = call double @llvm.fmuladd.f64(double %1374, double %1379, double %1368)
  %1381 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %29, i32 0, i32 6
  %1382 = load ptr, ptr %1381, align 8, !tbaa !20
  %1383 = getelementptr inbounds ptr, ptr %1382, i64 0
  %1384 = load ptr, ptr %1383, align 8, !tbaa !5
  %1385 = getelementptr inbounds double, ptr %1384, i64 1
  %1386 = load double, ptr %1385, align 8, !tbaa !11
  %1387 = fadd double %1380, %1386
  %1388 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1389 = load ptr, ptr %1388, align 8, !tbaa !20
  %1390 = load i64, ptr %22, align 8, !tbaa !9
  %1391 = getelementptr inbounds double, ptr %1389, i64 %1390
  store double %1387, ptr %1391, align 8, !tbaa !11
  %1392 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1393 = load ptr, ptr %1392, align 8, !tbaa !20
  %1394 = load i64, ptr %22, align 8, !tbaa !9
  %1395 = getelementptr inbounds double, ptr %1393, i64 %1394
  %1396 = load double, ptr %1395, align 8, !tbaa !11
  %1397 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %29, i32 0, i32 6
  %1398 = load ptr, ptr %1397, align 8, !tbaa !20
  %1399 = getelementptr inbounds ptr, ptr %1398, i64 0
  %1400 = load ptr, ptr %1399, align 8, !tbaa !5
  %1401 = getelementptr inbounds double, ptr %1400, i64 0
  %1402 = load double, ptr %1401, align 8, !tbaa !11
  %1403 = fadd double %1396, %1402
  %1404 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1405 = load ptr, ptr %1404, align 8, !tbaa !20
  %1406 = load i64, ptr %22, align 8, !tbaa !9
  %1407 = getelementptr inbounds double, ptr %1405, i64 %1406
  store double %1403, ptr %1407, align 8, !tbaa !11
  br label %1408

1408:                                             ; preds = %1363
  %1409 = load i64, ptr %22, align 8, !tbaa !9
  %1410 = add nsw i64 %1409, 1
  store i64 %1410, ptr %22, align 8, !tbaa !9
  br label %1358, !llvm.loop !70

1411:                                             ; preds = %1358
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %1412

1412:                                             ; preds = %1445, %1411
  %1413 = load i64, ptr %22, align 8, !tbaa !9
  %1414 = load i64, ptr %12, align 8, !tbaa !9
  %1415 = sub nsw i64 %1414, 1
  %1416 = icmp sle i64 %1413, %1415
  br i1 %1416, label %1417, label %1448

1417:                                             ; preds = %1412
  %1418 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1419 = load ptr, ptr %1418, align 8, !tbaa !20
  %1420 = load i64, ptr %22, align 8, !tbaa !9
  %1421 = getelementptr inbounds double, ptr %1419, i64 %1420
  %1422 = load double, ptr %1421, align 8, !tbaa !11
  %1423 = load double, ptr %21, align 8, !tbaa !11
  %1424 = load double, ptr %20, align 8, !tbaa !11
  %1425 = fsub double %1423, %1424
  %1426 = load double, ptr %20, align 8, !tbaa !11
  %1427 = call double @llvm.fmuladd.f64(double %1422, double %1425, double %1426)
  %1428 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1429 = load ptr, ptr %1428, align 8, !tbaa !20
  %1430 = load i64, ptr %22, align 8, !tbaa !9
  %1431 = getelementptr inbounds double, ptr %1429, i64 %1430
  store double %1427, ptr %1431, align 8, !tbaa !11
  %1432 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1433 = load ptr, ptr %1432, align 8, !tbaa !20
  %1434 = load i64, ptr %22, align 8, !tbaa !9
  %1435 = getelementptr inbounds double, ptr %1433, i64 %1434
  %1436 = load double, ptr %1435, align 8, !tbaa !11
  %1437 = load double, ptr %21, align 8, !tbaa !11
  %1438 = load double, ptr %20, align 8, !tbaa !11
  %1439 = fsub double %1437, %1438
  %1440 = fdiv double %1436, %1439
  %1441 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1442 = load ptr, ptr %1441, align 8, !tbaa !20
  %1443 = load i64, ptr %22, align 8, !tbaa !9
  %1444 = getelementptr inbounds double, ptr %1442, i64 %1443
  store double %1440, ptr %1444, align 8, !tbaa !11
  br label %1445

1445:                                             ; preds = %1417
  %1446 = load i64, ptr %22, align 8, !tbaa !9
  %1447 = add nsw i64 %1446, 1
  store i64 %1447, ptr %22, align 8, !tbaa !9
  br label %1412, !llvm.loop !71

1448:                                             ; preds = %1412
  %1449 = load i64, ptr %12, align 8, !tbaa !9
  %1450 = load ptr, ptr %14, align 8, !tbaa !5
  %1451 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPKNS_9ae_vectorES2_S2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %30, ptr noundef %31, ptr noundef %32, i64 noundef %1449, ptr noundef %1450, ptr noundef %1451)
  %1452 = load i8, ptr %63, align 1, !tbaa !17, !range !18, !noundef !19
  %1453 = trunc i8 %1452 to i1
  br i1 %1453, label %1454, label %1459

1454:                                             ; preds = %1448
  %1455 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  %1456 = load i64, ptr %68, align 8, !tbaa !9
  %1457 = sub nsw i64 %1455, %1456
  %1458 = trunc i64 %1457 to i32
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef @.str.399, i32 noundef %1458)
  br label %1459

1459:                                             ; preds = %1454, %1448
  %1460 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1460)
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %71) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %70) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %67) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %66) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %65) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #5
  call void @llvm.lifetime.end.p0(i64 624, ptr %62) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %55) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %54) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %51) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 2192, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %44) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 8, 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 32, ptr %17) #5
  ret void
}

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

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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr 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 void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl19ae_is_trace_enabledEPKc(ptr noundef) #2

declare noundef i64 @_ZN11alglib_impl12ae_tickcountEv() #2

declare void @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef, ...) #2

declare void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef double @_ZN11alglib_implL18spline1d_basiscalcEPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef double @_ZN11alglib_implL19spline1d_basisdiff2EPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef) #3

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

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

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

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

declare void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) #2

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

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

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

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

declare void @_ZN11alglib_impl14linlsqrsetcondEPNS_12linlsqrstateEddlPNS_8ae_stateE(ptr noundef, double noundef, double noundef, i64 noundef, ptr noundef) #2

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

declare noundef zeroext i1 @_ZN11alglib_impl16linlsqriterationEPNS_12linlsqrstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

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

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

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

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

declare void @_ZN11alglib_impl5raddvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef double @_ZN11alglib_implL18spline1d_basisdiffEPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef) #3

declare void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) #2

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

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

declare void @_ZN11alglib_impl11rmatrixtrsvElPKNS_9ae_matrixEllbblPNS_9ae_vectorElPNS_8ae_stateE(i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr 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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, 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 = !{!15, !15, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
!26 = !{!27, !10, i64 8}
!27 = !{!"_ZTSN11alglib_impl14spline1dbbasisE", !10, i64 0, !10, i64 8, !28, i64 16, !28, i64 176, !28, i64 336, !14, i64 496, !14, i64 560}
!28 = !{!"_ZTSN11alglib_impl19spline1dinterpolantE", !15, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !14, i64 96}
!29 = !{!30, !10, i64 328}
!30 = !{!"_ZTSN11alglib_impl12sparsematrixE", !14, i64 0, !14, i64 64, !14, i64 128, !14, i64 192, !14, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!31 = !{!30, !10, i64 336}
!32 = distinct !{!32, !22}
!33 = distinct !{!33, !22}
!34 = distinct !{!34, !22}
!35 = distinct !{!35, !22}
!36 = distinct !{!36, !22}
!37 = distinct !{!37, !22}
!38 = distinct !{!38, !22}
!39 = distinct !{!39, !22}
!40 = distinct !{!40, !22}
!41 = distinct !{!41, !22}
!42 = !{!43, !15, i64 1762}
!43 = !{!"_ZTSN11alglib_impl12linlsqrstateE", !44, i64 0, !14, i64 792, !14, i64 856, !10, i64 920, !10, i64 928, !10, i64 936, !14, i64 944, !14, i64 1008, !14, i64 1072, !14, i64 1136, !14, i64 1200, !14, i64 1264, !12, i64 1328, !12, i64 1336, !12, i64 1344, !12, i64 1352, !12, i64 1360, !12, i64 1368, !12, i64 1376, !12, i64 1384, !12, i64 1392, !12, i64 1400, !12, i64 1408, !12, i64 1416, !12, i64 1424, !12, i64 1432, !14, i64 1440, !12, i64 1504, !12, i64 1512, !12, i64 1520, !12, i64 1528, !14, i64 1536, !14, i64 1600, !14, i64 1664, !12, i64 1728, !12, i64 1736, !12, i64 1744, !10, i64 1752, !15, i64 1760, !15, i64 1761, !15, i64 1762, !15, i64 1763, !15, i64 1764, !15, i64 1765, !15, i64 1766, !10, i64 1768, !10, i64 1776, !10, i64 1784, !15, i64 1792, !15, i64 1793, !14, i64 1800, !14, i64 1864, !46, i64 1928}
!44 = !{!"_ZTSN11alglib_impl18normestimatorstateE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !14, i64 40, !14, i64 104, !14, i64 168, !14, i64 232, !45, i64 296, !14, i64 320, !14, i64 384, !14, i64 448, !15, i64 512, !15, i64 513, !12, i64 520, !46, i64 528}
!45 = !{!"_ZTSN11alglib_impl10hqrndstateE", !10, i64 0, !10, i64 8, !10, i64 16}
!46 = !{!"_ZTSN11alglib_impl10rcommstateE", !47, i64 0, !14, i64 8, !14, i64 72, !14, i64 136, !14, i64 200}
!47 = !{!"int", !7, i64 0}
!48 = distinct !{!48, !22}
!49 = distinct !{!49, !22}
!50 = !{!43, !15, i64 1763}
!51 = !{!43, !15, i64 1761}
!52 = distinct !{!52, !22}
!53 = distinct !{!53, !22}
!54 = distinct !{!54, !22}
!55 = distinct !{!55, !22}
!56 = distinct !{!56, !22}
!57 = distinct !{!57, !22}
!58 = distinct !{!58, !22}
!59 = distinct !{!59, !22}
!60 = distinct !{!60, !22}
!61 = distinct !{!61, !22}
!62 = distinct !{!62, !22}
!63 = !{!64, !10, i64 0}
!64 = !{!"_ZTSN11alglib_impl17spline1dfitreportE", !10, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40}
!65 = !{!64, !12, i64 16}
!66 = !{!64, !12, i64 40}
!67 = !{!64, !12, i64 24}
!68 = !{!64, !12, i64 32}
!69 = distinct !{!69, !22}
!70 = distinct !{!70, !22}
!71 = distinct !{!71, !22}


; 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 }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::linlsqrstate" = type { %"struct.alglib_impl::normestimatorstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, double, double, double, double, double, double, double, double, double, double, double, %"struct.alglib_impl::ae_vector", double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, i64, i8, i8, i8, i8, i8, i8, i8, i64, i64, i64, i8, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::normestimatorstate" = type { i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::hqrndstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, i8, double, %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::linlsqrreport" = type { i64, i64, i64 }
%"struct.alglib_impl::spline1dbbasis" = type { i64, i64, %"struct.alglib_impl::spline1dinterpolant", %"struct.alglib_impl::spline1dinterpolant", %"struct.alglib_impl::spline1dinterpolant", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::spline1dinterpolant" = type { i8, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.367 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.368 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.369 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.370 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.371 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.372 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.373 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.374 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.375 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.376 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.377 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.378 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.379 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.380 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.381 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.382 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.383 = external hidden unnamed_addr constant [83 x i8], align 1
@_ZN11alglib_implL18spline1d_lambdaregE = external hidden local_unnamed_addr global double, align 8
@.str.384 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.385 = external hidden unnamed_addr constant [51 x i8], align 1
@_ZN11alglib_implL16spline1d_cholregE = external hidden local_unnamed_addr global double, align 8
@.str.386 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.387 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.388 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.389 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.390 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.391 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.392 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.393 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.394 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.395 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.396 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.397 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.398 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.399 = external hidden unnamed_addr constant [18 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 void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11spline1dfitEPKNS_9ae_vectorES2_lldPNS_19spline1dinterpolantEPNS_17spline1dfitreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #3 {
  %9 = alloca %"struct.alglib_impl::ae_frame", 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_matrix", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %18 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %19 = alloca %"struct.alglib_impl::sparsematrix", 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 %"struct.alglib_impl::linlsqrstate", align 8
  %25 = alloca %"struct.alglib_impl::linlsqrreport", align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  %28 = alloca i64, align 8
  %29 = alloca %"struct.alglib_impl::ae_vector", align 8
  %30 = alloca %"struct.alglib_impl::ae_vector", align 8
  %31 = alloca i64, align 8
  %32 = alloca %"struct.alglib_impl::spline1dbbasis", align 8
  %33 = alloca %"struct.alglib_impl::ae_vector", align 8
  %34 = alloca %"struct.alglib_impl::ae_vector", align 8
  %35 = alloca %"struct.alglib_impl::spline1dinterpolant", align 8
  %36 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %37 = alloca %"struct.alglib_impl::ae_vector", align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 2192, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %29) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %30) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #6
  call void @llvm.lifetime.start.p0(i64 624, ptr nonnull %32) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %33) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %34) #6
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %35) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %36) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %37) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %40) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %7, ptr noundef nonnull %9)
  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(80) %13, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %17, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %18, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %19, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(2192) %24, i8 0, i64 2192, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %25, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %26, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %27, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %29, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %30, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(624) %32, i8 0, i64 624, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %33, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %34, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(160) %35, i8 0, i64 160, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %36, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %37, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %10, ptr noundef %0, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %11, ptr noundef %1, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl26_spline1dinterpolant_clearEPv(ptr noundef %5)
  call void @_ZN11alglib_impl24_spline1dfitreport_clearEPv(ptr noundef %6)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %17, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %18, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %19, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %20, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %21, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %22, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %23, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_linlsqrstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %24, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19_linlsqrreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %25, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %26, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %27, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %29, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %30, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl20_spline1dbbasis_initEPvPNS_8ae_stateEb(ptr noundef nonnull %32, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %33, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %34, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef nonnull %35, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %36, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %37, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  %41 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef nonnull @.str.367, ptr noundef %7)
  %42 = icmp sgt i64 %3, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef nonnull @.str.368, ptr noundef %7)
  %43 = load i64, ptr %10, align 8, !tbaa !5
  %44 = icmp sge i64 %43, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef nonnull @.str.369, ptr noundef %7)
  %45 = load i64, ptr %11, align 8, !tbaa !5
  %46 = icmp sge i64 %45, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %46, ptr noundef nonnull @.str.370, ptr noundef %7)
  %47 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %2, ptr noundef %7)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef nonnull @.str.371, ptr noundef %7)
  %48 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %2, ptr noundef %7)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef nonnull @.str.372, ptr noundef %7)
  %49 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %7)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef nonnull @.str.373, ptr noundef %7)
  %50 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %4, double noundef 0.000000e+00)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %50, ptr noundef nonnull @.str.374, ptr noundef %7)
  %51 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %3, i64 noundef 2, ptr noundef %7)
  %52 = sitofp i64 %2 to double
  %53 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %52, ptr noundef %7)
  %54 = fdiv double 1.000000e+00, %53
  %55 = sitofp i64 %51 to double
  %56 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %55, ptr noundef %7)
  %57 = fdiv double 1.000000e+00, %56
  %58 = call noundef zeroext i1 @_ZN11alglib_impl19ae_is_trace_enabledEPKc(ptr noundef nonnull @.str.375)
  br i1 %58, label %59, label %.critedge

59:                                               ; preds = %8
  %60 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.376)
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.377)
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.378)
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.377)
  %61 = trunc i64 %2 to i32
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.379, i32 noundef %61)
  %62 = trunc i64 %51 to i32
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.380, i32 noundef %62)
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.381, double noundef %4)
  %63 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  br label %.critedge

.critedge:                                        ; preds = %8, %59
  %.0520596 = phi i64 [ %60, %59 ], [ 0, %8 ]
  %.0 = phi i64 [ %63, %59 ], [ 0, %8 ]
  %64 = getelementptr inbounds i8, ptr %10, i64 56
  %65 = load ptr, ptr %64, align 8, !tbaa !13
  %66 = load double, ptr %65, align 8, !tbaa !14
  %.not.not619 = icmp sgt i64 %2, 1
  br i1 %.not.not619, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.critedge, %.lr.ph
  %.0522622 = phi double [ %70, %.lr.ph ], [ %66, %.critedge ]
  %.0524621 = phi double [ %74, %.lr.ph ], [ %66, %.critedge ]
  %.0533620 = phi i64 [ %75, %.lr.ph ], [ 1, %.critedge ]
  %67 = load ptr, ptr %64, align 8, !tbaa !13
  %68 = getelementptr inbounds double, ptr %67, i64 %.0533620
  %69 = load double, ptr %68, align 8, !tbaa !14
  %70 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %.0522622, double noundef %69, ptr noundef %7)
  %71 = load ptr, ptr %64, align 8, !tbaa !13
  %72 = getelementptr inbounds double, ptr %71, i64 %.0533620
  %73 = load double, ptr %72, align 8, !tbaa !14
  %74 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0524621, double noundef %73, ptr noundef %7)
  %75 = add nuw nsw i64 %.0533620, 1
  %exitcond.not = icmp eq i64 %75, %2
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph, %.critedge
  %.0524.lcssa = phi double [ %66, %.critedge ], [ %74, %.lr.ph ]
  %.0522.lcssa = phi double [ %66, %.critedge ], [ %70, %.lr.ph ]
  %76 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %.0522.lcssa, double noundef %.0524.lcssa)
  br i1 %76, label %77, label %87

77:                                               ; preds = %._crit_edge
  %78 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %.0522.lcssa, double noundef 0.000000e+00)
  br i1 %78, label %79, label %83

79:                                               ; preds = %77
  %80 = fmul double %.0522.lcssa, 5.000000e-01
  %81 = fadd double %80, -1.000000e+00
  %82 = call double @llvm.fmuladd.f64(double %.0522.lcssa, double 2.000000e+00, double 1.000000e+00)
  br label %87

83:                                               ; preds = %77
  %84 = call double @llvm.fmuladd.f64(double %.0522.lcssa, double 2.000000e+00, double -1.000000e+00)
  %85 = fmul double %.0522.lcssa, 5.000000e-01
  %86 = fadd double %85, 1.000000e+00
  br label %87

87:                                               ; preds = %79, %83, %._crit_edge
  %.1525 = phi double [ %82, %79 ], [ %86, %83 ], [ %.0524.lcssa, %._crit_edge ]
  %.1523 = phi double [ %81, %79 ], [ %84, %83 ], [ %.0522.lcssa, %._crit_edge ]
  %88 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %.1523, double noundef %.1525)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %88, ptr noundef nonnull @.str.382, ptr noundef %7)
  br i1 %58, label %89, label %93

89:                                               ; preds = %87
  %90 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  %91 = sub nsw i64 %90, %.0
  %92 = trunc i64 %91 to i32
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.383, i32 noundef %92, double noundef %.1523, double noundef %.1525)
  br label %93

93:                                               ; preds = %89, %87
  %94 = shl nsw i64 %2, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %94, ptr noundef %7)
  br i1 %41, label %.lr.ph627, label %._crit_edge628.thread

._crit_edge628.thread:                            ; preds = %93
  call void @_ZN11alglib_impl15buildpriorterm1EPNS_9ae_vectorElllldPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %2, i64 noundef 1, i64 noundef 1, i64 noundef 1, double noundef 0.000000e+00, ptr noundef nonnull %13, ptr noundef %7)
  br label %._crit_edge641

.lr.ph627:                                        ; preds = %93
  %95 = fsub double %.1525, %.1523
  %96 = getelementptr inbounds i8, ptr %12, i64 56
  %97 = getelementptr inbounds i8, ptr %11, i64 56
  br label %98

98:                                               ; preds = %.lr.ph627, %98
  %.1534625 = phi i64 [ 0, %.lr.ph627 ], [ %113, %98 ]
  %99 = load ptr, ptr %64, align 8, !tbaa !13
  %100 = getelementptr inbounds double, ptr %99, i64 %.1534625
  %101 = load double, ptr %100, align 8, !tbaa !14
  %102 = fsub double %101, %.1523
  %103 = fdiv double %102, %95
  %104 = load ptr, ptr %96, align 8, !tbaa !13
  %105 = shl nuw nsw i64 %.1534625, 1
  %106 = getelementptr inbounds double, ptr %104, i64 %105
  store double %103, ptr %106, align 8, !tbaa !14
  %107 = load ptr, ptr %97, align 8, !tbaa !13
  %108 = getelementptr inbounds double, ptr %107, i64 %.1534625
  %109 = load double, ptr %108, align 8, !tbaa !14
  %110 = load ptr, ptr %96, align 8, !tbaa !13
  %111 = or disjoint i64 %105, 1
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  store double %109, ptr %112, align 8, !tbaa !14
  %113 = add nuw nsw i64 %.1534625, 1
  %exitcond818.not = icmp eq i64 %113, %2
  br i1 %exitcond818.not, label %._crit_edge628, label %98, !llvm.loop !18

._crit_edge628:                                   ; preds = %98
  call void @_ZN11alglib_impl15buildpriorterm1EPNS_9ae_vectorElllldPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %2, i64 noundef 1, i64 noundef 1, i64 noundef 1, double noundef 0.000000e+00, ptr noundef nonnull %13, ptr noundef %7)
  br i1 %41, label %.lr.ph633, label %._crit_edge641

.lr.ph633:                                        ; preds = %._crit_edge628
  %114 = getelementptr inbounds i8, ptr %11, i64 56
  %115 = load ptr, ptr %114, align 8, !tbaa !13
  %xtraiter = and i64 %2, 7
  %116 = icmp ult i64 %2, 8
  br i1 %116, label %._crit_edge634.unr-lcssa, label %.lr.ph633.new

.lr.ph633.new:                                    ; preds = %.lr.ph633
  %unroll_iter = and i64 %2, 9223372036854775800
  br label %117

117:                                              ; preds = %117, %.lr.ph633.new
  %.2535631 = phi i64 [ 0, %.lr.ph633.new ], [ %149, %117 ]
  %.0553630 = phi double [ 0.000000e+00, %.lr.ph633.new ], [ %148, %117 ]
  %niter = phi i64 [ 0, %.lr.ph633.new ], [ %niter.next.7, %117 ]
  %118 = getelementptr inbounds double, ptr %115, i64 %.2535631
  %119 = load double, ptr %118, align 8, !tbaa !14
  %120 = fadd double %.0553630, %119
  %121 = or disjoint i64 %.2535631, 1
  %122 = getelementptr inbounds double, ptr %115, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !14
  %124 = fadd double %120, %123
  %125 = or disjoint i64 %.2535631, 2
  %126 = getelementptr inbounds double, ptr %115, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !14
  %128 = fadd double %124, %127
  %129 = or disjoint i64 %.2535631, 3
  %130 = getelementptr inbounds double, ptr %115, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !14
  %132 = fadd double %128, %131
  %133 = or disjoint i64 %.2535631, 4
  %134 = getelementptr inbounds double, ptr %115, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !14
  %136 = fadd double %132, %135
  %137 = or disjoint i64 %.2535631, 5
  %138 = getelementptr inbounds double, ptr %115, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !14
  %140 = fadd double %136, %139
  %141 = or disjoint i64 %.2535631, 6
  %142 = getelementptr inbounds double, ptr %115, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !14
  %144 = fadd double %140, %143
  %145 = or disjoint i64 %.2535631, 7
  %146 = getelementptr inbounds double, ptr %115, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !14
  %148 = fadd double %144, %147
  %149 = add nuw nsw i64 %.2535631, 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_edge634.unr-lcssa, label %117, !llvm.loop !19

._crit_edge634.unr-lcssa:                         ; preds = %117, %.lr.ph633
  %.lcssa907.ph = phi double [ poison, %.lr.ph633 ], [ %148, %117 ]
  %.2535631.unr = phi i64 [ 0, %.lr.ph633 ], [ %149, %117 ]
  %.0553630.unr = phi double [ 0.000000e+00, %.lr.ph633 ], [ %148, %117 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge634, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge634.unr-lcssa, %.epil.preheader
  %.2535631.epil = phi i64 [ %153, %.epil.preheader ], [ %.2535631.unr, %._crit_edge634.unr-lcssa ]
  %.0553630.epil = phi double [ %152, %.epil.preheader ], [ %.0553630.unr, %._crit_edge634.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge634.unr-lcssa ]
  %150 = getelementptr inbounds double, ptr %115, i64 %.2535631.epil
  %151 = load double, ptr %150, align 8, !tbaa !14
  %152 = fadd double %.0553630.epil, %151
  %153 = add nuw nsw i64 %.2535631.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_edge634, label %.epil.preheader, !llvm.loop !20

._crit_edge634:                                   ; preds = %.epil.preheader, %._crit_edge634.unr-lcssa
  %.lcssa907 = phi double [ %.lcssa907.ph, %._crit_edge634.unr-lcssa ], [ %152, %.epil.preheader ]
  %154 = fdiv double %.lcssa907, %52
  br i1 %41, label %.lr.ph640, label %._crit_edge641

.lr.ph640:                                        ; preds = %._crit_edge634
  %155 = getelementptr inbounds i8, ptr %11, i64 56
  br label %156

156:                                              ; preds = %.lr.ph640, %156
  %.3536638 = phi i64 [ 0, %.lr.ph640 ], [ %163, %156 ]
  %.0548637 = phi double [ 0.000000e+00, %.lr.ph640 ], [ %162, %156 ]
  %157 = load ptr, ptr %155, align 8, !tbaa !13
  %158 = getelementptr inbounds double, ptr %157, i64 %.3536638
  %159 = load double, ptr %158, align 8, !tbaa !14
  %160 = fsub double %159, %154
  %161 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %160, ptr noundef %7)
  %162 = fadd double %.0548637, %161
  %163 = add nuw nsw i64 %.3536638, 1
  %exitcond820.not = icmp eq i64 %163, %2
  br i1 %exitcond820.not, label %._crit_edge641, label %156, !llvm.loop !22

._crit_edge641:                                   ; preds = %156, %._crit_edge628, %._crit_edge628.thread, %._crit_edge634
  %.0548.lcssa = phi double [ 0.000000e+00, %._crit_edge634 ], [ 0.000000e+00, %._crit_edge628.thread ], [ 0.000000e+00, %._crit_edge628 ], [ %162, %156 ]
  %164 = add nsw i64 %51, %2
  %165 = add nsw i64 %164, %51
  %166 = icmp sgt i64 %51, 3
  br i1 %166, label %167, label %488

167:                                              ; preds = %._crit_edge641
  br i1 %58, label %168, label %170

168:                                              ; preds = %167
  %169 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  br label %170

170:                                              ; preds = %168, %167
  %.1 = phi i64 [ %169, %168 ], [ %.0, %167 ]
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %165, double noundef 0.000000e+00, ptr noundef nonnull %20, ptr noundef %7)
  call void @_ZN11alglib_implL19spline1d_bbasisinitEPNS_14spline1dbbasisElPNS_8ae_stateE(ptr noundef nonnull %32, i64 noundef %51, ptr noundef %7)
  %171 = shl nsw i64 %164, 1
  %172 = getelementptr inbounds i8, ptr %32, i64 8
  %173 = load i64, ptr %172, align 8, !tbaa !23
  %174 = mul nsw i64 %171, %173
  %175 = add nsw i64 %174, %51
  %176 = getelementptr inbounds i8, ptr %17, i64 328
  store i64 %165, ptr %176, align 8, !tbaa !26
  %177 = getelementptr inbounds i8, ptr %17, i64 336
  store i64 %51, ptr %177, align 8, !tbaa !28
  %178 = add nsw i64 %165, 1
  %179 = getelementptr inbounds i8, ptr %17, i64 128
  call void @_ZN11alglib_impl7iallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %178, ptr noundef nonnull %179, ptr noundef %7)
  %180 = getelementptr inbounds i8, ptr %17, i64 64
  call void @_ZN11alglib_impl7iallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %175, ptr noundef nonnull %180, ptr noundef %7)
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %175, ptr noundef nonnull %17, ptr noundef %7)
  %181 = getelementptr inbounds i8, ptr %17, i64 184
  %182 = load ptr, ptr %181, align 8, !tbaa !13
  store i64 0, ptr %182, align 8, !tbaa !29
  br i1 %41, label %.lr.ph689, label %..preheader610_crit_edge

..preheader610_crit_edge:                         ; preds = %170
  %.pre851 = add nsw i64 %51, -1
  br label %.lr.ph703

.lr.ph689:                                        ; preds = %170
  %183 = getelementptr inbounds i8, ptr %12, i64 56
  %184 = add nsw i64 %51, -1
  %185 = uitofp nneg i64 %184 to double
  %186 = getelementptr inbounds i8, ptr %17, i64 120
  %187 = getelementptr inbounds i8, ptr %17, i64 56
  %188 = getelementptr inbounds i8, ptr %20, i64 56
  br label %192

.lr.ph703:                                        ; preds = %._crit_edge682, %..preheader610_crit_edge
  %.pre-phi = phi i64 [ %.pre851, %..preheader610_crit_edge ], [ %184, %._crit_edge682 ]
  %.0529.lcssa = phi i64 [ 0, %..preheader610_crit_edge ], [ %.1530.lcssa, %._crit_edge682 ]
  %.0526.lcssa = phi i64 [ 0, %..preheader610_crit_edge ], [ %2, %._crit_edge682 ]
  %189 = getelementptr inbounds i8, ptr %17, i64 120
  %190 = uitofp nneg i64 %.pre-phi to double
  %191 = getelementptr inbounds i8, ptr %17, i64 56
  %smax = call i64 @llvm.smax.i64(i64 %51, i64 1)
  br label %232

192:                                              ; preds = %.lr.ph689, %._crit_edge682
  %.0526687 = phi i64 [ 0, %.lr.ph689 ], [ %228, %._crit_edge682 ]
  %.0529686 = phi i64 [ 0, %.lr.ph689 ], [ %.1530.lcssa, %._crit_edge682 ]
  %193 = load ptr, ptr %183, align 8, !tbaa !13
  %194 = shl nuw nsw i64 %.0526687, 1
  %195 = getelementptr inbounds double, ptr %193, i64 %194
  %196 = load double, ptr %195, align 8, !tbaa !14
  %197 = fmul double %196, %185
  %198 = call noundef double @_ZN11alglib_impl8boundvalEdddPNS_8ae_stateE(double noundef %197, double noundef 0.000000e+00, double noundef %185, ptr noundef %7)
  %199 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %198, ptr noundef %7)
  %200 = load i64, ptr %172, align 8, !tbaa !23
  %.neg602 = add i64 %199, 1
  %201 = sub i64 %.neg602, %200
  %202 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %201, i64 noundef 0, ptr noundef %7)
  %203 = load i64, ptr %172, align 8, !tbaa !23
  %204 = add i64 %203, %199
  %205 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %204, i64 noundef %184, ptr noundef %7)
  %.not589677 = icmp sgt i64 %202, %205
  br i1 %.not589677, label %._crit_edge682, label %.lr.ph681.preheader

.lr.ph681.preheader:                              ; preds = %192
  %206 = add i64 %205, 1
  %207 = add i64 %206, %.0529686
  %208 = sub i64 %207, %202
  br label %.lr.ph681

.lr.ph681:                                        ; preds = %.lr.ph681.preheader, %.lr.ph681
  %.1530679 = phi i64 [ %218, %.lr.ph681 ], [ %.0529686, %.lr.ph681.preheader ]
  %.0538678 = phi i64 [ %219, %.lr.ph681 ], [ %202, %.lr.ph681.preheader ]
  %209 = load ptr, ptr %186, align 8, !tbaa !13
  %210 = getelementptr inbounds i64, ptr %209, i64 %.1530679
  store i64 %.0538678, ptr %210, align 8, !tbaa !29
  %211 = load ptr, ptr %183, align 8, !tbaa !13
  %212 = getelementptr inbounds double, ptr %211, i64 %194
  %213 = load double, ptr %212, align 8, !tbaa !14
  %214 = call noundef double @_ZN11alglib_implL18spline1d_basiscalcEPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef nonnull %32, i64 noundef %.0538678, double noundef %213, ptr noundef %7)
  %215 = fmul double %54, %214
  %216 = load ptr, ptr %187, align 8, !tbaa !13
  %217 = getelementptr inbounds double, ptr %216, i64 %.1530679
  store double %215, ptr %217, align 8, !tbaa !14
  %218 = add i64 %.1530679, 1
  %219 = add nsw i64 %.0538678, 1
  %exitcond829.not = icmp eq i64 %218, %208
  br i1 %exitcond829.not, label %._crit_edge682, label %.lr.ph681, !llvm.loop !30

._crit_edge682:                                   ; preds = %.lr.ph681, %192
  %.1530.lcssa = phi i64 [ %.0529686, %192 ], [ %208, %.lr.ph681 ]
  %220 = load ptr, ptr %183, align 8, !tbaa !13
  %221 = or disjoint i64 %194, 1
  %222 = getelementptr inbounds double, ptr %220, i64 %221
  %223 = load double, ptr %222, align 8, !tbaa !14
  %224 = fmul double %54, %223
  %225 = load ptr, ptr %188, align 8, !tbaa !13
  %226 = getelementptr inbounds double, ptr %225, i64 %.0526687
  store double %224, ptr %226, align 8, !tbaa !14
  %227 = load ptr, ptr %181, align 8, !tbaa !13
  %228 = add nuw nsw i64 %.0526687, 1
  %229 = getelementptr inbounds i64, ptr %227, i64 %228
  store i64 %.1530.lcssa, ptr %229, align 8, !tbaa !29
  %exitcond830.not = icmp eq i64 %228, %2
  br i1 %exitcond830.not, label %.lr.ph703, label %192, !llvm.loop !31

.lr.ph711:                                        ; preds = %._crit_edge697
  %230 = getelementptr inbounds i8, ptr %17, i64 120
  %231 = getelementptr inbounds i8, ptr %17, i64 56
  %.pre848 = load double, ptr @_ZN11alglib_implL18spline1d_lambdaregE, align 8, !tbaa !14
  %xtraiter936 = and i64 %smax, 1
  %unroll_iter941 = and i64 %smax, 9223372036854775806
  br label %255

232:                                              ; preds = %.lr.ph703, %._crit_edge697
  %.1527702 = phi i64 [ %.0526.lcssa, %.lr.ph703 ], [ %253, %._crit_edge697 ]
  %.2531701 = phi i64 [ %.0529.lcssa, %.lr.ph703 ], [ %.3532.lcssa, %._crit_edge697 ]
  %.5700 = phi i64 [ 0, %.lr.ph703 ], [ %.neg600, %._crit_edge697 ]
  %233 = load i64, ptr %172, align 8, !tbaa !23
  %.neg600 = add nuw nsw i64 %.5700, 1
  %234 = sub i64 %.neg600, %233
  %235 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %234, i64 noundef 0, ptr noundef %7)
  %236 = load i64, ptr %172, align 8, !tbaa !23
  %237 = add nsw i64 %.5700, -1
  %238 = add i64 %237, %236
  %239 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %238, i64 noundef %.pre-phi, ptr noundef %7)
  %.not588692 = icmp sgt i64 %235, %239
  br i1 %.not588692, label %._crit_edge697, label %.lr.ph696

.lr.ph696:                                        ; preds = %232
  %240 = uitofp nneg i64 %.5700 to double
  %241 = fdiv double %240, %190
  br label %242

242:                                              ; preds = %.lr.ph696, %242
  %.3532694 = phi i64 [ %.2531701, %.lr.ph696 ], [ %250, %242 ]
  %.1539693 = phi i64 [ %235, %.lr.ph696 ], [ %251, %242 ]
  %243 = load ptr, ptr %189, align 8, !tbaa !13
  %244 = getelementptr inbounds i64, ptr %243, i64 %.3532694
  store i64 %.1539693, ptr %244, align 8, !tbaa !29
  %245 = call noundef double @_ZN11alglib_implL19spline1d_basisdiff2EPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef nonnull %32, i64 noundef %.1539693, double noundef %241, ptr noundef %7)
  %246 = fmul double %57, %245
  %247 = fmul double %246, %4
  %248 = load ptr, ptr %191, align 8, !tbaa !13
  %249 = getelementptr inbounds double, ptr %248, i64 %.3532694
  store double %247, ptr %249, align 8, !tbaa !14
  %250 = add nsw i64 %.3532694, 1
  %251 = add i64 %.1539693, 1
  %exitcond831.not = icmp eq i64 %.1539693, %239
  br i1 %exitcond831.not, label %._crit_edge697, label %242, !llvm.loop !32

._crit_edge697:                                   ; preds = %242, %232
  %.3532.lcssa = phi i64 [ %.2531701, %232 ], [ %250, %242 ]
  %252 = load ptr, ptr %181, align 8, !tbaa !13
  %253 = add nuw nsw i64 %.1527702, 1
  %254 = getelementptr inbounds i64, ptr %252, i64 %253
  store i64 %.3532.lcssa, ptr %254, align 8, !tbaa !29
  %exitcond832.not = icmp eq i64 %.neg600, %smax
  br i1 %exitcond832.not, label %.lr.ph711, label %232, !llvm.loop !33

255:                                              ; preds = %255, %.lr.ph711
  %.2528710 = phi i64 [ %253, %.lr.ph711 ], [ %271, %255 ]
  %.4709 = phi i64 [ %.3532.lcssa, %.lr.ph711 ], [ %269, %255 ]
  %.6708 = phi i64 [ 0, %.lr.ph711 ], [ %273, %255 ]
  %niter942 = phi i64 [ 0, %.lr.ph711 ], [ %niter942.next.1, %255 ]
  %256 = load ptr, ptr %230, align 8, !tbaa !13
  %257 = getelementptr inbounds i64, ptr %256, i64 %.4709
  store i64 %.6708, ptr %257, align 8, !tbaa !29
  %258 = load ptr, ptr %231, align 8, !tbaa !13
  %259 = getelementptr inbounds double, ptr %258, i64 %.4709
  store double %.pre848, ptr %259, align 8, !tbaa !14
  %260 = add nsw i64 %.4709, 1
  %261 = load ptr, ptr %181, align 8, !tbaa !13
  %262 = getelementptr inbounds i64, ptr %261, i64 %.2528710
  %263 = getelementptr inbounds i8, ptr %262, i64 8
  store i64 %260, ptr %263, align 8, !tbaa !29
  %264 = or disjoint i64 %.6708, 1
  %265 = load ptr, ptr %230, align 8, !tbaa !13
  %266 = getelementptr inbounds i64, ptr %265, i64 %260
  store i64 %264, ptr %266, align 8, !tbaa !29
  %267 = load ptr, ptr %231, align 8, !tbaa !13
  %268 = getelementptr inbounds double, ptr %267, i64 %260
  store double %.pre848, ptr %268, align 8, !tbaa !14
  %269 = add nsw i64 %.4709, 2
  %270 = load ptr, ptr %181, align 8, !tbaa !13
  %271 = add nuw nsw i64 %.2528710, 2
  %272 = getelementptr inbounds i64, ptr %270, i64 %271
  store i64 %269, ptr %272, align 8, !tbaa !29
  %273 = add nuw nsw i64 %.6708, 2
  %niter942.next.1 = add i64 %niter942, 2
  %niter942.ncmp.1 = icmp eq i64 %niter942.next.1, %unroll_iter941
  br i1 %niter942.ncmp.1, label %._crit_edge712.unr-lcssa, label %255, !llvm.loop !34

._crit_edge712.unr-lcssa:                         ; preds = %255
  %lcmp.mod938.not = icmp eq i64 %xtraiter936, 0
  br i1 %lcmp.mod938.not, label %._crit_edge712, label %._crit_edge712.epilog-lcssa

._crit_edge712.epilog-lcssa:                      ; preds = %._crit_edge712.unr-lcssa
  %274 = load ptr, ptr %230, align 8, !tbaa !13
  %275 = getelementptr inbounds i64, ptr %274, i64 %269
  store i64 %273, ptr %275, align 8, !tbaa !29
  %276 = load ptr, ptr %231, align 8, !tbaa !13
  %277 = getelementptr inbounds double, ptr %276, i64 %269
  store double %.pre848, ptr %277, align 8, !tbaa !14
  %278 = add nsw i64 %269, 1
  %279 = load ptr, ptr %181, align 8, !tbaa !13
  %280 = add nuw nsw i64 %271, 1
  %281 = getelementptr inbounds i64, ptr %279, i64 %280
  store i64 %278, ptr %281, align 8, !tbaa !29
  br label %._crit_edge712

._crit_edge712:                                   ; preds = %._crit_edge712.unr-lcssa, %._crit_edge712.epilog-lcssa
  %.4709.lcssa = phi i64 [ %260, %._crit_edge712.unr-lcssa ], [ %269, %._crit_edge712.epilog-lcssa ]
  %.lcssa903 = phi i64 [ %271, %._crit_edge712.unr-lcssa ], [ %280, %._crit_edge712.epilog-lcssa ]
  %282 = load i64, ptr %176, align 8, !tbaa !26
  %283 = icmp eq i64 %.lcssa903, %282
  %284 = icmp slt i64 %.4709.lcssa, %175
  %285 = select i1 %283, i1 %284, i1 false
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %285, ptr noundef nonnull @.str.384, ptr noundef %7)
  call void @_ZN11alglib_impl22sparsecreatecrsinplaceEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %17, ptr noundef %7)
  call void @_ZN11alglib_impl22sparsecopytransposecrsEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef %7)
  br i1 %58, label %286, label %.preheader608.lr.ph

286:                                              ; preds = %._crit_edge712
  %287 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  %288 = sub nsw i64 %287, %.1
  %289 = trunc i64 %288 to i32
  %290 = load ptr, ptr %181, align 8, !tbaa !13
  %291 = load i64, ptr %176, align 8, !tbaa !26
  %292 = getelementptr inbounds i64, ptr %290, i64 %291
  %293 = load i64, ptr %292, align 8, !tbaa !29
  %294 = trunc i64 %293 to i32
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.385, i32 noundef %289, i32 noundef %294)
  %295 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  br label %.preheader608.lr.ph

.preheader608.lr.ph:                              ; preds = %286, %._crit_edge712
  %.2 = phi i64 [ %295, %286 ], [ %.1, %._crit_edge712 ]
  %296 = load i64, ptr %172, align 8, !tbaa !23
  %297 = shl i64 %296, 1
  %298 = add i64 %297, -2
  call void @_ZN11alglib_impl19sparsecreatesksbandElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %51, i64 noundef %51, i64 noundef %298, ptr noundef nonnull %19, ptr noundef %7)
  %299 = getelementptr inbounds i8, ptr %26, i64 56
  %300 = getelementptr inbounds i8, ptr %29, i64 56
  %301 = getelementptr inbounds i8, ptr %27, i64 56
  %302 = getelementptr inbounds i8, ptr %30, i64 56
  %smax835 = call i64 @llvm.smax.i64(i64 %51, i64 1)
  br label %.preheader608

.preheader608:                                    ; preds = %.preheader608.lr.ph, %._crit_edge741
  %.7745 = phi i64 [ 0, %.preheader608.lr.ph ], [ %341, %._crit_edge741 ]
  %.0543744 = phi double [ 0.000000e+00, %.preheader608.lr.ph ], [ %.1544.lcssa, %._crit_edge741 ]
  %303 = add nsw i64 %.7745, %298
  %304 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %303, i64 noundef %.pre-phi, ptr noundef %7)
  %.not587737 = icmp sgt i64 %.7745, %304
  br i1 %.not587737, label %._crit_edge741, label %.lr.ph740

.lr.ph740:                                        ; preds = %.preheader608, %338
  %.2540739 = phi i64 [ %339, %338 ], [ %.7745, %.preheader608 ]
  %.1544738 = phi double [ %.2545, %338 ], [ %.0543744, %.preheader608 ]
  call void @_ZN11alglib_impl22sparsegetcompressedrowEPKNS_12sparsematrixElPNS_9ae_vectorES4_PlPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %.7745, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef nonnull %28, ptr noundef %7)
  call void @_ZN11alglib_impl22sparsegetcompressedrowEPKNS_12sparsematrixElPNS_9ae_vectorES4_PlPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %.2540739, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef nonnull %31, ptr noundef %7)
  %305 = load i64, ptr %28, align 8, !tbaa !29
  %306 = load i64, ptr %31, align 8
  %307 = icmp eq i64 %306, 0
  %308 = icmp eq i64 %305, 0
  %or.cond715727732 = select i1 %308, i1 true, i1 %307
  br i1 %or.cond715727732, label %.outer605._crit_edge, label %.lr.ph717.lr.ph.lr.ph

.lr.ph717.lr.ph.lr.ph:                            ; preds = %.lr.ph740
  %309 = load ptr, ptr %299, align 8, !tbaa !13
  %310 = load ptr, ptr %300, align 8, !tbaa !13
  %311 = load ptr, ptr %301, align 8
  %312 = load ptr, ptr %302, align 8
  br label %.lr.ph717.lr.ph

.lr.ph717.lr.ph:                                  ; preds = %.lr.ph717.lr.ph.lr.ph, %.outer604
  %.0547.ph735 = phi i64 [ 0, %.lr.ph717.lr.ph.lr.ph ], [ %330, %.outer604 ]
  %.0552.ph734 = phi i64 [ 0, %.lr.ph717.lr.ph.lr.ph ], [ %331, %.outer604 ]
  %.0554.ph733 = phi double [ 0.000000e+00, %.lr.ph717.lr.ph.lr.ph ], [ %329, %.outer604 ]
  br label %.lr.ph717.split.preheader

.lr.ph717.split.preheader:                        ; preds = %.outer605, %.lr.ph717.lr.ph
  %.0547.ph607729 = phi i64 [ %.0547.ph735, %.lr.ph717.lr.ph ], [ %.0547716, %.outer605 ]
  %.0552.ph606728 = phi i64 [ %.0552.ph734, %.lr.ph717.lr.ph ], [ %322, %.outer605 ]
  %313 = getelementptr inbounds i64, ptr %310, i64 %.0552.ph606728
  %314 = load i64, ptr %313, align 8, !tbaa !29
  br label %.lr.ph717.split

.lr.ph717.split:                                  ; preds = %.lr.ph717.split.preheader, %318
  %.0547716 = phi i64 [ %319, %318 ], [ %.0547.ph607729, %.lr.ph717.split.preheader ]
  %315 = getelementptr inbounds i64, ptr %309, i64 %.0547716
  %316 = load i64, ptr %315, align 8, !tbaa !29
  %317 = icmp slt i64 %316, %314
  br i1 %317, label %318, label %.split.us

318:                                              ; preds = %.lr.ph717.split
  %319 = add nsw i64 %.0547716, 1
  %320 = icmp eq i64 %319, %305
  br i1 %320, label %.outer605._crit_edge, label %.lr.ph717.split, !llvm.loop !35

.split.us:                                        ; preds = %.lr.ph717.split
  %321 = icmp sgt i64 %316, %314
  br i1 %321, label %.outer605, label %.outer604

.outer605:                                        ; preds = %.split.us
  %322 = add nsw i64 %.0552.ph606728, 1
  %323 = icmp eq i64 %322, %306
  %324 = icmp eq i64 %.0547716, %305
  %or.cond715 = select i1 %324, i1 true, i1 %323
  br i1 %or.cond715, label %.outer605._crit_edge, label %.lr.ph717.split.preheader, !llvm.loop !35

.outer604:                                        ; preds = %.split.us
  %325 = getelementptr inbounds double, ptr %311, i64 %.0547716
  %326 = load double, ptr %325, align 8, !tbaa !14
  %327 = getelementptr inbounds double, ptr %312, i64 %.0552.ph606728
  %328 = load double, ptr %327, align 8, !tbaa !14
  %329 = call double @llvm.fmuladd.f64(double %326, double %328, double %.0554.ph733)
  %330 = add nsw i64 %.0547716, 1
  %331 = add nsw i64 %.0552.ph606728, 1
  %332 = icmp eq i64 %331, %306
  %333 = icmp eq i64 %330, %305
  %or.cond715727 = select i1 %333, i1 true, i1 %332
  br i1 %or.cond715727, label %.outer605._crit_edge, label %.lr.ph717.lr.ph, !llvm.loop !35

.outer605._crit_edge:                             ; preds = %.outer604, %.outer605, %318, %.lr.ph740
  %.0554.ph.lcssa = phi double [ 0.000000e+00, %.lr.ph740 ], [ %.0554.ph733, %318 ], [ %.0554.ph733, %.outer605 ], [ %329, %.outer604 ]
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %.7745, i64 noundef %.2540739, double noundef %.0554.ph.lcssa, ptr noundef %7)
  %334 = icmp eq i64 %.7745, %.2540739
  br i1 %334, label %335, label %338

335:                                              ; preds = %.outer605._crit_edge
  %336 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.0554.ph.lcssa, ptr noundef %7)
  %337 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.1544738, double noundef %336, ptr noundef %7)
  br label %338

338:                                              ; preds = %.outer605._crit_edge, %335
  %.2545 = phi double [ %337, %335 ], [ %.1544738, %.outer605._crit_edge ]
  %339 = add nuw nsw i64 %.2540739, 1
  %340 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %303, i64 noundef %.pre-phi, ptr noundef %7)
  %.not587.not = icmp slt i64 %.2540739, %340
  br i1 %.not587.not, label %.lr.ph740, label %._crit_edge741, !llvm.loop !36

._crit_edge741:                                   ; preds = %338, %.preheader608
  %.1544.lcssa = phi double [ %.0543744, %.preheader608 ], [ %.2545, %338 ]
  %341 = add nuw nsw i64 %.7745, 1
  %exitcond836.not = icmp eq i64 %341, %smax835
  br i1 %exitcond836.not, label %._crit_edge746, label %.preheader608, !llvm.loop !37

._crit_edge746:                                   ; preds = %._crit_edge741
  %342 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %.1544.lcssa, double noundef 1.000000e+00, ptr noundef %7)
  %343 = load double, ptr @_ZN11alglib_implL16spline1d_cholregE, align 8, !tbaa !14
  br label %.lr.ph751.preheader

.lr.ph751.preheader:                              ; preds = %.lr.ph751.preheader.backedge, %._crit_edge746
  %.0546 = phi double [ %343, %._crit_edge746 ], [ %350, %.lr.ph751.preheader.backedge ]
  br label %.lr.ph751

.lr.ph751:                                        ; preds = %.lr.ph751.preheader, %.lr.ph751
  %.8749 = phi i64 [ %346, %.lr.ph751 ], [ 0, %.lr.ph751.preheader ]
  %344 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %.8749, i64 noundef %.8749, ptr noundef %7)
  %345 = call double @llvm.fmuladd.f64(double %342, double %.0546, double %344)
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %.8749, i64 noundef %.8749, double noundef %345, ptr noundef %7)
  %346 = add nuw nsw i64 %.8749, 1
  %exitcond838.not = icmp eq i64 %346, %smax835
  br i1 %exitcond838.not, label %._crit_edge752, label %.lr.ph751, !llvm.loop !38

._crit_edge752:                                   ; preds = %.lr.ph751
  %347 = call noundef zeroext i1 @_ZN11alglib_impl21sparsecholeskyskylineEPNS_12sparsematrixElbPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %51, i1 noundef zeroext true, ptr noundef %7)
  br i1 %347, label %352, label %348

348:                                              ; preds = %._crit_edge752
  %349 = fmul double %.0546, 1.000000e+01
  %350 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %349, double noundef 0x3D719799812DEA11, ptr noundef %7)
  br i1 %58, label %351, label %.lr.ph751.preheader.backedge

351:                                              ; preds = %348
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.386, double noundef %350)
  br label %.lr.ph751.preheader.backedge

.lr.ph751.preheader.backedge:                     ; preds = %351, %348
  br label %.lr.ph751.preheader, !llvm.loop !39

352:                                              ; preds = %._crit_edge752
  br i1 %58, label %353, label %.critedge594

353:                                              ; preds = %352
  %354 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  %355 = sub nsw i64 %354, %.2
  %356 = trunc i64 %355 to i32
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.387, i32 noundef %356)
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %165, ptr noundef nonnull %21, ptr noundef %7)
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %22, ptr noundef %7)
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %23, ptr noundef %7)
  call void @_ZN11alglib_impl16linlsqrcreatebufEllPNS_12linlsqrstateEPNS_8ae_stateE(i64 noundef %165, i64 noundef %51, ptr noundef nonnull %24, ptr noundef %7)
  call void @_ZN11alglib_impl11linlsqrsetbEPNS_12linlsqrstateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %24, ptr noundef nonnull %20, ptr noundef %7)
  call void @_ZN11alglib_impl14linlsqrsetcondEPNS_12linlsqrstateEddlPNS_8ae_stateE(ptr noundef nonnull %24, double noundef 5.000000e-13, double noundef 5.000000e-13, i64 noundef 10, ptr noundef %7)
  %357 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.388)
  call void @_ZN11alglib_impl14linlsqrsetxrepEPNS_12linlsqrstateEbPNS_8ae_stateE(ptr noundef nonnull %24, i1 noundef zeroext true, ptr noundef %7)
  br label %358

.critedge594:                                     ; preds = %352
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %165, ptr noundef nonnull %21, ptr noundef %7)
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %22, ptr noundef %7)
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %23, ptr noundef %7)
  call void @_ZN11alglib_impl16linlsqrcreatebufEllPNS_12linlsqrstateEPNS_8ae_stateE(i64 noundef %165, i64 noundef %51, ptr noundef nonnull %24, ptr noundef %7)
  call void @_ZN11alglib_impl11linlsqrsetbEPNS_12linlsqrstateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %24, ptr noundef nonnull %20, ptr noundef %7)
  call void @_ZN11alglib_impl14linlsqrsetcondEPNS_12linlsqrstateEddlPNS_8ae_stateE(ptr noundef nonnull %24, double noundef 5.000000e-13, double noundef 5.000000e-13, i64 noundef 10, ptr noundef %7)
  br label %358

358:                                              ; preds = %.critedge594, %353
  %.3 = phi i64 [ %357, %353 ], [ %.2, %.critedge594 ]
  %359 = call noundef zeroext i1 @_ZN11alglib_impl16linlsqriterationEPNS_12linlsqrstateEPNS_8ae_stateE(ptr noundef nonnull %24, ptr noundef %7)
  br i1 %359, label %.lr.ph757.lr.ph, label %.outer._crit_edge

.lr.ph757.lr.ph:                                  ; preds = %358
  %360 = getelementptr inbounds i8, ptr %24, i64 1762
  %361 = getelementptr inbounds i8, ptr %24, i64 1763
  %362 = getelementptr inbounds i8, ptr %24, i64 1761
  %363 = getelementptr inbounds i8, ptr %24, i64 1536
  %364 = getelementptr inbounds i8, ptr %24, i64 1664
  %365 = getelementptr inbounds i8, ptr %24, i64 1592
  %366 = getelementptr inbounds i8, ptr %22, i64 56
  %367 = getelementptr inbounds i8, ptr %24, i64 1600
  %xtraiter943 = and i64 %smax, 3
  %unroll_iter946 = and i64 %smax, 9223372036854775804
  %lcmp.mod945.not = icmp eq i64 %xtraiter943, 0
  br label %.lr.ph757.split.us.preheader

.lr.ph757.split.us.preheader:                     ; preds = %.outer, %.lr.ph757.lr.ph
  %.0521.ph761 = phi i32 [ 0, %.lr.ph757.lr.ph ], [ %414, %.outer ]
  br label %.lr.ph757.split.us

.lr.ph757.split.us:                               ; preds = %.lr.ph757.split.us.preheader, %.backedge.us
  %368 = load i8, ptr %360, align 2, !tbaa !40, !range !46, !noundef !47
  %369 = trunc nuw i8 %368 to i1
  br i1 %369, label %.preheader603.us, label %370

370:                                              ; preds = %.lr.ph757.split.us
  %371 = load i8, ptr %361, align 1, !tbaa !48, !range !46, !noundef !47
  %372 = trunc nuw i8 %371 to i1
  br i1 %372, label %377, label %373

373:                                              ; preds = %370
  %374 = load i8, ptr %362, align 1, !tbaa !49, !range !46, !noundef !47
  %375 = trunc nuw i8 %374 to i1
  br i1 %375, label %.split760.us, label %376

376:                                              ; preds = %373
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.390, ptr noundef %7)
  br label %.backedge.us

377:                                              ; preds = %370
  call void @_ZN11alglib_impl9sparsemtvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef nonnull %17, ptr noundef nonnull %363, ptr noundef nonnull %364, ptr noundef %7)
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %19, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 1, ptr noundef nonnull %364, ptr noundef %7)
  br label %.backedge.us

.preheader603.us:                                 ; preds = %.lr.ph757.split.us, %.preheader603.us
  %.9754.us = phi i64 [ %401, %.preheader603.us ], [ 0, %.lr.ph757.split.us ]
  %niter947 = phi i64 [ %niter947.next.3, %.preheader603.us ], [ 0, %.lr.ph757.split.us ]
  %378 = load ptr, ptr %365, align 8, !tbaa !13
  %379 = getelementptr inbounds double, ptr %378, i64 %.9754.us
  %380 = load double, ptr %379, align 8, !tbaa !14
  %381 = load ptr, ptr %366, align 8, !tbaa !13
  %382 = getelementptr inbounds double, ptr %381, i64 %.9754.us
  store double %380, ptr %382, align 8, !tbaa !14
  %383 = or disjoint i64 %.9754.us, 1
  %384 = load ptr, ptr %365, align 8, !tbaa !13
  %385 = getelementptr inbounds double, ptr %384, i64 %383
  %386 = load double, ptr %385, align 8, !tbaa !14
  %387 = load ptr, ptr %366, align 8, !tbaa !13
  %388 = getelementptr inbounds double, ptr %387, i64 %383
  store double %386, ptr %388, align 8, !tbaa !14
  %389 = or disjoint i64 %.9754.us, 2
  %390 = load ptr, ptr %365, align 8, !tbaa !13
  %391 = getelementptr inbounds double, ptr %390, i64 %389
  %392 = load double, ptr %391, align 8, !tbaa !14
  %393 = load ptr, ptr %366, align 8, !tbaa !13
  %394 = getelementptr inbounds double, ptr %393, i64 %389
  store double %392, ptr %394, align 8, !tbaa !14
  %395 = or disjoint i64 %.9754.us, 3
  %396 = load ptr, ptr %365, align 8, !tbaa !13
  %397 = getelementptr inbounds double, ptr %396, i64 %395
  %398 = load double, ptr %397, align 8, !tbaa !14
  %399 = load ptr, ptr %366, align 8, !tbaa !13
  %400 = getelementptr inbounds double, ptr %399, i64 %395
  store double %398, ptr %400, align 8, !tbaa !14
  %401 = add nuw nsw i64 %.9754.us, 4
  %niter947.next.3 = add i64 %niter947, 4
  %niter947.ncmp.3 = icmp eq i64 %niter947.next.3, %unroll_iter946
  br i1 %niter947.ncmp.3, label %._crit_edge756.us.unr-lcssa, label %.preheader603.us, !llvm.loop !50

.backedge.us:                                     ; preds = %._crit_edge756.us, %377, %376
  %402 = call noundef zeroext i1 @_ZN11alglib_impl16linlsqriterationEPNS_12linlsqrstateEPNS_8ae_stateE(ptr noundef nonnull %24, ptr noundef %7)
  br i1 %402, label %.lr.ph757.split.us, label %.outer._crit_edge, !llvm.loop !51

._crit_edge756.us.unr-lcssa:                      ; preds = %.preheader603.us
  br i1 %lcmp.mod945.not, label %._crit_edge756.us, label %.preheader603.us.epil

.preheader603.us.epil:                            ; preds = %._crit_edge756.us.unr-lcssa, %.preheader603.us.epil
  %.9754.us.epil = phi i64 [ %408, %.preheader603.us.epil ], [ %401, %._crit_edge756.us.unr-lcssa ]
  %epil.iter944 = phi i64 [ %epil.iter944.next, %.preheader603.us.epil ], [ 0, %._crit_edge756.us.unr-lcssa ]
  %403 = load ptr, ptr %365, align 8, !tbaa !13
  %404 = getelementptr inbounds double, ptr %403, i64 %.9754.us.epil
  %405 = load double, ptr %404, align 8, !tbaa !14
  %406 = load ptr, ptr %366, align 8, !tbaa !13
  %407 = getelementptr inbounds double, ptr %406, i64 %.9754.us.epil
  store double %405, ptr %407, align 8, !tbaa !14
  %408 = add nuw nsw i64 %.9754.us.epil, 1
  %epil.iter944.next = add i64 %epil.iter944, 1
  %epil.iter944.cmp.not = icmp eq i64 %epil.iter944.next, %xtraiter943
  br i1 %epil.iter944.cmp.not, label %._crit_edge756.us, label %.preheader603.us.epil, !llvm.loop !52

._crit_edge756.us:                                ; preds = %.preheader603.us.epil, %._crit_edge756.us.unr-lcssa
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %19, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef nonnull %22, ptr noundef %7)
  call void @_ZN11alglib_impl8sparsemvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef nonnull %17, ptr noundef nonnull %22, ptr noundef nonnull %367, ptr noundef %7)
  br label %.backedge.us

.split760.us:                                     ; preds = %373
  br i1 %58, label %409, label %.outer

409:                                              ; preds = %.split760.us
  call void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %363, ptr noundef nonnull %23, ptr noundef %7)
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %19, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef nonnull %23, ptr noundef %7)
  call void @_ZN11alglib_impl8sparsemvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef nonnull %17, ptr noundef nonnull %23, ptr noundef nonnull %21, ptr noundef %7)
  call void @_ZN11alglib_impl5raddvEldPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %165, double noundef -1.000000e+00, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef %7)
  call void @_ZN11alglib_impl9sparsemtvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef nonnull %17, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef %7)
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %19, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 1, ptr noundef nonnull %22, ptr noundef %7)
  %410 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %165, ptr noundef nonnull %21, ptr noundef %7)
  %411 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %410, ptr noundef %7)
  %412 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %22, ptr noundef %7)
  %413 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %412, ptr noundef %7)
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.389, i32 noundef %.0521.ph761, double noundef %411, double noundef %413)
  br label %.outer

.outer:                                           ; preds = %409, %.split760.us
  %414 = add i32 %.0521.ph761, 1
  %415 = call noundef zeroext i1 @_ZN11alglib_impl16linlsqriterationEPNS_12linlsqrstateEPNS_8ae_stateE(ptr noundef nonnull %24, ptr noundef %7)
  br i1 %415, label %.lr.ph757.split.us.preheader, label %.outer._crit_edge, !llvm.loop !51

.outer._crit_edge:                                ; preds = %.outer, %.backedge.us, %358
  call void @_ZN11alglib_impl14linlsqrresultsEPKNS_12linlsqrstateEPNS_9ae_vectorEPNS_13linlsqrreportEPNS_8ae_stateE(ptr noundef nonnull %24, ptr noundef nonnull %22, ptr noundef nonnull %25, ptr noundef %7)
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %19, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef nonnull %22, ptr noundef %7)
  br i1 %58, label %416, label %.lr.ph765

416:                                              ; preds = %.outer._crit_edge
  %417 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  %418 = sub nsw i64 %417, %.3
  %419 = trunc i64 %418 to i32
  %420 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %22, ptr noundef %7)
  %421 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %420, ptr noundef %7)
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.391, i32 noundef %419, double noundef %421)
  br label %.lr.ph765

.lr.ph765:                                        ; preds = %.outer._crit_edge, %416
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %14, ptr noundef %7)
  %422 = uitofp nneg i64 %.pre-phi to double
  %423 = getelementptr inbounds i8, ptr %14, i64 56
  %xtraiter949 = and i64 %smax, 3
  %unroll_iter952 = and i64 %smax, 9223372036854775804
  br label %424

424:                                              ; preds = %424, %.lr.ph765
  %.10763 = phi i64 [ 0, %.lr.ph765 ], [ %444, %424 ]
  %niter953 = phi i64 [ 0, %.lr.ph765 ], [ %niter953.next.3, %424 ]
  %425 = uitofp nneg i64 %.10763 to double
  %426 = fdiv double %425, %422
  %427 = load ptr, ptr %423, align 8, !tbaa !13
  %428 = getelementptr inbounds double, ptr %427, i64 %.10763
  store double %426, ptr %428, align 8, !tbaa !14
  %429 = or disjoint i64 %.10763, 1
  %430 = uitofp nneg i64 %429 to double
  %431 = fdiv double %430, %422
  %432 = load ptr, ptr %423, align 8, !tbaa !13
  %433 = getelementptr inbounds double, ptr %432, i64 %429
  store double %431, ptr %433, align 8, !tbaa !14
  %434 = or disjoint i64 %.10763, 2
  %435 = uitofp nneg i64 %434 to double
  %436 = fdiv double %435, %422
  %437 = load ptr, ptr %423, align 8, !tbaa !13
  %438 = getelementptr inbounds double, ptr %437, i64 %434
  store double %436, ptr %438, align 8, !tbaa !14
  %439 = or disjoint i64 %.10763, 3
  %440 = uitofp nneg i64 %439 to double
  %441 = fdiv double %440, %422
  %442 = load ptr, ptr %423, align 8, !tbaa !13
  %443 = getelementptr inbounds double, ptr %442, i64 %439
  store double %441, ptr %443, align 8, !tbaa !14
  %444 = add nuw nsw i64 %.10763, 4
  %niter953.next.3 = add i64 %niter953, 4
  %niter953.ncmp.3 = icmp eq i64 %niter953.next.3, %unroll_iter952
  br i1 %niter953.ncmp.3, label %.lr.ph775.unr-lcssa, label %424, !llvm.loop !53

.lr.ph775.unr-lcssa:                              ; preds = %424
  %lcmp.mod951.not = icmp eq i64 %xtraiter949, 0
  br i1 %lcmp.mod951.not, label %.lr.ph775, label %.epil.preheader948

.epil.preheader948:                               ; preds = %.lr.ph775.unr-lcssa, %.epil.preheader948
  %.10763.epil = phi i64 [ %449, %.epil.preheader948 ], [ %444, %.lr.ph775.unr-lcssa ]
  %epil.iter950 = phi i64 [ %epil.iter950.next, %.epil.preheader948 ], [ 0, %.lr.ph775.unr-lcssa ]
  %445 = uitofp nneg i64 %.10763.epil to double
  %446 = fdiv double %445, %422
  %447 = load ptr, ptr %423, align 8, !tbaa !13
  %448 = getelementptr inbounds double, ptr %447, i64 %.10763.epil
  store double %446, ptr %448, align 8, !tbaa !14
  %449 = add nuw nsw i64 %.10763.epil, 1
  %epil.iter950.next = add i64 %epil.iter950, 1
  %epil.iter950.cmp.not = icmp eq i64 %epil.iter950.next, %xtraiter949
  br i1 %epil.iter950.cmp.not, label %.lr.ph775, label %.epil.preheader948, !llvm.loop !54

.lr.ph775:                                        ; preds = %.epil.preheader948, %.lr.ph775.unr-lcssa
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, double noundef 0.000000e+00, ptr noundef nonnull %15, ptr noundef %7)
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, double noundef 0.000000e+00, ptr noundef nonnull %16, ptr noundef %7)
  %450 = getelementptr inbounds i8, ptr %15, i64 56
  %451 = getelementptr inbounds i8, ptr %22, i64 56
  %452 = uitofp nneg i64 %.pre-phi to double
  %453 = getelementptr inbounds i8, ptr %16, i64 56
  br label %454

454:                                              ; preds = %.lr.ph775, %._crit_edge771
  %.11773 = phi i64 [ 0, %.lr.ph775 ], [ %.neg598, %._crit_edge771 ]
  %455 = load i64, ptr %172, align 8, !tbaa !23
  %.neg598 = add nuw nsw i64 %.11773, 1
  %456 = sub i64 %.neg598, %455
  %457 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %456, i64 noundef 0, ptr noundef %7)
  %458 = add nsw i64 %.11773, -1
  %459 = load i64, ptr %172, align 8, !tbaa !23
  %460 = add i64 %458, %459
  %461 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %460, i64 noundef %.pre-phi, ptr noundef %7)
  %.not767 = icmp sgt i64 %457, %461
  br i1 %.not767, label %._crit_edge771, label %.lr.ph770

.lr.ph770:                                        ; preds = %454, %.lr.ph770
  %.3541768 = phi i64 [ %484, %.lr.ph770 ], [ %457, %454 ]
  %462 = load ptr, ptr %450, align 8, !tbaa !13
  %463 = getelementptr inbounds double, ptr %462, i64 %.3541768
  %464 = load double, ptr %463, align 8, !tbaa !14
  %465 = load ptr, ptr %451, align 8, !tbaa !13
  %466 = getelementptr inbounds double, ptr %465, i64 %.11773
  %467 = load double, ptr %466, align 8, !tbaa !14
  %468 = sitofp i64 %.3541768 to double
  %469 = fdiv double %468, %452
  %470 = call noundef double @_ZN11alglib_implL18spline1d_basiscalcEPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef nonnull %32, i64 noundef %.11773, double noundef %469, ptr noundef %7)
  %471 = call double @llvm.fmuladd.f64(double %467, double %470, double %464)
  %472 = load ptr, ptr %450, align 8, !tbaa !13
  %473 = getelementptr inbounds double, ptr %472, i64 %.3541768
  store double %471, ptr %473, align 8, !tbaa !14
  %474 = load ptr, ptr %453, align 8, !tbaa !13
  %475 = getelementptr inbounds double, ptr %474, i64 %.3541768
  %476 = load double, ptr %475, align 8, !tbaa !14
  %477 = load ptr, ptr %451, align 8, !tbaa !13
  %478 = getelementptr inbounds double, ptr %477, i64 %.11773
  %479 = load double, ptr %478, align 8, !tbaa !14
  %480 = call noundef double @_ZN11alglib_implL18spline1d_basisdiffEPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef nonnull %32, i64 noundef %.11773, double noundef %469, ptr noundef %7)
  %481 = call double @llvm.fmuladd.f64(double %479, double %480, double %476)
  %482 = load ptr, ptr %453, align 8, !tbaa !13
  %483 = getelementptr inbounds double, ptr %482, i64 %.3541768
  store double %481, ptr %483, align 8, !tbaa !14
  %484 = add nsw i64 %.3541768, 1
  %485 = load i64, ptr %172, align 8, !tbaa !23
  %486 = add i64 %458, %485
  %487 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %486, i64 noundef %.pre-phi, ptr noundef %7)
  %.not.not794 = icmp slt i64 %.3541768, %487
  br i1 %.not.not794, label %.lr.ph770, label %._crit_edge771, !llvm.loop !55

._crit_edge771:                                   ; preds = %.lr.ph770, %454
  %exitcond844.not = icmp eq i64 %.neg598, %smax835
  br i1 %exitcond844.not, label %._crit_edge776, label %454, !llvm.loop !56

._crit_edge776:                                   ; preds = %._crit_edge771
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPKNS_9ae_vectorES2_S2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, i64 noundef %51, ptr noundef nonnull %35, ptr noundef %7)
  br label %.loopexit

488:                                              ; preds = %._crit_edge641
  %489 = add nsw i64 %51, 1
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %165, i64 noundef %489, double noundef 0.000000e+00, ptr noundef nonnull %36, ptr noundef %7)
  br i1 %41, label %.lr.ph646, label %._crit_edge647

.lr.ph646:                                        ; preds = %488
  %490 = getelementptr inbounds i8, ptr %12, i64 56
  %491 = getelementptr inbounds i8, ptr %36, i64 72
  %xtraiter912 = and i64 %2, 1
  %492 = icmp eq i64 %2, 1
  br i1 %492, label %._crit_edge647.loopexit.unr-lcssa, label %.lr.ph646.new

.lr.ph646.new:                                    ; preds = %.lr.ph646
  %unroll_iter915 = and i64 %2, 9223372036854775806
  br label %493

493:                                              ; preds = %493, %.lr.ph646.new
  %.12644 = phi i64 [ 0, %.lr.ph646.new ], [ %515, %493 ]
  %niter916 = phi i64 [ 0, %.lr.ph646.new ], [ %niter916.next.1, %493 ]
  %494 = load ptr, ptr %490, align 8, !tbaa !13
  %495 = shl nuw nsw i64 %.12644, 1
  %496 = or disjoint i64 %495, 1
  %497 = getelementptr inbounds double, ptr %494, i64 %496
  %498 = load double, ptr %497, align 8, !tbaa !14
  %499 = fmul double %54, %498
  %500 = load ptr, ptr %491, align 8, !tbaa !13
  %501 = getelementptr inbounds ptr, ptr %500, i64 %.12644
  %502 = load ptr, ptr %501, align 8, !tbaa !57
  %503 = getelementptr inbounds double, ptr %502, i64 %51
  store double %499, ptr %503, align 8, !tbaa !14
  %504 = or disjoint i64 %.12644, 1
  %505 = load ptr, ptr %490, align 8, !tbaa !13
  %506 = shl nuw nsw i64 %504, 1
  %507 = or disjoint i64 %506, 1
  %508 = getelementptr inbounds double, ptr %505, i64 %507
  %509 = load double, ptr %508, align 8, !tbaa !14
  %510 = fmul double %54, %509
  %511 = load ptr, ptr %491, align 8, !tbaa !13
  %512 = getelementptr inbounds ptr, ptr %511, i64 %504
  %513 = load ptr, ptr %512, align 8, !tbaa !57
  %514 = getelementptr inbounds double, ptr %513, i64 %51
  store double %510, ptr %514, align 8, !tbaa !14
  %515 = add nuw nsw i64 %.12644, 2
  %niter916.next.1 = add i64 %niter916, 2
  %niter916.ncmp.1 = icmp eq i64 %niter916.next.1, %unroll_iter915
  br i1 %niter916.ncmp.1, label %._crit_edge647.loopexit.unr-lcssa, label %493, !llvm.loop !58

._crit_edge647.loopexit.unr-lcssa:                ; preds = %493, %.lr.ph646
  %.12644.unr = phi i64 [ 0, %.lr.ph646 ], [ %515, %493 ]
  %lcmp.mod914.not = icmp eq i64 %xtraiter912, 0
  br i1 %lcmp.mod914.not, label %._crit_edge647, label %._crit_edge647.loopexit.epilog-lcssa

._crit_edge647.loopexit.epilog-lcssa:             ; preds = %._crit_edge647.loopexit.unr-lcssa
  %516 = load ptr, ptr %490, align 8, !tbaa !13
  %517 = shl nuw nsw i64 %.12644.unr, 1
  %518 = or disjoint i64 %517, 1
  %519 = getelementptr inbounds double, ptr %516, i64 %518
  %520 = load double, ptr %519, align 8, !tbaa !14
  %521 = fmul double %54, %520
  %522 = load ptr, ptr %491, align 8, !tbaa !13
  %523 = getelementptr inbounds ptr, ptr %522, i64 %.12644.unr
  %524 = load ptr, ptr %523, align 8, !tbaa !57
  %525 = getelementptr inbounds double, ptr %524, i64 %51
  store double %521, ptr %525, align 8, !tbaa !14
  br label %._crit_edge647

._crit_edge647:                                   ; preds = %._crit_edge647.loopexit.epilog-lcssa, %._crit_edge647.loopexit.unr-lcssa, %488
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %33, ptr noundef %7)
  %526 = add nsw i64 %51, -1
  %.not.not569648 = icmp sgt i64 %51, 0
  br i1 %.not.not569648, label %.lr.ph651, label %._crit_edge667

.lr.ph651:                                        ; preds = %._crit_edge647
  %527 = uitofp nneg i64 %526 to double
  %528 = getelementptr inbounds i8, ptr %33, i64 56
  %529 = add nsw i64 %51, -1
  %xtraiter918 = and i64 %51, 3
  %530 = icmp ult i64 %529, 3
  br i1 %530, label %.preheader613.unr-lcssa, label %.lr.ph651.new

.lr.ph651.new:                                    ; preds = %.lr.ph651
  %unroll_iter921 = and i64 %51, 9223372036854775804
  br label %540

.preheader613.unr-lcssa:                          ; preds = %540, %.lr.ph651
  %.13649.unr = phi i64 [ 0, %.lr.ph651 ], [ %560, %540 ]
  %lcmp.mod920.not = icmp eq i64 %xtraiter918, 0
  br i1 %lcmp.mod920.not, label %.preheader613, label %.epil.preheader917

.epil.preheader917:                               ; preds = %.preheader613.unr-lcssa, %.epil.preheader917
  %.13649.epil = phi i64 [ %535, %.epil.preheader917 ], [ %.13649.unr, %.preheader613.unr-lcssa ]
  %epil.iter919 = phi i64 [ %epil.iter919.next, %.epil.preheader917 ], [ 0, %.preheader613.unr-lcssa ]
  %531 = uitofp nneg i64 %.13649.epil to double
  %532 = fdiv double %531, %527
  %533 = load ptr, ptr %528, align 8, !tbaa !13
  %534 = getelementptr inbounds double, ptr %533, i64 %.13649.epil
  store double %532, ptr %534, align 8, !tbaa !14
  %535 = add nuw nsw i64 %.13649.epil, 1
  %epil.iter919.next = add i64 %epil.iter919, 1
  %epil.iter919.cmp.not = icmp eq i64 %epil.iter919.next, %xtraiter918
  br i1 %epil.iter919.cmp.not, label %.preheader613, label %.epil.preheader917, !llvm.loop !59

.preheader613:                                    ; preds = %.epil.preheader917, %.preheader613.unr-lcssa
  br i1 %.not.not569648, label %.lr.ph663, label %._crit_edge667

.lr.ph663:                                        ; preds = %.preheader613
  %536 = getelementptr inbounds i8, ptr %34, i64 56
  %537 = getelementptr inbounds i8, ptr %12, i64 56
  %538 = getelementptr inbounds i8, ptr %36, i64 72
  %539 = uitofp nneg i64 %526 to double
  br label %563

540:                                              ; preds = %540, %.lr.ph651.new
  %.13649 = phi i64 [ 0, %.lr.ph651.new ], [ %560, %540 ]
  %niter922 = phi i64 [ 0, %.lr.ph651.new ], [ %niter922.next.3, %540 ]
  %541 = uitofp nneg i64 %.13649 to double
  %542 = fdiv double %541, %527
  %543 = load ptr, ptr %528, align 8, !tbaa !13
  %544 = getelementptr inbounds double, ptr %543, i64 %.13649
  store double %542, ptr %544, align 8, !tbaa !14
  %545 = or disjoint i64 %.13649, 1
  %546 = uitofp nneg i64 %545 to double
  %547 = fdiv double %546, %527
  %548 = load ptr, ptr %528, align 8, !tbaa !13
  %549 = getelementptr inbounds double, ptr %548, i64 %545
  store double %547, ptr %549, align 8, !tbaa !14
  %550 = or disjoint i64 %.13649, 2
  %551 = uitofp nneg i64 %550 to double
  %552 = fdiv double %551, %527
  %553 = load ptr, ptr %528, align 8, !tbaa !13
  %554 = getelementptr inbounds double, ptr %553, i64 %550
  store double %552, ptr %554, align 8, !tbaa !14
  %555 = or disjoint i64 %.13649, 3
  %556 = uitofp nneg i64 %555 to double
  %557 = fdiv double %556, %527
  %558 = load ptr, ptr %528, align 8, !tbaa !13
  %559 = getelementptr inbounds double, ptr %558, i64 %555
  store double %557, ptr %559, align 8, !tbaa !14
  %560 = add nuw nsw i64 %.13649, 4
  %niter922.next.3 = add i64 %niter922, 4
  %niter922.ncmp.3 = icmp eq i64 %niter922.next.3, %unroll_iter921
  br i1 %niter922.ncmp.3, label %.preheader613.unr-lcssa, label %540, !llvm.loop !60

.preheader611:                                    ; preds = %._crit_edge660
  br i1 %.not.not569648, label %.lr.ph666, label %._crit_edge667

.lr.ph666:                                        ; preds = %.preheader611
  %561 = getelementptr inbounds i8, ptr %36, i64 72
  %.pre = load double, ptr @_ZN11alglib_implL18spline1d_lambdaregE, align 8, !tbaa !14
  %xtraiter924 = and i64 %51, 3
  %562 = icmp ult i64 %529, 3
  br i1 %562, label %._crit_edge667.loopexit.unr-lcssa, label %.lr.ph666.new

.lr.ph666.new:                                    ; preds = %.lr.ph666
  %unroll_iter927 = and i64 %51, 9223372036854775804
  br label %588

563:                                              ; preds = %.lr.ph663, %._crit_edge660
  %.4542662 = phi i64 [ 0, %.lr.ph663 ], [ %587, %._crit_edge660 ]
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, double noundef 0.000000e+00, ptr noundef nonnull %34, ptr noundef %7)
  %564 = load ptr, ptr %536, align 8, !tbaa !13
  %565 = getelementptr inbounds double, ptr %564, i64 %.4542662
  store double 1.000000e+00, ptr %565, align 8, !tbaa !14
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %33, ptr noundef nonnull %34, i64 noundef %51, i64 noundef 2, double noundef 0.000000e+00, i64 noundef 2, double noundef 0.000000e+00, ptr noundef nonnull %35, ptr noundef %7)
  br i1 %41, label %.lr.ph656, label %.lr.ph659.preheader

.lr.ph656:                                        ; preds = %563, %.lr.ph656
  %.14654 = phi i64 [ %575, %.lr.ph656 ], [ 0, %563 ]
  %566 = load ptr, ptr %537, align 8, !tbaa !13
  %.idx = shl nsw i64 %.14654, 4
  %567 = getelementptr inbounds i8, ptr %566, i64 %.idx
  %568 = load double, ptr %567, align 8, !tbaa !14
  %569 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %35, double noundef %568, ptr noundef %7)
  %570 = fmul double %54, %569
  %571 = load ptr, ptr %538, align 8, !tbaa !13
  %572 = getelementptr inbounds ptr, ptr %571, i64 %.14654
  %573 = load ptr, ptr %572, align 8, !tbaa !57
  %574 = getelementptr inbounds double, ptr %573, i64 %.4542662
  store double %570, ptr %574, align 8, !tbaa !14
  %575 = add nuw nsw i64 %.14654, 1
  %exitcond823.not = icmp eq i64 %575, %2
  br i1 %exitcond823.not, label %.lr.ph659.preheader, label %.lr.ph656, !llvm.loop !61

.lr.ph659.preheader:                              ; preds = %.lr.ph656, %563
  br label %.lr.ph659

.lr.ph659:                                        ; preds = %.lr.ph659.preheader, %.lr.ph659
  %.15658 = phi i64 [ %586, %.lr.ph659 ], [ 0, %.lr.ph659.preheader ]
  %576 = uitofp nneg i64 %.15658 to double
  %577 = fdiv double %576, %539
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %35, double noundef %577, ptr noundef nonnull %38, ptr noundef nonnull %39, ptr noundef nonnull %40, ptr noundef %7)
  %578 = load double, ptr %40, align 8, !tbaa !14
  %579 = fmul double %57, %578
  %580 = fmul double %579, %4
  %581 = load ptr, ptr %538, align 8, !tbaa !13
  %582 = getelementptr ptr, ptr %581, i64 %.15658
  %583 = getelementptr ptr, ptr %582, i64 %2
  %584 = load ptr, ptr %583, align 8, !tbaa !57
  %585 = getelementptr inbounds double, ptr %584, i64 %.4542662
  store double %580, ptr %585, align 8, !tbaa !14
  %586 = add nuw nsw i64 %.15658, 1
  %exitcond824.not = icmp eq i64 %586, %51
  br i1 %exitcond824.not, label %._crit_edge660, label %.lr.ph659, !llvm.loop !62

._crit_edge660:                                   ; preds = %.lr.ph659
  %587 = add nuw nsw i64 %.4542662, 1
  %exitcond825.not = icmp eq i64 %587, %51
  br i1 %exitcond825.not, label %.preheader611, label %563, !llvm.loop !63

588:                                              ; preds = %588, %.lr.ph666.new
  %.16665 = phi i64 [ 0, %.lr.ph666.new ], [ %612, %588 ]
  %niter928 = phi i64 [ 0, %.lr.ph666.new ], [ %niter928.next.3, %588 ]
  %589 = load ptr, ptr %561, align 8, !tbaa !13
  %590 = getelementptr ptr, ptr %589, i64 %164
  %591 = getelementptr ptr, ptr %590, i64 %.16665
  %592 = load ptr, ptr %591, align 8, !tbaa !57
  %593 = getelementptr inbounds double, ptr %592, i64 %.16665
  store double %.pre, ptr %593, align 8, !tbaa !14
  %594 = or disjoint i64 %.16665, 1
  %595 = load ptr, ptr %561, align 8, !tbaa !13
  %596 = getelementptr ptr, ptr %595, i64 %164
  %597 = getelementptr ptr, ptr %596, i64 %594
  %598 = load ptr, ptr %597, align 8, !tbaa !57
  %599 = getelementptr inbounds double, ptr %598, i64 %594
  store double %.pre, ptr %599, align 8, !tbaa !14
  %600 = or disjoint i64 %.16665, 2
  %601 = load ptr, ptr %561, align 8, !tbaa !13
  %602 = getelementptr ptr, ptr %601, i64 %164
  %603 = getelementptr ptr, ptr %602, i64 %600
  %604 = load ptr, ptr %603, align 8, !tbaa !57
  %605 = getelementptr inbounds double, ptr %604, i64 %600
  store double %.pre, ptr %605, align 8, !tbaa !14
  %606 = or disjoint i64 %.16665, 3
  %607 = load ptr, ptr %561, align 8, !tbaa !13
  %608 = getelementptr ptr, ptr %607, i64 %164
  %609 = getelementptr ptr, ptr %608, i64 %606
  %610 = load ptr, ptr %609, align 8, !tbaa !57
  %611 = getelementptr inbounds double, ptr %610, i64 %606
  store double %.pre, ptr %611, align 8, !tbaa !14
  %612 = add nuw nsw i64 %.16665, 4
  %niter928.next.3 = add i64 %niter928, 4
  %niter928.ncmp.3 = icmp eq i64 %niter928.next.3, %unroll_iter927
  br i1 %niter928.ncmp.3, label %._crit_edge667.loopexit.unr-lcssa, label %588, !llvm.loop !64

._crit_edge667.loopexit.unr-lcssa:                ; preds = %588, %.lr.ph666
  %.16665.unr = phi i64 [ 0, %.lr.ph666 ], [ %612, %588 ]
  %lcmp.mod926.not = icmp eq i64 %xtraiter924, 0
  br i1 %lcmp.mod926.not, label %._crit_edge667, label %.epil.preheader923

.epil.preheader923:                               ; preds = %._crit_edge667.loopexit.unr-lcssa, %.epil.preheader923
  %.16665.epil = phi i64 [ %618, %.epil.preheader923 ], [ %.16665.unr, %._crit_edge667.loopexit.unr-lcssa ]
  %epil.iter925 = phi i64 [ %epil.iter925.next, %.epil.preheader923 ], [ 0, %._crit_edge667.loopexit.unr-lcssa ]
  %613 = load ptr, ptr %561, align 8, !tbaa !13
  %614 = getelementptr ptr, ptr %613, i64 %164
  %615 = getelementptr ptr, ptr %614, i64 %.16665.epil
  %616 = load ptr, ptr %615, align 8, !tbaa !57
  %617 = getelementptr inbounds double, ptr %616, i64 %.16665.epil
  store double %.pre, ptr %617, align 8, !tbaa !14
  %618 = add nuw nsw i64 %.16665.epil, 1
  %epil.iter925.next = add i64 %epil.iter925, 1
  %epil.iter925.cmp.not = icmp eq i64 %epil.iter925.next, %xtraiter924
  br i1 %epil.iter925.cmp.not, label %._crit_edge667, label %.epil.preheader923, !llvm.loop !65

._crit_edge667:                                   ; preds = %._crit_edge667.loopexit.unr-lcssa, %.epil.preheader923, %._crit_edge647, %.preheader613, %.preheader611
  call void @_ZN11alglib_impl9rmatrixqrEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %36, i64 noundef %165, i64 noundef %489, ptr noundef nonnull %37, ptr noundef %7)
  br i1 %58, label %619, label %627

619:                                              ; preds = %._crit_edge667
  %620 = getelementptr inbounds i8, ptr %36, i64 72
  %621 = load ptr, ptr %620, align 8, !tbaa !13
  %622 = getelementptr inbounds ptr, ptr %621, i64 %51
  %623 = load ptr, ptr %622, align 8, !tbaa !57
  %624 = getelementptr inbounds double, ptr %623, i64 %51
  %625 = load double, ptr %624, align 8, !tbaa !14
  %626 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %625, ptr noundef %7)
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.392, double noundef %626)
  br label %627

627:                                              ; preds = %619, %._crit_edge667
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %15, ptr noundef %7)
  call void @_ZN11alglib_impl7rcopycvElPKNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %36, i64 noundef %51, ptr noundef nonnull %15, ptr noundef %7)
  call void @_ZN11alglib_impl11rmatrixtrsvElPKNS_9ae_matrixEllbblPNS_9ae_vectorElPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %36, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef nonnull %15, i64 noundef 0, ptr noundef %7)
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %14, ptr noundef %7)
  br i1 %.not.not569648, label %.lr.ph671, label %.loopexit.critedge

.lr.ph671:                                        ; preds = %627
  %628 = uitofp nneg i64 %526 to double
  %629 = getelementptr inbounds i8, ptr %14, i64 56
  %630 = add nsw i64 %51, -1
  %xtraiter930 = and i64 %51, 3
  %631 = icmp ult i64 %630, 3
  br i1 %631, label %._crit_edge672.unr-lcssa, label %.lr.ph671.new

.lr.ph671.new:                                    ; preds = %.lr.ph671
  %unroll_iter933 = and i64 %51, 9223372036854775804
  br label %632

632:                                              ; preds = %632, %.lr.ph671.new
  %.17669 = phi i64 [ 0, %.lr.ph671.new ], [ %652, %632 ]
  %niter934 = phi i64 [ 0, %.lr.ph671.new ], [ %niter934.next.3, %632 ]
  %633 = uitofp nneg i64 %.17669 to double
  %634 = fdiv double %633, %628
  %635 = load ptr, ptr %629, align 8, !tbaa !13
  %636 = getelementptr inbounds double, ptr %635, i64 %.17669
  store double %634, ptr %636, align 8, !tbaa !14
  %637 = or disjoint i64 %.17669, 1
  %638 = uitofp nneg i64 %637 to double
  %639 = fdiv double %638, %628
  %640 = load ptr, ptr %629, align 8, !tbaa !13
  %641 = getelementptr inbounds double, ptr %640, i64 %637
  store double %639, ptr %641, align 8, !tbaa !14
  %642 = or disjoint i64 %.17669, 2
  %643 = uitofp nneg i64 %642 to double
  %644 = fdiv double %643, %628
  %645 = load ptr, ptr %629, align 8, !tbaa !13
  %646 = getelementptr inbounds double, ptr %645, i64 %642
  store double %644, ptr %646, align 8, !tbaa !14
  %647 = or disjoint i64 %.17669, 3
  %648 = uitofp nneg i64 %647 to double
  %649 = fdiv double %648, %628
  %650 = load ptr, ptr %629, align 8, !tbaa !13
  %651 = getelementptr inbounds double, ptr %650, i64 %647
  store double %649, ptr %651, align 8, !tbaa !14
  %652 = add nuw nsw i64 %.17669, 4
  %niter934.next.3 = add i64 %niter934, 4
  %niter934.ncmp.3 = icmp eq i64 %niter934.next.3, %unroll_iter933
  br i1 %niter934.ncmp.3, label %._crit_edge672.unr-lcssa, label %632, !llvm.loop !66

._crit_edge672.unr-lcssa:                         ; preds = %632, %.lr.ph671
  %.17669.unr = phi i64 [ 0, %.lr.ph671 ], [ %652, %632 ]
  %lcmp.mod932.not = icmp eq i64 %xtraiter930, 0
  br i1 %lcmp.mod932.not, label %._crit_edge672, label %.epil.preheader929

.epil.preheader929:                               ; preds = %._crit_edge672.unr-lcssa, %.epil.preheader929
  %.17669.epil = phi i64 [ %657, %.epil.preheader929 ], [ %.17669.unr, %._crit_edge672.unr-lcssa ]
  %epil.iter931 = phi i64 [ %epil.iter931.next, %.epil.preheader929 ], [ 0, %._crit_edge672.unr-lcssa ]
  %653 = uitofp nneg i64 %.17669.epil to double
  %654 = fdiv double %653, %628
  %655 = load ptr, ptr %629, align 8, !tbaa !13
  %656 = getelementptr inbounds double, ptr %655, i64 %.17669.epil
  store double %654, ptr %656, align 8, !tbaa !14
  %657 = add nuw nsw i64 %.17669.epil, 1
  %epil.iter931.next = add i64 %epil.iter931, 1
  %epil.iter931.cmp.not = icmp eq i64 %epil.iter931.next, %xtraiter930
  br i1 %epil.iter931.cmp.not, label %._crit_edge672, label %.epil.preheader929, !llvm.loop !67

._crit_edge672:                                   ; preds = %.epil.preheader929, %._crit_edge672.unr-lcssa
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %15, i64 noundef %51, i64 noundef 2, double noundef 0.000000e+00, i64 noundef 2, double noundef 0.000000e+00, ptr noundef nonnull %35, ptr noundef %7)
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %16, ptr noundef %7)
  br i1 %.not.not569648, label %.lr.ph676, label %.loopexit

.lr.ph676:                                        ; preds = %._crit_edge672
  %658 = uitofp nneg i64 %526 to double
  %659 = getelementptr inbounds i8, ptr %16, i64 56
  br label %660

660:                                              ; preds = %.lr.ph676, %660
  %.18674 = phi i64 [ 0, %.lr.ph676 ], [ %666, %660 ]
  %661 = uitofp nneg i64 %.18674 to double
  %662 = fdiv double %661, %658
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %35, double noundef %662, ptr noundef nonnull %38, ptr noundef nonnull %39, ptr noundef nonnull %40, ptr noundef %7)
  %663 = load double, ptr %39, align 8, !tbaa !14
  %664 = load ptr, ptr %659, align 8, !tbaa !13
  %665 = getelementptr inbounds double, ptr %664, i64 %.18674
  store double %663, ptr %665, align 8, !tbaa !14
  %666 = add nuw nsw i64 %.18674, 1
  %exitcond828.not = icmp eq i64 %666, %51
  br i1 %exitcond828.not, label %.loopexit, label %660, !llvm.loop !68

.loopexit.critedge:                               ; preds = %627
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %15, i64 noundef %51, i64 noundef 2, double noundef 0.000000e+00, i64 noundef 2, double noundef 0.000000e+00, ptr noundef nonnull %35, ptr noundef %7)
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %51, ptr noundef nonnull %16, ptr noundef %7)
  br label %.loopexit

.loopexit:                                        ; preds = %660, %.loopexit.critedge, %._crit_edge672, %._crit_edge776
  store i64 1, ptr %6, align 8, !tbaa !69
  %667 = getelementptr inbounds i8, ptr %6, i64 16
  %668 = getelementptr inbounds i8, ptr %6, i64 40
  %669 = getelementptr inbounds i8, ptr %6, i64 24
  %670 = getelementptr inbounds i8, ptr %6, i64 32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %667, i8 0, i64 32, i1 false)
  br i1 %41, label %.lr.ph782, label %._crit_edge783

.lr.ph782:                                        ; preds = %.loopexit
  %671 = getelementptr inbounds i8, ptr %12, i64 56
  %672 = getelementptr inbounds i8, ptr %11, i64 56
  br label %673

673:                                              ; preds = %.lr.ph782, %707
  %.19780 = phi i64 [ 0, %.lr.ph782 ], [ %708, %707 ]
  %.0549779 = phi double [ 0.000000e+00, %.lr.ph782 ], [ %684, %707 ]
  %.0550778 = phi i64 [ 0, %.lr.ph782 ], [ %.1551, %707 ]
  %674 = load ptr, ptr %671, align 8, !tbaa !13
  %675 = shl nuw nsw i64 %.19780, 1
  %676 = getelementptr inbounds double, ptr %674, i64 %675
  %677 = load double, ptr %676, align 8, !tbaa !14
  %678 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %35, double noundef %677, ptr noundef %7)
  %679 = load ptr, ptr %671, align 8, !tbaa !13
  %680 = or disjoint i64 %675, 1
  %681 = getelementptr inbounds double, ptr %679, i64 %680
  %682 = load double, ptr %681, align 8, !tbaa !14
  %683 = fsub double %678, %682
  %684 = call double @llvm.fmuladd.f64(double %683, double %683, double %.0549779)
  %685 = load double, ptr %667, align 8, !tbaa !71
  %686 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %683, ptr noundef %7)
  %687 = fadd double %685, %686
  store double %687, ptr %667, align 8, !tbaa !71
  %688 = load double, ptr %669, align 8, !tbaa !72
  %689 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %683, ptr noundef %7)
  %690 = fadd double %688, %689
  store double %690, ptr %669, align 8, !tbaa !72
  %691 = load double, ptr %668, align 8, !tbaa !73
  %692 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %683, ptr noundef %7)
  %693 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %691, double noundef %692, ptr noundef %7)
  store double %693, ptr %668, align 8, !tbaa !73
  %694 = load ptr, ptr %672, align 8, !tbaa !13
  %695 = getelementptr inbounds double, ptr %694, i64 %.19780
  %696 = load double, ptr %695, align 8, !tbaa !14
  %697 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %696, double noundef 0.000000e+00)
  br i1 %697, label %698, label %707

698:                                              ; preds = %673
  %699 = load double, ptr %670, align 8, !tbaa !74
  %700 = load ptr, ptr %672, align 8, !tbaa !13
  %701 = getelementptr inbounds double, ptr %700, i64 %.19780
  %702 = load double, ptr %701, align 8, !tbaa !14
  %703 = fdiv double %683, %702
  %704 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %703, ptr noundef %7)
  %705 = fadd double %699, %704
  store double %705, ptr %670, align 8, !tbaa !74
  %706 = add nsw i64 %.0550778, 1
  br label %707

707:                                              ; preds = %673, %698
  %.1551 = phi i64 [ %706, %698 ], [ %.0550778, %673 ]
  %708 = add nuw nsw i64 %.19780, 1
  %exitcond845.not = icmp eq i64 %708, %2
  br i1 %exitcond845.not, label %._crit_edge783.loopexit, label %673, !llvm.loop !75

._crit_edge783.loopexit:                          ; preds = %707
  %.pre849 = load double, ptr %667, align 8, !tbaa !71
  %709 = sitofp i64 %.1551 to double
  br label %._crit_edge783

._crit_edge783:                                   ; preds = %._crit_edge783.loopexit, %.loopexit
  %710 = phi double [ 0.000000e+00, %.loopexit ], [ %.pre849, %._crit_edge783.loopexit ]
  %.0550.lcssa = phi double [ 0.000000e+00, %.loopexit ], [ %709, %._crit_edge783.loopexit ]
  %.0549.lcssa = phi double [ 0.000000e+00, %.loopexit ], [ %684, %._crit_edge783.loopexit ]
  %711 = fdiv double %710, %52
  %712 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %711, ptr noundef %7)
  store double %712, ptr %667, align 8, !tbaa !71
  %713 = load double, ptr %669, align 8, !tbaa !72
  %714 = fdiv double %713, %52
  store double %714, ptr %669, align 8, !tbaa !72
  %715 = load double, ptr %670, align 8, !tbaa !74
  %716 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %.0550.lcssa, double noundef 1.000000e+00, ptr noundef %7)
  %717 = fdiv double %715, %716
  store double %717, ptr %670, align 8, !tbaa !74
  br i1 %58, label %718, label %726

718:                                              ; preds = %._crit_edge783
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.393)
  %719 = load double, ptr %667, align 8, !tbaa !71
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.394, double noundef %719)
  %720 = load double, ptr %668, align 8, !tbaa !73
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.395, double noundef %720)
  %721 = load double, ptr %669, align 8, !tbaa !72
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.396, double noundef %721)
  %722 = load double, ptr %670, align 8, !tbaa !74
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.397, double noundef %722)
  %723 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %.0548.lcssa, double noundef 1.000000e+00, ptr noundef %7)
  %724 = fdiv double %.0549.lcssa, %723
  %725 = fsub double 1.000000e+00, %724
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.398, double noundef %725)
  br label %726

726:                                              ; preds = %718, %._crit_edge783
  %.not.not584786 = icmp sgt i64 %51, 0
  br i1 %.not.not584786, label %.lr.ph789, label %._crit_edge793

.lr.ph789:                                        ; preds = %726
  %727 = getelementptr inbounds i8, ptr %15, i64 56
  %728 = getelementptr inbounds i8, ptr %13, i64 72
  %729 = getelementptr inbounds i8, ptr %14, i64 56
  %730 = getelementptr inbounds i8, ptr %16, i64 56
  br label %735

.preheader:                                       ; preds = %735
  br i1 %.not.not584786, label %.lr.ph792, label %._crit_edge793

.lr.ph792:                                        ; preds = %.preheader
  %731 = getelementptr inbounds i8, ptr %14, i64 56
  %732 = fsub double %.1525, %.1523
  %733 = getelementptr inbounds i8, ptr %16, i64 56
  %xtraiter955 = and i64 %51, 1
  %734 = icmp eq i64 %51, 1
  br i1 %734, label %._crit_edge793.loopexit.unr-lcssa, label %.lr.ph792.new

.lr.ph792.new:                                    ; preds = %.lr.ph792
  %unroll_iter958 = and i64 %51, 9223372036854775806
  br label %757

735:                                              ; preds = %.lr.ph789, %735
  %.20787 = phi i64 [ 0, %.lr.ph789 ], [ %756, %735 ]
  %736 = load ptr, ptr %727, align 8, !tbaa !13
  %737 = getelementptr inbounds double, ptr %736, i64 %.20787
  %738 = load double, ptr %737, align 8, !tbaa !14
  %739 = load ptr, ptr %728, align 8, !tbaa !13
  %740 = load ptr, ptr %739, align 8, !tbaa !57
  %741 = load double, ptr %740, align 8, !tbaa !14
  %742 = load ptr, ptr %729, align 8, !tbaa !13
  %743 = getelementptr inbounds double, ptr %742, i64 %.20787
  %744 = load double, ptr %743, align 8, !tbaa !14
  %745 = call double @llvm.fmuladd.f64(double %741, double %744, double %738)
  %746 = getelementptr inbounds i8, ptr %740, i64 8
  %747 = load double, ptr %746, align 8, !tbaa !14
  %748 = fadd double %745, %747
  store double %748, ptr %737, align 8, !tbaa !14
  %749 = load ptr, ptr %730, align 8, !tbaa !13
  %750 = getelementptr inbounds double, ptr %749, i64 %.20787
  %751 = load double, ptr %750, align 8, !tbaa !14
  %752 = load ptr, ptr %728, align 8, !tbaa !13
  %753 = load ptr, ptr %752, align 8, !tbaa !57
  %754 = load double, ptr %753, align 8, !tbaa !14
  %755 = fadd double %751, %754
  store double %755, ptr %750, align 8, !tbaa !14
  %756 = add nuw nsw i64 %.20787, 1
  %exitcond846.not = icmp eq i64 %756, %51
  br i1 %exitcond846.not, label %.preheader, label %735, !llvm.loop !76

757:                                              ; preds = %757, %.lr.ph792.new
  %.21791 = phi i64 [ 0, %.lr.ph792.new ], [ %775, %757 ]
  %niter959 = phi i64 [ 0, %.lr.ph792.new ], [ %niter959.next.1, %757 ]
  %758 = load ptr, ptr %731, align 8, !tbaa !13
  %759 = getelementptr inbounds double, ptr %758, i64 %.21791
  %760 = load double, ptr %759, align 8, !tbaa !14
  %761 = call double @llvm.fmuladd.f64(double %760, double %732, double %.1523)
  store double %761, ptr %759, align 8, !tbaa !14
  %762 = load ptr, ptr %733, align 8, !tbaa !13
  %763 = getelementptr inbounds double, ptr %762, i64 %.21791
  %764 = load double, ptr %763, align 8, !tbaa !14
  %765 = fdiv double %764, %732
  store double %765, ptr %763, align 8, !tbaa !14
  %766 = or disjoint i64 %.21791, 1
  %767 = load ptr, ptr %731, align 8, !tbaa !13
  %768 = getelementptr inbounds double, ptr %767, i64 %766
  %769 = load double, ptr %768, align 8, !tbaa !14
  %770 = call double @llvm.fmuladd.f64(double %769, double %732, double %.1523)
  store double %770, ptr %768, align 8, !tbaa !14
  %771 = load ptr, ptr %733, align 8, !tbaa !13
  %772 = getelementptr inbounds double, ptr %771, i64 %766
  %773 = load double, ptr %772, align 8, !tbaa !14
  %774 = fdiv double %773, %732
  store double %774, ptr %772, align 8, !tbaa !14
  %775 = add nuw nsw i64 %.21791, 2
  %niter959.next.1 = add i64 %niter959, 2
  %niter959.ncmp.1 = icmp eq i64 %niter959.next.1, %unroll_iter958
  br i1 %niter959.ncmp.1, label %._crit_edge793.loopexit.unr-lcssa, label %757, !llvm.loop !77

._crit_edge793.loopexit.unr-lcssa:                ; preds = %757, %.lr.ph792
  %.21791.unr = phi i64 [ 0, %.lr.ph792 ], [ %775, %757 ]
  %lcmp.mod957.not = icmp eq i64 %xtraiter955, 0
  br i1 %lcmp.mod957.not, label %._crit_edge793, label %._crit_edge793.loopexit.epilog-lcssa

._crit_edge793.loopexit.epilog-lcssa:             ; preds = %._crit_edge793.loopexit.unr-lcssa
  %776 = load ptr, ptr %731, align 8, !tbaa !13
  %777 = getelementptr inbounds double, ptr %776, i64 %.21791.unr
  %778 = load double, ptr %777, align 8, !tbaa !14
  %779 = call double @llvm.fmuladd.f64(double %778, double %732, double %.1523)
  store double %779, ptr %777, align 8, !tbaa !14
  %780 = load ptr, ptr %733, align 8, !tbaa !13
  %781 = getelementptr inbounds double, ptr %780, i64 %.21791.unr
  %782 = load double, ptr %781, align 8, !tbaa !14
  %783 = fdiv double %782, %732
  store double %783, ptr %781, align 8, !tbaa !14
  br label %._crit_edge793

._crit_edge793:                                   ; preds = %._crit_edge793.loopexit.epilog-lcssa, %._crit_edge793.loopexit.unr-lcssa, %726, %.preheader
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPKNS_9ae_vectorES2_S2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, i64 noundef %51, ptr noundef %5, ptr noundef %7)
  br i1 %58, label %784, label %788

784:                                              ; preds = %._crit_edge793
  %785 = call noundef i64 @_ZN11alglib_impl12ae_tickcountEv()
  %786 = sub nsw i64 %785, %.0520596
  %787 = trunc i64 %786 to i32
  call void (ptr, ...) @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef nonnull @.str.399, i32 noundef %787)
  br label %788

788:                                              ; preds = %784, %._crit_edge793
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 624, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 2192, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  ret void
}

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

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

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double 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 double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

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

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(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 void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr 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_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double 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 #2

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

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

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

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

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

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl19ae_is_trace_enabledEPKc(ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl12ae_tickcountEv() local_unnamed_addr #2

declare void @_ZN11alglib_impl8ae_traceEPKcz(ptr noundef, ...) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef double @_ZN11alglib_implL18spline1d_basiscalcEPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef double @_ZN11alglib_implL19spline1d_basisdiff2EPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef double @_ZN11alglib_implL18spline1d_basisdiffEPKNS_14spline1dbbasisEldPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #5

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !17}
!23 = !{!24, !7, i64 8}
!24 = !{!"_ZTSN11alglib_impl14spline1dbbasisE", !7, i64 0, !7, i64 8, !25, i64 16, !25, i64 176, !25, i64 336, !6, i64 496, !6, i64 560}
!25 = !{!"_ZTSN11alglib_impl19spline1dinterpolantE", !10, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !6, i64 32, !6, i64 96}
!26 = !{!27, !7, i64 328}
!27 = !{!"_ZTSN11alglib_impl12sparsematrixE", !6, i64 0, !6, i64 64, !6, i64 128, !6, i64 192, !6, i64 256, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360}
!28 = !{!27, !7, i64 336}
!29 = !{!7, !7, i64 0}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}
!34 = distinct !{!34, !17}
!35 = distinct !{!35, !17}
!36 = distinct !{!36, !17}
!37 = distinct !{!37, !17}
!38 = distinct !{!38, !17}
!39 = distinct !{!39, !17}
!40 = !{!41, !10, i64 1762}
!41 = !{!"_ZTSN11alglib_impl12linlsqrstateE", !42, i64 0, !6, i64 792, !6, i64 856, !7, i64 920, !7, i64 928, !7, i64 936, !6, i64 944, !6, i64 1008, !6, i64 1072, !6, i64 1136, !6, i64 1200, !6, i64 1264, !15, i64 1328, !15, i64 1336, !15, i64 1344, !15, i64 1352, !15, i64 1360, !15, i64 1368, !15, i64 1376, !15, i64 1384, !15, i64 1392, !15, i64 1400, !15, i64 1408, !15, i64 1416, !15, i64 1424, !15, i64 1432, !6, i64 1440, !15, i64 1504, !15, i64 1512, !15, i64 1520, !15, i64 1528, !6, i64 1536, !6, i64 1600, !6, i64 1664, !15, i64 1728, !15, i64 1736, !15, i64 1744, !7, i64 1752, !10, i64 1760, !10, i64 1761, !10, i64 1762, !10, i64 1763, !10, i64 1764, !10, i64 1765, !10, i64 1766, !7, i64 1768, !7, i64 1776, !7, i64 1784, !10, i64 1792, !10, i64 1793, !6, i64 1800, !6, i64 1864, !44, i64 1928}
!42 = !{!"_ZTSN11alglib_impl18normestimatorstateE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !6, i64 40, !6, i64 104, !6, i64 168, !6, i64 232, !43, i64 296, !6, i64 320, !6, i64 384, !6, i64 448, !10, i64 512, !10, i64 513, !15, i64 520, !44, i64 528}
!43 = !{!"_ZTSN11alglib_impl10hqrndstateE", !7, i64 0, !7, i64 8, !7, i64 16}
!44 = !{!"_ZTSN11alglib_impl10rcommstateE", !45, i64 0, !6, i64 8, !6, i64 72, !6, i64 136, !6, i64 200}
!45 = !{!"int", !8, i64 0}
!46 = !{i8 0, i8 2}
!47 = !{}
!48 = !{!41, !10, i64 1763}
!49 = !{!41, !10, i64 1761}
!50 = distinct !{!50, !17}
!51 = distinct !{!51, !17}
!52 = distinct !{!52, !21}
!53 = distinct !{!53, !17}
!54 = distinct !{!54, !21}
!55 = distinct !{!55, !17}
!56 = distinct !{!56, !17}
!57 = !{!12, !12, i64 0}
!58 = distinct !{!58, !17}
!59 = distinct !{!59, !21}
!60 = distinct !{!60, !17}
!61 = distinct !{!61, !17}
!62 = distinct !{!62, !17}
!63 = distinct !{!63, !17}
!64 = distinct !{!64, !17}
!65 = distinct !{!65, !21}
!66 = distinct !{!66, !17}
!67 = distinct !{!67, !21}
!68 = distinct !{!68, !17}
!69 = !{!70, !7, i64 0}
!70 = !{!"_ZTSN11alglib_impl17spline1dfitreportE", !7, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40}
!71 = !{!70, !15, i64 16}
!72 = !{!70, !15, i64 24}
!73 = !{!70, !15, i64 40}
!74 = !{!70, !15, i64 32}
!75 = distinct !{!75, !17}
!76 = distinct !{!76, !17}
!77 = distinct !{!77, !17}


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