; 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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { 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::pspline3interpolant" = type { i64, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::spline1dinterpolant", %"struct.alglib_impl::spline1dinterpolant", %"struct.alglib_impl::spline1dinterpolant" }
%"struct.alglib_impl::spline1dinterpolant" = type { i8, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.303 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.304 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.305 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.306 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.307 = external hidden unnamed_addr constant [48 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_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
declare dso_local void @_ZN11alglib_impl23spline1dbuildcatmullromEPNS_9ae_vectorES1_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13pspline3buildEPNS_9ae_matrixElllPNS_19pspline3interpolantEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  store i64 %2, ptr %9, align 8, !tbaa !9
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #4
  %16 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %16, ptr noundef %13)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 64, i1 false)
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef %14, ptr noundef %17, ptr noundef %18, i1 noundef zeroext true)
  store ptr %14, ptr %7, align 8, !tbaa !5
  %19 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl26_pspline3interpolant_clearEPv(ptr noundef %19)
  %20 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %15, i64 noundef 0, i64 noundef 3, ptr noundef %20, i1 noundef zeroext true)
  %21 = load i64, ptr %9, align 8, !tbaa !9
  %22 = icmp sge i64 %21, 0
  br i1 %22, label %23, label %26

23:                                               ; preds = %6
  %24 = load i64, ptr %9, align 8, !tbaa !9
  %25 = icmp sle i64 %24, 2
  br label %26

26:                                               ; preds = %23, %6
  %27 = phi i1 [ false, %6 ], [ %25, %23 ]
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef @.str.303, ptr noundef %28)
  %29 = load i64, ptr %10, align 8, !tbaa !9
  %30 = icmp sge i64 %29, 0
  br i1 %30, label %31, label %34

31:                                               ; preds = %26
  %32 = load i64, ptr %10, align 8, !tbaa !9
  %33 = icmp sle i64 %32, 2
  br label %34

34:                                               ; preds = %31, %26
  %35 = phi i1 [ false, %26 ], [ %33, %31 ]
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef @.str.304, ptr noundef %36)
  %37 = load i64, ptr %9, align 8, !tbaa !9
  %38 = icmp eq i64 %37, 0
  br i1 %38, label %39, label %43

39:                                               ; preds = %34
  %40 = load i64, ptr %8, align 8, !tbaa !9
  %41 = icmp sge i64 %40, 5
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef @.str.305, ptr noundef %42)
  br label %47

43:                                               ; preds = %34
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = icmp sge i64 %44, 2
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %45, ptr noundef @.str.306, ptr noundef %46)
  br label %47

47:                                               ; preds = %43, %39
  %48 = load i64, ptr %8, align 8, !tbaa !9
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %49, i32 0, i32 0
  store i64 %48, ptr %50, align 8, !tbaa !11
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %51, i32 0, i32 1
  store i8 0, ptr %52, align 8, !tbaa !17
  %53 = load i64, ptr %8, align 8, !tbaa !9
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef %53, ptr noundef %54)
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load i64, ptr %8, align 8, !tbaa !9
  %57 = load i64, ptr %10, align 8, !tbaa !9
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %58, i32 0, i32 2
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL22parametric_pspline3parEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %55, i64 noundef %56, i64 noundef %57, ptr noundef %59, ptr noundef %60)
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %61, i32 0, i32 2
  %63 = load i64, ptr %8, align 8, !tbaa !9
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %62, i64 noundef %63, ptr noundef %64)
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %65, ptr noundef @.str.307, ptr noundef %66)
  %67 = load i64, ptr %9, align 8, !tbaa !9
  %68 = icmp eq i64 %67, 0
  br i1 %68, label %69, label %133

69:                                               ; preds = %47
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  %72 = getelementptr inbounds double, ptr %71, i64 0
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %73, i32 0, i32 6
  %75 = load ptr, ptr %74, align 8, !tbaa !18
  %76 = getelementptr inbounds ptr, ptr %75, i64 0
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = getelementptr inbounds double, ptr %77, i64 0
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %79, i32 0, i32 2
  %81 = load i64, ptr %80, align 8, !tbaa !19
  %82 = load i64, ptr %8, align 8, !tbaa !9
  %83 = sub nsw i64 %82, 1
  %84 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %83)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %72, i64 noundef 1, ptr noundef %78, i64 noundef %81, i64 noundef %84)
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %85, i32 0, i32 2
  %87 = load i64, ptr %8, align 8, !tbaa !9
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %88, i32 0, i32 3
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %86, ptr noundef %15, i64 noundef %87, ptr noundef %89, ptr noundef %90)
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !18
  %93 = getelementptr inbounds double, ptr %92, i64 0
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %94, i32 0, i32 6
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  %97 = getelementptr inbounds ptr, ptr %96, i64 0
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = getelementptr inbounds double, ptr %98, i64 1
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %100, i32 0, i32 2
  %102 = load i64, ptr %101, align 8, !tbaa !19
  %103 = load i64, ptr %8, align 8, !tbaa !9
  %104 = sub nsw i64 %103, 1
  %105 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %104)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %93, i64 noundef 1, ptr noundef %99, i64 noundef %102, i64 noundef %105)
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %106, i32 0, i32 2
  %108 = load i64, ptr %8, align 8, !tbaa !9
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %109, i32 0, i32 4
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %107, ptr noundef %15, i64 noundef %108, ptr noundef %110, ptr noundef %111)
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !18
  %114 = getelementptr inbounds double, ptr %113, i64 0
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %115, i32 0, i32 6
  %117 = load ptr, ptr %116, align 8, !tbaa !18
  %118 = getelementptr inbounds ptr, ptr %117, i64 0
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = getelementptr inbounds double, ptr %119, i64 2
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %121, i32 0, i32 2
  %123 = load i64, ptr %122, align 8, !tbaa !19
  %124 = load i64, ptr %8, align 8, !tbaa !9
  %125 = sub nsw i64 %124, 1
  %126 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %125)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %114, i64 noundef 1, ptr noundef %120, i64 noundef %123, i64 noundef %126)
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %127, i32 0, i32 2
  %129 = load i64, ptr %8, align 8, !tbaa !9
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %130, i32 0, i32 5
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %128, ptr noundef %15, i64 noundef %129, ptr noundef %131, ptr noundef %132)
  br label %133

133:                                              ; preds = %69, %47
  %134 = load i64, ptr %9, align 8, !tbaa !9
  %135 = icmp eq i64 %134, 1
  br i1 %135, label %136, label %200

136:                                              ; preds = %133
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !18
  %139 = getelementptr inbounds double, ptr %138, i64 0
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %140, i32 0, i32 6
  %142 = load ptr, ptr %141, align 8, !tbaa !18
  %143 = getelementptr inbounds ptr, ptr %142, i64 0
  %144 = load ptr, ptr %143, align 8, !tbaa !5
  %145 = getelementptr inbounds double, ptr %144, i64 0
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %146, i32 0, i32 2
  %148 = load i64, ptr %147, align 8, !tbaa !19
  %149 = load i64, ptr %8, align 8, !tbaa !9
  %150 = sub nsw i64 %149, 1
  %151 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %150)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %139, i64 noundef 1, ptr noundef %145, i64 noundef %148, i64 noundef %151)
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %152, i32 0, i32 2
  %154 = load i64, ptr %8, align 8, !tbaa !9
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %155, i32 0, i32 3
  %157 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPNS_9ae_vectorES1_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %153, ptr noundef %15, i64 noundef %154, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %156, ptr noundef %157)
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %159 = load ptr, ptr %158, align 8, !tbaa !18
  %160 = getelementptr inbounds double, ptr %159, i64 0
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %161, i32 0, i32 6
  %163 = load ptr, ptr %162, align 8, !tbaa !18
  %164 = getelementptr inbounds ptr, ptr %163, i64 0
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  %166 = getelementptr inbounds double, ptr %165, i64 1
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %167, i32 0, i32 2
  %169 = load i64, ptr %168, align 8, !tbaa !19
  %170 = load i64, ptr %8, align 8, !tbaa !9
  %171 = sub nsw i64 %170, 1
  %172 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %171)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %160, i64 noundef 1, ptr noundef %166, i64 noundef %169, i64 noundef %172)
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %173, i32 0, i32 2
  %175 = load i64, ptr %8, align 8, !tbaa !9
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %176, i32 0, i32 4
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPNS_9ae_vectorES1_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %174, ptr noundef %15, i64 noundef %175, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %177, ptr noundef %178)
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !18
  %181 = getelementptr inbounds double, ptr %180, i64 0
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %182, i32 0, i32 6
  %184 = load ptr, ptr %183, align 8, !tbaa !18
  %185 = getelementptr inbounds ptr, ptr %184, i64 0
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  %187 = getelementptr inbounds double, ptr %186, i64 2
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %188, i32 0, i32 2
  %190 = load i64, ptr %189, align 8, !tbaa !19
  %191 = load i64, ptr %8, align 8, !tbaa !9
  %192 = sub nsw i64 %191, 1
  %193 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %192)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %181, i64 noundef 1, ptr noundef %187, i64 noundef %190, i64 noundef %193)
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %194, i32 0, i32 2
  %196 = load i64, ptr %8, align 8, !tbaa !9
  %197 = load ptr, ptr %11, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %197, i32 0, i32 5
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPNS_9ae_vectorES1_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %195, ptr noundef %15, i64 noundef %196, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %198, ptr noundef %199)
  br label %200

200:                                              ; preds = %136, %133
  %201 = load i64, ptr %9, align 8, !tbaa !9
  %202 = icmp eq i64 %201, 2
  br i1 %202, label %203, label %267

203:                                              ; preds = %200
  %204 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %205 = load ptr, ptr %204, align 8, !tbaa !18
  %206 = getelementptr inbounds double, ptr %205, i64 0
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %207, i32 0, i32 6
  %209 = load ptr, ptr %208, align 8, !tbaa !18
  %210 = getelementptr inbounds ptr, ptr %209, i64 0
  %211 = load ptr, ptr %210, align 8, !tbaa !5
  %212 = getelementptr inbounds double, ptr %211, i64 0
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %213, i32 0, i32 2
  %215 = load i64, ptr %214, align 8, !tbaa !19
  %216 = load i64, ptr %8, align 8, !tbaa !9
  %217 = sub nsw i64 %216, 1
  %218 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %217)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %206, i64 noundef 1, ptr noundef %212, i64 noundef %215, i64 noundef %218)
  %219 = load ptr, ptr %11, align 8, !tbaa !5
  %220 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %219, i32 0, i32 2
  %221 = load i64, ptr %8, align 8, !tbaa !9
  %222 = load ptr, ptr %11, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %222, i32 0, i32 3
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %220, ptr noundef %15, i64 noundef %221, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %223, ptr noundef %224)
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !18
  %227 = getelementptr inbounds double, ptr %226, i64 0
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %228, i32 0, i32 6
  %230 = load ptr, ptr %229, align 8, !tbaa !18
  %231 = getelementptr inbounds ptr, ptr %230, i64 0
  %232 = load ptr, ptr %231, align 8, !tbaa !5
  %233 = getelementptr inbounds double, ptr %232, i64 1
  %234 = load ptr, ptr %7, align 8, !tbaa !5
  %235 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %234, i32 0, i32 2
  %236 = load i64, ptr %235, align 8, !tbaa !19
  %237 = load i64, ptr %8, align 8, !tbaa !9
  %238 = sub nsw i64 %237, 1
  %239 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %238)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %227, i64 noundef 1, ptr noundef %233, i64 noundef %236, i64 noundef %239)
  %240 = load ptr, ptr %11, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %240, i32 0, i32 2
  %242 = load i64, ptr %8, align 8, !tbaa !9
  %243 = load ptr, ptr %11, align 8, !tbaa !5
  %244 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %243, i32 0, i32 4
  %245 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %241, ptr noundef %15, i64 noundef %242, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %244, ptr noundef %245)
  %246 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %247 = load ptr, ptr %246, align 8, !tbaa !18
  %248 = getelementptr inbounds double, ptr %247, i64 0
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %249, i32 0, i32 6
  %251 = load ptr, ptr %250, align 8, !tbaa !18
  %252 = getelementptr inbounds ptr, ptr %251, i64 0
  %253 = load ptr, ptr %252, align 8, !tbaa !5
  %254 = getelementptr inbounds double, ptr %253, i64 2
  %255 = load ptr, ptr %7, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %255, i32 0, i32 2
  %257 = load i64, ptr %256, align 8, !tbaa !19
  %258 = load i64, ptr %8, align 8, !tbaa !9
  %259 = sub nsw i64 %258, 1
  %260 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %259)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %248, i64 noundef 1, ptr noundef %254, i64 noundef %257, i64 noundef %260)
  %261 = load ptr, ptr %11, align 8, !tbaa !5
  %262 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %261, i32 0, i32 2
  %263 = load i64, ptr %8, align 8, !tbaa !9
  %264 = load ptr, ptr %11, align 8, !tbaa !5
  %265 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %264, i32 0, i32 5
  %266 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %262, ptr noundef %15, i64 noundef %263, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %265, ptr noundef %266)
  br label %267

267:                                              ; preds = %203, %200
  %268 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %268)
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  ret void
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL22parametric_pspline3parEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl19pspline3interpolantE", !10, i64 0, !13, i64 8, !14, i64 16, !16, i64 80, !16, i64 240, !16, i64 400}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !15, i64 24, !7, i64 56}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"_ZTSN11alglib_impl19spline1dinterpolantE", !13, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !14, i64 96}
!17 = !{!12, !13, i64 8}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !10, i64 16}
!20 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !15, i64 40, !7, i64 72}


; 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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.303 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.304 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.305 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.306 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.307 = external hidden unnamed_addr constant [48 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_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
declare dso_local void @_ZN11alglib_impl23spline1dbuildcatmullromEPNS_9ae_vectorES1_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13pspline3buildEPNS_9ae_matrixElllPNS_19pspline3interpolantEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %5, ptr noundef nonnull %7)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(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 @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %0, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl26_pspline3interpolant_clearEPv(ptr noundef %4)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  %10 = icmp ult i64 %2, 3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.303, ptr noundef %5)
  %11 = icmp ult i64 %3, 3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.304, ptr noundef %5)
  %12 = icmp eq i64 %2, 0
  %. = select i1 %12, i64 4, i64 1
  %.str.305..str.306 = select i1 %12, ptr @.str.305, ptr @.str.306
  %13 = icmp slt i64 %., %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull %.str.305..str.306, ptr noundef %5)
  store i64 %1, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %4, i64 8
  store i8 0, ptr %14, align 8, !tbaa !15
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %1, ptr noundef %5)
  %15 = getelementptr inbounds i8, ptr %4, i64 16
  call void @_ZN11alglib_implL22parametric_pspline3parEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %1, i64 noundef %3, ptr noundef nonnull %15, ptr noundef %5)
  %16 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %1, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.307, ptr noundef %5)
  br i1 %12, label %.thread, label %41

.thread:                                          ; preds = %6
  %17 = getelementptr inbounds i8, ptr %9, i64 56
  %18 = load ptr, ptr %17, align 8, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %8, i64 72
  %20 = load ptr, ptr %19, align 8, !tbaa !16
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  %22 = getelementptr inbounds i8, ptr %8, i64 16
  %23 = load i64, ptr %22, align 8, !tbaa !18
  %24 = add nsw i64 %1, -1
  %25 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %24)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %18, i64 noundef 1, ptr noundef %21, i64 noundef %23, i64 noundef %25)
  %26 = getelementptr inbounds i8, ptr %4, i64 80
  call void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %15, ptr noundef nonnull %9, i64 noundef %1, ptr noundef nonnull %26, ptr noundef %5)
  %27 = load ptr, ptr %17, align 8, !tbaa !16
  %28 = load ptr, ptr %19, align 8, !tbaa !16
  %29 = load ptr, ptr %28, align 8, !tbaa !17
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = load i64, ptr %22, align 8, !tbaa !18
  %32 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %24)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %27, i64 noundef 1, ptr noundef nonnull %30, i64 noundef %31, i64 noundef %32)
  %33 = getelementptr inbounds i8, ptr %4, i64 240
  call void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %15, ptr noundef nonnull %9, i64 noundef %1, ptr noundef nonnull %33, ptr noundef %5)
  %34 = load ptr, ptr %17, align 8, !tbaa !16
  %35 = load ptr, ptr %19, align 8, !tbaa !16
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  %38 = load i64, ptr %22, align 8, !tbaa !18
  %39 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %24)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %34, i64 noundef 1, ptr noundef nonnull %37, i64 noundef %38, i64 noundef %39)
  %40 = getelementptr inbounds i8, ptr %4, i64 400
  call void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %15, ptr noundef nonnull %9, i64 noundef %1, ptr noundef nonnull %40, ptr noundef %5)
  br label %92

41:                                               ; preds = %6
  switch i64 %2, label %92 [
    i64 1, label %42
    i64 2, label %67
  ]

42:                                               ; preds = %41
  %43 = getelementptr inbounds i8, ptr %9, i64 56
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  %45 = getelementptr inbounds i8, ptr %8, i64 72
  %46 = load ptr, ptr %45, align 8, !tbaa !16
  %47 = load ptr, ptr %46, align 8, !tbaa !17
  %48 = getelementptr inbounds i8, ptr %8, i64 16
  %49 = load i64, ptr %48, align 8, !tbaa !18
  %50 = add nsw i64 %1, -1
  %51 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %50)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %44, i64 noundef 1, ptr noundef %47, i64 noundef %49, i64 noundef %51)
  %52 = getelementptr inbounds i8, ptr %4, i64 80
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPNS_9ae_vectorES1_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %15, ptr noundef nonnull %9, i64 noundef %1, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %52, ptr noundef %5)
  %53 = load ptr, ptr %43, align 8, !tbaa !16
  %54 = load ptr, ptr %45, align 8, !tbaa !16
  %55 = load ptr, ptr %54, align 8, !tbaa !17
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = load i64, ptr %48, align 8, !tbaa !18
  %58 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %50)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %53, i64 noundef 1, ptr noundef nonnull %56, i64 noundef %57, i64 noundef %58)
  %59 = getelementptr inbounds i8, ptr %4, i64 240
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPNS_9ae_vectorES1_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %15, ptr noundef nonnull %9, i64 noundef %1, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %59, ptr noundef %5)
  %60 = load ptr, ptr %43, align 8, !tbaa !16
  %61 = load ptr, ptr %45, align 8, !tbaa !16
  %62 = load ptr, ptr %61, align 8, !tbaa !17
  %63 = getelementptr inbounds i8, ptr %62, i64 16
  %64 = load i64, ptr %48, align 8, !tbaa !18
  %65 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %50)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %60, i64 noundef 1, ptr noundef nonnull %63, i64 noundef %64, i64 noundef %65)
  %66 = getelementptr inbounds i8, ptr %4, i64 400
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPNS_9ae_vectorES1_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %15, ptr noundef nonnull %9, i64 noundef %1, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %66, ptr noundef %5)
  br label %92

67:                                               ; preds = %41
  %68 = getelementptr inbounds i8, ptr %9, i64 56
  %69 = load ptr, ptr %68, align 8, !tbaa !16
  %70 = getelementptr inbounds i8, ptr %8, i64 72
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = load ptr, ptr %71, align 8, !tbaa !17
  %73 = getelementptr inbounds i8, ptr %8, i64 16
  %74 = load i64, ptr %73, align 8, !tbaa !18
  %75 = add nsw i64 %1, -1
  %76 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %75)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %69, i64 noundef 1, ptr noundef %72, i64 noundef %74, i64 noundef %76)
  %77 = getelementptr inbounds i8, ptr %4, i64 80
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %15, ptr noundef nonnull %9, i64 noundef %1, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %77, ptr noundef %5)
  %78 = load ptr, ptr %68, align 8, !tbaa !16
  %79 = load ptr, ptr %70, align 8, !tbaa !16
  %80 = load ptr, ptr %79, align 8, !tbaa !17
  %81 = getelementptr inbounds i8, ptr %80, i64 8
  %82 = load i64, ptr %73, align 8, !tbaa !18
  %83 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %75)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %78, i64 noundef 1, ptr noundef nonnull %81, i64 noundef %82, i64 noundef %83)
  %84 = getelementptr inbounds i8, ptr %4, i64 240
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %15, ptr noundef nonnull %9, i64 noundef %1, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %84, ptr noundef %5)
  %85 = load ptr, ptr %68, align 8, !tbaa !16
  %86 = load ptr, ptr %70, align 8, !tbaa !16
  %87 = load ptr, ptr %86, align 8, !tbaa !17
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  %89 = load i64, ptr %73, align 8, !tbaa !18
  %90 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %75)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %85, i64 noundef 1, ptr noundef nonnull %88, i64 noundef %89, i64 noundef %90)
  %91 = getelementptr inbounds i8, ptr %4, i64 400
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %15, ptr noundef nonnull %9, i64 noundef %1, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %91, ptr noundef %5)
  br label %92

92:                                               ; preds = %.thread, %42, %41, %67
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  ret void
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL22parametric_pspline3parEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl19pspline3interpolantE", !7, i64 0, !10, i64 8, !11, i64 16, !14, i64 80, !14, i64 240, !14, i64 400}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !12, i64 24, !8, i64 56}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_ZTSN11alglib_impl19spline1dinterpolantE", !10, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !11, i64 96}
!15 = !{!6, !10, i64 8}
!16 = !{!8, !8, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!19, !7, i64 16}
!19 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !12, i64 40, !8, i64 72}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass