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

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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::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::spline1dinterpolant" = type { i8, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"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::spline2dxdesignmatrix" = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::spline2dblockllsbuf" = type { %"struct.alglib_impl::linlsqrstate", %"struct.alglib_impl::linlsqrreport", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"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::spline2dbuilder" = type { i64, double, i64, double, double, double, double, i64, i64, i64, double, i64, i64, double, %"struct.alglib_impl::ae_vector", i64, i64, double, double, i8, i64, i64, i64 }
%"struct.alglib_impl::spline2dinterpolant" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::spline2dfitreport" = type { double, double, double, double }

@.str.149 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.762 = external hidden unnamed_addr constant [29 x i8], align 1
@_ZN11alglib_implL26spline2d_lambdaregblockllsE = external hidden global double, align 8

; 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_impl18spline1dbuildcubicEPNS_9ae_vectorES1_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
define dso_local void @_ZN11alglib_impl11spline2dfitEPNS_15spline2dbuilderEPNS_19spline2dinterpolantEPNS_17spline2dfitreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca double, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  %41 = alloca i64, align 8
  %42 = alloca double, align 8
  %43 = alloca %"struct.alglib_impl::ae_vector", align 8
  %44 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %45 = alloca %"struct.alglib_impl::ae_vector", align 8
  %46 = alloca %"struct.alglib_impl::ae_vector", align 8
  %47 = alloca %"struct.alglib_impl::ae_vector", align 8
  %48 = alloca %"struct.alglib_impl::ae_vector", align 8
  %49 = alloca %"struct.alglib_impl::ae_vector", align 8
  %50 = alloca %"struct.alglib_impl::ae_vector", align 8
  %51 = alloca %"struct.alglib_impl::ae_vector", align 8
  %52 = alloca %"struct.alglib_impl::spline1dinterpolant", align 8
  %53 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %54 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %55 = alloca %"struct.alglib_impl::spline2dxdesignmatrix", align 8
  %56 = alloca %"struct.alglib_impl::ae_vector", align 8
  %57 = alloca %"struct.alglib_impl::spline2dblockllsbuf", align 8
  %58 = alloca i64, align 8
  %59 = alloca i64, align 8
  %60 = alloca i64, align 8
  %61 = alloca double, align 8
  %62 = alloca i64, align 8
  %63 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, 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 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 8, 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 80, ptr %44) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %45) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %46) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %47) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %48) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %49) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %50) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %51) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr %52) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr %53) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr %54) #5
  call void @llvm.lifetime.start.p0(i64 496, ptr %55) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %56) #5
  call void @llvm.lifetime.start.p0(i64 2648, 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 8, ptr %62) #5
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %64, ptr noundef %9)
  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 80, 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 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %47, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %48, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %49, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %50, i8 0, i64 64, 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 160, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %53, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %54, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %55, i8 0, i64 496, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %56, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %57, i8 0, i64 2648, i1 false)
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl26_spline2dinterpolant_clearEPv(ptr noundef %65)
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl24_spline2dfitreport_clearEPv(ptr noundef %66)
  %67 = load ptr, ptr %8, 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 %67, i1 noundef zeroext true)
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %44, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %68, i1 noundef zeroext true)
  %69 = load ptr, ptr %8, 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 %69, i1 noundef zeroext true)
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %46, i64 noundef 0, i64 noundef 3, ptr noundef %70, i1 noundef zeroext true)
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %47, i64 noundef 0, i64 noundef 3, ptr noundef %71, i1 noundef zeroext true)
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %48, i64 noundef 0, i64 noundef 3, ptr noundef %72, i1 noundef zeroext true)
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %49, i64 noundef 0, i64 noundef 3, ptr noundef %73, i1 noundef zeroext true)
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %50, i64 noundef 0, i64 noundef 2, ptr noundef %74, i1 noundef zeroext true)
  %75 = load ptr, ptr %8, 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 %75, i1 noundef zeroext true)
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef %52, ptr noundef %76, i1 noundef zeroext true)
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %53, ptr noundef %77, i1 noundef zeroext true)
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %54, ptr noundef %78, i1 noundef zeroext true)
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl27_spline2dxdesignmatrix_initEPvPNS_8ae_stateEb(ptr noundef %55, ptr noundef %79, i1 noundef zeroext true)
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %56, i64 noundef 0, i64 noundef 3, ptr noundef %80, i1 noundef zeroext true)
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl25_spline2dblockllsbuf_initEPvPNS_8ae_stateEb(ptr noundef %57, ptr noundef %81, i1 noundef zeroext true)
  store i64 4, ptr %25, align 8, !tbaa !9
  store i64 2, ptr %26, align 8, !tbaa !9
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %82, i32 0, i32 15
  %84 = load i64, ptr %83, align 8, !tbaa !11
  store i64 %84, ptr %27, align 8, !tbaa !9
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %85, i32 0, i32 16
  %87 = load i64, ptr %86, align 8, !tbaa !17
  store i64 %87, ptr %28, align 8, !tbaa !9
  %88 = load i64, ptr %28, align 8, !tbaa !9
  %89 = add nsw i64 2, %88
  store i64 %89, ptr %29, align 8, !tbaa !9
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %90, i32 0, i32 17
  %92 = load double, ptr %91, align 8, !tbaa !18
  %93 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %92, double noundef 1.000000e+00)
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %93, ptr noundef @.str.762, ptr noundef %94)
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %95, i32 0, i32 18
  %97 = load double, ptr %96, align 8, !tbaa !19
  %98 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %97, double noundef 1.000000e+00)
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %98, ptr noundef @.str.762, ptr noundef %99)
  store double 0.000000e+00, ptr %10, align 8, !tbaa !20
  store double 0.000000e+00, ptr %11, align 8, !tbaa !20
  store double 0.000000e+00, ptr %12, align 8, !tbaa !20
  store double 0.000000e+00, ptr %13, align 8, !tbaa !20
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %100, i32 0, i32 2
  %102 = load i64, ptr %101, align 8, !tbaa !21
  %103 = icmp eq i64 %102, 0
  br i1 %103, label %104, label %196

104:                                              ; preds = %4
  %105 = load i64, ptr %27, align 8, !tbaa !9
  %106 = icmp sgt i64 %105, 0
  br i1 %106, label %107, label %194

107:                                              ; preds = %104
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %108, i32 0, i32 14
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %109, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !22
  %112 = getelementptr inbounds double, ptr %111, i64 0
  %113 = load double, ptr %112, align 8, !tbaa !20
  store double %113, ptr %10, align 8, !tbaa !20
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %114, i32 0, i32 14
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %115, i32 0, i32 4
  %117 = load ptr, ptr %116, align 8, !tbaa !22
  %118 = getelementptr inbounds double, ptr %117, i64 0
  %119 = load double, ptr %118, align 8, !tbaa !20
  store double %119, ptr %11, align 8, !tbaa !20
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %120, i32 0, i32 14
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %121, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !22
  %124 = getelementptr inbounds double, ptr %123, i64 1
  %125 = load double, ptr %124, align 8, !tbaa !20
  store double %125, ptr %12, align 8, !tbaa !20
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %126, i32 0, i32 14
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %127, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !22
  %130 = getelementptr inbounds double, ptr %129, i64 1
  %131 = load double, ptr %130, align 8, !tbaa !20
  store double %131, ptr %13, align 8, !tbaa !20
  store i64 1, ptr %30, align 8, !tbaa !9
  br label %132

132:                                              ; preds = %190, %107
  %133 = load i64, ptr %30, align 8, !tbaa !9
  %134 = load i64, ptr %27, align 8, !tbaa !9
  %135 = sub nsw i64 %134, 1
  %136 = icmp sle i64 %133, %135
  br i1 %136, label %137, label %193

137:                                              ; preds = %132
  %138 = load double, ptr %10, align 8, !tbaa !20
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %139, i32 0, i32 14
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %140, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !22
  %143 = load i64, ptr %30, align 8, !tbaa !9
  %144 = load i64, ptr %29, align 8, !tbaa !9
  %145 = mul nsw i64 %143, %144
  %146 = add nsw i64 %145, 0
  %147 = getelementptr inbounds double, ptr %142, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !20
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %138, double noundef %148, ptr noundef %149)
  store double %150, ptr %10, align 8, !tbaa !20
  %151 = load double, ptr %11, align 8, !tbaa !20
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %152, i32 0, i32 14
  %154 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %153, i32 0, i32 4
  %155 = load ptr, ptr %154, align 8, !tbaa !22
  %156 = load i64, ptr %30, align 8, !tbaa !9
  %157 = load i64, ptr %29, align 8, !tbaa !9
  %158 = mul nsw i64 %156, %157
  %159 = add nsw i64 %158, 0
  %160 = getelementptr inbounds double, ptr %155, i64 %159
  %161 = load double, ptr %160, align 8, !tbaa !20
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %151, double noundef %161, ptr noundef %162)
  store double %163, ptr %11, align 8, !tbaa !20
  %164 = load double, ptr %12, align 8, !tbaa !20
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %165, i32 0, i32 14
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %166, i32 0, i32 4
  %168 = load ptr, ptr %167, align 8, !tbaa !22
  %169 = load i64, ptr %30, align 8, !tbaa !9
  %170 = load i64, ptr %29, align 8, !tbaa !9
  %171 = mul nsw i64 %169, %170
  %172 = add nsw i64 %171, 1
  %173 = getelementptr inbounds double, ptr %168, i64 %172
  %174 = load double, ptr %173, align 8, !tbaa !20
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %164, double noundef %174, ptr noundef %175)
  store double %176, ptr %12, align 8, !tbaa !20
  %177 = load double, ptr %13, align 8, !tbaa !20
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %178, i32 0, i32 14
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %179, i32 0, i32 4
  %181 = load ptr, ptr %180, align 8, !tbaa !22
  %182 = load i64, ptr %30, align 8, !tbaa !9
  %183 = load i64, ptr %29, align 8, !tbaa !9
  %184 = mul nsw i64 %182, %183
  %185 = add nsw i64 %184, 1
  %186 = getelementptr inbounds double, ptr %181, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !20
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  %189 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %177, double noundef %187, ptr noundef %188)
  store double %189, ptr %13, align 8, !tbaa !20
  br label %190

190:                                              ; preds = %137
  %191 = load i64, ptr %30, align 8, !tbaa !9
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %30, align 8, !tbaa !9
  br label %132, !llvm.loop !23

193:                                              ; preds = %132
  br label %195

194:                                              ; preds = %104
  store double -1.000000e+00, ptr %10, align 8, !tbaa !20
  store double 1.000000e+00, ptr %11, align 8, !tbaa !20
  store double -1.000000e+00, ptr %12, align 8, !tbaa !20
  store double 1.000000e+00, ptr %13, align 8, !tbaa !20
  br label %195

195:                                              ; preds = %194, %193
  br label %217

196:                                              ; preds = %4
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %197, i32 0, i32 2
  %199 = load i64, ptr %198, align 8, !tbaa !21
  %200 = icmp eq i64 %199, 1
  br i1 %200, label %201, label %214

201:                                              ; preds = %196
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %202, i32 0, i32 3
  %204 = load double, ptr %203, align 8, !tbaa !25
  store double %204, ptr %10, align 8, !tbaa !20
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %205, i32 0, i32 4
  %207 = load double, ptr %206, align 8, !tbaa !26
  store double %207, ptr %11, align 8, !tbaa !20
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %208, i32 0, i32 5
  %210 = load double, ptr %209, align 8, !tbaa !27
  store double %210, ptr %12, align 8, !tbaa !20
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %211, i32 0, i32 6
  %213 = load double, ptr %212, align 8, !tbaa !28
  store double %213, ptr %13, align 8, !tbaa !20
  br label %216

214:                                              ; preds = %196
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.149, ptr noundef %215)
  br label %216

216:                                              ; preds = %214, %201
  br label %217

217:                                              ; preds = %216, %195
  %218 = load double, ptr %10, align 8, !tbaa !20
  %219 = load double, ptr %11, align 8, !tbaa !20
  %220 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %218, double noundef %219)
  br i1 %220, label %221, label %238

221:                                              ; preds = %217
  %222 = load double, ptr %10, align 8, !tbaa !20
  store double %222, ptr %33, align 8, !tbaa !20
  %223 = load double, ptr %33, align 8, !tbaa !20
  %224 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %223, double noundef 0.000000e+00)
  br i1 %224, label %225, label %231

225:                                              ; preds = %221
  %226 = load double, ptr %33, align 8, !tbaa !20
  %227 = fdiv double %226, 2.000000e+00
  %228 = fsub double %227, 1.000000e+00
  store double %228, ptr %10, align 8, !tbaa !20
  %229 = load double, ptr %33, align 8, !tbaa !20
  %230 = call double @llvm.fmuladd.f64(double %229, double 2.000000e+00, double 1.000000e+00)
  store double %230, ptr %11, align 8, !tbaa !20
  br label %237

231:                                              ; preds = %221
  %232 = load double, ptr %33, align 8, !tbaa !20
  %233 = call double @llvm.fmuladd.f64(double %232, double 2.000000e+00, double -1.000000e+00)
  store double %233, ptr %10, align 8, !tbaa !20
  %234 = load double, ptr %33, align 8, !tbaa !20
  %235 = fdiv double %234, 2.000000e+00
  %236 = fadd double %235, 1.000000e+00
  store double %236, ptr %11, align 8, !tbaa !20
  br label %237

237:                                              ; preds = %231, %225
  br label %238

238:                                              ; preds = %237, %217
  %239 = load double, ptr %12, align 8, !tbaa !20
  %240 = load double, ptr %13, align 8, !tbaa !20
  %241 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %239, double noundef %240)
  br i1 %241, label %242, label %259

242:                                              ; preds = %238
  %243 = load double, ptr %12, align 8, !tbaa !20
  store double %243, ptr %33, align 8, !tbaa !20
  %244 = load double, ptr %33, align 8, !tbaa !20
  %245 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %244, double noundef 0.000000e+00)
  br i1 %245, label %246, label %252

246:                                              ; preds = %242
  %247 = load double, ptr %33, align 8, !tbaa !20
  %248 = fdiv double %247, 2.000000e+00
  %249 = fsub double %248, 1.000000e+00
  store double %249, ptr %12, align 8, !tbaa !20
  %250 = load double, ptr %33, align 8, !tbaa !20
  %251 = call double @llvm.fmuladd.f64(double %250, double 2.000000e+00, double 1.000000e+00)
  store double %251, ptr %13, align 8, !tbaa !20
  br label %258

252:                                              ; preds = %242
  %253 = load double, ptr %33, align 8, !tbaa !20
  %254 = call double @llvm.fmuladd.f64(double %253, double 2.000000e+00, double -1.000000e+00)
  store double %254, ptr %12, align 8, !tbaa !20
  %255 = load double, ptr %33, align 8, !tbaa !20
  %256 = fdiv double %255, 2.000000e+00
  %257 = fadd double %256, 1.000000e+00
  store double %257, ptr %13, align 8, !tbaa !20
  br label %258

258:                                              ; preds = %252, %246
  br label %259

259:                                              ; preds = %258, %238
  %260 = load double, ptr %10, align 8, !tbaa !20
  %261 = load double, ptr %11, align 8, !tbaa !20
  %262 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %260, double noundef %261)
  %263 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %262, ptr noundef @.str.762, ptr noundef %263)
  %264 = load double, ptr %12, align 8, !tbaa !20
  %265 = load double, ptr %13, align 8, !tbaa !20
  %266 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %264, double noundef %265)
  %267 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %266, ptr noundef @.str.762, ptr noundef %267)
  store i64 0, ptr %18, align 8, !tbaa !9
  store i64 0, ptr %19, align 8, !tbaa !9
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %268, i32 0, i32 7
  %270 = load i64, ptr %269, align 8, !tbaa !29
  %271 = icmp eq i64 %270, 0
  br i1 %271, label %272, label %273

272:                                              ; preds = %259
  store i64 4, ptr %18, align 8, !tbaa !9
  store i64 4, ptr %19, align 8, !tbaa !9
  br label %288

273:                                              ; preds = %259
  %274 = load ptr, ptr %5, align 8, !tbaa !5
  %275 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %274, i32 0, i32 7
  %276 = load i64, ptr %275, align 8, !tbaa !29
  %277 = icmp eq i64 %276, 1
  br i1 %277, label %278, label %285

278:                                              ; preds = %273
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %279, i32 0, i32 8
  %281 = load i64, ptr %280, align 8, !tbaa !30
  store i64 %281, ptr %18, align 8, !tbaa !9
  %282 = load ptr, ptr %5, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %282, i32 0, i32 9
  %284 = load i64, ptr %283, align 8, !tbaa !31
  store i64 %284, ptr %19, align 8, !tbaa !9
  br label %287

285:                                              ; preds = %273
  %286 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.149, ptr noundef %286)
  br label %287

287:                                              ; preds = %285, %278
  br label %288

288:                                              ; preds = %287, %272
  %289 = load i64, ptr %18, align 8, !tbaa !9
  %290 = icmp sgt i64 %289, 0
  %291 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %290, ptr noundef @.str.762, ptr noundef %291)
  %292 = load i64, ptr %19, align 8, !tbaa !9
  %293 = icmp sgt i64 %292, 0
  %294 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %293, ptr noundef @.str.762, ptr noundef %294)
  store i64 -1, ptr %40, align 8, !tbaa !9
  store i64 -1, ptr %41, align 8, !tbaa !9
  %295 = load ptr, ptr %5, align 8, !tbaa !5
  %296 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %295, i32 0, i32 12
  %297 = load i64, ptr %296, align 8, !tbaa !32
  %298 = icmp eq i64 %297, 3
  br i1 %298, label %299, label %407

299:                                              ; preds = %288
  %300 = load i64, ptr %18, align 8, !tbaa !9
  %301 = load i64, ptr %25, align 8, !tbaa !9
  %302 = load ptr, ptr %8, align 8, !tbaa !5
  %303 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %300, i64 noundef %301, ptr noundef %302)
  store i64 %303, ptr %18, align 8, !tbaa !9
  %304 = load i64, ptr %19, align 8, !tbaa !9
  %305 = load i64, ptr %25, align 8, !tbaa !9
  %306 = load ptr, ptr %8, align 8, !tbaa !5
  %307 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %304, i64 noundef %305, ptr noundef %306)
  store i64 %307, ptr %19, align 8, !tbaa !9
  store i64 1, ptr %32, align 8, !tbaa !9
  br label %308

308:                                              ; preds = %318, %299
  %309 = load i64, ptr %18, align 8, !tbaa !9
  %310 = load i64, ptr %19, align 8, !tbaa !9
  %311 = load ptr, ptr %8, align 8, !tbaa !5
  %312 = call noundef i64 @_ZN11alglib_impl5imin2EllPNS_8ae_stateE(i64 noundef %309, i64 noundef %310, ptr noundef %311)
  %313 = load ptr, ptr %5, align 8, !tbaa !5
  %314 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %313, i32 0, i32 22
  %315 = load i64, ptr %314, align 8, !tbaa !33
  %316 = add nsw i64 %315, 1
  %317 = icmp sgt i64 %312, %316
  br i1 %317, label %318, label %331

318:                                              ; preds = %308
  %319 = load i64, ptr %18, align 8, !tbaa !9
  %320 = sub nsw i64 %319, 1
  %321 = load ptr, ptr %8, align 8, !tbaa !5
  %322 = call noundef i64 @_ZN11alglib_impl6idivupEllPNS_8ae_stateE(i64 noundef %320, i64 noundef 2, ptr noundef %321)
  %323 = add nsw i64 %322, 1
  store i64 %323, ptr %18, align 8, !tbaa !9
  %324 = load i64, ptr %19, align 8, !tbaa !9
  %325 = sub nsw i64 %324, 1
  %326 = load ptr, ptr %8, align 8, !tbaa !5
  %327 = call noundef i64 @_ZN11alglib_impl6idivupEllPNS_8ae_stateE(i64 noundef %325, i64 noundef 2, ptr noundef %326)
  %328 = add nsw i64 %327, 1
  store i64 %328, ptr %19, align 8, !tbaa !9
  %329 = load i64, ptr %32, align 8, !tbaa !9
  %330 = add nsw i64 %329, 1
  store i64 %330, ptr %32, align 8, !tbaa !9
  br label %308, !llvm.loop !34

331:                                              ; preds = %308
  %332 = load i64, ptr %18, align 8, !tbaa !9
  %333 = sub nsw i64 %332, 1
  store i64 %333, ptr %40, align 8, !tbaa !9
  store i64 1, ptr %34, align 8, !tbaa !9
  br label %334

334:                                              ; preds = %341, %331
  %335 = load i64, ptr %18, align 8, !tbaa !9
  %336 = load ptr, ptr %5, align 8, !tbaa !5
  %337 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %336, i32 0, i32 22
  %338 = load i64, ptr %337, align 8, !tbaa !33
  %339 = add nsw i64 %338, 1
  %340 = icmp sgt i64 %335, %339
  br i1 %340, label %341, label %350

341:                                              ; preds = %334
  %342 = load i64, ptr %18, align 8, !tbaa !9
  %343 = sub nsw i64 %342, 1
  %344 = load ptr, ptr %8, align 8, !tbaa !5
  %345 = call noundef i64 @_ZN11alglib_impl6idivupEllPNS_8ae_stateE(i64 noundef %343, i64 noundef 2, ptr noundef %344)
  store i64 %345, ptr %40, align 8, !tbaa !9
  %346 = load i64, ptr %40, align 8, !tbaa !9
  %347 = add nsw i64 %346, 1
  store i64 %347, ptr %18, align 8, !tbaa !9
  %348 = load i64, ptr %34, align 8, !tbaa !9
  %349 = add nsw i64 %348, 1
  store i64 %349, ptr %34, align 8, !tbaa !9
  br label %334, !llvm.loop !35

350:                                              ; preds = %334
  br label %351

351:                                              ; preds = %354, %350
  %352 = load i64, ptr %34, align 8, !tbaa !9
  %353 = icmp sgt i64 %352, 1
  br i1 %353, label %354, label %361

354:                                              ; preds = %351
  %355 = load i64, ptr %18, align 8, !tbaa !9
  %356 = sub nsw i64 %355, 1
  %357 = mul nsw i64 %356, 2
  %358 = add nsw i64 %357, 1
  store i64 %358, ptr %18, align 8, !tbaa !9
  %359 = load i64, ptr %34, align 8, !tbaa !9
  %360 = sub nsw i64 %359, 1
  store i64 %360, ptr %34, align 8, !tbaa !9
  br label %351, !llvm.loop !36

361:                                              ; preds = %351
  %362 = load i64, ptr %19, align 8, !tbaa !9
  %363 = sub nsw i64 %362, 1
  store i64 %363, ptr %41, align 8, !tbaa !9
  store i64 1, ptr %35, align 8, !tbaa !9
  br label %364

364:                                              ; preds = %371, %361
  %365 = load i64, ptr %19, align 8, !tbaa !9
  %366 = load ptr, ptr %5, align 8, !tbaa !5
  %367 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %366, i32 0, i32 22
  %368 = load i64, ptr %367, align 8, !tbaa !33
  %369 = add nsw i64 %368, 1
  %370 = icmp sgt i64 %365, %369
  br i1 %370, label %371, label %380

371:                                              ; preds = %364
  %372 = load i64, ptr %19, align 8, !tbaa !9
  %373 = sub nsw i64 %372, 1
  %374 = load ptr, ptr %8, align 8, !tbaa !5
  %375 = call noundef i64 @_ZN11alglib_impl6idivupEllPNS_8ae_stateE(i64 noundef %373, i64 noundef 2, ptr noundef %374)
  store i64 %375, ptr %41, align 8, !tbaa !9
  %376 = load i64, ptr %41, align 8, !tbaa !9
  %377 = add nsw i64 %376, 1
  store i64 %377, ptr %19, align 8, !tbaa !9
  %378 = load i64, ptr %35, align 8, !tbaa !9
  %379 = add nsw i64 %378, 1
  store i64 %379, ptr %35, align 8, !tbaa !9
  br label %364, !llvm.loop !37

380:                                              ; preds = %364
  br label %381

381:                                              ; preds = %384, %380
  %382 = load i64, ptr %35, align 8, !tbaa !9
  %383 = icmp sgt i64 %382, 1
  br i1 %383, label %384, label %391

384:                                              ; preds = %381
  %385 = load i64, ptr %19, align 8, !tbaa !9
  %386 = sub nsw i64 %385, 1
  %387 = mul nsw i64 %386, 2
  %388 = add nsw i64 %387, 1
  store i64 %388, ptr %19, align 8, !tbaa !9
  %389 = load i64, ptr %35, align 8, !tbaa !9
  %390 = sub nsw i64 %389, 1
  store i64 %390, ptr %35, align 8, !tbaa !9
  br label %381, !llvm.loop !38

391:                                              ; preds = %381
  br label %392

392:                                              ; preds = %395, %391
  %393 = load i64, ptr %32, align 8, !tbaa !9
  %394 = icmp sgt i64 %393, 1
  br i1 %394, label %395, label %406

395:                                              ; preds = %392
  %396 = load i64, ptr %18, align 8, !tbaa !9
  %397 = sub nsw i64 %396, 1
  %398 = mul nsw i64 %397, 2
  %399 = add nsw i64 %398, 1
  store i64 %399, ptr %18, align 8, !tbaa !9
  %400 = load i64, ptr %19, align 8, !tbaa !9
  %401 = sub nsw i64 %400, 1
  %402 = mul nsw i64 %401, 2
  %403 = add nsw i64 %402, 1
  store i64 %403, ptr %19, align 8, !tbaa !9
  %404 = load i64, ptr %32, align 8, !tbaa !9
  %405 = sub nsw i64 %404, 1
  store i64 %405, ptr %32, align 8, !tbaa !9
  br label %392, !llvm.loop !39

406:                                              ; preds = %392
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %423

407:                                              ; preds = %288
  %408 = load i64, ptr %18, align 8, !tbaa !9
  %409 = load i64, ptr %25, align 8, !tbaa !9
  %410 = load ptr, ptr %8, align 8, !tbaa !5
  %411 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %408, i64 noundef %409, ptr noundef %410)
  store i64 %411, ptr %18, align 8, !tbaa !9
  %412 = load i64, ptr %19, align 8, !tbaa !9
  %413 = load i64, ptr %25, align 8, !tbaa !9
  %414 = load ptr, ptr %8, align 8, !tbaa !5
  %415 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %412, i64 noundef %413, ptr noundef %414)
  store i64 %415, ptr %19, align 8, !tbaa !9
  %416 = load ptr, ptr %5, align 8, !tbaa !5
  %417 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %416, i32 0, i32 19
  %418 = load i8, ptr %417, align 8, !tbaa !40, !range !41, !noundef !42
  %419 = trunc i8 %418 to i1
  br i1 %419, label %420, label %421

420:                                              ; preds = %407
  store i64 1, ptr %24, align 8, !tbaa !9
  br label %422

421:                                              ; preds = %407
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %422

422:                                              ; preds = %421, %420
  br label %423

423:                                              ; preds = %422, %406
  %424 = load double, ptr %11, align 8, !tbaa !20
  %425 = load double, ptr %10, align 8, !tbaa !20
  %426 = fsub double %424, %425
  %427 = load ptr, ptr %8, align 8, !tbaa !5
  %428 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %426, double noundef 1.000000e+00, ptr noundef %427)
  %429 = load i64, ptr %18, align 8, !tbaa !9
  %430 = sub nsw i64 %429, 1
  %431 = sitofp i64 %430 to double
  %432 = fdiv double %428, %431
  store double %432, ptr %20, align 8, !tbaa !20
  %433 = load double, ptr %13, align 8, !tbaa !20
  %434 = load double, ptr %12, align 8, !tbaa !20
  %435 = fsub double %433, %434
  %436 = load ptr, ptr %8, align 8, !tbaa !5
  %437 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %435, double noundef 1.000000e+00, ptr noundef %436)
  %438 = load i64, ptr %19, align 8, !tbaa !9
  %439 = sub nsw i64 %438, 1
  %440 = sitofp i64 %439 to double
  %441 = fdiv double %437, %440
  store double %441, ptr %21, align 8, !tbaa !20
  %442 = load double, ptr %20, align 8, !tbaa !20
  %443 = fdiv double 1.000000e+00, %442
  store double %443, ptr %22, align 8, !tbaa !20
  %444 = load double, ptr %21, align 8, !tbaa !20
  %445 = fdiv double 1.000000e+00, %444
  store double %445, ptr %23, align 8, !tbaa !20
  %446 = load double, ptr %10, align 8, !tbaa !20
  store double %446, ptr %14, align 8, !tbaa !20
  %447 = load double, ptr %12, align 8, !tbaa !20
  store double %447, ptr %16, align 8, !tbaa !20
  %448 = load double, ptr %11, align 8, !tbaa !20
  store double %448, ptr %15, align 8, !tbaa !20
  %449 = load double, ptr %13, align 8, !tbaa !20
  store double %449, ptr %17, align 8, !tbaa !20
  %450 = load double, ptr %10, align 8, !tbaa !20
  %451 = load double, ptr %20, align 8, !tbaa !20
  %452 = load i64, ptr %24, align 8, !tbaa !9
  %453 = sitofp i64 %452 to double
  %454 = fneg double %451
  %455 = call double @llvm.fmuladd.f64(double %454, double %453, double %450)
  store double %455, ptr %10, align 8, !tbaa !20
  %456 = load double, ptr %12, align 8, !tbaa !20
  %457 = load double, ptr %21, align 8, !tbaa !20
  %458 = load i64, ptr %24, align 8, !tbaa !9
  %459 = sitofp i64 %458 to double
  %460 = fneg double %457
  %461 = call double @llvm.fmuladd.f64(double %460, double %459, double %456)
  store double %461, ptr %12, align 8, !tbaa !20
  %462 = load double, ptr %11, align 8, !tbaa !20
  %463 = load double, ptr %20, align 8, !tbaa !20
  %464 = load i64, ptr %24, align 8, !tbaa !9
  %465 = sitofp i64 %464 to double
  %466 = call double @llvm.fmuladd.f64(double %463, double %465, double %462)
  store double %466, ptr %11, align 8, !tbaa !20
  %467 = load double, ptr %13, align 8, !tbaa !20
  %468 = load double, ptr %21, align 8, !tbaa !20
  %469 = load i64, ptr %24, align 8, !tbaa !9
  %470 = sitofp i64 %469 to double
  %471 = call double @llvm.fmuladd.f64(double %468, double %470, double %467)
  store double %471, ptr %13, align 8, !tbaa !20
  %472 = load i64, ptr %18, align 8, !tbaa !9
  %473 = load i64, ptr %24, align 8, !tbaa !9
  %474 = mul nsw i64 2, %473
  %475 = add nsw i64 %472, %474
  store i64 %475, ptr %18, align 8, !tbaa !9
  %476 = load i64, ptr %19, align 8, !tbaa !9
  %477 = load i64, ptr %24, align 8, !tbaa !9
  %478 = mul nsw i64 2, %477
  %479 = add nsw i64 %476, %478
  store i64 %479, ptr %19, align 8, !tbaa !9
  %480 = load i64, ptr %28, align 8, !tbaa !9
  %481 = load ptr, ptr %6, align 8, !tbaa !5
  %482 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %481, i32 0, i32 3
  store i64 %480, ptr %482, align 8, !tbaa !43
  %483 = load i64, ptr %18, align 8, !tbaa !9
  %484 = load ptr, ptr %6, align 8, !tbaa !5
  %485 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %484, i32 0, i32 1
  store i64 %483, ptr %485, align 8, !tbaa !45
  %486 = load i64, ptr %19, align 8, !tbaa !9
  %487 = load ptr, ptr %6, align 8, !tbaa !5
  %488 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %487, i32 0, i32 2
  store i64 %486, ptr %488, align 8, !tbaa !46
  %489 = load ptr, ptr %6, align 8, !tbaa !5
  %490 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %489, i32 0, i32 0
  store i64 -3, ptr %490, align 8, !tbaa !47
  %491 = load ptr, ptr %6, align 8, !tbaa !5
  %492 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %491, i32 0, i32 1
  %493 = load i64, ptr %492, align 8, !tbaa !45
  %494 = load ptr, ptr %6, align 8, !tbaa !5
  %495 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %494, i32 0, i32 2
  %496 = load i64, ptr %495, align 8, !tbaa !46
  %497 = mul nsw i64 %493, %496
  %498 = load i64, ptr %28, align 8, !tbaa !9
  %499 = mul nsw i64 %497, %498
  store i64 %499, ptr %58, align 8, !tbaa !9
  %500 = load ptr, ptr %6, align 8, !tbaa !5
  %501 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %500, i32 0, i32 1
  %502 = load i64, ptr %501, align 8, !tbaa !45
  %503 = mul nsw i64 2, %502
  %504 = load ptr, ptr %6, align 8, !tbaa !5
  %505 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %504, i32 0, i32 2
  %506 = load i64, ptr %505, align 8, !tbaa !46
  %507 = mul nsw i64 %503, %506
  %508 = load i64, ptr %28, align 8, !tbaa !9
  %509 = mul nsw i64 %507, %508
  store i64 %509, ptr %59, align 8, !tbaa !9
  %510 = load ptr, ptr %6, align 8, !tbaa !5
  %511 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %510, i32 0, i32 1
  %512 = load i64, ptr %511, align 8, !tbaa !45
  %513 = mul nsw i64 3, %512
  %514 = load ptr, ptr %6, align 8, !tbaa !5
  %515 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %514, i32 0, i32 2
  %516 = load i64, ptr %515, align 8, !tbaa !46
  %517 = mul nsw i64 %513, %516
  %518 = load i64, ptr %28, align 8, !tbaa !9
  %519 = mul nsw i64 %517, %518
  store i64 %519, ptr %60, align 8, !tbaa !9
  %520 = load ptr, ptr %6, align 8, !tbaa !5
  %521 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %520, i32 0, i32 4
  %522 = load ptr, ptr %6, align 8, !tbaa !5
  %523 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %522, i32 0, i32 1
  %524 = load i64, ptr %523, align 8, !tbaa !45
  %525 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %521, i64 noundef %524, ptr noundef %525)
  %526 = load ptr, ptr %6, align 8, !tbaa !5
  %527 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %526, i32 0, i32 5
  %528 = load ptr, ptr %6, align 8, !tbaa !5
  %529 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %528, i32 0, i32 2
  %530 = load i64, ptr %529, align 8, !tbaa !46
  %531 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %527, i64 noundef %530, ptr noundef %531)
  %532 = load ptr, ptr %6, align 8, !tbaa !5
  %533 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %532, i32 0, i32 6
  %534 = load ptr, ptr %6, align 8, !tbaa !5
  %535 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %534, i32 0, i32 1
  %536 = load i64, ptr %535, align 8, !tbaa !45
  %537 = mul nsw i64 4, %536
  %538 = load ptr, ptr %6, align 8, !tbaa !5
  %539 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %538, i32 0, i32 2
  %540 = load i64, ptr %539, align 8, !tbaa !46
  %541 = mul nsw i64 %537, %540
  %542 = load i64, ptr %28, align 8, !tbaa !9
  %543 = mul nsw i64 %541, %542
  %544 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %533, i64 noundef %543, ptr noundef %544)
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %545

545:                                              ; preds = %561, %423
  %546 = load i64, ptr %30, align 8, !tbaa !9
  %547 = load ptr, ptr %6, align 8, !tbaa !5
  %548 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %547, i32 0, i32 1
  %549 = load i64, ptr %548, align 8, !tbaa !45
  %550 = sub nsw i64 %549, 1
  %551 = icmp sle i64 %546, %550
  br i1 %551, label %552, label %564

552:                                              ; preds = %545
  %553 = load i64, ptr %30, align 8, !tbaa !9
  %554 = sitofp i64 %553 to double
  %555 = load ptr, ptr %6, align 8, !tbaa !5
  %556 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %555, i32 0, i32 4
  %557 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %556, i32 0, i32 4
  %558 = load ptr, ptr %557, align 8, !tbaa !22
  %559 = load i64, ptr %30, align 8, !tbaa !9
  %560 = getelementptr inbounds double, ptr %558, i64 %559
  store double %554, ptr %560, align 8, !tbaa !20
  br label %561

561:                                              ; preds = %552
  %562 = load i64, ptr %30, align 8, !tbaa !9
  %563 = add nsw i64 %562, 1
  store i64 %563, ptr %30, align 8, !tbaa !9
  br label %545, !llvm.loop !48

564:                                              ; preds = %545
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %565

565:                                              ; preds = %581, %564
  %566 = load i64, ptr %30, align 8, !tbaa !9
  %567 = load ptr, ptr %6, align 8, !tbaa !5
  %568 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %567, i32 0, i32 2
  %569 = load i64, ptr %568, align 8, !tbaa !46
  %570 = sub nsw i64 %569, 1
  %571 = icmp sle i64 %566, %570
  br i1 %571, label %572, label %584

572:                                              ; preds = %565
  %573 = load i64, ptr %30, align 8, !tbaa !9
  %574 = sitofp i64 %573 to double
  %575 = load ptr, ptr %6, align 8, !tbaa !5
  %576 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %575, i32 0, i32 5
  %577 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %576, i32 0, i32 4
  %578 = load ptr, ptr %577, align 8, !tbaa !22
  %579 = load i64, ptr %30, align 8, !tbaa !9
  %580 = getelementptr inbounds double, ptr %578, i64 %579
  store double %574, ptr %580, align 8, !tbaa !20
  br label %581

581:                                              ; preds = %572
  %582 = load i64, ptr %30, align 8, !tbaa !9
  %583 = add nsw i64 %582, 1
  store i64 %583, ptr %30, align 8, !tbaa !9
  br label %565, !llvm.loop !49

584:                                              ; preds = %565
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %585

585:                                              ; preds = %606, %584
  %586 = load i64, ptr %30, align 8, !tbaa !9
  %587 = load ptr, ptr %6, align 8, !tbaa !5
  %588 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %587, i32 0, i32 1
  %589 = load i64, ptr %588, align 8, !tbaa !45
  %590 = mul nsw i64 4, %589
  %591 = load ptr, ptr %6, align 8, !tbaa !5
  %592 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %591, i32 0, i32 2
  %593 = load i64, ptr %592, align 8, !tbaa !46
  %594 = mul nsw i64 %590, %593
  %595 = load i64, ptr %28, align 8, !tbaa !9
  %596 = mul nsw i64 %594, %595
  %597 = sub nsw i64 %596, 1
  %598 = icmp sle i64 %586, %597
  br i1 %598, label %599, label %609

599:                                              ; preds = %585
  %600 = load ptr, ptr %6, align 8, !tbaa !5
  %601 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %600, i32 0, i32 6
  %602 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %601, i32 0, i32 4
  %603 = load ptr, ptr %602, align 8, !tbaa !22
  %604 = load i64, ptr %30, align 8, !tbaa !9
  %605 = getelementptr inbounds double, ptr %603, i64 %604
  store double 0.000000e+00, ptr %605, align 8, !tbaa !20
  br label %606

606:                                              ; preds = %599
  %607 = load i64, ptr %30, align 8, !tbaa !9
  %608 = add nsw i64 %607, 1
  store i64 %608, ptr %30, align 8, !tbaa !9
  br label %585, !llvm.loop !50

609:                                              ; preds = %585
  %610 = load i64, ptr %28, align 8, !tbaa !9
  %611 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %49, i64 noundef %610, ptr noundef %611)
  store i64 0, ptr %31, align 8, !tbaa !9
  br label %612

612:                                              ; preds = %622, %609
  %613 = load i64, ptr %31, align 8, !tbaa !9
  %614 = load i64, ptr %28, align 8, !tbaa !9
  %615 = sub nsw i64 %614, 1
  %616 = icmp sle i64 %613, %615
  br i1 %616, label %617, label %625

617:                                              ; preds = %612
  %618 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %619 = load ptr, ptr %618, align 8, !tbaa !22
  %620 = load i64, ptr %31, align 8, !tbaa !9
  %621 = getelementptr inbounds double, ptr %619, i64 %620
  store double 0.000000e+00, ptr %621, align 8, !tbaa !20
  br label %622

622:                                              ; preds = %617
  %623 = load i64, ptr %31, align 8, !tbaa !9
  %624 = add nsw i64 %623, 1
  store i64 %624, ptr %31, align 8, !tbaa !9
  br label %612, !llvm.loop !51

625:                                              ; preds = %612
  %626 = load i64, ptr %27, align 8, !tbaa !9
  %627 = load i64, ptr %29, align 8, !tbaa !9
  %628 = mul nsw i64 %626, %627
  %629 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %43, i64 noundef %628, ptr noundef %629)
  store i64 0, ptr %39, align 8, !tbaa !9
  store double 0x3EB0C6F7A0B5ED8D, ptr %42, align 8, !tbaa !20
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %630

630:                                              ; preds = %756, %625
  %631 = load i64, ptr %30, align 8, !tbaa !9
  %632 = load i64, ptr %27, align 8, !tbaa !9
  %633 = sub nsw i64 %632, 1
  %634 = icmp sle i64 %631, %633
  br i1 %634, label %635, label %759

635:                                              ; preds = %630
  %636 = load ptr, ptr %5, align 8, !tbaa !5
  %637 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %636, i32 0, i32 14
  %638 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %637, i32 0, i32 4
  %639 = load ptr, ptr %638, align 8, !tbaa !22
  %640 = load i64, ptr %30, align 8, !tbaa !9
  %641 = load i64, ptr %29, align 8, !tbaa !9
  %642 = mul nsw i64 %640, %641
  %643 = add nsw i64 %642, 0
  %644 = getelementptr inbounds double, ptr %639, i64 %643
  %645 = load double, ptr %644, align 8, !tbaa !20
  store double %645, ptr %36, align 8, !tbaa !20
  %646 = load ptr, ptr %5, align 8, !tbaa !5
  %647 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %646, i32 0, i32 14
  %648 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %647, i32 0, i32 4
  %649 = load ptr, ptr %648, align 8, !tbaa !22
  %650 = load i64, ptr %30, align 8, !tbaa !9
  %651 = load i64, ptr %29, align 8, !tbaa !9
  %652 = mul nsw i64 %650, %651
  %653 = add nsw i64 %652, 1
  %654 = getelementptr inbounds double, ptr %649, i64 %653
  %655 = load double, ptr %654, align 8, !tbaa !20
  store double %655, ptr %37, align 8, !tbaa !20
  %656 = load double, ptr %14, align 8, !tbaa !20
  %657 = load double, ptr %42, align 8, !tbaa !20
  %658 = load double, ptr %20, align 8, !tbaa !20
  %659 = fneg double %657
  %660 = call double @llvm.fmuladd.f64(double %659, double %658, double %656)
  %661 = load double, ptr %36, align 8, !tbaa !20
  %662 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %660, double noundef %661)
  br i1 %662, label %663, label %755

663:                                              ; preds = %635
  %664 = load double, ptr %36, align 8, !tbaa !20
  %665 = load double, ptr %15, align 8, !tbaa !20
  %666 = load double, ptr %42, align 8, !tbaa !20
  %667 = load double, ptr %20, align 8, !tbaa !20
  %668 = call double @llvm.fmuladd.f64(double %666, double %667, double %665)
  %669 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %664, double noundef %668)
  br i1 %669, label %670, label %755

670:                                              ; preds = %663
  %671 = load double, ptr %16, align 8, !tbaa !20
  %672 = load double, ptr %42, align 8, !tbaa !20
  %673 = load double, ptr %21, align 8, !tbaa !20
  %674 = fneg double %672
  %675 = call double @llvm.fmuladd.f64(double %674, double %673, double %671)
  %676 = load double, ptr %37, align 8, !tbaa !20
  %677 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %675, double noundef %676)
  br i1 %677, label %678, label %755

678:                                              ; preds = %670
  %679 = load double, ptr %37, align 8, !tbaa !20
  %680 = load double, ptr %17, align 8, !tbaa !20
  %681 = load double, ptr %42, align 8, !tbaa !20
  %682 = load double, ptr %21, align 8, !tbaa !20
  %683 = call double @llvm.fmuladd.f64(double %681, double %682, double %680)
  %684 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %679, double noundef %683)
  br i1 %684, label %685, label %755

685:                                              ; preds = %678
  %686 = load double, ptr %36, align 8, !tbaa !20
  %687 = load double, ptr %10, align 8, !tbaa !20
  %688 = fsub double %686, %687
  %689 = load double, ptr %22, align 8, !tbaa !20
  %690 = fmul double %688, %689
  %691 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %692 = load ptr, ptr %691, align 8, !tbaa !22
  %693 = load i64, ptr %39, align 8, !tbaa !9
  %694 = load i64, ptr %29, align 8, !tbaa !9
  %695 = mul nsw i64 %693, %694
  %696 = add nsw i64 %695, 0
  %697 = getelementptr inbounds double, ptr %692, i64 %696
  store double %690, ptr %697, align 8, !tbaa !20
  %698 = load double, ptr %37, align 8, !tbaa !20
  %699 = load double, ptr %12, align 8, !tbaa !20
  %700 = fsub double %698, %699
  %701 = load double, ptr %23, align 8, !tbaa !20
  %702 = fmul double %700, %701
  %703 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %704 = load ptr, ptr %703, align 8, !tbaa !22
  %705 = load i64, ptr %39, align 8, !tbaa !9
  %706 = load i64, ptr %29, align 8, !tbaa !9
  %707 = mul nsw i64 %705, %706
  %708 = add nsw i64 %707, 1
  %709 = getelementptr inbounds double, ptr %704, i64 %708
  store double %702, ptr %709, align 8, !tbaa !20
  store i64 0, ptr %31, align 8, !tbaa !9
  br label %710

710:                                              ; preds = %749, %685
  %711 = load i64, ptr %31, align 8, !tbaa !9
  %712 = load i64, ptr %28, align 8, !tbaa !9
  %713 = sub nsw i64 %712, 1
  %714 = icmp sle i64 %711, %713
  br i1 %714, label %715, label %752

715:                                              ; preds = %710
  %716 = load ptr, ptr %5, align 8, !tbaa !5
  %717 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %716, i32 0, i32 14
  %718 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %717, i32 0, i32 4
  %719 = load ptr, ptr %718, align 8, !tbaa !22
  %720 = load i64, ptr %30, align 8, !tbaa !9
  %721 = load i64, ptr %29, align 8, !tbaa !9
  %722 = mul nsw i64 %720, %721
  %723 = add nsw i64 %722, 2
  %724 = load i64, ptr %31, align 8, !tbaa !9
  %725 = add nsw i64 %723, %724
  %726 = getelementptr inbounds double, ptr %719, i64 %725
  %727 = load double, ptr %726, align 8, !tbaa !20
  store double %727, ptr %33, align 8, !tbaa !20
  %728 = load double, ptr %33, align 8, !tbaa !20
  %729 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %730 = load ptr, ptr %729, align 8, !tbaa !22
  %731 = load i64, ptr %39, align 8, !tbaa !9
  %732 = load i64, ptr %29, align 8, !tbaa !9
  %733 = mul nsw i64 %731, %732
  %734 = add nsw i64 %733, 2
  %735 = load i64, ptr %31, align 8, !tbaa !9
  %736 = add nsw i64 %734, %735
  %737 = getelementptr inbounds double, ptr %730, i64 %736
  store double %728, ptr %737, align 8, !tbaa !20
  %738 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %739 = load ptr, ptr %738, align 8, !tbaa !22
  %740 = load i64, ptr %31, align 8, !tbaa !9
  %741 = getelementptr inbounds double, ptr %739, i64 %740
  %742 = load double, ptr %741, align 8, !tbaa !20
  %743 = load double, ptr %33, align 8, !tbaa !20
  %744 = fadd double %742, %743
  %745 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %746 = load ptr, ptr %745, align 8, !tbaa !22
  %747 = load i64, ptr %31, align 8, !tbaa !9
  %748 = getelementptr inbounds double, ptr %746, i64 %747
  store double %744, ptr %748, align 8, !tbaa !20
  br label %749

749:                                              ; preds = %715
  %750 = load i64, ptr %31, align 8, !tbaa !9
  %751 = add nsw i64 %750, 1
  store i64 %751, ptr %31, align 8, !tbaa !9
  br label %710, !llvm.loop !52

752:                                              ; preds = %710
  %753 = load i64, ptr %39, align 8, !tbaa !9
  %754 = add nsw i64 %753, 1
  store i64 %754, ptr %39, align 8, !tbaa !9
  br label %755

755:                                              ; preds = %752, %678, %670, %663, %635
  br label %756

756:                                              ; preds = %755
  %757 = load i64, ptr %30, align 8, !tbaa !9
  %758 = add nsw i64 %757, 1
  store i64 %758, ptr %30, align 8, !tbaa !9
  br label %630, !llvm.loop !53

759:                                              ; preds = %630
  %760 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %760, ptr %27, align 8, !tbaa !9
  store i64 0, ptr %31, align 8, !tbaa !9
  br label %761

761:                                              ; preds = %781, %759
  %762 = load i64, ptr %31, align 8, !tbaa !9
  %763 = load i64, ptr %28, align 8, !tbaa !9
  %764 = sub nsw i64 %763, 1
  %765 = icmp sle i64 %762, %764
  br i1 %765, label %766, label %784

766:                                              ; preds = %761
  %767 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %768 = load ptr, ptr %767, align 8, !tbaa !22
  %769 = load i64, ptr %31, align 8, !tbaa !9
  %770 = getelementptr inbounds double, ptr %768, i64 %769
  %771 = load double, ptr %770, align 8, !tbaa !20
  %772 = load i64, ptr %27, align 8, !tbaa !9
  %773 = sitofp i64 %772 to double
  %774 = load ptr, ptr %8, align 8, !tbaa !5
  %775 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %773, double noundef 1.000000e+00, ptr noundef %774)
  %776 = fdiv double %771, %775
  %777 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %778 = load ptr, ptr %777, align 8, !tbaa !22
  %779 = load i64, ptr %31, align 8, !tbaa !9
  %780 = getelementptr inbounds double, ptr %778, i64 %779
  store double %776, ptr %780, align 8, !tbaa !20
  br label %781

781:                                              ; preds = %766
  %782 = load i64, ptr %31, align 8, !tbaa !9
  %783 = add nsw i64 %782, 1
  store i64 %783, ptr %31, align 8, !tbaa !9
  br label %761, !llvm.loop !54

784:                                              ; preds = %761
  store double 0.000000e+00, ptr %61, align 8, !tbaa !20
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %785

785:                                              ; preds = %821, %784
  %786 = load i64, ptr %30, align 8, !tbaa !9
  %787 = load i64, ptr %27, align 8, !tbaa !9
  %788 = sub nsw i64 %787, 1
  %789 = icmp sle i64 %786, %788
  br i1 %789, label %790, label %824

790:                                              ; preds = %785
  store i64 0, ptr %31, align 8, !tbaa !9
  br label %791

791:                                              ; preds = %817, %790
  %792 = load i64, ptr %31, align 8, !tbaa !9
  %793 = load i64, ptr %28, align 8, !tbaa !9
  %794 = sub nsw i64 %793, 1
  %795 = icmp sle i64 %792, %794
  br i1 %795, label %796, label %820

796:                                              ; preds = %791
  %797 = load double, ptr %61, align 8, !tbaa !20
  %798 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %799 = load ptr, ptr %798, align 8, !tbaa !22
  %800 = load i64, ptr %30, align 8, !tbaa !9
  %801 = load i64, ptr %29, align 8, !tbaa !9
  %802 = mul nsw i64 %800, %801
  %803 = add nsw i64 %802, 2
  %804 = load i64, ptr %31, align 8, !tbaa !9
  %805 = add nsw i64 %803, %804
  %806 = getelementptr inbounds double, ptr %799, i64 %805
  %807 = load double, ptr %806, align 8, !tbaa !20
  %808 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %809 = load ptr, ptr %808, align 8, !tbaa !22
  %810 = load i64, ptr %31, align 8, !tbaa !9
  %811 = getelementptr inbounds double, ptr %809, i64 %810
  %812 = load double, ptr %811, align 8, !tbaa !20
  %813 = fsub double %807, %812
  %814 = load ptr, ptr %8, align 8, !tbaa !5
  %815 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %813, ptr noundef %814)
  %816 = fadd double %797, %815
  store double %816, ptr %61, align 8, !tbaa !20
  br label %817

817:                                              ; preds = %796
  %818 = load i64, ptr %31, align 8, !tbaa !9
  %819 = add nsw i64 %818, 1
  store i64 %819, ptr %31, align 8, !tbaa !9
  br label %791, !llvm.loop !55

820:                                              ; preds = %791
  br label %821

821:                                              ; preds = %820
  %822 = load i64, ptr %30, align 8, !tbaa !9
  %823 = add nsw i64 %822, 1
  store i64 %823, ptr %30, align 8, !tbaa !9
  br label %785, !llvm.loop !56

824:                                              ; preds = %785
  %825 = load double, ptr %61, align 8, !tbaa !20
  %826 = load ptr, ptr %8, align 8, !tbaa !5
  %827 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %825, double noundef 1.000000e+00, ptr noundef %826)
  store double %827, ptr %61, align 8, !tbaa !20
  %828 = load i64, ptr %27, align 8, !tbaa !9
  %829 = load i64, ptr %28, align 8, !tbaa !9
  %830 = load ptr, ptr %5, align 8, !tbaa !5
  %831 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %830, i32 0, i32 0
  %832 = load i64, ptr %831, align 8, !tbaa !57
  %833 = load ptr, ptr %5, align 8, !tbaa !5
  %834 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %833, i32 0, i32 1
  %835 = load double, ptr %834, align 8, !tbaa !58
  %836 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl15buildpriorterm1EPNS_9ae_vectorElllldPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %43, i64 noundef %828, i64 noundef 2, i64 noundef %829, i64 noundef %832, double noundef %835, ptr noundef %44, ptr noundef %836)
  %837 = load i64, ptr %27, align 8, !tbaa !9
  %838 = icmp eq i64 %837, 0
  br i1 %838, label %839, label %1130

839:                                              ; preds = %824
  store i64 0, ptr %32, align 8, !tbaa !9
  br label %840

840:                                              ; preds = %984, %839
  %841 = load i64, ptr %32, align 8, !tbaa !9
  %842 = load ptr, ptr %6, align 8, !tbaa !5
  %843 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %842, i32 0, i32 1
  %844 = load i64, ptr %843, align 8, !tbaa !45
  %845 = load ptr, ptr %6, align 8, !tbaa !5
  %846 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %845, i32 0, i32 2
  %847 = load i64, ptr %846, align 8, !tbaa !46
  %848 = mul nsw i64 %844, %847
  %849 = sub nsw i64 %848, 1
  %850 = icmp sle i64 %841, %849
  br i1 %850, label %851, label %987

851:                                              ; preds = %840
  %852 = load i64, ptr %32, align 8, !tbaa !9
  %853 = load ptr, ptr %6, align 8, !tbaa !5
  %854 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %853, i32 0, i32 1
  %855 = load i64, ptr %854, align 8, !tbaa !45
  %856 = srem i64 %852, %855
  store i64 %856, ptr %34, align 8, !tbaa !9
  %857 = load i64, ptr %32, align 8, !tbaa !9
  %858 = load ptr, ptr %6, align 8, !tbaa !5
  %859 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %858, i32 0, i32 1
  %860 = load i64, ptr %859, align 8, !tbaa !45
  %861 = sdiv i64 %857, %860
  store i64 %861, ptr %35, align 8, !tbaa !9
  store i64 0, ptr %31, align 8, !tbaa !9
  br label %862

862:                                              ; preds = %980, %851
  %863 = load i64, ptr %31, align 8, !tbaa !9
  %864 = load i64, ptr %28, align 8, !tbaa !9
  %865 = sub nsw i64 %864, 1
  %866 = icmp sle i64 %863, %865
  br i1 %866, label %867, label %983

867:                                              ; preds = %862
  %868 = load i64, ptr %28, align 8, !tbaa !9
  %869 = load i64, ptr %35, align 8, !tbaa !9
  %870 = load ptr, ptr %6, align 8, !tbaa !5
  %871 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %870, i32 0, i32 1
  %872 = load i64, ptr %871, align 8, !tbaa !45
  %873 = mul nsw i64 %869, %872
  %874 = load i64, ptr %34, align 8, !tbaa !9
  %875 = add nsw i64 %873, %874
  %876 = mul nsw i64 %868, %875
  %877 = load i64, ptr %31, align 8, !tbaa !9
  %878 = add nsw i64 %876, %877
  store i64 %878, ptr %62, align 8, !tbaa !9
  %879 = load ptr, ptr %6, align 8, !tbaa !5
  %880 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %879, i32 0, i32 6
  %881 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %880, i32 0, i32 4
  %882 = load ptr, ptr %881, align 8, !tbaa !22
  %883 = load i64, ptr %62, align 8, !tbaa !9
  %884 = getelementptr inbounds double, ptr %882, i64 %883
  %885 = load double, ptr %884, align 8, !tbaa !20
  %886 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %44, i32 0, i32 6
  %887 = load ptr, ptr %886, align 8, !tbaa !22
  %888 = load i64, ptr %31, align 8, !tbaa !9
  %889 = getelementptr inbounds ptr, ptr %887, i64 %888
  %890 = load ptr, ptr %889, align 8, !tbaa !5
  %891 = getelementptr inbounds double, ptr %890, i64 0
  %892 = load double, ptr %891, align 8, !tbaa !20
  %893 = load ptr, ptr %6, align 8, !tbaa !5
  %894 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %893, i32 0, i32 4
  %895 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %894, i32 0, i32 4
  %896 = load ptr, ptr %895, align 8, !tbaa !22
  %897 = load i64, ptr %34, align 8, !tbaa !9
  %898 = getelementptr inbounds double, ptr %896, i64 %897
  %899 = load double, ptr %898, align 8, !tbaa !20
  %900 = call double @llvm.fmuladd.f64(double %892, double %899, double %885)
  %901 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %44, i32 0, i32 6
  %902 = load ptr, ptr %901, align 8, !tbaa !22
  %903 = load i64, ptr %31, align 8, !tbaa !9
  %904 = getelementptr inbounds ptr, ptr %902, i64 %903
  %905 = load ptr, ptr %904, align 8, !tbaa !5
  %906 = getelementptr inbounds double, ptr %905, i64 1
  %907 = load double, ptr %906, align 8, !tbaa !20
  %908 = load ptr, ptr %6, align 8, !tbaa !5
  %909 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %908, i32 0, i32 5
  %910 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %909, i32 0, i32 4
  %911 = load ptr, ptr %910, align 8, !tbaa !22
  %912 = load i64, ptr %35, align 8, !tbaa !9
  %913 = getelementptr inbounds double, ptr %911, i64 %912
  %914 = load double, ptr %913, align 8, !tbaa !20
  %915 = call double @llvm.fmuladd.f64(double %907, double %914, double %900)
  %916 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %44, i32 0, i32 6
  %917 = load ptr, ptr %916, align 8, !tbaa !22
  %918 = load i64, ptr %31, align 8, !tbaa !9
  %919 = getelementptr inbounds ptr, ptr %917, i64 %918
  %920 = load ptr, ptr %919, align 8, !tbaa !5
  %921 = getelementptr inbounds double, ptr %920, i64 2
  %922 = load double, ptr %921, align 8, !tbaa !20
  %923 = fadd double %915, %922
  %924 = load ptr, ptr %6, align 8, !tbaa !5
  %925 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %924, i32 0, i32 6
  %926 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %925, i32 0, i32 4
  %927 = load ptr, ptr %926, align 8, !tbaa !22
  %928 = load i64, ptr %62, align 8, !tbaa !9
  %929 = getelementptr inbounds double, ptr %927, i64 %928
  store double %923, ptr %929, align 8, !tbaa !20
  %930 = load ptr, ptr %6, align 8, !tbaa !5
  %931 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %930, i32 0, i32 6
  %932 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %931, i32 0, i32 4
  %933 = load ptr, ptr %932, align 8, !tbaa !22
  %934 = load i64, ptr %58, align 8, !tbaa !9
  %935 = load i64, ptr %62, align 8, !tbaa !9
  %936 = add nsw i64 %934, %935
  %937 = getelementptr inbounds double, ptr %933, i64 %936
  %938 = load double, ptr %937, align 8, !tbaa !20
  %939 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %44, i32 0, i32 6
  %940 = load ptr, ptr %939, align 8, !tbaa !22
  %941 = load i64, ptr %31, align 8, !tbaa !9
  %942 = getelementptr inbounds ptr, ptr %940, i64 %941
  %943 = load ptr, ptr %942, align 8, !tbaa !5
  %944 = getelementptr inbounds double, ptr %943, i64 0
  %945 = load double, ptr %944, align 8, !tbaa !20
  %946 = fadd double %938, %945
  %947 = load ptr, ptr %6, align 8, !tbaa !5
  %948 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %947, i32 0, i32 6
  %949 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %948, i32 0, i32 4
  %950 = load ptr, ptr %949, align 8, !tbaa !22
  %951 = load i64, ptr %58, align 8, !tbaa !9
  %952 = load i64, ptr %62, align 8, !tbaa !9
  %953 = add nsw i64 %951, %952
  %954 = getelementptr inbounds double, ptr %950, i64 %953
  store double %946, ptr %954, align 8, !tbaa !20
  %955 = load ptr, ptr %6, align 8, !tbaa !5
  %956 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %955, i32 0, i32 6
  %957 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %956, i32 0, i32 4
  %958 = load ptr, ptr %957, align 8, !tbaa !22
  %959 = load i64, ptr %59, align 8, !tbaa !9
  %960 = load i64, ptr %62, align 8, !tbaa !9
  %961 = add nsw i64 %959, %960
  %962 = getelementptr inbounds double, ptr %958, i64 %961
  %963 = load double, ptr %962, align 8, !tbaa !20
  %964 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %44, i32 0, i32 6
  %965 = load ptr, ptr %964, align 8, !tbaa !22
  %966 = load i64, ptr %31, align 8, !tbaa !9
  %967 = getelementptr inbounds ptr, ptr %965, i64 %966
  %968 = load ptr, ptr %967, align 8, !tbaa !5
  %969 = getelementptr inbounds double, ptr %968, i64 1
  %970 = load double, ptr %969, align 8, !tbaa !20
  %971 = fadd double %963, %970
  %972 = load ptr, ptr %6, align 8, !tbaa !5
  %973 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %972, i32 0, i32 6
  %974 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %973, i32 0, i32 4
  %975 = load ptr, ptr %974, align 8, !tbaa !22
  %976 = load i64, ptr %59, align 8, !tbaa !9
  %977 = load i64, ptr %62, align 8, !tbaa !9
  %978 = add nsw i64 %976, %977
  %979 = getelementptr inbounds double, ptr %975, i64 %978
  store double %971, ptr %979, align 8, !tbaa !20
  br label %980

980:                                              ; preds = %867
  %981 = load i64, ptr %31, align 8, !tbaa !9
  %982 = add nsw i64 %981, 1
  store i64 %982, ptr %31, align 8, !tbaa !9
  br label %862, !llvm.loop !59

983:                                              ; preds = %862
  br label %984

984:                                              ; preds = %983
  %985 = load i64, ptr %32, align 8, !tbaa !9
  %986 = add nsw i64 %985, 1
  store i64 %986, ptr %32, align 8, !tbaa !9
  br label %840, !llvm.loop !60

987:                                              ; preds = %840
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %988

988:                                              ; preds = %1012, %987
  %989 = load i64, ptr %30, align 8, !tbaa !9
  %990 = load ptr, ptr %6, align 8, !tbaa !5
  %991 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %990, i32 0, i32 1
  %992 = load i64, ptr %991, align 8, !tbaa !45
  %993 = sub nsw i64 %992, 1
  %994 = icmp sle i64 %989, %993
  br i1 %994, label %995, label %1015

995:                                              ; preds = %988
  %996 = load ptr, ptr %6, align 8, !tbaa !5
  %997 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %996, i32 0, i32 4
  %998 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %997, i32 0, i32 4
  %999 = load ptr, ptr %998, align 8, !tbaa !22
  %1000 = load i64, ptr %30, align 8, !tbaa !9
  %1001 = getelementptr inbounds double, ptr %999, i64 %1000
  %1002 = load double, ptr %1001, align 8, !tbaa !20
  %1003 = load double, ptr %20, align 8, !tbaa !20
  %1004 = load double, ptr %10, align 8, !tbaa !20
  %1005 = call double @llvm.fmuladd.f64(double %1002, double %1003, double %1004)
  %1006 = load ptr, ptr %6, align 8, !tbaa !5
  %1007 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1006, i32 0, i32 4
  %1008 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1007, i32 0, i32 4
  %1009 = load ptr, ptr %1008, align 8, !tbaa !22
  %1010 = load i64, ptr %30, align 8, !tbaa !9
  %1011 = getelementptr inbounds double, ptr %1009, i64 %1010
  store double %1005, ptr %1011, align 8, !tbaa !20
  br label %1012

1012:                                             ; preds = %995
  %1013 = load i64, ptr %30, align 8, !tbaa !9
  %1014 = add nsw i64 %1013, 1
  store i64 %1014, ptr %30, align 8, !tbaa !9
  br label %988, !llvm.loop !61

1015:                                             ; preds = %988
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %1016

1016:                                             ; preds = %1040, %1015
  %1017 = load i64, ptr %30, align 8, !tbaa !9
  %1018 = load ptr, ptr %6, align 8, !tbaa !5
  %1019 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1018, i32 0, i32 2
  %1020 = load i64, ptr %1019, align 8, !tbaa !46
  %1021 = sub nsw i64 %1020, 1
  %1022 = icmp sle i64 %1017, %1021
  br i1 %1022, label %1023, label %1043

1023:                                             ; preds = %1016
  %1024 = load ptr, ptr %6, align 8, !tbaa !5
  %1025 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1024, i32 0, i32 5
  %1026 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1025, i32 0, i32 4
  %1027 = load ptr, ptr %1026, align 8, !tbaa !22
  %1028 = load i64, ptr %30, align 8, !tbaa !9
  %1029 = getelementptr inbounds double, ptr %1027, i64 %1028
  %1030 = load double, ptr %1029, align 8, !tbaa !20
  %1031 = load double, ptr %21, align 8, !tbaa !20
  %1032 = load double, ptr %12, align 8, !tbaa !20
  %1033 = call double @llvm.fmuladd.f64(double %1030, double %1031, double %1032)
  %1034 = load ptr, ptr %6, align 8, !tbaa !5
  %1035 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1034, i32 0, i32 5
  %1036 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1035, i32 0, i32 4
  %1037 = load ptr, ptr %1036, align 8, !tbaa !22
  %1038 = load i64, ptr %30, align 8, !tbaa !9
  %1039 = getelementptr inbounds double, ptr %1037, i64 %1038
  store double %1033, ptr %1039, align 8, !tbaa !20
  br label %1040

1040:                                             ; preds = %1023
  %1041 = load i64, ptr %30, align 8, !tbaa !9
  %1042 = add nsw i64 %1041, 1
  store i64 %1042, ptr %30, align 8, !tbaa !9
  br label %1016, !llvm.loop !62

1043:                                             ; preds = %1016
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %1044

1044:                                             ; preds = %1117, %1043
  %1045 = load i64, ptr %30, align 8, !tbaa !9
  %1046 = load ptr, ptr %6, align 8, !tbaa !5
  %1047 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1046, i32 0, i32 1
  %1048 = load i64, ptr %1047, align 8, !tbaa !45
  %1049 = load ptr, ptr %6, align 8, !tbaa !5
  %1050 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1049, i32 0, i32 2
  %1051 = load i64, ptr %1050, align 8, !tbaa !46
  %1052 = mul nsw i64 %1048, %1051
  %1053 = load i64, ptr %28, align 8, !tbaa !9
  %1054 = mul nsw i64 %1052, %1053
  %1055 = sub nsw i64 %1054, 1
  %1056 = icmp sle i64 %1045, %1055
  br i1 %1056, label %1057, label %1120

1057:                                             ; preds = %1044
  %1058 = load ptr, ptr %6, align 8, !tbaa !5
  %1059 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1058, i32 0, i32 6
  %1060 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1059, i32 0, i32 4
  %1061 = load ptr, ptr %1060, align 8, !tbaa !22
  %1062 = load i64, ptr %58, align 8, !tbaa !9
  %1063 = load i64, ptr %30, align 8, !tbaa !9
  %1064 = add nsw i64 %1062, %1063
  %1065 = getelementptr inbounds double, ptr %1061, i64 %1064
  %1066 = load double, ptr %1065, align 8, !tbaa !20
  %1067 = load double, ptr %22, align 8, !tbaa !20
  %1068 = fmul double %1066, %1067
  %1069 = load ptr, ptr %6, align 8, !tbaa !5
  %1070 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1069, i32 0, i32 6
  %1071 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1070, i32 0, i32 4
  %1072 = load ptr, ptr %1071, align 8, !tbaa !22
  %1073 = load i64, ptr %58, align 8, !tbaa !9
  %1074 = load i64, ptr %30, align 8, !tbaa !9
  %1075 = add nsw i64 %1073, %1074
  %1076 = getelementptr inbounds double, ptr %1072, i64 %1075
  store double %1068, ptr %1076, align 8, !tbaa !20
  %1077 = load ptr, ptr %6, align 8, !tbaa !5
  %1078 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1077, i32 0, i32 6
  %1079 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1078, i32 0, i32 4
  %1080 = load ptr, ptr %1079, align 8, !tbaa !22
  %1081 = load i64, ptr %59, align 8, !tbaa !9
  %1082 = load i64, ptr %30, align 8, !tbaa !9
  %1083 = add nsw i64 %1081, %1082
  %1084 = getelementptr inbounds double, ptr %1080, i64 %1083
  %1085 = load double, ptr %1084, align 8, !tbaa !20
  %1086 = load double, ptr %23, align 8, !tbaa !20
  %1087 = fmul double %1085, %1086
  %1088 = load ptr, ptr %6, align 8, !tbaa !5
  %1089 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1088, i32 0, i32 6
  %1090 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1089, i32 0, i32 4
  %1091 = load ptr, ptr %1090, align 8, !tbaa !22
  %1092 = load i64, ptr %59, align 8, !tbaa !9
  %1093 = load i64, ptr %30, align 8, !tbaa !9
  %1094 = add nsw i64 %1092, %1093
  %1095 = getelementptr inbounds double, ptr %1091, i64 %1094
  store double %1087, ptr %1095, align 8, !tbaa !20
  %1096 = load ptr, ptr %6, align 8, !tbaa !5
  %1097 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1096, i32 0, i32 6
  %1098 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1097, i32 0, i32 4
  %1099 = load ptr, ptr %1098, align 8, !tbaa !22
  %1100 = load i64, ptr %60, align 8, !tbaa !9
  %1101 = load i64, ptr %30, align 8, !tbaa !9
  %1102 = add nsw i64 %1100, %1101
  %1103 = getelementptr inbounds double, ptr %1099, i64 %1102
  %1104 = load double, ptr %1103, align 8, !tbaa !20
  %1105 = load double, ptr %22, align 8, !tbaa !20
  %1106 = fmul double %1104, %1105
  %1107 = load double, ptr %23, align 8, !tbaa !20
  %1108 = fmul double %1106, %1107
  %1109 = load ptr, ptr %6, align 8, !tbaa !5
  %1110 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1109, i32 0, i32 6
  %1111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1110, i32 0, i32 4
  %1112 = load ptr, ptr %1111, align 8, !tbaa !22
  %1113 = load i64, ptr %60, align 8, !tbaa !9
  %1114 = load i64, ptr %30, align 8, !tbaa !9
  %1115 = add nsw i64 %1113, %1114
  %1116 = getelementptr inbounds double, ptr %1112, i64 %1115
  store double %1108, ptr %1116, align 8, !tbaa !20
  br label %1117

1117:                                             ; preds = %1057
  %1118 = load i64, ptr %30, align 8, !tbaa !9
  %1119 = add nsw i64 %1118, 1
  store i64 %1119, ptr %30, align 8, !tbaa !9
  br label %1044, !llvm.loop !63

1120:                                             ; preds = %1044
  %1121 = load ptr, ptr %7, align 8, !tbaa !5
  %1122 = getelementptr inbounds %"struct.alglib_impl::spline2dfitreport", ptr %1121, i32 0, i32 0
  store double 0.000000e+00, ptr %1122, align 8, !tbaa !64
  %1123 = load ptr, ptr %7, align 8, !tbaa !5
  %1124 = getelementptr inbounds %"struct.alglib_impl::spline2dfitreport", ptr %1123, i32 0, i32 1
  store double 0.000000e+00, ptr %1124, align 8, !tbaa !66
  %1125 = load ptr, ptr %7, align 8, !tbaa !5
  %1126 = getelementptr inbounds %"struct.alglib_impl::spline2dfitreport", ptr %1125, i32 0, i32 2
  store double 0.000000e+00, ptr %1126, align 8, !tbaa !67
  %1127 = load ptr, ptr %7, align 8, !tbaa !5
  %1128 = getelementptr inbounds %"struct.alglib_impl::spline2dfitreport", ptr %1127, i32 0, i32 3
  store double 1.000000e+00, ptr %1128, align 8, !tbaa !68
  %1129 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1129)
  store i32 1, ptr %63, align 4
  br label %1580

1130:                                             ; preds = %824
  %1131 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %45, i64 noundef 7, ptr noundef %1131)
  %1132 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %46, i64 noundef 7, ptr noundef %1132)
  %1133 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %1134 = load ptr, ptr %1133, align 8, !tbaa !22
  %1135 = getelementptr inbounds double, ptr %1134, i64 0
  store double -3.000000e+00, ptr %1135, align 8, !tbaa !20
  %1136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %1137 = load ptr, ptr %1136, align 8, !tbaa !22
  %1138 = getelementptr inbounds double, ptr %1137, i64 1
  store double -2.000000e+00, ptr %1138, align 8, !tbaa !20
  %1139 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %1140 = load ptr, ptr %1139, align 8, !tbaa !22
  %1141 = getelementptr inbounds double, ptr %1140, i64 2
  store double -1.000000e+00, ptr %1141, align 8, !tbaa !20
  %1142 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %1143 = load ptr, ptr %1142, align 8, !tbaa !22
  %1144 = getelementptr inbounds double, ptr %1143, i64 3
  store double 0.000000e+00, ptr %1144, align 8, !tbaa !20
  %1145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %1146 = load ptr, ptr %1145, align 8, !tbaa !22
  %1147 = getelementptr inbounds double, ptr %1146, i64 4
  store double 1.000000e+00, ptr %1147, align 8, !tbaa !20
  %1148 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %1149 = load ptr, ptr %1148, align 8, !tbaa !22
  %1150 = getelementptr inbounds double, ptr %1149, i64 5
  store double 2.000000e+00, ptr %1150, align 8, !tbaa !20
  %1151 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %1152 = load ptr, ptr %1151, align 8, !tbaa !22
  %1153 = getelementptr inbounds double, ptr %1152, i64 6
  store double 3.000000e+00, ptr %1153, align 8, !tbaa !20
  %1154 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %1155 = load ptr, ptr %1154, align 8, !tbaa !22
  %1156 = getelementptr inbounds double, ptr %1155, i64 0
  store double 0.000000e+00, ptr %1156, align 8, !tbaa !20
  %1157 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %1158 = load ptr, ptr %1157, align 8, !tbaa !22
  %1159 = getelementptr inbounds double, ptr %1158, i64 1
  store double 0.000000e+00, ptr %1159, align 8, !tbaa !20
  %1160 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %1161 = load ptr, ptr %1160, align 8, !tbaa !22
  %1162 = getelementptr inbounds double, ptr %1161, i64 2
  store double 0x3FB5555555555555, ptr %1162, align 8, !tbaa !20
  %1163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %1164 = load ptr, ptr %1163, align 8, !tbaa !22
  %1165 = getelementptr inbounds double, ptr %1164, i64 3
  store double 0x3FD5555555555555, ptr %1165, align 8, !tbaa !20
  %1166 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %1167 = load ptr, ptr %1166, align 8, !tbaa !22
  %1168 = getelementptr inbounds double, ptr %1167, i64 4
  store double 0x3FB5555555555555, ptr %1168, align 8, !tbaa !20
  %1169 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %1170 = load ptr, ptr %1169, align 8, !tbaa !22
  %1171 = getelementptr inbounds double, ptr %1170, i64 5
  store double 0.000000e+00, ptr %1171, align 8, !tbaa !20
  %1172 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %1173 = load ptr, ptr %1172, align 8, !tbaa !22
  %1174 = getelementptr inbounds double, ptr %1173, i64 6
  store double 0.000000e+00, ptr %1174, align 8, !tbaa !20
  %1175 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 0
  %1176 = load i64, ptr %1175, align 8, !tbaa !69
  %1177 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %45, ptr noundef %46, i64 noundef %1176, i64 noundef 2, double noundef 0.000000e+00, i64 noundef 2, double noundef 0.000000e+00, ptr noundef %52, ptr noundef %1177)
  %1178 = load ptr, ptr %5, align 8, !tbaa !5
  %1179 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %1178, i32 0, i32 12
  %1180 = load i64, ptr %1179, align 8, !tbaa !32
  %1181 = icmp eq i64 %1180, 1
  br i1 %1181, label %1182, label %1217

1182:                                             ; preds = %1130
  %1183 = load i64, ptr %27, align 8, !tbaa !9
  %1184 = load i64, ptr %28, align 8, !tbaa !9
  %1185 = load i64, ptr %18, align 8, !tbaa !9
  %1186 = load i64, ptr %19, align 8, !tbaa !9
  %1187 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL36spline2d_reorderdatasetandbuildindexEPNS_9ae_vectorEllS1_lllS1_S1_PNS_8ae_stateE(ptr noundef %43, i64 noundef %1183, i64 noundef %1184, ptr noundef %47, i64 noundef 0, i64 noundef %1185, i64 noundef %1186, ptr noundef %50, ptr noundef %51, ptr noundef %1187)
  %1188 = load i64, ptr %18, align 8, !tbaa !9
  %1189 = load i64, ptr %18, align 8, !tbaa !9
  %1190 = load i64, ptr %19, align 8, !tbaa !9
  %1191 = load i64, ptr %19, align 8, !tbaa !9
  %1192 = load i64, ptr %28, align 8, !tbaa !9
  %1193 = load double, ptr @_ZN11alglib_implL26spline2d_lambdaregblockllsE, align 8, !tbaa !20
  %1194 = load ptr, ptr %5, align 8, !tbaa !5
  %1195 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %1194, i32 0, i32 10
  %1196 = load double, ptr %1195, align 8, !tbaa !70
  %1197 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL24spline2d_xdesigngenerateEPNS_9ae_vectorES1_lllllllddPNS_19spline1dinterpolantEPNS_21spline2dxdesignmatrixEPNS_8ae_stateE(ptr noundef %43, ptr noundef %50, i64 noundef 0, i64 noundef %1188, i64 noundef %1189, i64 noundef 0, i64 noundef %1190, i64 noundef %1191, i64 noundef %1192, double noundef %1193, double noundef %1196, ptr noundef %52, ptr noundef %55, ptr noundef %1197)
  %1198 = load ptr, ptr %5, align 8, !tbaa !5
  %1199 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %1198, i32 0, i32 21
  %1200 = load i64, ptr %1199, align 8, !tbaa !71
  %1201 = load ptr, ptr %7, align 8, !tbaa !5
  %1202 = load double, ptr %61, align 8, !tbaa !20
  %1203 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL20spline2d_blockllsfitEPNS_21spline2dxdesignmatrixElPNS_9ae_vectorEPNS_17spline2dfitreportEdPNS_19spline2dblockllsbufEPNS_8ae_stateE(ptr noundef %55, i64 noundef %1200, ptr noundef %56, ptr noundef %1201, double noundef %1202, ptr noundef %57, ptr noundef %1203)
  %1204 = load i64, ptr %18, align 8, !tbaa !9
  %1205 = load i64, ptr %19, align 8, !tbaa !9
  %1206 = load i64, ptr %28, align 8, !tbaa !9
  %1207 = load i64, ptr %26, align 8, !tbaa !9
  %1208 = load ptr, ptr %6, align 8, !tbaa !5
  %1209 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1208, i32 0, i32 6
  %1210 = load ptr, ptr %6, align 8, !tbaa !5
  %1211 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1210, i32 0, i32 2
  %1212 = load i64, ptr %1211, align 8, !tbaa !46
  %1213 = load ptr, ptr %6, align 8, !tbaa !5
  %1214 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1213, i32 0, i32 1
  %1215 = load i64, ptr %1214, align 8, !tbaa !45
  %1216 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL26spline2d_updatesplinetableEPNS_9ae_vectorElllPNS_19spline1dinterpolantElS1_lllPNS_8ae_stateE(ptr noundef %56, i64 noundef %1204, i64 noundef %1205, i64 noundef %1206, ptr noundef %52, i64 noundef %1207, ptr noundef %1209, i64 noundef %1212, i64 noundef %1215, i64 noundef 1, ptr noundef %1216)
  br label %1297

1217:                                             ; preds = %1130
  %1218 = load ptr, ptr %5, align 8, !tbaa !5
  %1219 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %1218, i32 0, i32 12
  %1220 = load i64, ptr %1219, align 8, !tbaa !32
  %1221 = icmp eq i64 %1220, 2
  br i1 %1221, label %1222, label %1256

1222:                                             ; preds = %1217
  %1223 = load i64, ptr %27, align 8, !tbaa !9
  %1224 = load i64, ptr %28, align 8, !tbaa !9
  %1225 = load i64, ptr %18, align 8, !tbaa !9
  %1226 = load i64, ptr %19, align 8, !tbaa !9
  %1227 = load ptr, ptr %5, align 8, !tbaa !5
  %1228 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %1227, i32 0, i32 10
  %1229 = load double, ptr %1228, align 8, !tbaa !70
  %1230 = load double, ptr @_ZN11alglib_implL26spline2d_lambdaregblockllsE, align 8, !tbaa !20
  %1231 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL29spline2d_generatedesignmatrixEPNS_9ae_vectorEllllddPNS_19spline1dinterpolantEPNS_12sparsematrixES5_PlPNS_8ae_stateE(ptr noundef %43, i64 noundef %1223, i64 noundef %1224, i64 noundef %1225, i64 noundef %1226, double noundef %1229, double noundef %1230, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %38, ptr noundef %1231)
  %1232 = load i64, ptr %38, align 8, !tbaa !9
  %1233 = load i64, ptr %18, align 8, !tbaa !9
  %1234 = load i64, ptr %19, align 8, !tbaa !9
  %1235 = load i64, ptr %27, align 8, !tbaa !9
  %1236 = load i64, ptr %28, align 8, !tbaa !9
  %1237 = load ptr, ptr %5, align 8, !tbaa !5
  %1238 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %1237, i32 0, i32 21
  %1239 = load i64, ptr %1238, align 8, !tbaa !71
  %1240 = load ptr, ptr %7, align 8, !tbaa !5
  %1241 = load double, ptr %61, align 8, !tbaa !20
  %1242 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL20spline2d_naivellsfitEPNS_12sparsematrixES1_lPNS_9ae_vectorElllllS3_PNS_17spline2dfitreportEdPNS_8ae_stateE(ptr noundef %53, ptr noundef %54, i64 noundef %1232, ptr noundef %43, i64 noundef %1233, i64 noundef %1234, i64 noundef %1235, i64 noundef %1236, i64 noundef %1239, ptr noundef %56, ptr noundef %1240, double noundef %1241, ptr noundef %1242)
  %1243 = load i64, ptr %18, align 8, !tbaa !9
  %1244 = load i64, ptr %19, align 8, !tbaa !9
  %1245 = load i64, ptr %28, align 8, !tbaa !9
  %1246 = load i64, ptr %26, align 8, !tbaa !9
  %1247 = load ptr, ptr %6, align 8, !tbaa !5
  %1248 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1247, i32 0, i32 6
  %1249 = load ptr, ptr %6, align 8, !tbaa !5
  %1250 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1249, i32 0, i32 2
  %1251 = load i64, ptr %1250, align 8, !tbaa !46
  %1252 = load ptr, ptr %6, align 8, !tbaa !5
  %1253 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1252, i32 0, i32 1
  %1254 = load i64, ptr %1253, align 8, !tbaa !45
  %1255 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL26spline2d_updatesplinetableEPNS_9ae_vectorElllPNS_19spline1dinterpolantElS1_lllPNS_8ae_stateE(ptr noundef %56, i64 noundef %1243, i64 noundef %1244, i64 noundef %1245, ptr noundef %52, i64 noundef %1246, ptr noundef %1248, i64 noundef %1251, i64 noundef %1254, i64 noundef 1, ptr noundef %1255)
  br label %1296

1256:                                             ; preds = %1217
  %1257 = load ptr, ptr %5, align 8, !tbaa !5
  %1258 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %1257, i32 0, i32 12
  %1259 = load i64, ptr %1258, align 8, !tbaa !32
  %1260 = icmp eq i64 %1259, 3
  br i1 %1260, label %1261, label %1293

1261:                                             ; preds = %1256
  %1262 = load i64, ptr %40, align 8, !tbaa !9
  %1263 = icmp sgt i64 %1262, 0
  %1264 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %1263, ptr noundef @.str.762, ptr noundef %1264)
  %1265 = load i64, ptr %41, align 8, !tbaa !9
  %1266 = icmp sgt i64 %1265, 0
  %1267 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %1266, ptr noundef @.str.762, ptr noundef %1267)
  %1268 = load i64, ptr %27, align 8, !tbaa !9
  %1269 = load i64, ptr %28, align 8, !tbaa !9
  %1270 = load i64, ptr %18, align 8, !tbaa !9
  %1271 = load i64, ptr %19, align 8, !tbaa !9
  %1272 = load i64, ptr %40, align 8, !tbaa !9
  %1273 = load i64, ptr %41, align 8, !tbaa !9
  %1274 = load ptr, ptr %5, align 8, !tbaa !5
  %1275 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %1274, i32 0, i32 22
  %1276 = load i64, ptr %1275, align 8, !tbaa !33
  %1277 = load ptr, ptr %5, align 8, !tbaa !5
  %1278 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %1277, i32 0, i32 20
  %1279 = load i64, ptr %1278, align 8, !tbaa !72
  %1280 = load ptr, ptr %5, align 8, !tbaa !5
  %1281 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %1280, i32 0, i32 11
  %1282 = load i64, ptr %1281, align 8, !tbaa !73
  %1283 = load ptr, ptr %5, align 8, !tbaa !5
  %1284 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %1283, i32 0, i32 10
  %1285 = load double, ptr %1284, align 8, !tbaa !70
  %1286 = load ptr, ptr %5, align 8, !tbaa !5
  %1287 = getelementptr inbounds %"struct.alglib_impl::spline2dbuilder", ptr %1286, i32 0, i32 21
  %1288 = load i64, ptr %1287, align 8, !tbaa !71
  %1289 = load ptr, ptr %6, align 8, !tbaa !5
  %1290 = load ptr, ptr %7, align 8, !tbaa !5
  %1291 = load double, ptr %61, align 8, !tbaa !20
  %1292 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL19spline2d_fastddmfitEPNS_9ae_vectorEllllllllldlPNS_19spline1dinterpolantEPNS_19spline2dinterpolantEPNS_17spline2dfitreportEdPNS_8ae_stateE(ptr noundef %43, i64 noundef %1268, i64 noundef %1269, i64 noundef %1270, i64 noundef %1271, i64 noundef %1272, i64 noundef %1273, i64 noundef %1276, i64 noundef %1279, i64 noundef %1282, double noundef %1285, i64 noundef %1288, ptr noundef %52, ptr noundef %1289, ptr noundef %1290, double noundef %1291, ptr noundef %1292)
  br label %1295

1293:                                             ; preds = %1256
  %1294 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.762, ptr noundef %1294)
  br label %1295

1295:                                             ; preds = %1293, %1261
  br label %1296

1296:                                             ; preds = %1295, %1222
  br label %1297

1297:                                             ; preds = %1296, %1182
  store i64 0, ptr %32, align 8, !tbaa !9
  br label %1298

1298:                                             ; preds = %1442, %1297
  %1299 = load i64, ptr %32, align 8, !tbaa !9
  %1300 = load ptr, ptr %6, align 8, !tbaa !5
  %1301 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1300, i32 0, i32 1
  %1302 = load i64, ptr %1301, align 8, !tbaa !45
  %1303 = load ptr, ptr %6, align 8, !tbaa !5
  %1304 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1303, i32 0, i32 2
  %1305 = load i64, ptr %1304, align 8, !tbaa !46
  %1306 = mul nsw i64 %1302, %1305
  %1307 = sub nsw i64 %1306, 1
  %1308 = icmp sle i64 %1299, %1307
  br i1 %1308, label %1309, label %1445

1309:                                             ; preds = %1298
  %1310 = load i64, ptr %32, align 8, !tbaa !9
  %1311 = load ptr, ptr %6, align 8, !tbaa !5
  %1312 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1311, i32 0, i32 1
  %1313 = load i64, ptr %1312, align 8, !tbaa !45
  %1314 = srem i64 %1310, %1313
  store i64 %1314, ptr %34, align 8, !tbaa !9
  %1315 = load i64, ptr %32, align 8, !tbaa !9
  %1316 = load ptr, ptr %6, align 8, !tbaa !5
  %1317 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1316, i32 0, i32 1
  %1318 = load i64, ptr %1317, align 8, !tbaa !45
  %1319 = sdiv i64 %1315, %1318
  store i64 %1319, ptr %35, align 8, !tbaa !9
  store i64 0, ptr %31, align 8, !tbaa !9
  br label %1320

1320:                                             ; preds = %1438, %1309
  %1321 = load i64, ptr %31, align 8, !tbaa !9
  %1322 = load i64, ptr %28, align 8, !tbaa !9
  %1323 = sub nsw i64 %1322, 1
  %1324 = icmp sle i64 %1321, %1323
  br i1 %1324, label %1325, label %1441

1325:                                             ; preds = %1320
  %1326 = load i64, ptr %28, align 8, !tbaa !9
  %1327 = load i64, ptr %35, align 8, !tbaa !9
  %1328 = load ptr, ptr %6, align 8, !tbaa !5
  %1329 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1328, i32 0, i32 1
  %1330 = load i64, ptr %1329, align 8, !tbaa !45
  %1331 = mul nsw i64 %1327, %1330
  %1332 = load i64, ptr %34, align 8, !tbaa !9
  %1333 = add nsw i64 %1331, %1332
  %1334 = mul nsw i64 %1326, %1333
  %1335 = load i64, ptr %31, align 8, !tbaa !9
  %1336 = add nsw i64 %1334, %1335
  store i64 %1336, ptr %62, align 8, !tbaa !9
  %1337 = load ptr, ptr %6, align 8, !tbaa !5
  %1338 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1337, i32 0, i32 6
  %1339 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1338, i32 0, i32 4
  %1340 = load ptr, ptr %1339, align 8, !tbaa !22
  %1341 = load i64, ptr %62, align 8, !tbaa !9
  %1342 = getelementptr inbounds double, ptr %1340, i64 %1341
  %1343 = load double, ptr %1342, align 8, !tbaa !20
  %1344 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %44, i32 0, i32 6
  %1345 = load ptr, ptr %1344, align 8, !tbaa !22
  %1346 = load i64, ptr %31, align 8, !tbaa !9
  %1347 = getelementptr inbounds ptr, ptr %1345, i64 %1346
  %1348 = load ptr, ptr %1347, align 8, !tbaa !5
  %1349 = getelementptr inbounds double, ptr %1348, i64 0
  %1350 = load double, ptr %1349, align 8, !tbaa !20
  %1351 = load ptr, ptr %6, align 8, !tbaa !5
  %1352 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1351, i32 0, i32 4
  %1353 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1352, i32 0, i32 4
  %1354 = load ptr, ptr %1353, align 8, !tbaa !22
  %1355 = load i64, ptr %34, align 8, !tbaa !9
  %1356 = getelementptr inbounds double, ptr %1354, i64 %1355
  %1357 = load double, ptr %1356, align 8, !tbaa !20
  %1358 = call double @llvm.fmuladd.f64(double %1350, double %1357, double %1343)
  %1359 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %44, i32 0, i32 6
  %1360 = load ptr, ptr %1359, align 8, !tbaa !22
  %1361 = load i64, ptr %31, align 8, !tbaa !9
  %1362 = getelementptr inbounds ptr, ptr %1360, i64 %1361
  %1363 = load ptr, ptr %1362, align 8, !tbaa !5
  %1364 = getelementptr inbounds double, ptr %1363, i64 1
  %1365 = load double, ptr %1364, align 8, !tbaa !20
  %1366 = load ptr, ptr %6, align 8, !tbaa !5
  %1367 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1366, i32 0, i32 5
  %1368 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1367, i32 0, i32 4
  %1369 = load ptr, ptr %1368, align 8, !tbaa !22
  %1370 = load i64, ptr %35, align 8, !tbaa !9
  %1371 = getelementptr inbounds double, ptr %1369, i64 %1370
  %1372 = load double, ptr %1371, align 8, !tbaa !20
  %1373 = call double @llvm.fmuladd.f64(double %1365, double %1372, double %1358)
  %1374 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %44, i32 0, i32 6
  %1375 = load ptr, ptr %1374, align 8, !tbaa !22
  %1376 = load i64, ptr %31, align 8, !tbaa !9
  %1377 = getelementptr inbounds ptr, ptr %1375, i64 %1376
  %1378 = load ptr, ptr %1377, align 8, !tbaa !5
  %1379 = getelementptr inbounds double, ptr %1378, i64 2
  %1380 = load double, ptr %1379, align 8, !tbaa !20
  %1381 = fadd double %1373, %1380
  %1382 = load ptr, ptr %6, align 8, !tbaa !5
  %1383 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1382, i32 0, i32 6
  %1384 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1383, i32 0, i32 4
  %1385 = load ptr, ptr %1384, align 8, !tbaa !22
  %1386 = load i64, ptr %62, align 8, !tbaa !9
  %1387 = getelementptr inbounds double, ptr %1385, i64 %1386
  store double %1381, ptr %1387, align 8, !tbaa !20
  %1388 = load ptr, ptr %6, align 8, !tbaa !5
  %1389 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1388, i32 0, i32 6
  %1390 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1389, i32 0, i32 4
  %1391 = load ptr, ptr %1390, align 8, !tbaa !22
  %1392 = load i64, ptr %58, align 8, !tbaa !9
  %1393 = load i64, ptr %62, align 8, !tbaa !9
  %1394 = add nsw i64 %1392, %1393
  %1395 = getelementptr inbounds double, ptr %1391, i64 %1394
  %1396 = load double, ptr %1395, align 8, !tbaa !20
  %1397 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %44, i32 0, i32 6
  %1398 = load ptr, ptr %1397, align 8, !tbaa !22
  %1399 = load i64, ptr %31, align 8, !tbaa !9
  %1400 = getelementptr inbounds ptr, ptr %1398, i64 %1399
  %1401 = load ptr, ptr %1400, align 8, !tbaa !5
  %1402 = getelementptr inbounds double, ptr %1401, i64 0
  %1403 = load double, ptr %1402, align 8, !tbaa !20
  %1404 = fadd double %1396, %1403
  %1405 = load ptr, ptr %6, align 8, !tbaa !5
  %1406 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1405, i32 0, i32 6
  %1407 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1406, i32 0, i32 4
  %1408 = load ptr, ptr %1407, align 8, !tbaa !22
  %1409 = load i64, ptr %58, align 8, !tbaa !9
  %1410 = load i64, ptr %62, align 8, !tbaa !9
  %1411 = add nsw i64 %1409, %1410
  %1412 = getelementptr inbounds double, ptr %1408, i64 %1411
  store double %1404, ptr %1412, align 8, !tbaa !20
  %1413 = load ptr, ptr %6, align 8, !tbaa !5
  %1414 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1413, i32 0, i32 6
  %1415 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1414, i32 0, i32 4
  %1416 = load ptr, ptr %1415, align 8, !tbaa !22
  %1417 = load i64, ptr %59, align 8, !tbaa !9
  %1418 = load i64, ptr %62, align 8, !tbaa !9
  %1419 = add nsw i64 %1417, %1418
  %1420 = getelementptr inbounds double, ptr %1416, i64 %1419
  %1421 = load double, ptr %1420, align 8, !tbaa !20
  %1422 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %44, i32 0, i32 6
  %1423 = load ptr, ptr %1422, align 8, !tbaa !22
  %1424 = load i64, ptr %31, align 8, !tbaa !9
  %1425 = getelementptr inbounds ptr, ptr %1423, i64 %1424
  %1426 = load ptr, ptr %1425, align 8, !tbaa !5
  %1427 = getelementptr inbounds double, ptr %1426, i64 1
  %1428 = load double, ptr %1427, align 8, !tbaa !20
  %1429 = fadd double %1421, %1428
  %1430 = load ptr, ptr %6, align 8, !tbaa !5
  %1431 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1430, i32 0, i32 6
  %1432 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1431, i32 0, i32 4
  %1433 = load ptr, ptr %1432, align 8, !tbaa !22
  %1434 = load i64, ptr %59, align 8, !tbaa !9
  %1435 = load i64, ptr %62, align 8, !tbaa !9
  %1436 = add nsw i64 %1434, %1435
  %1437 = getelementptr inbounds double, ptr %1433, i64 %1436
  store double %1429, ptr %1437, align 8, !tbaa !20
  br label %1438

1438:                                             ; preds = %1325
  %1439 = load i64, ptr %31, align 8, !tbaa !9
  %1440 = add nsw i64 %1439, 1
  store i64 %1440, ptr %31, align 8, !tbaa !9
  br label %1320, !llvm.loop !74

1441:                                             ; preds = %1320
  br label %1442

1442:                                             ; preds = %1441
  %1443 = load i64, ptr %32, align 8, !tbaa !9
  %1444 = add nsw i64 %1443, 1
  store i64 %1444, ptr %32, align 8, !tbaa !9
  br label %1298, !llvm.loop !75

1445:                                             ; preds = %1298
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %1446

1446:                                             ; preds = %1470, %1445
  %1447 = load i64, ptr %30, align 8, !tbaa !9
  %1448 = load ptr, ptr %6, align 8, !tbaa !5
  %1449 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1448, i32 0, i32 1
  %1450 = load i64, ptr %1449, align 8, !tbaa !45
  %1451 = sub nsw i64 %1450, 1
  %1452 = icmp sle i64 %1447, %1451
  br i1 %1452, label %1453, label %1473

1453:                                             ; preds = %1446
  %1454 = load ptr, ptr %6, align 8, !tbaa !5
  %1455 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1454, i32 0, i32 4
  %1456 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1455, i32 0, i32 4
  %1457 = load ptr, ptr %1456, align 8, !tbaa !22
  %1458 = load i64, ptr %30, align 8, !tbaa !9
  %1459 = getelementptr inbounds double, ptr %1457, i64 %1458
  %1460 = load double, ptr %1459, align 8, !tbaa !20
  %1461 = load double, ptr %20, align 8, !tbaa !20
  %1462 = load double, ptr %10, align 8, !tbaa !20
  %1463 = call double @llvm.fmuladd.f64(double %1460, double %1461, double %1462)
  %1464 = load ptr, ptr %6, align 8, !tbaa !5
  %1465 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1464, i32 0, i32 4
  %1466 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1465, i32 0, i32 4
  %1467 = load ptr, ptr %1466, align 8, !tbaa !22
  %1468 = load i64, ptr %30, align 8, !tbaa !9
  %1469 = getelementptr inbounds double, ptr %1467, i64 %1468
  store double %1463, ptr %1469, align 8, !tbaa !20
  br label %1470

1470:                                             ; preds = %1453
  %1471 = load i64, ptr %30, align 8, !tbaa !9
  %1472 = add nsw i64 %1471, 1
  store i64 %1472, ptr %30, align 8, !tbaa !9
  br label %1446, !llvm.loop !76

1473:                                             ; preds = %1446
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %1474

1474:                                             ; preds = %1498, %1473
  %1475 = load i64, ptr %30, align 8, !tbaa !9
  %1476 = load ptr, ptr %6, align 8, !tbaa !5
  %1477 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1476, i32 0, i32 2
  %1478 = load i64, ptr %1477, align 8, !tbaa !46
  %1479 = sub nsw i64 %1478, 1
  %1480 = icmp sle i64 %1475, %1479
  br i1 %1480, label %1481, label %1501

1481:                                             ; preds = %1474
  %1482 = load ptr, ptr %6, align 8, !tbaa !5
  %1483 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1482, i32 0, i32 5
  %1484 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1483, i32 0, i32 4
  %1485 = load ptr, ptr %1484, align 8, !tbaa !22
  %1486 = load i64, ptr %30, align 8, !tbaa !9
  %1487 = getelementptr inbounds double, ptr %1485, i64 %1486
  %1488 = load double, ptr %1487, align 8, !tbaa !20
  %1489 = load double, ptr %21, align 8, !tbaa !20
  %1490 = load double, ptr %12, align 8, !tbaa !20
  %1491 = call double @llvm.fmuladd.f64(double %1488, double %1489, double %1490)
  %1492 = load ptr, ptr %6, align 8, !tbaa !5
  %1493 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1492, i32 0, i32 5
  %1494 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1493, i32 0, i32 4
  %1495 = load ptr, ptr %1494, align 8, !tbaa !22
  %1496 = load i64, ptr %30, align 8, !tbaa !9
  %1497 = getelementptr inbounds double, ptr %1495, i64 %1496
  store double %1491, ptr %1497, align 8, !tbaa !20
  br label %1498

1498:                                             ; preds = %1481
  %1499 = load i64, ptr %30, align 8, !tbaa !9
  %1500 = add nsw i64 %1499, 1
  store i64 %1500, ptr %30, align 8, !tbaa !9
  br label %1474, !llvm.loop !77

1501:                                             ; preds = %1474
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %1502

1502:                                             ; preds = %1575, %1501
  %1503 = load i64, ptr %30, align 8, !tbaa !9
  %1504 = load ptr, ptr %6, align 8, !tbaa !5
  %1505 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1504, i32 0, i32 1
  %1506 = load i64, ptr %1505, align 8, !tbaa !45
  %1507 = load ptr, ptr %6, align 8, !tbaa !5
  %1508 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1507, i32 0, i32 2
  %1509 = load i64, ptr %1508, align 8, !tbaa !46
  %1510 = mul nsw i64 %1506, %1509
  %1511 = load i64, ptr %28, align 8, !tbaa !9
  %1512 = mul nsw i64 %1510, %1511
  %1513 = sub nsw i64 %1512, 1
  %1514 = icmp sle i64 %1503, %1513
  br i1 %1514, label %1515, label %1578

1515:                                             ; preds = %1502
  %1516 = load ptr, ptr %6, align 8, !tbaa !5
  %1517 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1516, i32 0, i32 6
  %1518 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1517, i32 0, i32 4
  %1519 = load ptr, ptr %1518, align 8, !tbaa !22
  %1520 = load i64, ptr %58, align 8, !tbaa !9
  %1521 = load i64, ptr %30, align 8, !tbaa !9
  %1522 = add nsw i64 %1520, %1521
  %1523 = getelementptr inbounds double, ptr %1519, i64 %1522
  %1524 = load double, ptr %1523, align 8, !tbaa !20
  %1525 = load double, ptr %22, align 8, !tbaa !20
  %1526 = fmul double %1524, %1525
  %1527 = load ptr, ptr %6, align 8, !tbaa !5
  %1528 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1527, i32 0, i32 6
  %1529 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1528, i32 0, i32 4
  %1530 = load ptr, ptr %1529, align 8, !tbaa !22
  %1531 = load i64, ptr %58, align 8, !tbaa !9
  %1532 = load i64, ptr %30, align 8, !tbaa !9
  %1533 = add nsw i64 %1531, %1532
  %1534 = getelementptr inbounds double, ptr %1530, i64 %1533
  store double %1526, ptr %1534, align 8, !tbaa !20
  %1535 = load ptr, ptr %6, align 8, !tbaa !5
  %1536 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1535, i32 0, i32 6
  %1537 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1536, i32 0, i32 4
  %1538 = load ptr, ptr %1537, align 8, !tbaa !22
  %1539 = load i64, ptr %59, align 8, !tbaa !9
  %1540 = load i64, ptr %30, align 8, !tbaa !9
  %1541 = add nsw i64 %1539, %1540
  %1542 = getelementptr inbounds double, ptr %1538, i64 %1541
  %1543 = load double, ptr %1542, align 8, !tbaa !20
  %1544 = load double, ptr %23, align 8, !tbaa !20
  %1545 = fmul double %1543, %1544
  %1546 = load ptr, ptr %6, align 8, !tbaa !5
  %1547 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1546, i32 0, i32 6
  %1548 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1547, i32 0, i32 4
  %1549 = load ptr, ptr %1548, align 8, !tbaa !22
  %1550 = load i64, ptr %59, align 8, !tbaa !9
  %1551 = load i64, ptr %30, align 8, !tbaa !9
  %1552 = add nsw i64 %1550, %1551
  %1553 = getelementptr inbounds double, ptr %1549, i64 %1552
  store double %1545, ptr %1553, align 8, !tbaa !20
  %1554 = load ptr, ptr %6, align 8, !tbaa !5
  %1555 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1554, i32 0, i32 6
  %1556 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1555, i32 0, i32 4
  %1557 = load ptr, ptr %1556, align 8, !tbaa !22
  %1558 = load i64, ptr %60, align 8, !tbaa !9
  %1559 = load i64, ptr %30, align 8, !tbaa !9
  %1560 = add nsw i64 %1558, %1559
  %1561 = getelementptr inbounds double, ptr %1557, i64 %1560
  %1562 = load double, ptr %1561, align 8, !tbaa !20
  %1563 = load double, ptr %22, align 8, !tbaa !20
  %1564 = fmul double %1562, %1563
  %1565 = load double, ptr %23, align 8, !tbaa !20
  %1566 = fmul double %1564, %1565
  %1567 = load ptr, ptr %6, align 8, !tbaa !5
  %1568 = getelementptr inbounds %"struct.alglib_impl::spline2dinterpolant", ptr %1567, i32 0, i32 6
  %1569 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %1568, i32 0, i32 4
  %1570 = load ptr, ptr %1569, align 8, !tbaa !22
  %1571 = load i64, ptr %60, align 8, !tbaa !9
  %1572 = load i64, ptr %30, align 8, !tbaa !9
  %1573 = add nsw i64 %1571, %1572
  %1574 = getelementptr inbounds double, ptr %1570, i64 %1573
  store double %1566, ptr %1574, align 8, !tbaa !20
  br label %1575

1575:                                             ; preds = %1515
  %1576 = load i64, ptr %30, align 8, !tbaa !9
  %1577 = add nsw i64 %1576, 1
  store i64 %1577, ptr %30, align 8, !tbaa !9
  br label %1502, !llvm.loop !78

1578:                                             ; preds = %1502
  %1579 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1579)
  store i32 0, ptr %63, align 4
  br label %1580

1580:                                             ; preds = %1578, %1120
  call void @llvm.lifetime.end.p0(i64 8, 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 2648, ptr %57) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %56) #5
  call void @llvm.lifetime.end.p0(i64 496, ptr %55) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %54) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %51) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %50) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %49) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %48) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 80, 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 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 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 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  %1581 = load i32, ptr %63, align 4
  switch i32 %1581, label %1583 [
    i32 0, label %1582
    i32 1, label %1582
  ]

1582:                                             ; preds = %1580, %1580
  ret void

1583:                                             ; preds = %1580
  unreachable
}

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

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

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

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

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

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

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_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_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) #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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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, !10, i64 176}
!12 = !{!"_ZTSN11alglib_impl15spline2dbuilderE", !10, i64 0, !13, i64 8, !10, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !13, i64 80, !10, i64 88, !10, i64 96, !13, i64 104, !14, i64 112, !10, i64 176, !10, i64 184, !13, i64 192, !13, i64 200, !15, i64 208, !10, i64 216, !10, i64 224, !10, i64 232}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !15, i64 16, !16, i64 24, !7, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!12, !10, i64 184}
!18 = !{!12, !13, i64 192}
!19 = !{!12, !13, i64 200}
!20 = !{!13, !13, i64 0}
!21 = !{!12, !10, i64 16}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!12, !13, i64 24}
!26 = !{!12, !13, i64 32}
!27 = !{!12, !13, i64 40}
!28 = !{!12, !13, i64 48}
!29 = !{!12, !10, i64 56}
!30 = !{!12, !10, i64 64}
!31 = !{!12, !10, i64 72}
!32 = !{!12, !10, i64 96}
!33 = !{!12, !10, i64 232}
!34 = distinct !{!34, !24}
!35 = distinct !{!35, !24}
!36 = distinct !{!36, !24}
!37 = distinct !{!37, !24}
!38 = distinct !{!38, !24}
!39 = distinct !{!39, !24}
!40 = !{!12, !15, i64 208}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!44, !10, i64 24}
!44 = !{!"_ZTSN11alglib_impl19spline2dinterpolantE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !14, i64 96, !14, i64 160}
!45 = !{!44, !10, i64 8}
!46 = !{!44, !10, i64 16}
!47 = !{!44, !10, i64 0}
!48 = distinct !{!48, !24}
!49 = distinct !{!49, !24}
!50 = distinct !{!50, !24}
!51 = distinct !{!51, !24}
!52 = distinct !{!52, !24}
!53 = distinct !{!53, !24}
!54 = distinct !{!54, !24}
!55 = distinct !{!55, !24}
!56 = distinct !{!56, !24}
!57 = !{!12, !10, i64 0}
!58 = !{!12, !13, i64 8}
!59 = distinct !{!59, !24}
!60 = distinct !{!60, !24}
!61 = distinct !{!61, !24}
!62 = distinct !{!62, !24}
!63 = distinct !{!63, !24}
!64 = !{!65, !13, i64 0}
!65 = !{!"_ZTSN11alglib_impl17spline2dfitreportE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!66 = !{!65, !13, i64 8}
!67 = !{!65, !13, i64 16}
!68 = !{!65, !13, i64 24}
!69 = !{!14, !10, i64 0}
!70 = !{!12, !13, i64 80}
!71 = !{!12, !10, i64 224}
!72 = !{!12, !10, i64 216}
!73 = !{!12, !10, i64 88}
!74 = distinct !{!74, !24}
!75 = distinct !{!75, !24}
!76 = distinct !{!76, !24}
!77 = distinct !{!77, !24}
!78 = distinct !{!78, !24}


; 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::spline1dinterpolant" = type { i8, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"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::spline2dxdesignmatrix" = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::spline2dblockllsbuf" = type { %"struct.alglib_impl::linlsqrstate", %"struct.alglib_impl::linlsqrreport", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"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 }

@.str.149 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.762 = external hidden unnamed_addr constant [29 x i8], align 1
@_ZN11alglib_implL26spline2d_lambdaregblockllsE = external hidden local_unnamed_addr global double, align 8

; 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_impl18spline1dbuildcubicEPNS_9ae_vectorES1_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
define dso_local void @_ZN11alglib_impl11spline2dfitEPNS_15spline2dbuilderEPNS_19spline2dinterpolantEPNS_17spline2dfitreportEPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #3 {
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca i64, align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::spline1dinterpolant", align 8
  %17 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %18 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %19 = alloca %"struct.alglib_impl::spline2dxdesignmatrix", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::spline2dblockllsbuf", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 496, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 2648, ptr nonnull %21) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %3, ptr noundef nonnull %5)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @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(160) %16, i8 0, i64 160, 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(496) %19, i8 0, i64 496, 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(2648) %21, i8 0, i64 2648, i1 false)
  call void @_ZN11alglib_impl26_spline2dinterpolant_clearEPv(ptr noundef %1)
  call void @_ZN11alglib_impl24_spline2dfitreport_clearEPv(ptr noundef %2)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 3, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 2, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 2, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef nonnull %16, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %17, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %18, ptr noundef %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl27_spline2dxdesignmatrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %19, ptr noundef %3, 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 %3, i1 noundef zeroext true)
  call void @_ZN11alglib_impl25_spline2dblockllsbuf_initEPvPNS_8ae_stateEb(ptr noundef nonnull %21, ptr noundef %3, i1 noundef zeroext true)
  %22 = getelementptr inbounds i8, ptr %0, i64 176
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 184
  %25 = load i64, ptr %24, align 8, !tbaa !15
  %26 = add nsw i64 %25, 2
  %27 = getelementptr inbounds i8, ptr %0, i64 192
  %28 = load double, ptr %27, align 8, !tbaa !16
  %29 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %28, double noundef 1.000000e+00)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef nonnull @.str.762, ptr noundef %3)
  %30 = getelementptr inbounds i8, ptr %0, i64 200
  %31 = load double, ptr %30, align 8, !tbaa !17
  %32 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %31, double noundef 1.000000e+00)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef nonnull @.str.762, ptr noundef %3)
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  %34 = load i64, ptr %33, align 8, !tbaa !18
  switch i64 %34, label %71 [
    i64 0, label %35
    i64 1, label %62
  ]

35:                                               ; preds = %4
  %36 = icmp sgt i64 %23, 0
  br i1 %36, label %37, label %.loopexit635

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %0, i64 168
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  %40 = load double, ptr %39, align 8, !tbaa !20
  %41 = getelementptr inbounds i8, ptr %39, i64 8
  %42 = load double, ptr %41, align 8, !tbaa !20
  %.not.not644.not = icmp eq i64 %23, 1
  br i1 %.not.not644.not, label %.loopexit635, label %.lr.ph

.lr.ph:                                           ; preds = %37, %.lr.ph
  %.0550649 = phi double [ %47, %.lr.ph ], [ %40, %37 ]
  %.0552648 = phi double [ %51, %.lr.ph ], [ %40, %37 ]
  %.0555647 = phi double [ %56, %.lr.ph ], [ %42, %37 ]
  %.0558646 = phi double [ %60, %.lr.ph ], [ %42, %37 ]
  %.0590645 = phi i64 [ %61, %.lr.ph ], [ 1, %37 ]
  %43 = load ptr, ptr %38, align 8, !tbaa !19
  %44 = mul nsw i64 %.0590645, %26
  %45 = getelementptr inbounds double, ptr %43, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !20
  %47 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %.0550649, double noundef %46, ptr noundef %3)
  %48 = load ptr, ptr %38, align 8, !tbaa !19
  %49 = getelementptr inbounds double, ptr %48, i64 %44
  %50 = load double, ptr %49, align 8, !tbaa !20
  %51 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0552648, double noundef %50, ptr noundef %3)
  %52 = load ptr, ptr %38, align 8, !tbaa !19
  %53 = add nsw i64 %44, 1
  %54 = getelementptr inbounds double, ptr %52, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !20
  %56 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %.0555647, double noundef %55, ptr noundef %3)
  %57 = load ptr, ptr %38, align 8, !tbaa !19
  %58 = getelementptr inbounds double, ptr %57, i64 %53
  %59 = load double, ptr %58, align 8, !tbaa !20
  %60 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0558646, double noundef %59, ptr noundef %3)
  %61 = add nuw nsw i64 %.0590645, 1
  %exitcond.not = icmp eq i64 %61, %23
  br i1 %exitcond.not, label %.loopexit635, label %.lr.ph, !llvm.loop !21

62:                                               ; preds = %4
  %63 = getelementptr inbounds i8, ptr %0, i64 24
  %64 = load double, ptr %63, align 8, !tbaa !23
  %65 = getelementptr inbounds i8, ptr %0, i64 32
  %66 = load double, ptr %65, align 8, !tbaa !24
  %67 = getelementptr inbounds i8, ptr %0, i64 40
  %68 = load double, ptr %67, align 8, !tbaa !25
  %69 = getelementptr inbounds i8, ptr %0, i64 48
  %70 = load double, ptr %69, align 8, !tbaa !26
  br label %.loopexit635

71:                                               ; preds = %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.149, ptr noundef %3)
  br label %.loopexit635

.loopexit635:                                     ; preds = %.lr.ph, %37, %35, %62, %71
  %.1559 = phi double [ %70, %62 ], [ 0.000000e+00, %71 ], [ 1.000000e+00, %35 ], [ %42, %37 ], [ %60, %.lr.ph ]
  %.1556 = phi double [ %68, %62 ], [ 0.000000e+00, %71 ], [ -1.000000e+00, %35 ], [ %42, %37 ], [ %56, %.lr.ph ]
  %.1553 = phi double [ %66, %62 ], [ 0.000000e+00, %71 ], [ 1.000000e+00, %35 ], [ %40, %37 ], [ %51, %.lr.ph ]
  %.1551 = phi double [ %64, %62 ], [ 0.000000e+00, %71 ], [ -1.000000e+00, %35 ], [ %40, %37 ], [ %47, %.lr.ph ]
  %72 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %.1551, double noundef %.1553)
  br i1 %72, label %73, label %83

73:                                               ; preds = %.loopexit635
  %74 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %.1551, double noundef 0.000000e+00)
  br i1 %74, label %75, label %79

75:                                               ; preds = %73
  %76 = fmul double %.1551, 5.000000e-01
  %77 = fadd double %76, -1.000000e+00
  %78 = call double @llvm.fmuladd.f64(double %.1551, double 2.000000e+00, double 1.000000e+00)
  br label %83

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

83:                                               ; preds = %75, %79, %.loopexit635
  %.2554 = phi double [ %78, %75 ], [ %82, %79 ], [ %.1553, %.loopexit635 ]
  %.2 = phi double [ %77, %75 ], [ %80, %79 ], [ %.1551, %.loopexit635 ]
  %84 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %.1556, double noundef %.1559)
  br i1 %84, label %85, label %95

85:                                               ; preds = %83
  %86 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %.1556, double noundef 0.000000e+00)
  br i1 %86, label %87, label %91

87:                                               ; preds = %85
  %88 = fmul double %.1556, 5.000000e-01
  %89 = fadd double %88, -1.000000e+00
  %90 = call double @llvm.fmuladd.f64(double %.1556, double 2.000000e+00, double 1.000000e+00)
  br label %95

91:                                               ; preds = %85
  %92 = call double @llvm.fmuladd.f64(double %.1556, double 2.000000e+00, double -1.000000e+00)
  %93 = fmul double %.1556, 5.000000e-01
  %94 = fadd double %93, 1.000000e+00
  br label %95

95:                                               ; preds = %87, %91, %83
  %.2560 = phi double [ %90, %87 ], [ %94, %91 ], [ %.1559, %83 ]
  %.2557 = phi double [ %89, %87 ], [ %92, %91 ], [ %.1556, %83 ]
  %96 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %.2, double noundef %.2554)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %96, ptr noundef nonnull @.str.762, ptr noundef %3)
  %97 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %.2557, double noundef %.2560)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %97, ptr noundef nonnull @.str.762, ptr noundef %3)
  %98 = getelementptr inbounds i8, ptr %0, i64 56
  %99 = load i64, ptr %98, align 8, !tbaa !27
  switch i64 %99, label %105 [
    i64 0, label %106
    i64 1, label %100
  ]

100:                                              ; preds = %95
  %101 = getelementptr inbounds i8, ptr %0, i64 64
  %102 = load i64, ptr %101, align 8, !tbaa !28
  %103 = getelementptr inbounds i8, ptr %0, i64 72
  %104 = load i64, ptr %103, align 8, !tbaa !29
  br label %106

105:                                              ; preds = %95
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.149, ptr noundef %3)
  br label %106

106:                                              ; preds = %95, %100, %105
  %.0570 = phi i64 [ %104, %100 ], [ 0, %105 ], [ 4, %95 ]
  %.0567 = phi i64 [ %102, %100 ], [ 0, %105 ], [ 4, %95 ]
  %107 = icmp sgt i64 %.0567, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %107, ptr noundef nonnull @.str.762, ptr noundef %3)
  %108 = icmp sgt i64 %.0570, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %108, ptr noundef nonnull @.str.762, ptr noundef %3)
  %109 = getelementptr inbounds i8, ptr %0, i64 96
  %110 = load i64, ptr %109, align 8, !tbaa !30
  %111 = icmp eq i64 %110, 3
  %112 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %.0567, i64 noundef 4, ptr noundef %3)
  %113 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %.0570, i64 noundef 4, ptr noundef %3)
  br i1 %111, label %114, label %174

114:                                              ; preds = %106
  %115 = call noundef i64 @_ZN11alglib_impl5imin2EllPNS_8ae_stateE(i64 noundef %112, i64 noundef %113, ptr noundef %3)
  %116 = getelementptr inbounds i8, ptr %0, i64 232
  %117 = load i64, ptr %116, align 8, !tbaa !31
  %118 = add nsw i64 %117, 1
  %119 = icmp sgt i64 %115, %118
  br i1 %119, label %.lr.ph656, label %._crit_edge

.lr.ph656:                                        ; preds = %114, %.lr.ph656
  %.1568655 = phi i64 [ %122, %.lr.ph656 ], [ %112, %114 ]
  %.1571654 = phi i64 [ %125, %.lr.ph656 ], [ %113, %114 ]
  %.0580653 = phi i64 [ %126, %.lr.ph656 ], [ 1, %114 ]
  %120 = add nsw i64 %.1568655, -1
  %121 = call noundef i64 @_ZN11alglib_impl6idivupEllPNS_8ae_stateE(i64 noundef %120, i64 noundef 2, ptr noundef %3)
  %122 = add nsw i64 %121, 1
  %123 = add nsw i64 %.1571654, -1
  %124 = call noundef i64 @_ZN11alglib_impl6idivupEllPNS_8ae_stateE(i64 noundef %123, i64 noundef 2, ptr noundef %3)
  %125 = add nsw i64 %124, 1
  %126 = add nuw nsw i64 %.0580653, 1
  %127 = call noundef i64 @_ZN11alglib_impl5imin2EllPNS_8ae_stateE(i64 noundef %122, i64 noundef %125, ptr noundef %3)
  %128 = load i64, ptr %116, align 8, !tbaa !31
  %129 = add nsw i64 %128, 1
  %130 = icmp sgt i64 %127, %129
  br i1 %130, label %.lr.ph656, label %._crit_edge, !llvm.loop !32

._crit_edge:                                      ; preds = %.lr.ph656, %114
  %.pre-phi = phi i64 [ %118, %114 ], [ %129, %.lr.ph656 ]
  %131 = phi i64 [ %117, %114 ], [ %128, %.lr.ph656 ]
  %.0580.lcssa = phi i64 [ 1, %114 ], [ %126, %.lr.ph656 ]
  %.1571.lcssa = phi i64 [ %113, %114 ], [ %125, %.lr.ph656 ]
  %.1568.lcssa = phi i64 [ %112, %114 ], [ %122, %.lr.ph656 ]
  %132 = add nsw i64 %.1568.lcssa, -1
  %133 = icmp sgt i64 %.1568.lcssa, %.pre-phi
  br i1 %133, label %.lr.ph663, label %._crit_edge670

.lr.ph663:                                        ; preds = %._crit_edge, %.lr.ph663
  %.2569661 = phi i64 [ %136, %.lr.ph663 ], [ %.1568.lcssa, %._crit_edge ]
  %.0578660 = phi i64 [ %137, %.lr.ph663 ], [ 1, %._crit_edge ]
  %134 = add nsw i64 %.2569661, -1
  %135 = call noundef i64 @_ZN11alglib_impl6idivupEllPNS_8ae_stateE(i64 noundef %134, i64 noundef 2, ptr noundef %3)
  %136 = add nsw i64 %135, 1
  %137 = add nuw nsw i64 %.0578660, 1
  %138 = load i64, ptr %116, align 8, !tbaa !31
  %139 = icmp sgt i64 %135, %138
  br i1 %139, label %.lr.ph663, label %.lr.ph669, !llvm.loop !33

.lr.ph669:                                        ; preds = %.lr.ph663, %.lr.ph669
  %.3668 = phi i64 [ %141, %.lr.ph669 ], [ %136, %.lr.ph663 ]
  %.1579667 = phi i64 [ %142, %.lr.ph669 ], [ %137, %.lr.ph663 ]
  %140 = shl i64 %.3668, 1
  %141 = add i64 %140, -1
  %142 = add nsw i64 %.1579667, -1
  %143 = icmp sgt i64 %.1579667, 2
  br i1 %143, label %.lr.ph669, label %._crit_edge670, !llvm.loop !34

._crit_edge670:                                   ; preds = %.lr.ph669, %._crit_edge
  %.0563.lcssa817 = phi i64 [ %132, %._crit_edge ], [ %135, %.lr.ph669 ]
  %144 = phi i64 [ %131, %._crit_edge ], [ %138, %.lr.ph669 ]
  %.3.lcssa = phi i64 [ %.1568.lcssa, %._crit_edge ], [ %141, %.lr.ph669 ]
  %145 = add nsw i64 %.1571.lcssa, -1
  %146 = add nsw i64 %144, 1
  %147 = icmp sgt i64 %.1571.lcssa, %146
  br i1 %147, label %.lr.ph675, label %.preheader632

.lr.ph675:                                        ; preds = %._crit_edge670, %.lr.ph675
  %.2572673 = phi i64 [ %150, %.lr.ph675 ], [ %.1571.lcssa, %._crit_edge670 ]
  %.0576672 = phi i64 [ %151, %.lr.ph675 ], [ 1, %._crit_edge670 ]
  %148 = add nsw i64 %.2572673, -1
  %149 = call noundef i64 @_ZN11alglib_impl6idivupEllPNS_8ae_stateE(i64 noundef %148, i64 noundef 2, ptr noundef %3)
  %150 = add nsw i64 %149, 1
  %151 = add nuw nsw i64 %.0576672, 1
  %152 = load i64, ptr %116, align 8, !tbaa !31
  %153 = icmp sgt i64 %149, %152
  br i1 %153, label %.lr.ph675, label %.lr.ph681, !llvm.loop !35

.preheader632:                                    ; preds = %.lr.ph681, %._crit_edge670
  %.0561.lcssa824 = phi i64 [ %145, %._crit_edge670 ], [ %149, %.lr.ph681 ]
  %.3573.lcssa = phi i64 [ %.1571.lcssa, %._crit_edge670 ], [ %164, %.lr.ph681 ]
  %154 = icmp sgt i64 %.0580.lcssa, 1
  br i1 %154, label %.lr.ph686.preheader, label %.loopexit

.lr.ph686.preheader:                              ; preds = %.preheader632
  %155 = add nuw i64 %.0580.lcssa, 3
  %156 = add nsw i64 %.0580.lcssa, -2
  %xtraiter = and i64 %155, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph686.prol.loopexit, label %.lr.ph686.prol

.lr.ph686.prol:                                   ; preds = %.lr.ph686.preheader, %.lr.ph686.prol
  %.4685.prol = phi i64 [ %158, %.lr.ph686.prol ], [ %.3.lcssa, %.lr.ph686.preheader ]
  %.4574684.prol = phi i64 [ %160, %.lr.ph686.prol ], [ %.3573.lcssa, %.lr.ph686.preheader ]
  %.1581683.prol = phi i64 [ %161, %.lr.ph686.prol ], [ %.0580.lcssa, %.lr.ph686.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph686.prol ], [ 0, %.lr.ph686.preheader ]
  %157 = shl i64 %.4685.prol, 1
  %158 = add i64 %157, -1
  %159 = shl i64 %.4574684.prol, 1
  %160 = add i64 %159, -1
  %161 = add nsw i64 %.1581683.prol, -1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph686.prol.loopexit, label %.lr.ph686.prol, !llvm.loop !36

.lr.ph686.prol.loopexit:                          ; preds = %.lr.ph686.prol, %.lr.ph686.preheader
  %.4685.unr = phi i64 [ %.3.lcssa, %.lr.ph686.preheader ], [ %158, %.lr.ph686.prol ]
  %.4574684.unr = phi i64 [ %.3573.lcssa, %.lr.ph686.preheader ], [ %160, %.lr.ph686.prol ]
  %.1581683.unr = phi i64 [ %.0580.lcssa, %.lr.ph686.preheader ], [ %161, %.lr.ph686.prol ]
  %.lcssa875.unr = phi i64 [ poison, %.lr.ph686.preheader ], [ %158, %.lr.ph686.prol ]
  %.lcssa874.unr = phi i64 [ poison, %.lr.ph686.preheader ], [ %160, %.lr.ph686.prol ]
  %162 = icmp ult i64 %156, 3
  br i1 %162, label %.loopexit, label %.lr.ph686

.lr.ph681:                                        ; preds = %.lr.ph675, %.lr.ph681
  %.3573680 = phi i64 [ %164, %.lr.ph681 ], [ %150, %.lr.ph675 ]
  %.1577679 = phi i64 [ %165, %.lr.ph681 ], [ %151, %.lr.ph675 ]
  %163 = shl i64 %.3573680, 1
  %164 = add i64 %163, -1
  %165 = add nsw i64 %.1577679, -1
  %166 = icmp sgt i64 %.1577679, 2
  br i1 %166, label %.lr.ph681, label %.preheader632, !llvm.loop !38

.lr.ph686:                                        ; preds = %.lr.ph686.prol.loopexit, %.lr.ph686
  %.4685 = phi i64 [ %169, %.lr.ph686 ], [ %.4685.unr, %.lr.ph686.prol.loopexit ]
  %.4574684 = phi i64 [ %170, %.lr.ph686 ], [ %.4574684.unr, %.lr.ph686.prol.loopexit ]
  %.1581683 = phi i64 [ %171, %.lr.ph686 ], [ %.1581683.unr, %.lr.ph686.prol.loopexit ]
  %167 = shl i64 %.4685, 4
  %168 = shl i64 %.4574684, 4
  %169 = add i64 %167, -15
  %170 = add i64 %168, -15
  %171 = add nsw i64 %.1581683, -4
  %172 = add i64 %.1581683, -6
  %173 = icmp ult i64 %172, -3
  br i1 %173, label %.lr.ph686, label %.loopexit, !llvm.loop !39

174:                                              ; preds = %106
  %175 = getelementptr inbounds i8, ptr %0, i64 208
  %176 = load i8, ptr %175, align 8, !tbaa !40, !range !41, !noundef !42
  %. = zext nneg i8 %176 to i64
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph686.prol.loopexit, %.lr.ph686, %.preheader632, %174
  %.0596 = phi i64 [ %., %174 ], [ 0, %.preheader632 ], [ 0, %.lr.ph686 ], [ 0, %.lr.ph686.prol.loopexit ]
  %.5575 = phi i64 [ %113, %174 ], [ %.3573.lcssa, %.preheader632 ], [ %.lcssa874.unr, %.lr.ph686.prol.loopexit ], [ %170, %.lr.ph686 ]
  %.5 = phi i64 [ %112, %174 ], [ %.3.lcssa, %.preheader632 ], [ %.lcssa875.unr, %.lr.ph686.prol.loopexit ], [ %169, %.lr.ph686 ]
  %.1564 = phi i64 [ -1, %174 ], [ %.0563.lcssa817, %.preheader632 ], [ %.0563.lcssa817, %.lr.ph686 ], [ %.0563.lcssa817, %.lr.ph686.prol.loopexit ]
  %.1562 = phi i64 [ -1, %174 ], [ %.0561.lcssa824, %.preheader632 ], [ %.0561.lcssa824, %.lr.ph686 ], [ %.0561.lcssa824, %.lr.ph686.prol.loopexit ]
  %177 = fsub double %.2554, %.2
  %178 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %177, double noundef 1.000000e+00, ptr noundef %3)
  %179 = add nsw i64 %.5, -1
  %180 = sitofp i64 %179 to double
  %181 = fdiv double %178, %180
  %182 = fsub double %.2560, %.2557
  %183 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %182, double noundef 1.000000e+00, ptr noundef %3)
  %184 = add nsw i64 %.5575, -1
  %185 = sitofp i64 %184 to double
  %186 = fdiv double %183, %185
  %187 = fdiv double 1.000000e+00, %181
  %188 = fdiv double 1.000000e+00, %186
  %189 = uitofp nneg i64 %.0596 to double
  %190 = fneg double %181
  %191 = call double @llvm.fmuladd.f64(double %190, double %189, double %.2)
  %192 = fneg double %186
  %193 = call double @llvm.fmuladd.f64(double %192, double %189, double %.2557)
  %194 = shl nuw nsw i64 %.0596, 1
  %195 = add nsw i64 %.5, %194
  %196 = add nsw i64 %.5575, %194
  %197 = getelementptr inbounds i8, ptr %1, i64 24
  store i64 %25, ptr %197, align 8, !tbaa !43
  %198 = getelementptr inbounds i8, ptr %1, i64 8
  store i64 %195, ptr %198, align 8, !tbaa !45
  %199 = getelementptr inbounds i8, ptr %1, i64 16
  store i64 %196, ptr %199, align 8, !tbaa !46
  store i64 -3, ptr %1, align 8, !tbaa !47
  %200 = mul i64 %196, %25
  %201 = mul i64 %200, %195
  %202 = shl i64 %25, 1
  %203 = mul i64 %202, %196
  %204 = mul i64 %203, %195
  %205 = mul i64 %25, 3
  %206 = mul i64 %205, %196
  %207 = mul i64 %206, %195
  %208 = getelementptr inbounds i8, ptr %1, i64 32
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %208, i64 noundef %195, ptr noundef %3)
  %209 = getelementptr inbounds i8, ptr %1, i64 96
  %210 = load i64, ptr %199, align 8, !tbaa !46
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %209, i64 noundef %210, ptr noundef %3)
  %211 = getelementptr inbounds i8, ptr %1, i64 160
  %212 = load i64, ptr %198, align 8, !tbaa !45
  %213 = load i64, ptr %199, align 8, !tbaa !46
  %214 = shl i64 %25, 2
  %215 = mul i64 %214, %212
  %216 = mul i64 %215, %213
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %211, i64 noundef %216, ptr noundef %3)
  %217 = load i64, ptr %198, align 8, !tbaa !45
  %.not.not602689 = icmp sgt i64 %217, 0
  br i1 %.not.not602689, label %.lr.ph692, label %.preheader631

.lr.ph692:                                        ; preds = %.loopexit
  %218 = getelementptr inbounds i8, ptr %1, i64 88
  %xtraiter894 = and i64 %217, 3
  %219 = icmp ult i64 %217, 4
  br i1 %219, label %.preheader631.loopexit.unr-lcssa, label %.lr.ph692.new

.lr.ph692.new:                                    ; preds = %.lr.ph692
  %unroll_iter = and i64 %217, 9223372036854775804
  br label %227

.preheader631.loopexit.unr-lcssa:                 ; preds = %227, %.lr.ph692
  %.1591690.unr = phi i64 [ 0, %.lr.ph692 ], [ %243, %227 ]
  %lcmp.mod895.not = icmp eq i64 %xtraiter894, 0
  br i1 %lcmp.mod895.not, label %.preheader631, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader631.loopexit.unr-lcssa, %.epil.preheader
  %.1591690.epil = phi i64 [ %223, %.epil.preheader ], [ %.1591690.unr, %.preheader631.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader631.loopexit.unr-lcssa ]
  %220 = uitofp nneg i64 %.1591690.epil to double
  %221 = load ptr, ptr %218, align 8, !tbaa !19
  %222 = getelementptr inbounds double, ptr %221, i64 %.1591690.epil
  store double %220, ptr %222, align 8, !tbaa !20
  %223 = add nuw nsw i64 %.1591690.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter894
  br i1 %epil.iter.cmp.not, label %.preheader631, label %.epil.preheader, !llvm.loop !48

.preheader631:                                    ; preds = %.preheader631.loopexit.unr-lcssa, %.epil.preheader, %.loopexit
  %224 = load i64, ptr %199, align 8, !tbaa !46
  %.not.not603694 = icmp sgt i64 %224, 0
  br i1 %.not.not603694, label %.lr.ph696, label %.preheader630

.lr.ph696:                                        ; preds = %.preheader631
  %225 = getelementptr inbounds i8, ptr %1, i64 152
  %xtraiter897 = and i64 %224, 3
  %226 = icmp ult i64 %224, 4
  br i1 %226, label %.preheader630.loopexit.unr-lcssa, label %.lr.ph696.new

.lr.ph696.new:                                    ; preds = %.lr.ph696
  %unroll_iter900 = and i64 %224, 9223372036854775804
  br label %251

227:                                              ; preds = %227, %.lr.ph692.new
  %.1591690 = phi i64 [ 0, %.lr.ph692.new ], [ %243, %227 ]
  %niter = phi i64 [ 0, %.lr.ph692.new ], [ %niter.next.3, %227 ]
  %228 = uitofp nneg i64 %.1591690 to double
  %229 = load ptr, ptr %218, align 8, !tbaa !19
  %230 = getelementptr inbounds double, ptr %229, i64 %.1591690
  store double %228, ptr %230, align 8, !tbaa !20
  %231 = or disjoint i64 %.1591690, 1
  %232 = uitofp nneg i64 %231 to double
  %233 = load ptr, ptr %218, align 8, !tbaa !19
  %234 = getelementptr inbounds double, ptr %233, i64 %231
  store double %232, ptr %234, align 8, !tbaa !20
  %235 = or disjoint i64 %.1591690, 2
  %236 = uitofp nneg i64 %235 to double
  %237 = load ptr, ptr %218, align 8, !tbaa !19
  %238 = getelementptr inbounds double, ptr %237, i64 %235
  store double %236, ptr %238, align 8, !tbaa !20
  %239 = or disjoint i64 %.1591690, 3
  %240 = uitofp nneg i64 %239 to double
  %241 = load ptr, ptr %218, align 8, !tbaa !19
  %242 = getelementptr inbounds double, ptr %241, i64 %239
  store double %240, ptr %242, align 8, !tbaa !20
  %243 = add nuw nsw i64 %.1591690, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader631.loopexit.unr-lcssa, label %227, !llvm.loop !49

.preheader630.loopexit.unr-lcssa:                 ; preds = %251, %.lr.ph696
  %.2592695.unr = phi i64 [ 0, %.lr.ph696 ], [ %267, %251 ]
  %lcmp.mod899.not = icmp eq i64 %xtraiter897, 0
  br i1 %lcmp.mod899.not, label %.preheader630, label %.epil.preheader896

.epil.preheader896:                               ; preds = %.preheader630.loopexit.unr-lcssa, %.epil.preheader896
  %.2592695.epil = phi i64 [ %247, %.epil.preheader896 ], [ %.2592695.unr, %.preheader630.loopexit.unr-lcssa ]
  %epil.iter898 = phi i64 [ %epil.iter898.next, %.epil.preheader896 ], [ 0, %.preheader630.loopexit.unr-lcssa ]
  %244 = uitofp nneg i64 %.2592695.epil to double
  %245 = load ptr, ptr %225, align 8, !tbaa !19
  %246 = getelementptr inbounds double, ptr %245, i64 %.2592695.epil
  store double %244, ptr %246, align 8, !tbaa !20
  %247 = add nuw nsw i64 %.2592695.epil, 1
  %epil.iter898.next = add i64 %epil.iter898, 1
  %epil.iter898.cmp.not = icmp eq i64 %epil.iter898.next, %xtraiter897
  br i1 %epil.iter898.cmp.not, label %.preheader630, label %.epil.preheader896, !llvm.loop !50

.preheader630:                                    ; preds = %.preheader630.loopexit.unr-lcssa, %.epil.preheader896, %.preheader631
  %248 = mul i64 %214, %217
  %249 = mul i64 %248, %224
  %.not.not604698 = icmp sgt i64 %249, 0
  br i1 %.not.not604698, label %.lr.ph700, label %._crit_edge701

.lr.ph700:                                        ; preds = %.preheader630
  %250 = getelementptr inbounds i8, ptr %1, i64 216
  br label %268

251:                                              ; preds = %251, %.lr.ph696.new
  %.2592695 = phi i64 [ 0, %.lr.ph696.new ], [ %267, %251 ]
  %niter901 = phi i64 [ 0, %.lr.ph696.new ], [ %niter901.next.3, %251 ]
  %252 = uitofp nneg i64 %.2592695 to double
  %253 = load ptr, ptr %225, align 8, !tbaa !19
  %254 = getelementptr inbounds double, ptr %253, i64 %.2592695
  store double %252, ptr %254, align 8, !tbaa !20
  %255 = or disjoint i64 %.2592695, 1
  %256 = uitofp nneg i64 %255 to double
  %257 = load ptr, ptr %225, align 8, !tbaa !19
  %258 = getelementptr inbounds double, ptr %257, i64 %255
  store double %256, ptr %258, align 8, !tbaa !20
  %259 = or disjoint i64 %.2592695, 2
  %260 = uitofp nneg i64 %259 to double
  %261 = load ptr, ptr %225, align 8, !tbaa !19
  %262 = getelementptr inbounds double, ptr %261, i64 %259
  store double %260, ptr %262, align 8, !tbaa !20
  %263 = or disjoint i64 %.2592695, 3
  %264 = uitofp nneg i64 %263 to double
  %265 = load ptr, ptr %225, align 8, !tbaa !19
  %266 = getelementptr inbounds double, ptr %265, i64 %263
  store double %264, ptr %266, align 8, !tbaa !20
  %267 = add nuw nsw i64 %.2592695, 4
  %niter901.next.3 = add i64 %niter901, 4
  %niter901.ncmp.3 = icmp eq i64 %niter901.next.3, %unroll_iter900
  br i1 %niter901.ncmp.3, label %.preheader630.loopexit.unr-lcssa, label %251, !llvm.loop !51

268:                                              ; preds = %268, %.lr.ph700
  %.3593699 = phi i64 [ 0, %.lr.ph700 ], [ %280, %268 ]
  %269 = load ptr, ptr %250, align 8, !tbaa !19
  %270 = getelementptr inbounds double, ptr %269, i64 %.3593699
  store double 0.000000e+00, ptr %270, align 8, !tbaa !20
  %271 = or disjoint i64 %.3593699, 1
  %272 = load ptr, ptr %250, align 8, !tbaa !19
  %273 = getelementptr inbounds double, ptr %272, i64 %271
  store double 0.000000e+00, ptr %273, align 8, !tbaa !20
  %274 = or disjoint i64 %.3593699, 2
  %275 = load ptr, ptr %250, align 8, !tbaa !19
  %276 = getelementptr inbounds double, ptr %275, i64 %274
  store double 0.000000e+00, ptr %276, align 8, !tbaa !20
  %277 = or disjoint i64 %.3593699, 3
  %278 = load ptr, ptr %250, align 8, !tbaa !19
  %279 = getelementptr inbounds double, ptr %278, i64 %277
  store double 0.000000e+00, ptr %279, align 8, !tbaa !20
  %280 = add nuw nsw i64 %.3593699, 4
  %exitcond795.not.3 = icmp eq i64 %280, %249
  br i1 %exitcond795.not.3, label %._crit_edge701, label %268, !llvm.loop !52

._crit_edge701:                                   ; preds = %268, %.preheader630
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %25, ptr noundef %3)
  %.not.not605702 = icmp sgt i64 %25, 0
  br i1 %.not.not605702, label %.lr.ph705, label %._crit_edge706.thread

.lr.ph705:                                        ; preds = %._crit_edge701
  %281 = getelementptr inbounds i8, ptr %13, i64 56
  %xtraiter903 = and i64 %25, 3
  %282 = icmp ult i64 %25, 4
  br i1 %282, label %._crit_edge706.unr-lcssa, label %.lr.ph705.new

.lr.ph705.new:                                    ; preds = %.lr.ph705
  %unroll_iter906 = and i64 %25, 9223372036854775804
  br label %283

283:                                              ; preds = %283, %.lr.ph705.new
  %.0584703 = phi i64 [ 0, %.lr.ph705.new ], [ %295, %283 ]
  %niter907 = phi i64 [ 0, %.lr.ph705.new ], [ %niter907.next.3, %283 ]
  %284 = load ptr, ptr %281, align 8, !tbaa !19
  %285 = getelementptr inbounds double, ptr %284, i64 %.0584703
  store double 0.000000e+00, ptr %285, align 8, !tbaa !20
  %286 = or disjoint i64 %.0584703, 1
  %287 = load ptr, ptr %281, align 8, !tbaa !19
  %288 = getelementptr inbounds double, ptr %287, i64 %286
  store double 0.000000e+00, ptr %288, align 8, !tbaa !20
  %289 = or disjoint i64 %.0584703, 2
  %290 = load ptr, ptr %281, align 8, !tbaa !19
  %291 = getelementptr inbounds double, ptr %290, i64 %289
  store double 0.000000e+00, ptr %291, align 8, !tbaa !20
  %292 = or disjoint i64 %.0584703, 3
  %293 = load ptr, ptr %281, align 8, !tbaa !19
  %294 = getelementptr inbounds double, ptr %293, i64 %292
  store double 0.000000e+00, ptr %294, align 8, !tbaa !20
  %295 = add nuw nsw i64 %.0584703, 4
  %niter907.next.3 = add i64 %niter907, 4
  %niter907.ncmp.3 = icmp eq i64 %niter907.next.3, %unroll_iter906
  br i1 %niter907.ncmp.3, label %._crit_edge706.unr-lcssa, label %283, !llvm.loop !53

._crit_edge706.unr-lcssa:                         ; preds = %283, %.lr.ph705
  %.0584703.unr = phi i64 [ 0, %.lr.ph705 ], [ %295, %283 ]
  %lcmp.mod905.not = icmp eq i64 %xtraiter903, 0
  br i1 %lcmp.mod905.not, label %._crit_edge706, label %.epil.preheader902

.epil.preheader902:                               ; preds = %._crit_edge706.unr-lcssa, %.epil.preheader902
  %.0584703.epil = phi i64 [ %298, %.epil.preheader902 ], [ %.0584703.unr, %._crit_edge706.unr-lcssa ]
  %epil.iter904 = phi i64 [ %epil.iter904.next, %.epil.preheader902 ], [ 0, %._crit_edge706.unr-lcssa ]
  %296 = load ptr, ptr %281, align 8, !tbaa !19
  %297 = getelementptr inbounds double, ptr %296, i64 %.0584703.epil
  store double 0.000000e+00, ptr %297, align 8, !tbaa !20
  %298 = add nuw nsw i64 %.0584703.epil, 1
  %epil.iter904.next = add i64 %epil.iter904, 1
  %epil.iter904.cmp.not = icmp eq i64 %epil.iter904.next, %xtraiter903
  br i1 %epil.iter904.cmp.not, label %._crit_edge706, label %.epil.preheader902, !llvm.loop !54

._crit_edge706:                                   ; preds = %.epil.preheader902, %._crit_edge706.unr-lcssa
  %299 = mul nsw i64 %26, %23
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %299, ptr noundef %3)
  %.not.not606712 = icmp sgt i64 %23, 0
  br i1 %.not.not606712, label %.lr.ph716, label %.preheader629.thread

._crit_edge706.thread:                            ; preds = %._crit_edge701
  %300 = mul nsw i64 %26, %23
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %300, ptr noundef %3)
  %.not.not606712833 = icmp sgt i64 %23, 0
  br i1 %.not.not606712833, label %.lr.ph716, label %._crit_edge730

.lr.ph716:                                        ; preds = %._crit_edge706.thread, %._crit_edge706
  %301 = getelementptr inbounds i8, ptr %0, i64 168
  %302 = call double @llvm.fmuladd.f64(double %181, double 0xBEB0C6F7A0B5ED8D, double %.2)
  %303 = call double @llvm.fmuladd.f64(double %181, double 0x3EB0C6F7A0B5ED8D, double %.2554)
  %304 = call double @llvm.fmuladd.f64(double %186, double 0xBEB0C6F7A0B5ED8D, double %.2557)
  %305 = call double @llvm.fmuladd.f64(double %186, double 0x3EB0C6F7A0B5ED8D, double %.2560)
  %306 = getelementptr inbounds i8, ptr %7, i64 56
  %307 = getelementptr inbounds i8, ptr %13, i64 56
  %xtraiter908 = and i64 %25, 1
  %308 = icmp eq i64 %25, 1
  %unroll_iter911 = and i64 %25, 9223372036854775806
  %lcmp.mod910.not = icmp eq i64 %xtraiter908, 0
  br label %311

.preheader629:                                    ; preds = %378
  br i1 %.not.not605702, label %.lr.ph720, label %._crit_edge730

.preheader629.thread:                             ; preds = %._crit_edge706
  br i1 %.not.not605702, label %.lr.ph720, label %._crit_edge730

.lr.ph720:                                        ; preds = %.preheader629.thread, %.preheader629
  %.0565.lcssa830 = phi i64 [ 0, %.preheader629.thread ], [ %.1566, %.preheader629 ]
  %309 = getelementptr inbounds i8, ptr %13, i64 56
  %310 = sitofp i64 %.0565.lcssa830 to double
  br label %397

311:                                              ; preds = %.lr.ph716, %378
  %.0565714 = phi i64 [ 0, %.lr.ph716 ], [ %.1566, %378 ]
  %.4594713 = phi i64 [ 0, %.lr.ph716 ], [ %379, %378 ]
  %312 = load ptr, ptr %301, align 8, !tbaa !19
  %313 = mul nsw i64 %.4594713, %26
  %314 = getelementptr inbounds double, ptr %312, i64 %313
  %315 = load double, ptr %314, align 8, !tbaa !20
  %316 = getelementptr i8, ptr %314, i64 8
  %317 = load double, ptr %316, align 8, !tbaa !20
  %318 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %302, double noundef %315)
  br i1 %318, label %319, label %378

319:                                              ; preds = %311
  %320 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %315, double noundef %303)
  br i1 %320, label %321, label %378

321:                                              ; preds = %319
  %322 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %304, double noundef %317)
  br i1 %322, label %323, label %378

323:                                              ; preds = %321
  %324 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %317, double noundef %305)
  br i1 %324, label %325, label %378

325:                                              ; preds = %323
  %326 = fsub double %315, %191
  %327 = fmul double %187, %326
  %328 = load ptr, ptr %306, align 8, !tbaa !19
  %329 = mul nsw i64 %.0565714, %26
  %330 = getelementptr inbounds double, ptr %328, i64 %329
  store double %327, ptr %330, align 8, !tbaa !20
  %331 = fsub double %317, %193
  %332 = fmul double %188, %331
  %333 = load ptr, ptr %306, align 8, !tbaa !19
  %334 = getelementptr double, ptr %333, i64 %329
  %335 = getelementptr i8, ptr %334, i64 8
  store double %332, ptr %335, align 8, !tbaa !20
  br i1 %.not.not605702, label %.lr.ph710.preheader, label %._crit_edge711

.lr.ph710.preheader:                              ; preds = %325
  br i1 %308, label %._crit_edge711.loopexit.unr-lcssa, label %.lr.ph710

.lr.ph710:                                        ; preds = %.lr.ph710.preheader, %.lr.ph710
  %.1585708 = phi i64 [ %363, %.lr.ph710 ], [ 0, %.lr.ph710.preheader ]
  %niter912 = phi i64 [ %niter912.next.1, %.lr.ph710 ], [ 0, %.lr.ph710.preheader ]
  %336 = load ptr, ptr %301, align 8, !tbaa !19
  %337 = getelementptr double, ptr %336, i64 %313
  %338 = getelementptr i8, ptr %337, i64 16
  %339 = getelementptr double, ptr %338, i64 %.1585708
  %340 = load double, ptr %339, align 8, !tbaa !20
  %341 = load ptr, ptr %306, align 8, !tbaa !19
  %342 = getelementptr double, ptr %341, i64 %329
  %343 = getelementptr i8, ptr %342, i64 16
  %344 = getelementptr double, ptr %343, i64 %.1585708
  store double %340, ptr %344, align 8, !tbaa !20
  %345 = load ptr, ptr %307, align 8, !tbaa !19
  %346 = getelementptr inbounds double, ptr %345, i64 %.1585708
  %347 = load double, ptr %346, align 8, !tbaa !20
  %348 = fadd double %340, %347
  store double %348, ptr %346, align 8, !tbaa !20
  %349 = or disjoint i64 %.1585708, 1
  %350 = load ptr, ptr %301, align 8, !tbaa !19
  %351 = getelementptr double, ptr %350, i64 %313
  %352 = getelementptr i8, ptr %351, i64 16
  %353 = getelementptr double, ptr %352, i64 %349
  %354 = load double, ptr %353, align 8, !tbaa !20
  %355 = load ptr, ptr %306, align 8, !tbaa !19
  %356 = getelementptr double, ptr %355, i64 %329
  %357 = getelementptr i8, ptr %356, i64 16
  %358 = getelementptr double, ptr %357, i64 %349
  store double %354, ptr %358, align 8, !tbaa !20
  %359 = load ptr, ptr %307, align 8, !tbaa !19
  %360 = getelementptr inbounds double, ptr %359, i64 %349
  %361 = load double, ptr %360, align 8, !tbaa !20
  %362 = fadd double %354, %361
  store double %362, ptr %360, align 8, !tbaa !20
  %363 = add nuw nsw i64 %.1585708, 2
  %niter912.next.1 = add i64 %niter912, 2
  %niter912.ncmp.1 = icmp eq i64 %niter912.next.1, %unroll_iter911
  br i1 %niter912.ncmp.1, label %._crit_edge711.loopexit.unr-lcssa, label %.lr.ph710, !llvm.loop !55

._crit_edge711.loopexit.unr-lcssa:                ; preds = %.lr.ph710, %.lr.ph710.preheader
  %.1585708.unr = phi i64 [ 0, %.lr.ph710.preheader ], [ %363, %.lr.ph710 ]
  br i1 %lcmp.mod910.not, label %._crit_edge711, label %.lr.ph710.epil

.lr.ph710.epil:                                   ; preds = %._crit_edge711.loopexit.unr-lcssa
  %364 = load ptr, ptr %301, align 8, !tbaa !19
  %365 = getelementptr double, ptr %364, i64 %313
  %366 = getelementptr i8, ptr %365, i64 16
  %367 = getelementptr double, ptr %366, i64 %.1585708.unr
  %368 = load double, ptr %367, align 8, !tbaa !20
  %369 = load ptr, ptr %306, align 8, !tbaa !19
  %370 = getelementptr double, ptr %369, i64 %329
  %371 = getelementptr i8, ptr %370, i64 16
  %372 = getelementptr double, ptr %371, i64 %.1585708.unr
  store double %368, ptr %372, align 8, !tbaa !20
  %373 = load ptr, ptr %307, align 8, !tbaa !19
  %374 = getelementptr inbounds double, ptr %373, i64 %.1585708.unr
  %375 = load double, ptr %374, align 8, !tbaa !20
  %376 = fadd double %368, %375
  store double %376, ptr %374, align 8, !tbaa !20
  br label %._crit_edge711

._crit_edge711:                                   ; preds = %.lr.ph710.epil, %._crit_edge711.loopexit.unr-lcssa, %325
  %377 = add nsw i64 %.0565714, 1
  br label %378

378:                                              ; preds = %311, %319, %321, %323, %._crit_edge711
  %.1566 = phi i64 [ %377, %._crit_edge711 ], [ %.0565714, %323 ], [ %.0565714, %321 ], [ %.0565714, %319 ], [ %.0565714, %311 ]
  %379 = add nuw nsw i64 %.4594713, 1
  %exitcond798.not = icmp eq i64 %379, %23
  br i1 %exitcond798.not, label %.preheader629, label %311, !llvm.loop !56

.preheader628:                                    ; preds = %397
  %.not.not608727 = icmp sgt i64 %.0565.lcssa830, 0
  br i1 %.not.not608727, label %.preheader627.lr.ph, label %._crit_edge730

.preheader627.lr.ph:                              ; preds = %.preheader628
  %380 = getelementptr inbounds i8, ptr %7, i64 56
  %381 = getelementptr inbounds i8, ptr %13, i64 56
  br i1 %.not.not605702, label %.preheader627.us, label %._crit_edge730

.preheader627.us:                                 ; preds = %.preheader627.lr.ph, %._crit_edge725.us
  %.0729.us = phi double [ %394, %._crit_edge725.us ], [ 0.000000e+00, %.preheader627.lr.ph ]
  %.5595728.us = phi i64 [ %396, %._crit_edge725.us ], [ 0, %.preheader627.lr.ph ]
  %382 = mul nuw nsw i64 %.5595728.us, %26
  br label %383

383:                                              ; preds = %.preheader627.us, %383
  %.1723.us = phi double [ %.0729.us, %.preheader627.us ], [ %394, %383 ]
  %.3587722.us = phi i64 [ 0, %.preheader627.us ], [ %395, %383 ]
  %384 = load ptr, ptr %380, align 8, !tbaa !19
  %385 = getelementptr double, ptr %384, i64 %382
  %386 = getelementptr i8, ptr %385, i64 16
  %387 = getelementptr double, ptr %386, i64 %.3587722.us
  %388 = load double, ptr %387, align 8, !tbaa !20
  %389 = load ptr, ptr %381, align 8, !tbaa !19
  %390 = getelementptr inbounds double, ptr %389, i64 %.3587722.us
  %391 = load double, ptr %390, align 8, !tbaa !20
  %392 = fsub double %388, %391
  %393 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %392, ptr noundef %3)
  %394 = fadd double %.1723.us, %393
  %395 = add nuw nsw i64 %.3587722.us, 1
  %exitcond800.not = icmp eq i64 %395, %25
  br i1 %exitcond800.not, label %._crit_edge725.us, label %383, !llvm.loop !57

._crit_edge725.us:                                ; preds = %383
  %396 = add nuw nsw i64 %.5595728.us, 1
  %exitcond801.not = icmp eq i64 %396, %.0565.lcssa830
  br i1 %exitcond801.not, label %._crit_edge730, label %.preheader627.us, !llvm.loop !58

397:                                              ; preds = %.lr.ph720, %397
  %.2586719 = phi i64 [ 0, %.lr.ph720 ], [ %405, %397 ]
  %398 = load ptr, ptr %309, align 8, !tbaa !19
  %399 = getelementptr inbounds double, ptr %398, i64 %.2586719
  %400 = load double, ptr %399, align 8, !tbaa !20
  %401 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %310, double noundef 1.000000e+00, ptr noundef %3)
  %402 = fdiv double %400, %401
  %403 = load ptr, ptr %309, align 8, !tbaa !19
  %404 = getelementptr inbounds double, ptr %403, i64 %.2586719
  store double %402, ptr %404, align 8, !tbaa !20
  %405 = add nuw nsw i64 %.2586719, 1
  %exitcond799.not = icmp eq i64 %405, %25
  br i1 %exitcond799.not, label %.preheader628, label %397, !llvm.loop !59

._crit_edge730:                                   ; preds = %._crit_edge725.us, %.preheader629, %._crit_edge706.thread, %.preheader629.thread, %.preheader627.lr.ph, %.preheader628
  %.0565.lcssa828 = phi i64 [ %.0565.lcssa830, %.preheader628 ], [ %.0565.lcssa830, %.preheader627.lr.ph ], [ 0, %.preheader629.thread ], [ 0, %._crit_edge706.thread ], [ %.1566, %.preheader629 ], [ %.0565.lcssa830, %._crit_edge725.us ]
  %.0.lcssa = phi double [ 0.000000e+00, %.preheader628 ], [ 0.000000e+00, %.preheader627.lr.ph ], [ 0.000000e+00, %.preheader629.thread ], [ 0.000000e+00, %._crit_edge706.thread ], [ 0.000000e+00, %.preheader629 ], [ %394, %._crit_edge725.us ]
  %406 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %.0.lcssa, double noundef 1.000000e+00, ptr noundef %3)
  %407 = load i64, ptr %0, align 8, !tbaa !60
  %408 = getelementptr inbounds i8, ptr %0, i64 8
  %409 = load double, ptr %408, align 8, !tbaa !61
  call void @_ZN11alglib_impl15buildpriorterm1EPNS_9ae_vectorElllldPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0565.lcssa828, i64 noundef 2, i64 noundef %25, i64 noundef %407, double noundef %409, ptr noundef nonnull %8, ptr noundef %3)
  %410 = icmp eq i64 %.0565.lcssa828, 0
  br i1 %410, label %.preheader623, label %522

.preheader623:                                    ; preds = %._crit_edge730
  %411 = load i64, ptr %198, align 8, !tbaa !45
  %412 = load i64, ptr %199, align 8, !tbaa !46
  %413 = mul nsw i64 %412, %411
  %.not.not614759 = icmp sgt i64 %413, 0
  br i1 %.not.not614759, label %.lr.ph761, label %.preheader622

.lr.ph761:                                        ; preds = %.preheader623
  %414 = getelementptr inbounds i8, ptr %1, i64 216
  %415 = getelementptr inbounds i8, ptr %8, i64 72
  %416 = getelementptr inbounds i8, ptr %1, i64 88
  %417 = getelementptr inbounds i8, ptr %1, i64 152
  br label %420

.preheader622:                                    ; preds = %._crit_edge758, %.preheader623
  %.not.not615765 = icmp sgt i64 %411, 0
  br i1 %.not.not615765, label %.lr.ph767, label %.preheader621

.lr.ph767:                                        ; preds = %.preheader622
  %418 = getelementptr inbounds i8, ptr %1, i64 88
  %xtraiter926 = and i64 %411, 1
  %419 = icmp eq i64 %411, 1
  br i1 %419, label %.preheader621.loopexit.unr-lcssa, label %.lr.ph767.new

.lr.ph767.new:                                    ; preds = %.lr.ph767
  %unroll_iter929 = and i64 %411, 9223372036854775806
  br label %475

420:                                              ; preds = %.lr.ph761, %._crit_edge758
  %.2582760 = phi i64 [ 0, %.lr.ph761 ], [ %468, %._crit_edge758 ]
  %421 = srem i64 %.2582760, %411
  %422 = sdiv i64 %.2582760, %411
  br i1 %.not.not605702, label %.lr.ph757, label %._crit_edge758

.lr.ph757:                                        ; preds = %420
  %423 = mul nsw i64 %422, %411
  %424 = add nsw i64 %423, %421
  %425 = mul nsw i64 %424, %25
  br label %426

426:                                              ; preds = %.lr.ph757, %426
  %.4588755 = phi i64 [ 0, %.lr.ph757 ], [ %467, %426 ]
  %427 = add nsw i64 %.4588755, %425
  %428 = load ptr, ptr %414, align 8, !tbaa !19
  %429 = getelementptr inbounds double, ptr %428, i64 %427
  %430 = load double, ptr %429, align 8, !tbaa !20
  %431 = load ptr, ptr %415, align 8, !tbaa !19
  %432 = getelementptr inbounds ptr, ptr %431, i64 %.4588755
  %433 = load ptr, ptr %432, align 8, !tbaa !62
  %434 = load double, ptr %433, align 8, !tbaa !20
  %435 = load ptr, ptr %416, align 8, !tbaa !19
  %436 = getelementptr inbounds double, ptr %435, i64 %421
  %437 = load double, ptr %436, align 8, !tbaa !20
  %438 = call double @llvm.fmuladd.f64(double %434, double %437, double %430)
  %439 = getelementptr inbounds i8, ptr %433, i64 8
  %440 = load double, ptr %439, align 8, !tbaa !20
  %441 = load ptr, ptr %417, align 8, !tbaa !19
  %442 = getelementptr inbounds double, ptr %441, i64 %422
  %443 = load double, ptr %442, align 8, !tbaa !20
  %444 = call double @llvm.fmuladd.f64(double %440, double %443, double %438)
  %445 = getelementptr inbounds i8, ptr %433, i64 16
  %446 = load double, ptr %445, align 8, !tbaa !20
  %447 = fadd double %444, %446
  store double %447, ptr %429, align 8, !tbaa !20
  %448 = load ptr, ptr %414, align 8, !tbaa !19
  %449 = getelementptr double, ptr %448, i64 %201
  %450 = getelementptr double, ptr %449, i64 %427
  %451 = load double, ptr %450, align 8, !tbaa !20
  %452 = load ptr, ptr %415, align 8, !tbaa !19
  %453 = getelementptr inbounds ptr, ptr %452, i64 %.4588755
  %454 = load ptr, ptr %453, align 8, !tbaa !62
  %455 = load double, ptr %454, align 8, !tbaa !20
  %456 = fadd double %451, %455
  store double %456, ptr %450, align 8, !tbaa !20
  %457 = load ptr, ptr %414, align 8, !tbaa !19
  %458 = getelementptr double, ptr %457, i64 %204
  %459 = getelementptr double, ptr %458, i64 %427
  %460 = load double, ptr %459, align 8, !tbaa !20
  %461 = load ptr, ptr %415, align 8, !tbaa !19
  %462 = getelementptr inbounds ptr, ptr %461, i64 %.4588755
  %463 = load ptr, ptr %462, align 8, !tbaa !62
  %464 = getelementptr inbounds i8, ptr %463, i64 8
  %465 = load double, ptr %464, align 8, !tbaa !20
  %466 = fadd double %460, %465
  store double %466, ptr %459, align 8, !tbaa !20
  %467 = add nuw nsw i64 %.4588755, 1
  %exitcond807.not = icmp eq i64 %467, %25
  br i1 %exitcond807.not, label %._crit_edge758, label %426, !llvm.loop !63

._crit_edge758:                                   ; preds = %426, %420
  %468 = add nuw nsw i64 %.2582760, 1
  %exitcond808.not = icmp eq i64 %468, %413
  br i1 %exitcond808.not, label %.preheader622, label %420, !llvm.loop !64

.preheader621.loopexit.unr-lcssa:                 ; preds = %475, %.lr.ph767
  %.6766.unr = phi i64 [ 0, %.lr.ph767 ], [ %485, %475 ]
  %lcmp.mod928.not = icmp eq i64 %xtraiter926, 0
  br i1 %lcmp.mod928.not, label %.preheader621, label %.preheader621.loopexit.epilog-lcssa

.preheader621.loopexit.epilog-lcssa:              ; preds = %.preheader621.loopexit.unr-lcssa
  %469 = load ptr, ptr %418, align 8, !tbaa !19
  %470 = getelementptr inbounds double, ptr %469, i64 %.6766.unr
  %471 = load double, ptr %470, align 8, !tbaa !20
  %472 = call double @llvm.fmuladd.f64(double %471, double %181, double %191)
  store double %472, ptr %470, align 8, !tbaa !20
  br label %.preheader621

.preheader621:                                    ; preds = %.preheader621.loopexit.epilog-lcssa, %.preheader621.loopexit.unr-lcssa, %.preheader622
  %.not.not616768 = icmp sgt i64 %412, 0
  br i1 %.not.not616768, label %.lr.ph770, label %.preheader

.lr.ph770:                                        ; preds = %.preheader621
  %473 = getelementptr inbounds i8, ptr %1, i64 152
  %xtraiter932 = and i64 %412, 1
  %474 = icmp eq i64 %412, 1
  br i1 %474, label %.preheader.loopexit.unr-lcssa, label %.lr.ph770.new

.lr.ph770.new:                                    ; preds = %.lr.ph770
  %unroll_iter935 = and i64 %412, 9223372036854775806
  br label %492

475:                                              ; preds = %475, %.lr.ph767.new
  %.6766 = phi i64 [ 0, %.lr.ph767.new ], [ %485, %475 ]
  %niter930 = phi i64 [ 0, %.lr.ph767.new ], [ %niter930.next.1, %475 ]
  %476 = load ptr, ptr %418, align 8, !tbaa !19
  %477 = getelementptr inbounds double, ptr %476, i64 %.6766
  %478 = load double, ptr %477, align 8, !tbaa !20
  %479 = call double @llvm.fmuladd.f64(double %478, double %181, double %191)
  store double %479, ptr %477, align 8, !tbaa !20
  %480 = or disjoint i64 %.6766, 1
  %481 = load ptr, ptr %418, align 8, !tbaa !19
  %482 = getelementptr inbounds double, ptr %481, i64 %480
  %483 = load double, ptr %482, align 8, !tbaa !20
  %484 = call double @llvm.fmuladd.f64(double %483, double %181, double %191)
  store double %484, ptr %482, align 8, !tbaa !20
  %485 = add nuw nsw i64 %.6766, 2
  %niter930.next.1 = add i64 %niter930, 2
  %niter930.ncmp.1 = icmp eq i64 %niter930.next.1, %unroll_iter929
  br i1 %niter930.ncmp.1, label %.preheader621.loopexit.unr-lcssa, label %475, !llvm.loop !65

.preheader.loopexit.unr-lcssa:                    ; preds = %492, %.lr.ph770
  %.7769.unr = phi i64 [ 0, %.lr.ph770 ], [ %502, %492 ]
  %lcmp.mod934.not = icmp eq i64 %xtraiter932, 0
  br i1 %lcmp.mod934.not, label %.preheader, label %.preheader.loopexit.epilog-lcssa

.preheader.loopexit.epilog-lcssa:                 ; preds = %.preheader.loopexit.unr-lcssa
  %486 = load ptr, ptr %473, align 8, !tbaa !19
  %487 = getelementptr inbounds double, ptr %486, i64 %.7769.unr
  %488 = load double, ptr %487, align 8, !tbaa !20
  %489 = call double @llvm.fmuladd.f64(double %488, double %186, double %193)
  store double %489, ptr %487, align 8, !tbaa !20
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit.epilog-lcssa, %.preheader.loopexit.unr-lcssa, %.preheader621
  %490 = mul nsw i64 %413, %25
  %.not.not617771 = icmp sgt i64 %490, 0
  br i1 %.not.not617771, label %.lr.ph773, label %._crit_edge774

.lr.ph773:                                        ; preds = %.preheader
  %491 = getelementptr inbounds i8, ptr %1, i64 216
  br label %503

492:                                              ; preds = %492, %.lr.ph770.new
  %.7769 = phi i64 [ 0, %.lr.ph770.new ], [ %502, %492 ]
  %niter936 = phi i64 [ 0, %.lr.ph770.new ], [ %niter936.next.1, %492 ]
  %493 = load ptr, ptr %473, align 8, !tbaa !19
  %494 = getelementptr inbounds double, ptr %493, i64 %.7769
  %495 = load double, ptr %494, align 8, !tbaa !20
  %496 = call double @llvm.fmuladd.f64(double %495, double %186, double %193)
  store double %496, ptr %494, align 8, !tbaa !20
  %497 = or disjoint i64 %.7769, 1
  %498 = load ptr, ptr %473, align 8, !tbaa !19
  %499 = getelementptr inbounds double, ptr %498, i64 %497
  %500 = load double, ptr %499, align 8, !tbaa !20
  %501 = call double @llvm.fmuladd.f64(double %500, double %186, double %193)
  store double %501, ptr %499, align 8, !tbaa !20
  %502 = add nuw nsw i64 %.7769, 2
  %niter936.next.1 = add i64 %niter936, 2
  %niter936.ncmp.1 = icmp eq i64 %niter936.next.1, %unroll_iter935
  br i1 %niter936.ncmp.1, label %.preheader.loopexit.unr-lcssa, label %492, !llvm.loop !66

503:                                              ; preds = %.lr.ph773, %503
  %.8772 = phi i64 [ 0, %.lr.ph773 ], [ %520, %503 ]
  %504 = load ptr, ptr %491, align 8, !tbaa !19
  %505 = getelementptr double, ptr %504, i64 %201
  %506 = getelementptr double, ptr %505, i64 %.8772
  %507 = load double, ptr %506, align 8, !tbaa !20
  %508 = fmul double %187, %507
  store double %508, ptr %506, align 8, !tbaa !20
  %509 = load ptr, ptr %491, align 8, !tbaa !19
  %510 = getelementptr double, ptr %509, i64 %204
  %511 = getelementptr double, ptr %510, i64 %.8772
  %512 = load double, ptr %511, align 8, !tbaa !20
  %513 = fmul double %188, %512
  store double %513, ptr %511, align 8, !tbaa !20
  %514 = load ptr, ptr %491, align 8, !tbaa !19
  %515 = getelementptr double, ptr %514, i64 %207
  %516 = getelementptr double, ptr %515, i64 %.8772
  %517 = load double, ptr %516, align 8, !tbaa !20
  %518 = fmul double %187, %517
  %519 = fmul double %188, %518
  store double %519, ptr %516, align 8, !tbaa !20
  %520 = add nuw nsw i64 %.8772, 1
  %exitcond811.not = icmp eq i64 %520, %490
  br i1 %exitcond811.not, label %._crit_edge774, label %503, !llvm.loop !67

._crit_edge774:                                   ; preds = %503, %.preheader
  %521 = getelementptr inbounds i8, ptr %2, i64 24
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, i8 0, i64 24, i1 false)
  store double 1.000000e+00, ptr %521, align 8, !tbaa !68
  br label %._crit_edge753

522:                                              ; preds = %._crit_edge730
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef 7, ptr noundef %3)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef 7, ptr noundef %3)
  %523 = getelementptr inbounds i8, ptr %9, i64 56
  %524 = load ptr, ptr %523, align 8, !tbaa !19
  store double -3.000000e+00, ptr %524, align 8, !tbaa !20
  %525 = load ptr, ptr %523, align 8, !tbaa !19
  %526 = getelementptr inbounds i8, ptr %525, i64 8
  store double -2.000000e+00, ptr %526, align 8, !tbaa !20
  %527 = load ptr, ptr %523, align 8, !tbaa !19
  %528 = getelementptr inbounds i8, ptr %527, i64 16
  store double -1.000000e+00, ptr %528, align 8, !tbaa !20
  %529 = load ptr, ptr %523, align 8, !tbaa !19
  %530 = getelementptr inbounds i8, ptr %529, i64 24
  store double 0.000000e+00, ptr %530, align 8, !tbaa !20
  %531 = load ptr, ptr %523, align 8, !tbaa !19
  %532 = getelementptr inbounds i8, ptr %531, i64 32
  store double 1.000000e+00, ptr %532, align 8, !tbaa !20
  %533 = load ptr, ptr %523, align 8, !tbaa !19
  %534 = getelementptr inbounds i8, ptr %533, i64 40
  store double 2.000000e+00, ptr %534, align 8, !tbaa !20
  %535 = load ptr, ptr %523, align 8, !tbaa !19
  %536 = getelementptr inbounds i8, ptr %535, i64 48
  store double 3.000000e+00, ptr %536, align 8, !tbaa !20
  %537 = getelementptr inbounds i8, ptr %10, i64 56
  %538 = load ptr, ptr %537, align 8, !tbaa !19
  store double 0.000000e+00, ptr %538, align 8, !tbaa !20
  %539 = load ptr, ptr %537, align 8, !tbaa !19
  %540 = getelementptr inbounds i8, ptr %539, i64 8
  store double 0.000000e+00, ptr %540, align 8, !tbaa !20
  %541 = load ptr, ptr %537, align 8, !tbaa !19
  %542 = getelementptr inbounds i8, ptr %541, i64 16
  store double 0x3FB5555555555555, ptr %542, align 8, !tbaa !20
  %543 = load ptr, ptr %537, align 8, !tbaa !19
  %544 = getelementptr inbounds i8, ptr %543, i64 24
  store double 0x3FD5555555555555, ptr %544, align 8, !tbaa !20
  %545 = load ptr, ptr %537, align 8, !tbaa !19
  %546 = getelementptr inbounds i8, ptr %545, i64 32
  store double 0x3FB5555555555555, ptr %546, align 8, !tbaa !20
  %547 = load ptr, ptr %537, align 8, !tbaa !19
  %548 = getelementptr inbounds i8, ptr %547, i64 40
  store double 0.000000e+00, ptr %548, align 8, !tbaa !20
  %549 = load ptr, ptr %537, align 8, !tbaa !19
  %550 = getelementptr inbounds i8, ptr %549, i64 48
  store double 0.000000e+00, ptr %550, align 8, !tbaa !20
  %551 = load i64, ptr %9, align 8, !tbaa !70
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %10, i64 noundef %551, i64 noundef 2, double noundef 0.000000e+00, i64 noundef 2, double noundef 0.000000e+00, ptr noundef nonnull %16, ptr noundef %3)
  %552 = load i64, ptr %109, align 8, !tbaa !30
  switch i64 %552, label %583 [
    i64 1, label %553
    i64 2, label %561
    i64 3, label %570
  ]

553:                                              ; preds = %522
  call void @_ZN11alglib_implL36spline2d_reorderdatasetandbuildindexEPNS_9ae_vectorEllS1_lllS1_S1_PNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0565.lcssa828, i64 noundef %25, ptr noundef nonnull %11, i64 noundef 0, i64 noundef %195, i64 noundef %196, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %3)
  %554 = load double, ptr @_ZN11alglib_implL26spline2d_lambdaregblockllsE, align 8, !tbaa !20
  %555 = getelementptr inbounds i8, ptr %0, i64 80
  %556 = load double, ptr %555, align 8, !tbaa !71
  call void @_ZN11alglib_implL24spline2d_xdesigngenerateEPNS_9ae_vectorES1_lllllllddPNS_19spline1dinterpolantEPNS_21spline2dxdesignmatrixEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef nonnull %14, i64 noundef 0, i64 noundef %195, i64 noundef %195, i64 noundef 0, i64 noundef %196, i64 noundef %196, i64 noundef %25, double noundef %554, double noundef %556, ptr noundef nonnull %16, ptr noundef nonnull %19, ptr noundef %3)
  %557 = getelementptr inbounds i8, ptr %0, i64 224
  %558 = load i64, ptr %557, align 8, !tbaa !72
  call void @_ZN11alglib_implL20spline2d_blockllsfitEPNS_21spline2dxdesignmatrixElPNS_9ae_vectorEPNS_17spline2dfitreportEdPNS_19spline2dblockllsbufEPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %558, ptr noundef nonnull %20, ptr noundef %2, double noundef %406, ptr noundef nonnull %21, ptr noundef %3)
  %559 = load i64, ptr %199, align 8, !tbaa !46
  %560 = load i64, ptr %198, align 8, !tbaa !45
  call void @_ZN11alglib_implL26spline2d_updatesplinetableEPNS_9ae_vectorElllPNS_19spline1dinterpolantElS1_lllPNS_8ae_stateE(ptr noundef nonnull %20, i64 noundef %195, i64 noundef %196, i64 noundef %25, ptr noundef nonnull %16, i64 noundef 2, ptr noundef nonnull %211, i64 noundef %559, i64 noundef %560, i64 noundef 1, ptr noundef %3)
  br label %584

561:                                              ; preds = %522
  %562 = getelementptr inbounds i8, ptr %0, i64 80
  %563 = load double, ptr %562, align 8, !tbaa !71
  %564 = load double, ptr @_ZN11alglib_implL26spline2d_lambdaregblockllsE, align 8, !tbaa !20
  call void @_ZN11alglib_implL29spline2d_generatedesignmatrixEPNS_9ae_vectorEllllddPNS_19spline1dinterpolantEPNS_12sparsematrixES5_PlPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0565.lcssa828, i64 noundef %25, i64 noundef %195, i64 noundef %196, double noundef %563, double noundef %564, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %6, ptr noundef %3)
  %565 = load i64, ptr %6, align 8, !tbaa !73
  %566 = getelementptr inbounds i8, ptr %0, i64 224
  %567 = load i64, ptr %566, align 8, !tbaa !72
  call void @_ZN11alglib_implL20spline2d_naivellsfitEPNS_12sparsematrixES1_lPNS_9ae_vectorElllllS3_PNS_17spline2dfitreportEdPNS_8ae_stateE(ptr noundef nonnull %17, ptr noundef nonnull %18, i64 noundef %565, ptr noundef nonnull %7, i64 noundef %195, i64 noundef %196, i64 noundef %.0565.lcssa828, i64 noundef %25, i64 noundef %567, ptr noundef nonnull %20, ptr noundef %2, double noundef %406, ptr noundef %3)
  %568 = load i64, ptr %199, align 8, !tbaa !46
  %569 = load i64, ptr %198, align 8, !tbaa !45
  call void @_ZN11alglib_implL26spline2d_updatesplinetableEPNS_9ae_vectorElllPNS_19spline1dinterpolantElS1_lllPNS_8ae_stateE(ptr noundef nonnull %20, i64 noundef %195, i64 noundef %196, i64 noundef %25, ptr noundef nonnull %16, i64 noundef 2, ptr noundef nonnull %211, i64 noundef %568, i64 noundef %569, i64 noundef 1, ptr noundef %3)
  br label %584

570:                                              ; preds = %522
  %571 = icmp sgt i64 %.1564, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %571, ptr noundef nonnull @.str.762, ptr noundef %3)
  %572 = icmp sgt i64 %.1562, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %572, ptr noundef nonnull @.str.762, ptr noundef %3)
  %573 = getelementptr inbounds i8, ptr %0, i64 232
  %574 = load i64, ptr %573, align 8, !tbaa !31
  %575 = getelementptr inbounds i8, ptr %0, i64 216
  %576 = load i64, ptr %575, align 8, !tbaa !74
  %577 = getelementptr inbounds i8, ptr %0, i64 88
  %578 = load i64, ptr %577, align 8, !tbaa !75
  %579 = getelementptr inbounds i8, ptr %0, i64 80
  %580 = load double, ptr %579, align 8, !tbaa !71
  %581 = getelementptr inbounds i8, ptr %0, i64 224
  %582 = load i64, ptr %581, align 8, !tbaa !72
  call void @_ZN11alglib_implL19spline2d_fastddmfitEPNS_9ae_vectorEllllllllldlPNS_19spline1dinterpolantEPNS_19spline2dinterpolantEPNS_17spline2dfitreportEdPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0565.lcssa828, i64 noundef %25, i64 noundef %195, i64 noundef %196, i64 noundef %.1564, i64 noundef %.1562, i64 noundef %574, i64 noundef %576, i64 noundef %578, double noundef %580, i64 noundef %582, ptr noundef nonnull %16, ptr noundef nonnull %1, ptr noundef %2, double noundef %406, ptr noundef %3)
  br label %584

583:                                              ; preds = %522
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.762, ptr noundef %3)
  br label %584

584:                                              ; preds = %561, %583, %570, %553
  %585 = load i64, ptr %198, align 8, !tbaa !45
  %586 = load i64, ptr %199, align 8, !tbaa !46
  %587 = mul nsw i64 %586, %585
  %.not.not609737 = icmp sgt i64 %587, 0
  br i1 %.not.not609737, label %.lr.ph740, label %.preheader626

.lr.ph740:                                        ; preds = %584
  %588 = getelementptr inbounds i8, ptr %1, i64 216
  %589 = getelementptr inbounds i8, ptr %8, i64 72
  %590 = getelementptr inbounds i8, ptr %1, i64 88
  %591 = getelementptr inbounds i8, ptr %1, i64 152
  br label %594

.preheader626:                                    ; preds = %._crit_edge736, %584
  %.not.not610744 = icmp sgt i64 %585, 0
  br i1 %.not.not610744, label %.lr.ph746, label %.preheader625

.lr.ph746:                                        ; preds = %.preheader626
  %592 = getelementptr inbounds i8, ptr %1, i64 88
  %xtraiter914 = and i64 %585, 1
  %593 = icmp eq i64 %585, 1
  br i1 %593, label %.preheader625.loopexit.unr-lcssa, label %.lr.ph746.new

.lr.ph746.new:                                    ; preds = %.lr.ph746
  %unroll_iter917 = and i64 %585, 9223372036854775806
  br label %649

594:                                              ; preds = %.lr.ph740, %._crit_edge736
  %.3583738 = phi i64 [ 0, %.lr.ph740 ], [ %642, %._crit_edge736 ]
  %595 = srem i64 %.3583738, %585
  %596 = sdiv i64 %.3583738, %585
  br i1 %.not.not605702, label %.lr.ph735, label %._crit_edge736

.lr.ph735:                                        ; preds = %594
  %597 = mul nsw i64 %596, %585
  %598 = add nsw i64 %597, %595
  %599 = mul nsw i64 %598, %25
  br label %600

600:                                              ; preds = %.lr.ph735, %600
  %.5589733 = phi i64 [ 0, %.lr.ph735 ], [ %641, %600 ]
  %601 = add nsw i64 %.5589733, %599
  %602 = load ptr, ptr %588, align 8, !tbaa !19
  %603 = getelementptr inbounds double, ptr %602, i64 %601
  %604 = load double, ptr %603, align 8, !tbaa !20
  %605 = load ptr, ptr %589, align 8, !tbaa !19
  %606 = getelementptr inbounds ptr, ptr %605, i64 %.5589733
  %607 = load ptr, ptr %606, align 8, !tbaa !62
  %608 = load double, ptr %607, align 8, !tbaa !20
  %609 = load ptr, ptr %590, align 8, !tbaa !19
  %610 = getelementptr inbounds double, ptr %609, i64 %595
  %611 = load double, ptr %610, align 8, !tbaa !20
  %612 = call double @llvm.fmuladd.f64(double %608, double %611, double %604)
  %613 = getelementptr inbounds i8, ptr %607, i64 8
  %614 = load double, ptr %613, align 8, !tbaa !20
  %615 = load ptr, ptr %591, align 8, !tbaa !19
  %616 = getelementptr inbounds double, ptr %615, i64 %596
  %617 = load double, ptr %616, align 8, !tbaa !20
  %618 = call double @llvm.fmuladd.f64(double %614, double %617, double %612)
  %619 = getelementptr inbounds i8, ptr %607, i64 16
  %620 = load double, ptr %619, align 8, !tbaa !20
  %621 = fadd double %618, %620
  store double %621, ptr %603, align 8, !tbaa !20
  %622 = load ptr, ptr %588, align 8, !tbaa !19
  %623 = getelementptr double, ptr %622, i64 %201
  %624 = getelementptr double, ptr %623, i64 %601
  %625 = load double, ptr %624, align 8, !tbaa !20
  %626 = load ptr, ptr %589, align 8, !tbaa !19
  %627 = getelementptr inbounds ptr, ptr %626, i64 %.5589733
  %628 = load ptr, ptr %627, align 8, !tbaa !62
  %629 = load double, ptr %628, align 8, !tbaa !20
  %630 = fadd double %625, %629
  store double %630, ptr %624, align 8, !tbaa !20
  %631 = load ptr, ptr %588, align 8, !tbaa !19
  %632 = getelementptr double, ptr %631, i64 %204
  %633 = getelementptr double, ptr %632, i64 %601
  %634 = load double, ptr %633, align 8, !tbaa !20
  %635 = load ptr, ptr %589, align 8, !tbaa !19
  %636 = getelementptr inbounds ptr, ptr %635, i64 %.5589733
  %637 = load ptr, ptr %636, align 8, !tbaa !62
  %638 = getelementptr inbounds i8, ptr %637, i64 8
  %639 = load double, ptr %638, align 8, !tbaa !20
  %640 = fadd double %634, %639
  store double %640, ptr %633, align 8, !tbaa !20
  %641 = add nuw nsw i64 %.5589733, 1
  %exitcond802.not = icmp eq i64 %641, %25
  br i1 %exitcond802.not, label %._crit_edge736, label %600, !llvm.loop !76

._crit_edge736:                                   ; preds = %600, %594
  %642 = add nuw nsw i64 %.3583738, 1
  %exitcond803.not = icmp eq i64 %642, %587
  br i1 %exitcond803.not, label %.preheader626, label %594, !llvm.loop !77

.preheader625.loopexit.unr-lcssa:                 ; preds = %649, %.lr.ph746
  %.9745.unr = phi i64 [ 0, %.lr.ph746 ], [ %659, %649 ]
  %lcmp.mod916.not = icmp eq i64 %xtraiter914, 0
  br i1 %lcmp.mod916.not, label %.preheader625, label %.preheader625.loopexit.epilog-lcssa

.preheader625.loopexit.epilog-lcssa:              ; preds = %.preheader625.loopexit.unr-lcssa
  %643 = load ptr, ptr %592, align 8, !tbaa !19
  %644 = getelementptr inbounds double, ptr %643, i64 %.9745.unr
  %645 = load double, ptr %644, align 8, !tbaa !20
  %646 = call double @llvm.fmuladd.f64(double %645, double %181, double %191)
  store double %646, ptr %644, align 8, !tbaa !20
  br label %.preheader625

.preheader625:                                    ; preds = %.preheader625.loopexit.epilog-lcssa, %.preheader625.loopexit.unr-lcssa, %.preheader626
  %.not.not611747 = icmp sgt i64 %586, 0
  br i1 %.not.not611747, label %.lr.ph749, label %.preheader624

.lr.ph749:                                        ; preds = %.preheader625
  %647 = getelementptr inbounds i8, ptr %1, i64 152
  %xtraiter920 = and i64 %586, 1
  %648 = icmp eq i64 %586, 1
  br i1 %648, label %.preheader624.loopexit.unr-lcssa, label %.lr.ph749.new

.lr.ph749.new:                                    ; preds = %.lr.ph749
  %unroll_iter923 = and i64 %586, 9223372036854775806
  br label %666

649:                                              ; preds = %649, %.lr.ph746.new
  %.9745 = phi i64 [ 0, %.lr.ph746.new ], [ %659, %649 ]
  %niter918 = phi i64 [ 0, %.lr.ph746.new ], [ %niter918.next.1, %649 ]
  %650 = load ptr, ptr %592, align 8, !tbaa !19
  %651 = getelementptr inbounds double, ptr %650, i64 %.9745
  %652 = load double, ptr %651, align 8, !tbaa !20
  %653 = call double @llvm.fmuladd.f64(double %652, double %181, double %191)
  store double %653, ptr %651, align 8, !tbaa !20
  %654 = or disjoint i64 %.9745, 1
  %655 = load ptr, ptr %592, align 8, !tbaa !19
  %656 = getelementptr inbounds double, ptr %655, i64 %654
  %657 = load double, ptr %656, align 8, !tbaa !20
  %658 = call double @llvm.fmuladd.f64(double %657, double %181, double %191)
  store double %658, ptr %656, align 8, !tbaa !20
  %659 = add nuw nsw i64 %.9745, 2
  %niter918.next.1 = add i64 %niter918, 2
  %niter918.ncmp.1 = icmp eq i64 %niter918.next.1, %unroll_iter917
  br i1 %niter918.ncmp.1, label %.preheader625.loopexit.unr-lcssa, label %649, !llvm.loop !78

.preheader624.loopexit.unr-lcssa:                 ; preds = %666, %.lr.ph749
  %.10748.unr = phi i64 [ 0, %.lr.ph749 ], [ %676, %666 ]
  %lcmp.mod922.not = icmp eq i64 %xtraiter920, 0
  br i1 %lcmp.mod922.not, label %.preheader624, label %.preheader624.loopexit.epilog-lcssa

.preheader624.loopexit.epilog-lcssa:              ; preds = %.preheader624.loopexit.unr-lcssa
  %660 = load ptr, ptr %647, align 8, !tbaa !19
  %661 = getelementptr inbounds double, ptr %660, i64 %.10748.unr
  %662 = load double, ptr %661, align 8, !tbaa !20
  %663 = call double @llvm.fmuladd.f64(double %662, double %186, double %193)
  store double %663, ptr %661, align 8, !tbaa !20
  br label %.preheader624

.preheader624:                                    ; preds = %.preheader624.loopexit.epilog-lcssa, %.preheader624.loopexit.unr-lcssa, %.preheader625
  %664 = mul nsw i64 %587, %25
  %.not.not612750 = icmp sgt i64 %664, 0
  br i1 %.not.not612750, label %.lr.ph752, label %._crit_edge753

.lr.ph752:                                        ; preds = %.preheader624
  %665 = getelementptr inbounds i8, ptr %1, i64 216
  br label %677

666:                                              ; preds = %666, %.lr.ph749.new
  %.10748 = phi i64 [ 0, %.lr.ph749.new ], [ %676, %666 ]
  %niter924 = phi i64 [ 0, %.lr.ph749.new ], [ %niter924.next.1, %666 ]
  %667 = load ptr, ptr %647, align 8, !tbaa !19
  %668 = getelementptr inbounds double, ptr %667, i64 %.10748
  %669 = load double, ptr %668, align 8, !tbaa !20
  %670 = call double @llvm.fmuladd.f64(double %669, double %186, double %193)
  store double %670, ptr %668, align 8, !tbaa !20
  %671 = or disjoint i64 %.10748, 1
  %672 = load ptr, ptr %647, align 8, !tbaa !19
  %673 = getelementptr inbounds double, ptr %672, i64 %671
  %674 = load double, ptr %673, align 8, !tbaa !20
  %675 = call double @llvm.fmuladd.f64(double %674, double %186, double %193)
  store double %675, ptr %673, align 8, !tbaa !20
  %676 = add nuw nsw i64 %.10748, 2
  %niter924.next.1 = add i64 %niter924, 2
  %niter924.ncmp.1 = icmp eq i64 %niter924.next.1, %unroll_iter923
  br i1 %niter924.ncmp.1, label %.preheader624.loopexit.unr-lcssa, label %666, !llvm.loop !79

677:                                              ; preds = %.lr.ph752, %677
  %.11751 = phi i64 [ 0, %.lr.ph752 ], [ %694, %677 ]
  %678 = load ptr, ptr %665, align 8, !tbaa !19
  %679 = getelementptr double, ptr %678, i64 %201
  %680 = getelementptr double, ptr %679, i64 %.11751
  %681 = load double, ptr %680, align 8, !tbaa !20
  %682 = fmul double %187, %681
  store double %682, ptr %680, align 8, !tbaa !20
  %683 = load ptr, ptr %665, align 8, !tbaa !19
  %684 = getelementptr double, ptr %683, i64 %204
  %685 = getelementptr double, ptr %684, i64 %.11751
  %686 = load double, ptr %685, align 8, !tbaa !20
  %687 = fmul double %188, %686
  store double %687, ptr %685, align 8, !tbaa !20
  %688 = load ptr, ptr %665, align 8, !tbaa !19
  %689 = getelementptr double, ptr %688, i64 %207
  %690 = getelementptr double, ptr %689, i64 %.11751
  %691 = load double, ptr %690, align 8, !tbaa !20
  %692 = fmul double %187, %691
  %693 = fmul double %188, %692
  store double %693, ptr %690, align 8, !tbaa !20
  %694 = add nuw nsw i64 %.11751, 1
  %exitcond806.not = icmp eq i64 %694, %664
  br i1 %exitcond806.not, label %._crit_edge753, label %677, !llvm.loop !80

._crit_edge753:                                   ; preds = %677, %.preheader624, %._crit_edge774
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %3)
  call void @llvm.lifetime.end.p0(i64 2648, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 496, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  ret void
}

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

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

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

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

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_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_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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) 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

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

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

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

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

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

declare noundef i64 @_ZN11alglib_impl5imin2EllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl6idivupEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 176}
!6 = !{!"_ZTSN11alglib_impl15spline2dbuilderE", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !10, i64 80, !7, i64 88, !7, i64 96, !10, i64 104, !11, i64 112, !7, i64 176, !7, i64 184, !10, i64 192, !10, i64 200, !12, i64 208, !7, i64 216, !7, i64 224, !7, i64 232}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !12, i64 16, !13, i64 24, !8, i64 56}
!12 = !{!"bool", !8, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!6, !7, i64 184}
!16 = !{!6, !10, i64 192}
!17 = !{!6, !10, i64 200}
!18 = !{!6, !7, i64 16}
!19 = !{!8, !8, i64 0}
!20 = !{!10, !10, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!6, !10, i64 24}
!24 = !{!6, !10, i64 32}
!25 = !{!6, !10, i64 40}
!26 = !{!6, !10, i64 48}
!27 = !{!6, !7, i64 56}
!28 = !{!6, !7, i64 64}
!29 = !{!6, !7, i64 72}
!30 = !{!6, !7, i64 96}
!31 = !{!6, !7, i64 232}
!32 = distinct !{!32, !22}
!33 = distinct !{!33, !22}
!34 = distinct !{!34, !22}
!35 = distinct !{!35, !22}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.unroll.disable"}
!38 = distinct !{!38, !22}
!39 = distinct !{!39, !22}
!40 = !{!6, !12, i64 208}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!44, !7, i64 24}
!44 = !{!"_ZTSN11alglib_impl19spline2dinterpolantE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !11, i64 96, !11, i64 160}
!45 = !{!44, !7, i64 8}
!46 = !{!44, !7, i64 16}
!47 = !{!44, !7, i64 0}
!48 = distinct !{!48, !37}
!49 = distinct !{!49, !22}
!50 = distinct !{!50, !37}
!51 = distinct !{!51, !22}
!52 = distinct !{!52, !22}
!53 = distinct !{!53, !22}
!54 = distinct !{!54, !37}
!55 = distinct !{!55, !22}
!56 = distinct !{!56, !22}
!57 = distinct !{!57, !22}
!58 = distinct !{!58, !22}
!59 = distinct !{!59, !22}
!60 = !{!6, !7, i64 0}
!61 = !{!6, !10, i64 8}
!62 = !{!14, !14, i64 0}
!63 = distinct !{!63, !22}
!64 = distinct !{!64, !22}
!65 = distinct !{!65, !22}
!66 = distinct !{!66, !22}
!67 = distinct !{!67, !22}
!68 = !{!69, !10, i64 24}
!69 = !{!"_ZTSN11alglib_impl17spline2dfitreportE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!70 = !{!11, !7, i64 0}
!71 = !{!6, !10, i64 80}
!72 = !{!6, !7, i64 224}
!73 = !{!7, !7, i64 0}
!74 = !{!6, !7, i64 216}
!75 = !{!6, !7, i64 88}
!76 = distinct !{!76, !22}
!77 = distinct !{!77, !22}
!78 = distinct !{!78, !22}
!79 = distinct !{!79, !22}
!80 = distinct !{!80, !22}


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