; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (interpolation)

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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_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.673 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.674 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.675 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.676 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.677 = 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_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13pspline3buildEPKNS_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_matrixEPKS0_PNS_8ae_stateEb(ptr noundef %14, ptr noundef %17, ptr noundef %18, i1 noundef zeroext true)
  %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.673, 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.674, 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.675, 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.676, 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 i64, ptr %8, align 8, !tbaa !9
  %56 = load i64, ptr %10, align 8, !tbaa !9
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %57, i32 0, i32 2
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL22parametric_pspline3parEPKNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %14, i64 noundef %55, i64 noundef %56, ptr noundef %58, ptr noundef %59)
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %60, i32 0, i32 2
  %62 = load i64, ptr %8, align 8, !tbaa !9
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %61, i64 noundef %62, ptr noundef %63)
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %64, ptr noundef @.str.677, ptr noundef %65)
  %66 = load i64, ptr %9, align 8, !tbaa !9
  %67 = icmp eq i64 %66, 0
  br i1 %67, label %68, label %126

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

126:                                              ; preds = %68, %47
  %127 = load i64, ptr %9, align 8, !tbaa !9
  %128 = icmp eq i64 %127, 1
  br i1 %128, label %129, label %187

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

187:                                              ; preds = %129, %126
  %188 = load i64, ptr %9, align 8, !tbaa !9
  %189 = icmp eq i64 %188, 2
  br i1 %189, label %190, label %248

190:                                              ; preds = %187
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !18
  %193 = getelementptr inbounds double, ptr %192, i64 0
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %195 = load ptr, ptr %194, align 8, !tbaa !18
  %196 = getelementptr inbounds ptr, ptr %195, i64 0
  %197 = load ptr, ptr %196, align 8, !tbaa !5
  %198 = getelementptr inbounds double, ptr %197, i64 0
  %199 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 2
  %200 = load i64, ptr %199, align 8, !tbaa !19
  %201 = load i64, ptr %8, align 8, !tbaa !9
  %202 = sub nsw i64 %201, 1
  %203 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %202)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %193, i64 noundef 1, ptr noundef %198, i64 noundef %200, i64 noundef %203)
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %204, i32 0, i32 2
  %206 = load i64, ptr %8, align 8, !tbaa !9
  %207 = load ptr, ptr %11, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %207, i32 0, i32 3
  %209 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %205, ptr noundef %15, i64 noundef %206, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %208, ptr noundef %209)
  %210 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !18
  %212 = getelementptr inbounds double, ptr %211, i64 0
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %214 = load ptr, ptr %213, align 8, !tbaa !18
  %215 = getelementptr inbounds ptr, ptr %214, i64 0
  %216 = load ptr, ptr %215, align 8, !tbaa !5
  %217 = getelementptr inbounds double, ptr %216, i64 1
  %218 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 2
  %219 = load i64, ptr %218, align 8, !tbaa !19
  %220 = load i64, ptr %8, align 8, !tbaa !9
  %221 = sub nsw i64 %220, 1
  %222 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %221)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %212, i64 noundef 1, ptr noundef %217, i64 noundef %219, i64 noundef %222)
  %223 = load ptr, ptr %11, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %223, i32 0, i32 2
  %225 = load i64, ptr %8, align 8, !tbaa !9
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %226, i32 0, i32 4
  %228 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %224, ptr noundef %15, i64 noundef %225, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %227, ptr noundef %228)
  %229 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %230 = load ptr, ptr %229, align 8, !tbaa !18
  %231 = getelementptr inbounds double, ptr %230, i64 0
  %232 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %233 = load ptr, ptr %232, align 8, !tbaa !18
  %234 = getelementptr inbounds ptr, ptr %233, i64 0
  %235 = load ptr, ptr %234, align 8, !tbaa !5
  %236 = getelementptr inbounds double, ptr %235, i64 2
  %237 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 2
  %238 = load i64, ptr %237, align 8, !tbaa !19
  %239 = load i64, ptr %8, align 8, !tbaa !9
  %240 = sub nsw i64 %239, 1
  %241 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %240)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %231, i64 noundef 1, ptr noundef %236, i64 noundef %238, i64 noundef %241)
  %242 = load ptr, ptr %11, align 8, !tbaa !5
  %243 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %242, i32 0, i32 2
  %244 = load i64, ptr %8, align 8, !tbaa !9
  %245 = load ptr, ptr %11, align 8, !tbaa !5
  %246 = getelementptr inbounds %"struct.alglib_impl::pspline3interpolant", ptr %245, i32 0, i32 5
  %247 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %243, ptr noundef %15, i64 noundef %244, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %246, ptr noundef %247)
  br label %248

248:                                              ; preds = %190, %187
  %249 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %249)
  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 noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

declare noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPKNS_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_pspline3parEPKNS_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.673 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.674 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.675 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.676 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.677 = 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_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl23spline1dbuildcatmullromEPKNS_9ae_vectorES2_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_impl18spline1dbuildakimaEPKNS_9ae_vectorES2_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_impl13pspline3buildEPKNS_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_matrixEPKS0_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.673, ptr noundef %5)
  %11 = icmp ult i64 %3, 3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.674, ptr noundef %5)
  %12 = icmp eq i64 %2, 0
  %. = select i1 %12, i64 4, i64 1
  %.str.675..str.676 = select i1 %12, ptr @.str.675, ptr @.str.676
  %13 = icmp slt i64 %., %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull %.str.675..str.676, 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_pspline3parEPKNS_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_impl11aredistinctEPKNS_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.677, 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_impl18spline1dbuildakimaEPKNS_9ae_vectorES2_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_impl18spline1dbuildakimaEPKNS_9ae_vectorES2_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_impl18spline1dbuildakimaEPKNS_9ae_vectorES2_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_impl23spline1dbuildcatmullromEPKNS_9ae_vectorES2_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_impl23spline1dbuildcatmullromEPKNS_9ae_vectorES2_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_impl23spline1dbuildcatmullromEPKNS_9ae_vectorES2_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_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_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_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_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_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_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 noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #2

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

declare noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPKNS_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_pspline3parEPKNS_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