; 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::hqrndstate" = type { i64, i64, i64 }
%"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::rbfcalcbuffer" = type { i64, %"struct.alglib_impl::rbfv1calcbuffer", %"struct.alglib_impl::rbfv2calcbuffer", %"struct.alglib_impl::rbfv3calcbuffer", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbfv1calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::kdtreerequestbuffer" }
%"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::kdtreerequestbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, i8, double, 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", double, %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbfv2calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbfv3calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rbf3evaluatorbuffer", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbf3evaluatorbuffer" = 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", %"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_matrix" }
%"struct.alglib_impl::rbfmodel" = type { i64, i64, i64, %"struct.alglib_impl::rbfv1model", %"struct.alglib_impl::rbfv2model", %"struct.alglib_impl::rbfv3model", %"struct.alglib_impl::rbfcalcbuffer", double, double, double, i64, i64, i64, i64, i64, double, double, double, i64, double, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::ae_vector", double, i64, i8 }
%"struct.alglib_impl::rbfv1model" = type { i64, i64, i64, i64, %"struct.alglib_impl::kdtree", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::kdtree" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"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::kdtreerequestbuffer", i64 }
%"struct.alglib_impl::rbfv2model" = type { 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::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", double, i64, double, i64, %"struct.alglib_impl::rbfv2calcbuffer" }
%"struct.alglib_impl::rbfv3model" = type { i64, i64, i64, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::rbf3evaluator", %"struct.alglib_impl::rbf3fastevaluator", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rbfv3calcbuffer", i8, double }
%"struct.alglib_impl::rbf3evaluator" = type { i64, i64, %"struct.alglib_impl::ae_matrix", i64, i64, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"struct.alglib_impl::rbf3fastevaluator" = type { i64, i64, i64, i64, i64, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::ae_obj_array", %"struct.alglib_impl::biharmonicevaluator", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_matrix", i8, i64, i64, i64 }
%"struct.alglib_impl::ae_obj_array" = type { i64, i64, i8, ptr, ptr, ptr, ptr, %"struct.alglib_impl::ae_lock", %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::biharmonicevaluator" = type { 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", %"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", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.1082 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.1083 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.1084 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1085 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1086 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.1087 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.1088 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.1089 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.1090 = external hidden unnamed_addr constant [39 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_impl19_rbfcalcbuffer_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14rbfgridcalc2vxEPKNS_8rbfmodelEPKNS_9ae_vectorElS5_lS5_bPS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i1 noundef zeroext %6, ptr noundef %7, ptr noundef %8) #3 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i8, align 1
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.alglib_impl::ae_frame", align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %24 = alloca %"struct.alglib_impl::ae_vector", align 8
  %25 = alloca %"struct.alglib_impl::ae_vector", align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca %"struct.alglib_impl::ae_vector", align 8
  %31 = alloca %"struct.alglib_impl::ae_vector", align 8
  %32 = alloca i64, align 8
  %33 = alloca %"struct.alglib_impl::rbfcalcbuffer", align 8
  %34 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i64 %2, ptr %12, align 8, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store i64 %4, ptr %14, align 8, !tbaa !9
  store ptr %5, ptr %15, align 8, !tbaa !5
  %35 = zext i1 %6 to i8
  store i8 %35, ptr %16, align 1, !tbaa !11
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 2560, ptr %33) #4
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %36, ptr noundef %19)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 2560, i1 false)
  %37 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %23, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %24, i64 noundef 0, i64 noundef 3, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %25, i64 noundef 0, i64 noundef 3, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %30, i64 noundef 0, i64 noundef 3, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %31, i64 noundef 0, i64 noundef 3, ptr noundef %41, i1 noundef zeroext true)
  %42 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl19_rbfcalcbuffer_initEPvPNS_8ae_stateEb(ptr noundef %33, ptr noundef %42, i1 noundef zeroext true)
  %43 = load i64, ptr %12, align 8, !tbaa !9
  %44 = icmp sgt i64 %43, 0
  %45 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.1082, ptr noundef %45)
  %46 = load i64, ptr %14, align 8, !tbaa !9
  %47 = icmp sgt i64 %46, 0
  %48 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef @.str.1083, ptr noundef %48)
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 0
  %51 = load i64, ptr %50, align 8, !tbaa !13
  %52 = load i64, ptr %12, align 8, !tbaa !9
  %53 = icmp sge i64 %51, %52
  %54 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef @.str.1084, ptr noundef %54)
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %55, i32 0, i32 0
  %57 = load i64, ptr %56, align 8, !tbaa !13
  %58 = load i64, ptr %14, align 8, !tbaa !9
  %59 = icmp sge i64 %57, %58
  %60 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %59, ptr noundef @.str.1085, ptr noundef %60)
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = load i64, ptr %12, align 8, !tbaa !9
  %63 = load ptr, ptr %18, align 8, !tbaa !5
  %64 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %61, i64 noundef %62, ptr noundef %63)
  %65 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %64, ptr noundef @.str.1086, ptr noundef %65)
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = load i64, ptr %14, align 8, !tbaa !9
  %68 = load ptr, ptr %18, align 8, !tbaa !5
  %69 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %66, i64 noundef %67, ptr noundef %68)
  %70 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %69, ptr noundef @.str.1087, ptr noundef %70)
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %92, %9
  %72 = load i64, ptr %26, align 8, !tbaa !9
  %73 = load i64, ptr %12, align 8, !tbaa !9
  %74 = sub nsw i64 %73, 2
  %75 = icmp sle i64 %72, %74
  br i1 %75, label %76, label %95

76:                                               ; preds = %71
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %77, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !16
  %80 = load i64, ptr %26, align 8, !tbaa !9
  %81 = getelementptr inbounds double, ptr %79, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !17
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %83, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !16
  %86 = load i64, ptr %26, align 8, !tbaa !9
  %87 = add nsw i64 %86, 1
  %88 = getelementptr inbounds double, ptr %85, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !17
  %90 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %82, double noundef %89)
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %90, ptr noundef @.str.1088, ptr noundef %91)
  br label %92

92:                                               ; preds = %76
  %93 = load i64, ptr %26, align 8, !tbaa !9
  %94 = add nsw i64 %93, 1
  store i64 %94, ptr %26, align 8, !tbaa !9
  br label %71, !llvm.loop !19

95:                                               ; preds = %71
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %117, %95
  %97 = load i64, ptr %26, align 8, !tbaa !9
  %98 = load i64, ptr %14, align 8, !tbaa !9
  %99 = sub nsw i64 %98, 2
  %100 = icmp sle i64 %97, %99
  br i1 %100, label %101, label %120

101:                                              ; preds = %96
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !16
  %105 = load i64, ptr %26, align 8, !tbaa !9
  %106 = getelementptr inbounds double, ptr %104, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !17
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %108, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !16
  %111 = load i64, ptr %26, align 8, !tbaa !9
  %112 = add nsw i64 %111, 1
  %113 = getelementptr inbounds double, ptr %110, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !17
  %115 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %107, double noundef %114)
  %116 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %115, ptr noundef @.str.1089, ptr noundef %116)
  br label %117

117:                                              ; preds = %101
  %118 = load i64, ptr %26, align 8, !tbaa !9
  %119 = add nsw i64 %118, 1
  store i64 %119, ptr %26, align 8, !tbaa !9
  br label %96, !llvm.loop !21

120:                                              ; preds = %96
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %121, i32 0, i32 0
  %123 = load i64, ptr %122, align 8, !tbaa !22
  store i64 %123, ptr %20, align 8, !tbaa !9
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %124, i32 0, i32 1
  %126 = load i64, ptr %125, align 8, !tbaa !41
  store i64 %126, ptr %21, align 8, !tbaa !9
  %127 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef 325, i64 noundef 46345, ptr noundef %23, ptr noundef %127)
  %128 = load i64, ptr %21, align 8, !tbaa !9
  %129 = load i64, ptr %12, align 8, !tbaa !9
  %130 = mul nsw i64 %128, %129
  %131 = load i64, ptr %14, align 8, !tbaa !9
  %132 = mul nsw i64 %130, %131
  store i64 %132, ptr %22, align 8, !tbaa !9
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  %134 = load i64, ptr %22, align 8, !tbaa !9
  %135 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %133, i64 noundef %134, ptr noundef %135)
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %136

136:                                              ; preds = %147, %120
  %137 = load i64, ptr %26, align 8, !tbaa !9
  %138 = load i64, ptr %22, align 8, !tbaa !9
  %139 = sub nsw i64 %138, 1
  %140 = icmp sle i64 %137, %139
  br i1 %140, label %141, label %150

141:                                              ; preds = %136
  %142 = load ptr, ptr %17, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %142, i32 0, i32 4
  %144 = load ptr, ptr %143, align 8, !tbaa !16
  %145 = load i64, ptr %26, align 8, !tbaa !9
  %146 = getelementptr inbounds double, ptr %144, i64 %145
  store double 0.000000e+00, ptr %146, align 8, !tbaa !17
  br label %147

147:                                              ; preds = %141
  %148 = load i64, ptr %26, align 8, !tbaa !9
  %149 = add nsw i64 %148, 1
  store i64 %149, ptr %26, align 8, !tbaa !9
  br label %136, !llvm.loop !42

150:                                              ; preds = %136
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %151, i32 0, i32 0
  %153 = load i64, ptr %152, align 8, !tbaa !22
  %154 = icmp ne i64 %153, 2
  br i1 %154, label %155, label %157

155:                                              ; preds = %150
  %156 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %156)
  store i32 1, ptr %34, align 4
  br label %322

157:                                              ; preds = %150
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %158, i32 0, i32 2
  %160 = load i64, ptr %159, align 8, !tbaa !43
  %161 = icmp eq i64 %160, 3
  br i1 %161, label %162, label %183

162:                                              ; preds = %157
  %163 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef 1, ptr noundef %163)
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !16
  %166 = getelementptr inbounds double, ptr %165, i64 0
  store double 0.000000e+00, ptr %166, align 8, !tbaa !17
  %167 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef 1, ptr noundef %167)
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !16
  %170 = getelementptr inbounds double, ptr %169, i64 0
  store double 0.000000e+00, ptr %170, align 8, !tbaa !17
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %171, i32 0, i32 5
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = load i64, ptr %12, align 8, !tbaa !9
  %175 = load ptr, ptr %13, align 8, !tbaa !5
  %176 = load i64, ptr %14, align 8, !tbaa !9
  %177 = load ptr, ptr %15, align 8, !tbaa !5
  %178 = load i8, ptr %16, align 1, !tbaa !11, !range !44, !noundef !45
  %179 = trunc i8 %178 to i1
  %180 = load ptr, ptr %17, align 8, !tbaa !5
  %181 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rbfv3gridcalcvxEPKNS_10rbfv3modelEPKNS_9ae_vectorElS5_lS5_lS5_lS5_bPS3_PNS_8ae_stateE(ptr noundef %172, ptr noundef %173, i64 noundef %174, ptr noundef %175, i64 noundef %176, ptr noundef %24, i64 noundef 1, ptr noundef %25, i64 noundef 1, ptr noundef %177, i1 noundef zeroext %179, ptr noundef %180, ptr noundef %181)
  %182 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %182)
  store i32 1, ptr %34, align 4
  br label %322

183:                                              ; preds = %157
  %184 = load ptr, ptr %10, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %184, i32 0, i32 2
  %186 = load i64, ptr %185, align 8, !tbaa !43
  %187 = icmp eq i64 %186, 2
  br i1 %187, label %188, label %209

188:                                              ; preds = %183
  %189 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef 1, ptr noundef %189)
  %190 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %191 = load ptr, ptr %190, align 8, !tbaa !16
  %192 = getelementptr inbounds double, ptr %191, i64 0
  store double 0.000000e+00, ptr %192, align 8, !tbaa !17
  %193 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef 1, ptr noundef %193)
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %195 = load ptr, ptr %194, align 8, !tbaa !16
  %196 = getelementptr inbounds double, ptr %195, i64 0
  store double 0.000000e+00, ptr %196, align 8, !tbaa !17
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %197, i32 0, i32 4
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = load i64, ptr %12, align 8, !tbaa !9
  %201 = load ptr, ptr %13, align 8, !tbaa !5
  %202 = load i64, ptr %14, align 8, !tbaa !9
  %203 = load ptr, ptr %15, align 8, !tbaa !5
  %204 = load i8, ptr %16, align 1, !tbaa !11, !range !44, !noundef !45
  %205 = trunc i8 %204 to i1
  %206 = load ptr, ptr %17, align 8, !tbaa !5
  %207 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rbfv2gridcalcvxEPKNS_10rbfv2modelEPKNS_9ae_vectorElS5_lS5_lS5_lS5_bPS3_PNS_8ae_stateE(ptr noundef %198, ptr noundef %199, i64 noundef %200, ptr noundef %201, i64 noundef %202, ptr noundef %24, i64 noundef 1, ptr noundef %25, i64 noundef 1, ptr noundef %203, i1 noundef zeroext %205, ptr noundef %206, ptr noundef %207)
  %208 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %208)
  store i32 1, ptr %34, align 4
  br label %322

209:                                              ; preds = %183
  %210 = load ptr, ptr %10, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %210, i32 0, i32 2
  %212 = load i64, ptr %211, align 8, !tbaa !43
  %213 = icmp eq i64 %212, 1
  br i1 %213, label %214, label %319

214:                                              ; preds = %209
  %215 = load i64, ptr %20, align 8, !tbaa !9
  %216 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %215, ptr noundef %216)
  %217 = load ptr, ptr %10, align 8, !tbaa !5
  %218 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl19rbfcreatecalcbufferEPKNS_8rbfmodelEPNS_13rbfcalcbufferEPNS_8ae_stateE(ptr noundef %217, ptr noundef %33, ptr noundef %218)
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %219

219:                                              ; preds = %314, %214
  %220 = load i64, ptr %26, align 8, !tbaa !9
  %221 = load i64, ptr %12, align 8, !tbaa !9
  %222 = sub nsw i64 %221, 1
  %223 = icmp sle i64 %220, %222
  br i1 %223, label %224, label %317

224:                                              ; preds = %219
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %310, %224
  %226 = load i64, ptr %27, align 8, !tbaa !9
  %227 = load i64, ptr %14, align 8, !tbaa !9
  %228 = sub nsw i64 %227, 1
  %229 = icmp sle i64 %226, %228
  br i1 %229, label %230, label %313

230:                                              ; preds = %225
  %231 = load i64, ptr %26, align 8, !tbaa !9
  %232 = load i64, ptr %27, align 8, !tbaa !9
  %233 = load i64, ptr %12, align 8, !tbaa !9
  %234 = mul nsw i64 %232, %233
  %235 = add nsw i64 %231, %234
  store i64 %235, ptr %28, align 8, !tbaa !9
  %236 = load i64, ptr %21, align 8, !tbaa !9
  %237 = load i64, ptr %28, align 8, !tbaa !9
  %238 = mul nsw i64 %236, %237
  store i64 %238, ptr %32, align 8, !tbaa !9
  %239 = load i8, ptr %16, align 1, !tbaa !11, !range !44, !noundef !45
  %240 = trunc i8 %239 to i1
  br i1 %240, label %241, label %267

241:                                              ; preds = %230
  %242 = load ptr, ptr %15, align 8, !tbaa !5
  %243 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %242, i32 0, i32 4
  %244 = load ptr, ptr %243, align 8, !tbaa !16
  %245 = load i64, ptr %28, align 8, !tbaa !9
  %246 = getelementptr inbounds i8, ptr %244, i64 %245
  %247 = load i8, ptr %246, align 1, !tbaa !11, !range !44, !noundef !45
  %248 = trunc i8 %247 to i1
  br i1 %248, label %267, label %249

249:                                              ; preds = %241
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %250

250:                                              ; preds = %263, %249
  %251 = load i64, ptr %29, align 8, !tbaa !9
  %252 = load i64, ptr %21, align 8, !tbaa !9
  %253 = sub nsw i64 %252, 1
  %254 = icmp sle i64 %251, %253
  br i1 %254, label %255, label %266

255:                                              ; preds = %250
  %256 = load ptr, ptr %17, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %256, i32 0, i32 4
  %258 = load ptr, ptr %257, align 8, !tbaa !16
  %259 = load i64, ptr %29, align 8, !tbaa !9
  %260 = load i64, ptr %32, align 8, !tbaa !9
  %261 = add nsw i64 %259, %260
  %262 = getelementptr inbounds double, ptr %258, i64 %261
  store double 0.000000e+00, ptr %262, align 8, !tbaa !17
  br label %263

263:                                              ; preds = %255
  %264 = load i64, ptr %29, align 8, !tbaa !9
  %265 = add nsw i64 %264, 1
  store i64 %265, ptr %29, align 8, !tbaa !9
  br label %250, !llvm.loop !46

266:                                              ; preds = %250
  br label %310

267:                                              ; preds = %241, %230
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %268, i32 0, i32 4
  %270 = load ptr, ptr %269, align 8, !tbaa !16
  %271 = load i64, ptr %26, align 8, !tbaa !9
  %272 = getelementptr inbounds double, ptr %270, i64 %271
  %273 = load double, ptr %272, align 8, !tbaa !17
  %274 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %275 = load ptr, ptr %274, align 8, !tbaa !16
  %276 = getelementptr inbounds double, ptr %275, i64 0
  store double %273, ptr %276, align 8, !tbaa !17
  %277 = load ptr, ptr %13, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %277, i32 0, i32 4
  %279 = load ptr, ptr %278, align 8, !tbaa !16
  %280 = load i64, ptr %27, align 8, !tbaa !9
  %281 = getelementptr inbounds double, ptr %279, i64 %280
  %282 = load double, ptr %281, align 8, !tbaa !17
  %283 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %284 = load ptr, ptr %283, align 8, !tbaa !16
  %285 = getelementptr inbounds double, ptr %284, i64 1
  store double %282, ptr %285, align 8, !tbaa !17
  %286 = load ptr, ptr %10, align 8, !tbaa !5
  %287 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl12rbftscalcbufEPKNS_8rbfmodelEPNS_13rbfcalcbufferEPKNS_9ae_vectorEPS5_PNS_8ae_stateE(ptr noundef %286, ptr noundef %33, ptr noundef %30, ptr noundef %31, ptr noundef %287)
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %288

288:                                              ; preds = %306, %267
  %289 = load i64, ptr %29, align 8, !tbaa !9
  %290 = load i64, ptr %21, align 8, !tbaa !9
  %291 = sub nsw i64 %290, 1
  %292 = icmp sle i64 %289, %291
  br i1 %292, label %293, label %309

293:                                              ; preds = %288
  %294 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %295 = load ptr, ptr %294, align 8, !tbaa !16
  %296 = load i64, ptr %29, align 8, !tbaa !9
  %297 = getelementptr inbounds double, ptr %295, i64 %296
  %298 = load double, ptr %297, align 8, !tbaa !17
  %299 = load ptr, ptr %17, align 8, !tbaa !5
  %300 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %299, i32 0, i32 4
  %301 = load ptr, ptr %300, align 8, !tbaa !16
  %302 = load i64, ptr %29, align 8, !tbaa !9
  %303 = load i64, ptr %32, align 8, !tbaa !9
  %304 = add nsw i64 %302, %303
  %305 = getelementptr inbounds double, ptr %301, i64 %304
  store double %298, ptr %305, align 8, !tbaa !17
  br label %306

306:                                              ; preds = %293
  %307 = load i64, ptr %29, align 8, !tbaa !9
  %308 = add nsw i64 %307, 1
  store i64 %308, ptr %29, align 8, !tbaa !9
  br label %288, !llvm.loop !47

309:                                              ; preds = %288
  br label %310

310:                                              ; preds = %309, %266
  %311 = load i64, ptr %27, align 8, !tbaa !9
  %312 = add nsw i64 %311, 1
  store i64 %312, ptr %27, align 8, !tbaa !9
  br label %225, !llvm.loop !48

313:                                              ; preds = %225
  br label %314

314:                                              ; preds = %313
  %315 = load i64, ptr %26, align 8, !tbaa !9
  %316 = add nsw i64 %315, 1
  store i64 %316, ptr %26, align 8, !tbaa !9
  br label %219, !llvm.loop !49

317:                                              ; preds = %219
  %318 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %318)
  store i32 1, ptr %34, align 4
  br label %322

319:                                              ; preds = %209
  %320 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.1090, ptr noundef %320)
  %321 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %321)
  store i32 0, ptr %34, align 4
  br label %322

322:                                              ; preds = %319, %317, %188, %162, %155
  call void @llvm.lifetime.end.p0(i64 2560, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  %323 = load i32, ptr %34, align 4
  switch i32 %323, label %325 [
    i32 0, label %324
    i32 1, label %324
  ]

324:                                              ; preds = %322, %322
  ret void

325:                                              ; preds = %322
  unreachable
}

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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !12, 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 = !{!7, !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !10, i64 0}
!23 = !{!"_ZTSN11alglib_impl8rbfmodelE", !10, i64 0, !10, i64 8, !10, i64 16, !24, i64 24, !28, i64 1576, !30, i64 2560, !39, i64 6296, !18, i64 8856, !18, i64 8864, !18, i64 8872, !10, i64 8880, !10, i64 8888, !10, i64 8896, !10, i64 8904, !10, i64 8912, !18, i64 8920, !18, i64 8928, !18, i64 8936, !10, i64 8944, !18, i64 8952, !10, i64 8960, !10, i64 8968, !26, i64 8976, !26, i64 9056, !12, i64 9136, !14, i64 9144, !18, i64 9208, !10, i64 9216, !12, i64 9224}
!24 = !{!"_ZTSN11alglib_impl10rbfv1modelE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !25, i64 32, !26, i64 1096, !26, i64 1176, !18, i64 1256, !26, i64 1264, !14, i64 1344, !26, i64 1408, !14, i64 1488}
!25 = !{!"_ZTSN11alglib_impl6kdtreeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !26, i64 32, !14, i64 112, !14, i64 176, !14, i64 240, !14, i64 304, !14, i64 368, !27, i64 432, !10, i64 1056}
!26 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !15, i64 40, !7, i64 72}
!27 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !14, i64 0, !14, i64 64, !14, i64 128, !10, i64 192, !18, i64 200, !12, i64 208, !18, i64 216, !10, i64 224, !14, i64 232, !14, i64 296, !14, i64 360, !14, i64 424, !14, i64 488, !18, i64 552, !14, i64 560}
!28 = !{!"_ZTSN11alglib_impl10rbfv2modelE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !14, i64 96, !14, i64 160, !14, i64 224, !14, i64 288, !14, i64 352, !14, i64 416, !14, i64 480, !26, i64 544, !18, i64 624, !10, i64 632, !18, i64 640, !10, i64 648, !29, i64 656}
!29 = !{!"_ZTSN11alglib_impl15rbfv2calcbufferE", !14, i64 0, !14, i64 64, !14, i64 128, !18, i64 192, !14, i64 200, !14, i64 264}
!30 = !{!"_ZTSN11alglib_impl10rbfv3modelE", !10, i64 0, !10, i64 8, !10, i64 16, !18, i64 24, !14, i64 32, !26, i64 96, !14, i64 176, !14, i64 240, !10, i64 304, !31, i64 312, !34, i64 864, !26, i64 2440, !37, i64 2520, !12, i64 3720, !18, i64 3728}
!31 = !{!"_ZTSN11alglib_impl13rbf3evaluatorE", !10, i64 0, !10, i64 8, !26, i64 16, !10, i64 96, !10, i64 104, !18, i64 112, !10, i64 120, !14, i64 128, !26, i64 192, !26, i64 272, !32, i64 352, !14, i64 488}
!32 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !33, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80, !6, i64 88, !6, i64 96, !15, i64 104}
!33 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !15, i64 8, !12, i64 40}
!34 = !{!"_ZTSN11alglib_impl17rbf3fastevaluatorE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !18, i64 40, !26, i64 48, !14, i64 128, !26, i64 192, !12, i64 272, !35, i64 280, !36, i64 416, !32, i64 1328, !26, i64 1464, !12, i64 1544, !10, i64 1552, !10, i64 1560, !10, i64 1568}
!35 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !10, i64 0, !10, i64 8, !12, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !33, i64 56, !15, i64 104}
!36 = !{!"_ZTSN11alglib_impl19biharmonicevaluatorE", !10, i64 0, !10, i64 8, !14, i64 16, !14, i64 80, !14, i64 144, !14, i64 208, !14, i64 272, !14, i64 336, !14, i64 400, !14, i64 464, !14, i64 528, !14, i64 592, !14, i64 656, !14, i64 720, !14, i64 784, !14, i64 848}
!37 = !{!"_ZTSN11alglib_impl15rbfv3calcbufferE", !14, i64 0, !38, i64 64, !14, i64 784, !14, i64 848, !26, i64 912, !26, i64 992, !14, i64 1072, !14, i64 1136}
!38 = !{!"_ZTSN11alglib_impl19rbf3evaluatorbufferE", !14, i64 0, !14, i64 64, !14, i64 128, !14, i64 192, !14, i64 256, !14, i64 320, !14, i64 384, !14, i64 448, !14, i64 512, !14, i64 576, !26, i64 640}
!39 = !{!"_ZTSN11alglib_impl13rbfcalcbufferE", !10, i64 0, !40, i64 8, !29, i64 840, !37, i64 1168, !14, i64 2368, !14, i64 2432, !14, i64 2496}
!40 = !{!"_ZTSN11alglib_impl15rbfv1calcbufferE", !14, i64 0, !26, i64 64, !14, i64 144, !27, i64 208}
!41 = !{!23, !10, i64 8}
!42 = distinct !{!42, !20}
!43 = !{!23, !10, i64 16}
!44 = !{i8 0, i8 2}
!45 = !{}
!46 = distinct !{!46, !20}
!47 = distinct !{!47, !20}
!48 = distinct !{!48, !20}
!49 = distinct !{!49, !20}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"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::rbfcalcbuffer" = type { i64, %"struct.alglib_impl::rbfv1calcbuffer", %"struct.alglib_impl::rbfv2calcbuffer", %"struct.alglib_impl::rbfv3calcbuffer", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbfv1calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::kdtreerequestbuffer" }
%"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::kdtreerequestbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, i8, double, 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", double, %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbfv2calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbfv3calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rbf3evaluatorbuffer", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbf3evaluatorbuffer" = 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", %"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_matrix" }

@.str.1082 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.1083 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.1084 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1085 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1086 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.1087 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.1088 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.1089 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.1090 = external hidden unnamed_addr constant [39 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_impl19_rbfcalcbuffer_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14rbfgridcalc2vxEPKNS_8rbfmodelEPKNS_9ae_vectorElS5_lS5_bPS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i1 noundef zeroext %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #3 {
  %10 = alloca %"struct.alglib_impl::ae_frame", align 8
  %11 = alloca %"struct.alglib_impl::hqrndstate", 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::rbfcalcbuffer", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 2560, ptr nonnull %16) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %8, ptr noundef nonnull %10)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, i8 0, i64 24, 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(2560) %16, i8 0, i64 2560, i1 false)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %11, ptr noundef %8, 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 %8, 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 %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19_rbfcalcbuffer_initEPvPNS_8ae_stateEb(ptr noundef nonnull %16, ptr noundef %8, i1 noundef zeroext true)
  %17 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.1082, ptr noundef %8)
  %18 = icmp sgt i64 %4, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.1083, ptr noundef %8)
  %19 = load i64, ptr %1, align 8, !tbaa !5
  %20 = icmp sge i64 %19, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.1084, ptr noundef %8)
  %21 = load i64, ptr %3, align 8, !tbaa !5
  %22 = icmp sge i64 %21, %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.1085, ptr noundef %8)
  %23 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, ptr noundef %8)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef nonnull @.str.1086, ptr noundef %8)
  %24 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %4, ptr noundef %8)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.1087, ptr noundef %8)
  %.not137 = icmp slt i64 %2, 2
  br i1 %.not137, label %.preheader136, label %.lr.ph

.lr.ph:                                           ; preds = %9
  %25 = getelementptr inbounds i8, ptr %1, i64 56
  %26 = add nsw i64 %2, -2
  br label %29

.preheader136:                                    ; preds = %29, %9
  %.not127139 = icmp slt i64 %4, 2
  br i1 %.not127139, label %._crit_edge, label %.lr.ph141

.lr.ph141:                                        ; preds = %.preheader136
  %27 = getelementptr inbounds i8, ptr %3, i64 56
  %28 = add nsw i64 %4, -2
  br label %37

29:                                               ; preds = %.lr.ph, %29
  %.0138 = phi i64 [ 0, %.lr.ph ], [ %33, %29 ]
  %30 = load ptr, ptr %25, align 8, !tbaa !13
  %31 = getelementptr inbounds double, ptr %30, i64 %.0138
  %32 = load double, ptr %31, align 8, !tbaa !14
  %33 = add nuw nsw i64 %.0138, 1
  %34 = getelementptr inbounds double, ptr %30, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !14
  %36 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %32, double noundef %35)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef nonnull @.str.1088, ptr noundef %8)
  %exitcond.not = icmp eq i64 %.0138, %26
  br i1 %exitcond.not, label %.preheader136, label %29, !llvm.loop !16

37:                                               ; preds = %.lr.ph141, %37
  %.1140 = phi i64 [ 0, %.lr.ph141 ], [ %41, %37 ]
  %38 = load ptr, ptr %27, align 8, !tbaa !13
  %39 = getelementptr inbounds double, ptr %38, i64 %.1140
  %40 = load double, ptr %39, align 8, !tbaa !14
  %41 = add nuw nsw i64 %.1140, 1
  %42 = getelementptr inbounds double, ptr %38, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !14
  %44 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %40, double noundef %43)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef nonnull @.str.1089, ptr noundef %8)
  %exitcond187.not = icmp eq i64 %.1140, %28
  br i1 %exitcond187.not, label %._crit_edge, label %37, !llvm.loop !18

._crit_edge:                                      ; preds = %37, %.preheader136
  %45 = load i64, ptr %0, align 8, !tbaa !19
  %46 = getelementptr inbounds i8, ptr %0, i64 8
  %47 = load i64, ptr %46, align 8, !tbaa !38
  %.fr = freeze i64 %47
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef 325, i64 noundef 46345, ptr noundef nonnull %11, ptr noundef %8)
  %48 = mul i64 %4, %2
  %49 = mul i64 %48, %.fr
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %7, i64 noundef %49, ptr noundef %8)
  %.not128.not142 = icmp sgt i64 %49, 0
  br i1 %.not128.not142, label %.lr.ph145, label %._crit_edge146

.lr.ph145:                                        ; preds = %._crit_edge
  %50 = getelementptr inbounds i8, ptr %7, i64 56
  %xtraiter = and i64 %49, 3
  %51 = icmp ult i64 %49, 4
  br i1 %51, label %._crit_edge146.loopexit.unr-lcssa, label %.lr.ph145.new

.lr.ph145.new:                                    ; preds = %.lr.ph145
  %unroll_iter = and i64 %49, 9223372036854775804
  br label %52

52:                                               ; preds = %52, %.lr.ph145.new
  %.2143 = phi i64 [ 0, %.lr.ph145.new ], [ %64, %52 ]
  %niter = phi i64 [ 0, %.lr.ph145.new ], [ %niter.next.3, %52 ]
  %53 = load ptr, ptr %50, align 8, !tbaa !13
  %54 = getelementptr inbounds double, ptr %53, i64 %.2143
  store double 0.000000e+00, ptr %54, align 8, !tbaa !14
  %55 = or disjoint i64 %.2143, 1
  %56 = load ptr, ptr %50, align 8, !tbaa !13
  %57 = getelementptr inbounds double, ptr %56, i64 %55
  store double 0.000000e+00, ptr %57, align 8, !tbaa !14
  %58 = or disjoint i64 %.2143, 2
  %59 = load ptr, ptr %50, align 8, !tbaa !13
  %60 = getelementptr inbounds double, ptr %59, i64 %58
  store double 0.000000e+00, ptr %60, align 8, !tbaa !14
  %61 = or disjoint i64 %.2143, 3
  %62 = load ptr, ptr %50, align 8, !tbaa !13
  %63 = getelementptr inbounds double, ptr %62, i64 %61
  store double 0.000000e+00, ptr %63, align 8, !tbaa !14
  %64 = add nuw nsw i64 %.2143, 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 %._crit_edge146.loopexit.unr-lcssa, label %52, !llvm.loop !39

._crit_edge146.loopexit.unr-lcssa:                ; preds = %52, %.lr.ph145
  %.2143.unr = phi i64 [ 0, %.lr.ph145 ], [ %64, %52 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge146, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge146.loopexit.unr-lcssa, %.epil.preheader
  %.2143.epil = phi i64 [ %67, %.epil.preheader ], [ %.2143.unr, %._crit_edge146.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge146.loopexit.unr-lcssa ]
  %65 = load ptr, ptr %50, align 8, !tbaa !13
  %66 = getelementptr inbounds double, ptr %65, i64 %.2143.epil
  store double 0.000000e+00, ptr %66, align 8, !tbaa !14
  %67 = add nuw nsw i64 %.2143.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge146, label %.epil.preheader, !llvm.loop !40

._crit_edge146:                                   ; preds = %._crit_edge146.loopexit.unr-lcssa, %.epil.preheader, %._crit_edge
  %68 = load i64, ptr %0, align 8, !tbaa !19
  %.not129 = icmp eq i64 %68, 2
  br i1 %.not129, label %69, label %._crit_edge169

69:                                               ; preds = %._crit_edge146
  %70 = getelementptr inbounds i8, ptr %0, i64 16
  %71 = load i64, ptr %70, align 8, !tbaa !42
  switch i64 %71, label %246 [
    i64 3, label %72
    i64 2, label %78
    i64 1, label %84
  ]

72:                                               ; preds = %69
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef 1, ptr noundef %8)
  %73 = getelementptr inbounds i8, ptr %12, i64 56
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  store double 0.000000e+00, ptr %74, align 8, !tbaa !14
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef 1, ptr noundef %8)
  %75 = getelementptr inbounds i8, ptr %13, i64 56
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  store double 0.000000e+00, ptr %76, align 8, !tbaa !14
  %77 = getelementptr inbounds i8, ptr %0, i64 2560
  call void @_ZN11alglib_impl15rbfv3gridcalcvxEPKNS_10rbfv3modelEPKNS_9ae_vectorElS5_lS5_lS5_lS5_bPS3_PNS_8ae_stateE(ptr noundef nonnull %77, ptr noundef nonnull %1, i64 noundef %2, ptr noundef nonnull %3, i64 noundef %4, ptr noundef nonnull %12, i64 noundef 1, ptr noundef nonnull %13, i64 noundef 1, ptr noundef %5, i1 noundef zeroext %6, ptr noundef %7, ptr noundef %8)
  br label %._crit_edge169

78:                                               ; preds = %69
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef 1, ptr noundef %8)
  %79 = getelementptr inbounds i8, ptr %12, i64 56
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  store double 0.000000e+00, ptr %80, align 8, !tbaa !14
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef 1, ptr noundef %8)
  %81 = getelementptr inbounds i8, ptr %13, i64 56
  %82 = load ptr, ptr %81, align 8, !tbaa !13
  store double 0.000000e+00, ptr %82, align 8, !tbaa !14
  %83 = getelementptr inbounds i8, ptr %0, i64 1576
  call void @_ZN11alglib_impl15rbfv2gridcalcvxEPKNS_10rbfv2modelEPKNS_9ae_vectorElS5_lS5_lS5_lS5_bPS3_PNS_8ae_stateE(ptr noundef nonnull %83, ptr noundef nonnull %1, i64 noundef %2, ptr noundef nonnull %3, i64 noundef %4, ptr noundef nonnull %12, i64 noundef 1, ptr noundef nonnull %13, i64 noundef 1, ptr noundef %5, i1 noundef zeroext %6, ptr noundef %7, ptr noundef %8)
  br label %._crit_edge169

84:                                               ; preds = %69
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %45, ptr noundef %8)
  call void @_ZN11alglib_impl19rbfcreatecalcbufferEPKNS_8rbfmodelEPNS_13rbfcalcbufferEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %16, ptr noundef %8)
  br i1 %17, label %.preheader135.lr.ph, label %._crit_edge169

.preheader135.lr.ph:                              ; preds = %84
  %85 = getelementptr inbounds i8, ptr %5, i64 56
  %.not132.not147 = icmp sgt i64 %.fr, 0
  %86 = getelementptr inbounds i8, ptr %7, i64 56
  %87 = getelementptr inbounds i8, ptr %1, i64 56
  %88 = getelementptr inbounds i8, ptr %14, i64 56
  %89 = getelementptr inbounds i8, ptr %3, i64 56
  %90 = getelementptr inbounds i8, ptr %15, i64 56
  br i1 %18, label %.preheader135.lr.ph.split.us, label %._crit_edge169

.preheader135.lr.ph.split.us:                     ; preds = %.preheader135.lr.ph
  br i1 %6, label %.preheader135.lr.ph.split.us.split.us, label %.preheader135.lr.ph.split.us.split

.preheader135.lr.ph.split.us.split.us:            ; preds = %.preheader135.lr.ph.split.us
  br i1 %.not132.not147, label %.preheader135.us.us.us.us.preheader, label %.preheader135.us.us

.preheader135.us.us.us.us.preheader:              ; preds = %.preheader135.lr.ph.split.us.split.us
  %xtraiter222 = and i64 %.fr, 3
  %91 = icmp ult i64 %.fr, 4
  %unroll_iter225 = and i64 %.fr, 9223372036854775804
  %lcmp.mod224.not = icmp eq i64 %xtraiter222, 0
  %xtraiter228 = and i64 %.fr, 3
  %92 = icmp ult i64 %.fr, 4
  %unroll_iter231 = and i64 %.fr, 9223372036854775804
  %lcmp.mod230.not = icmp eq i64 %xtraiter228, 0
  br label %.preheader135.us.us.us.us

.preheader135.us.us.us.us:                        ; preds = %.preheader135.us.us.us.us.preheader, %._crit_edge157.split.us.us.us.split.us.us.split.us.us
  %.3166.us.us.us.us = phi i64 [ %166, %._crit_edge157.split.us.us.us.split.us.us.split.us.us ], [ 0, %.preheader135.us.us.us.us.preheader ]
  br label %93

93:                                               ; preds = %..loopexit134_crit_edge.us.us.us.us.us.us.us, %.preheader135.us.us.us.us
  %.0125155.us.us.us.us.us.us.us = phi i64 [ 0, %.preheader135.us.us.us.us ], [ %137, %..loopexit134_crit_edge.us.us.us.us.us.us.us ]
  %94 = mul nuw nsw i64 %.0125155.us.us.us.us.us.us.us, %2
  %95 = add nuw nsw i64 %94, %.3166.us.us.us.us
  %96 = mul nuw nsw i64 %95, %.fr
  %97 = load ptr, ptr %85, align 8, !tbaa !13
  %98 = getelementptr inbounds i8, ptr %97, i64 %95
  %99 = load i8, ptr %98, align 1, !tbaa !43, !range !44, !noundef !45
  %100 = trunc nuw i8 %99 to i1
  br i1 %100, label %.lr.ph153.us.us.us.us.us.us.us, label %.preheader.us.us.us.us.us.us.us.preheader

.preheader.us.us.us.us.us.us.us.preheader:        ; preds = %93
  br i1 %91, label %..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit212.unr-lcssa, label %.preheader.us.us.us.us.us.us.us

.preheader.us.us.us.us.us.us.us:                  ; preds = %.preheader.us.us.us.us.us.us.us.preheader, %.preheader.us.us.us.us.us.us.us
  %.0123148.us.us.us.us.us.us.us = phi i64 [ %116, %.preheader.us.us.us.us.us.us.us ], [ 0, %.preheader.us.us.us.us.us.us.us.preheader ]
  %niter226 = phi i64 [ %niter226.next.3, %.preheader.us.us.us.us.us.us.us ], [ 0, %.preheader.us.us.us.us.us.us.us.preheader ]
  %101 = load ptr, ptr %86, align 8, !tbaa !13
  %102 = getelementptr double, ptr %101, i64 %.0123148.us.us.us.us.us.us.us
  %103 = getelementptr double, ptr %102, i64 %96
  store double 0.000000e+00, ptr %103, align 8, !tbaa !14
  %104 = or disjoint i64 %.0123148.us.us.us.us.us.us.us, 1
  %105 = load ptr, ptr %86, align 8, !tbaa !13
  %106 = getelementptr double, ptr %105, i64 %104
  %107 = getelementptr double, ptr %106, i64 %96
  store double 0.000000e+00, ptr %107, align 8, !tbaa !14
  %108 = or disjoint i64 %.0123148.us.us.us.us.us.us.us, 2
  %109 = load ptr, ptr %86, align 8, !tbaa !13
  %110 = getelementptr double, ptr %109, i64 %108
  %111 = getelementptr double, ptr %110, i64 %96
  store double 0.000000e+00, ptr %111, align 8, !tbaa !14
  %112 = or disjoint i64 %.0123148.us.us.us.us.us.us.us, 3
  %113 = load ptr, ptr %86, align 8, !tbaa !13
  %114 = getelementptr double, ptr %113, i64 %112
  %115 = getelementptr double, ptr %114, i64 %96
  store double 0.000000e+00, ptr %115, align 8, !tbaa !14
  %116 = add nuw nsw i64 %.0123148.us.us.us.us.us.us.us, 4
  %niter226.next.3 = add i64 %niter226, 4
  %niter226.ncmp.3 = icmp eq i64 %niter226.next.3, %unroll_iter225
  br i1 %niter226.ncmp.3, label %..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit212.unr-lcssa, label %.preheader.us.us.us.us.us.us.us, !llvm.loop !46

.lr.ph153.us.us.us.us.us.us.us:                   ; preds = %93
  %117 = load ptr, ptr %87, align 8, !tbaa !13
  %118 = getelementptr inbounds double, ptr %117, i64 %.3166.us.us.us.us
  %119 = load double, ptr %118, align 8, !tbaa !14
  %120 = load ptr, ptr %88, align 8, !tbaa !13
  store double %119, ptr %120, align 8, !tbaa !14
  %121 = load ptr, ptr %89, align 8, !tbaa !13
  %122 = getelementptr inbounds double, ptr %121, i64 %.0125155.us.us.us.us.us.us.us
  %123 = load double, ptr %122, align 8, !tbaa !14
  %124 = load ptr, ptr %88, align 8, !tbaa !13
  %125 = getelementptr inbounds i8, ptr %124, i64 8
  store double %123, ptr %125, align 8, !tbaa !14
  call void @_ZN11alglib_impl12rbftscalcbufEPKNS_8rbfmodelEPNS_13rbfcalcbufferEPKNS_9ae_vectorEPS5_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %16, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %8)
  br i1 %92, label %..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit.unr-lcssa, label %.lr.ph153.us.us.us.us.us.us.us.new

..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit.unr-lcssa: ; preds = %.lr.ph153.us.us.us.us.us.us.us.new, %.lr.ph153.us.us.us.us.us.us.us
  %.1124151.us.us.us.us.us.us.us.unr = phi i64 [ 0, %.lr.ph153.us.us.us.us.us.us.us ], [ %165, %.lr.ph153.us.us.us.us.us.us.us.new ]
  br i1 %lcmp.mod230.not, label %..loopexit134_crit_edge.us.us.us.us.us.us.us, label %.epil.preheader227

.epil.preheader227:                               ; preds = %..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit.unr-lcssa, %.epil.preheader227
  %.1124151.us.us.us.us.us.us.us.epil = phi i64 [ %132, %.epil.preheader227 ], [ %.1124151.us.us.us.us.us.us.us.unr, %..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit.unr-lcssa ]
  %epil.iter229 = phi i64 [ %epil.iter229.next, %.epil.preheader227 ], [ 0, %..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit.unr-lcssa ]
  %126 = load ptr, ptr %90, align 8, !tbaa !13
  %127 = getelementptr inbounds double, ptr %126, i64 %.1124151.us.us.us.us.us.us.us.epil
  %128 = load double, ptr %127, align 8, !tbaa !14
  %129 = load ptr, ptr %86, align 8, !tbaa !13
  %130 = getelementptr double, ptr %129, i64 %.1124151.us.us.us.us.us.us.us.epil
  %131 = getelementptr double, ptr %130, i64 %96
  store double %128, ptr %131, align 8, !tbaa !14
  %132 = add nuw nsw i64 %.1124151.us.us.us.us.us.us.us.epil, 1
  %epil.iter229.next = add i64 %epil.iter229, 1
  %epil.iter229.cmp.not = icmp eq i64 %epil.iter229.next, %xtraiter228
  br i1 %epil.iter229.cmp.not, label %..loopexit134_crit_edge.us.us.us.us.us.us.us, label %.epil.preheader227, !llvm.loop !47

..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit212.unr-lcssa: ; preds = %.preheader.us.us.us.us.us.us.us, %.preheader.us.us.us.us.us.us.us.preheader
  %.0123148.us.us.us.us.us.us.us.unr = phi i64 [ 0, %.preheader.us.us.us.us.us.us.us.preheader ], [ %116, %.preheader.us.us.us.us.us.us.us ]
  br i1 %lcmp.mod224.not, label %..loopexit134_crit_edge.us.us.us.us.us.us.us, label %.preheader.us.us.us.us.us.us.us.epil

.preheader.us.us.us.us.us.us.us.epil:             ; preds = %..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit212.unr-lcssa, %.preheader.us.us.us.us.us.us.us.epil
  %.0123148.us.us.us.us.us.us.us.epil = phi i64 [ %136, %.preheader.us.us.us.us.us.us.us.epil ], [ %.0123148.us.us.us.us.us.us.us.unr, %..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit212.unr-lcssa ]
  %epil.iter223 = phi i64 [ %epil.iter223.next, %.preheader.us.us.us.us.us.us.us.epil ], [ 0, %..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit212.unr-lcssa ]
  %133 = load ptr, ptr %86, align 8, !tbaa !13
  %134 = getelementptr double, ptr %133, i64 %.0123148.us.us.us.us.us.us.us.epil
  %135 = getelementptr double, ptr %134, i64 %96
  store double 0.000000e+00, ptr %135, align 8, !tbaa !14
  %136 = add nuw nsw i64 %.0123148.us.us.us.us.us.us.us.epil, 1
  %epil.iter223.next = add i64 %epil.iter223, 1
  %epil.iter223.cmp.not = icmp eq i64 %epil.iter223.next, %xtraiter222
  br i1 %epil.iter223.cmp.not, label %..loopexit134_crit_edge.us.us.us.us.us.us.us, label %.preheader.us.us.us.us.us.us.us.epil, !llvm.loop !48

..loopexit134_crit_edge.us.us.us.us.us.us.us:     ; preds = %..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit212.unr-lcssa, %.preheader.us.us.us.us.us.us.us.epil, %..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit.unr-lcssa, %.epil.preheader227
  %137 = add nuw nsw i64 %.0125155.us.us.us.us.us.us.us, 1
  %exitcond202.not = icmp eq i64 %137, %4
  br i1 %exitcond202.not, label %._crit_edge157.split.us.us.us.split.us.us.split.us.us, label %93, !llvm.loop !49

.lr.ph153.us.us.us.us.us.us.us.new:               ; preds = %.lr.ph153.us.us.us.us.us.us.us, %.lr.ph153.us.us.us.us.us.us.us.new
  %.1124151.us.us.us.us.us.us.us = phi i64 [ %165, %.lr.ph153.us.us.us.us.us.us.us.new ], [ 0, %.lr.ph153.us.us.us.us.us.us.us ]
  %niter232 = phi i64 [ %niter232.next.3, %.lr.ph153.us.us.us.us.us.us.us.new ], [ 0, %.lr.ph153.us.us.us.us.us.us.us ]
  %138 = load ptr, ptr %90, align 8, !tbaa !13
  %139 = getelementptr inbounds double, ptr %138, i64 %.1124151.us.us.us.us.us.us.us
  %140 = load double, ptr %139, align 8, !tbaa !14
  %141 = load ptr, ptr %86, align 8, !tbaa !13
  %142 = getelementptr double, ptr %141, i64 %.1124151.us.us.us.us.us.us.us
  %143 = getelementptr double, ptr %142, i64 %96
  store double %140, ptr %143, align 8, !tbaa !14
  %144 = or disjoint i64 %.1124151.us.us.us.us.us.us.us, 1
  %145 = load ptr, ptr %90, align 8, !tbaa !13
  %146 = getelementptr inbounds double, ptr %145, i64 %144
  %147 = load double, ptr %146, align 8, !tbaa !14
  %148 = load ptr, ptr %86, align 8, !tbaa !13
  %149 = getelementptr double, ptr %148, i64 %144
  %150 = getelementptr double, ptr %149, i64 %96
  store double %147, ptr %150, align 8, !tbaa !14
  %151 = or disjoint i64 %.1124151.us.us.us.us.us.us.us, 2
  %152 = load ptr, ptr %90, align 8, !tbaa !13
  %153 = getelementptr inbounds double, ptr %152, i64 %151
  %154 = load double, ptr %153, align 8, !tbaa !14
  %155 = load ptr, ptr %86, align 8, !tbaa !13
  %156 = getelementptr double, ptr %155, i64 %151
  %157 = getelementptr double, ptr %156, i64 %96
  store double %154, ptr %157, align 8, !tbaa !14
  %158 = or disjoint i64 %.1124151.us.us.us.us.us.us.us, 3
  %159 = load ptr, ptr %90, align 8, !tbaa !13
  %160 = getelementptr inbounds double, ptr %159, i64 %158
  %161 = load double, ptr %160, align 8, !tbaa !14
  %162 = load ptr, ptr %86, align 8, !tbaa !13
  %163 = getelementptr double, ptr %162, i64 %158
  %164 = getelementptr double, ptr %163, i64 %96
  store double %161, ptr %164, align 8, !tbaa !14
  %165 = add nuw nsw i64 %.1124151.us.us.us.us.us.us.us, 4
  %niter232.next.3 = add i64 %niter232, 4
  %niter232.ncmp.3 = icmp eq i64 %niter232.next.3, %unroll_iter231
  br i1 %niter232.ncmp.3, label %..loopexit134_crit_edge.us.us.us.us.us.us.us.loopexit.unr-lcssa, label %.lr.ph153.us.us.us.us.us.us.us.new, !llvm.loop !50

._crit_edge157.split.us.us.us.split.us.us.split.us.us: ; preds = %..loopexit134_crit_edge.us.us.us.us.us.us.us
  %166 = add nuw nsw i64 %.3166.us.us.us.us, 1
  %exitcond203.not = icmp eq i64 %166, %2
  br i1 %exitcond203.not, label %._crit_edge169, label %.preheader135.us.us.us.us, !llvm.loop !51

.preheader135.us.us:                              ; preds = %.preheader135.lr.ph.split.us.split.us, %._crit_edge157.split.us.us.us.split
  %.3166.us.us = phi i64 [ %184, %._crit_edge157.split.us.us.us.split ], [ 0, %.preheader135.lr.ph.split.us.split.us ]
  br label %167

167:                                              ; preds = %.loopexit134.us.us.us, %.preheader135.us.us
  %.0125155.us.us.us = phi i64 [ 0, %.preheader135.us.us ], [ %183, %.loopexit134.us.us.us ]
  %168 = mul nuw nsw i64 %.0125155.us.us.us, %2
  %169 = load ptr, ptr %85, align 8, !tbaa !13
  %170 = getelementptr inbounds i8, ptr %169, i64 %168
  %171 = getelementptr inbounds i8, ptr %170, i64 %.3166.us.us
  %172 = load i8, ptr %171, align 1, !tbaa !43, !range !44, !noundef !45
  %173 = trunc nuw i8 %172 to i1
  br i1 %173, label %.loopexit.us.us.us, label %.loopexit134.us.us.us

.loopexit.us.us.us:                               ; preds = %167
  %174 = load ptr, ptr %87, align 8, !tbaa !13
  %175 = getelementptr inbounds double, ptr %174, i64 %.3166.us.us
  %176 = load double, ptr %175, align 8, !tbaa !14
  %177 = load ptr, ptr %88, align 8, !tbaa !13
  store double %176, ptr %177, align 8, !tbaa !14
  %178 = load ptr, ptr %89, align 8, !tbaa !13
  %179 = getelementptr inbounds double, ptr %178, i64 %.0125155.us.us.us
  %180 = load double, ptr %179, align 8, !tbaa !14
  %181 = load ptr, ptr %88, align 8, !tbaa !13
  %182 = getelementptr inbounds i8, ptr %181, i64 8
  store double %180, ptr %182, align 8, !tbaa !14
  call void @_ZN11alglib_impl12rbftscalcbufEPKNS_8rbfmodelEPNS_13rbfcalcbufferEPKNS_9ae_vectorEPS5_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %16, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %8)
  br label %.loopexit134.us.us.us

.loopexit134.us.us.us:                            ; preds = %167, %.loopexit.us.us.us
  %183 = add nuw nsw i64 %.0125155.us.us.us, 1
  %exitcond195.not = icmp eq i64 %183, %4
  br i1 %exitcond195.not, label %._crit_edge157.split.us.us.us.split, label %167, !llvm.loop !49

._crit_edge157.split.us.us.us.split:              ; preds = %.loopexit134.us.us.us
  %184 = add nuw nsw i64 %.3166.us.us, 1
  %exitcond196.not = icmp eq i64 %184, %2
  br i1 %exitcond196.not, label %._crit_edge169, label %.preheader135.us.us, !llvm.loop !51

.preheader135.lr.ph.split.us.split:               ; preds = %.preheader135.lr.ph.split.us
  br i1 %.not132.not147, label %.preheader135.us.us177.preheader, label %.preheader135.us

.preheader135.us.us177.preheader:                 ; preds = %.preheader135.lr.ph.split.us.split
  %xtraiter217 = and i64 %.fr, 3
  %185 = icmp ult i64 %.fr, 4
  %unroll_iter220 = and i64 %.fr, 9223372036854775804
  %lcmp.mod219.not = icmp eq i64 %xtraiter217, 0
  br label %.preheader135.us.us177

.preheader135.us.us177:                           ; preds = %.preheader135.us.us177.preheader, %._crit_edge157.split.split.us.us.us
  %.3166.us.us178 = phi i64 [ %234, %._crit_edge157.split.split.us.us.us ], [ 0, %.preheader135.us.us177.preheader ]
  br label %.lr.ph153.us163.us.us

.lr.ph153.us163.us.us:                            ; preds = %..loopexit_crit_edge.us164.us.us, %.preheader135.us.us177
  %.0125155.us158.us.us = phi i64 [ 0, %.preheader135.us.us177 ], [ %233, %..loopexit_crit_edge.us164.us.us ]
  %186 = mul nuw nsw i64 %.0125155.us158.us.us, %2
  %187 = add nuw nsw i64 %186, %.3166.us.us178
  %188 = mul nuw nsw i64 %187, %.fr
  %189 = load ptr, ptr %87, align 8, !tbaa !13
  %190 = getelementptr inbounds double, ptr %189, i64 %.3166.us.us178
  %191 = load double, ptr %190, align 8, !tbaa !14
  %192 = load ptr, ptr %88, align 8, !tbaa !13
  store double %191, ptr %192, align 8, !tbaa !14
  %193 = load ptr, ptr %89, align 8, !tbaa !13
  %194 = getelementptr inbounds double, ptr %193, i64 %.0125155.us158.us.us
  %195 = load double, ptr %194, align 8, !tbaa !14
  %196 = load ptr, ptr %88, align 8, !tbaa !13
  %197 = getelementptr inbounds i8, ptr %196, i64 8
  store double %195, ptr %197, align 8, !tbaa !14
  call void @_ZN11alglib_impl12rbftscalcbufEPKNS_8rbfmodelEPNS_13rbfcalcbufferEPKNS_9ae_vectorEPS5_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %16, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %8)
  br i1 %185, label %..loopexit_crit_edge.us164.us.us.unr-lcssa, label %.lr.ph153.us163.us.us.new

.lr.ph153.us163.us.us.new:                        ; preds = %.lr.ph153.us163.us.us, %.lr.ph153.us163.us.us.new
  %.1124151.us159.us.us = phi i64 [ %225, %.lr.ph153.us163.us.us.new ], [ 0, %.lr.ph153.us163.us.us ]
  %niter221 = phi i64 [ %niter221.next.3, %.lr.ph153.us163.us.us.new ], [ 0, %.lr.ph153.us163.us.us ]
  %198 = load ptr, ptr %90, align 8, !tbaa !13
  %199 = getelementptr inbounds double, ptr %198, i64 %.1124151.us159.us.us
  %200 = load double, ptr %199, align 8, !tbaa !14
  %201 = load ptr, ptr %86, align 8, !tbaa !13
  %202 = getelementptr double, ptr %201, i64 %.1124151.us159.us.us
  %203 = getelementptr double, ptr %202, i64 %188
  store double %200, ptr %203, align 8, !tbaa !14
  %204 = or disjoint i64 %.1124151.us159.us.us, 1
  %205 = load ptr, ptr %90, align 8, !tbaa !13
  %206 = getelementptr inbounds double, ptr %205, i64 %204
  %207 = load double, ptr %206, align 8, !tbaa !14
  %208 = load ptr, ptr %86, align 8, !tbaa !13
  %209 = getelementptr double, ptr %208, i64 %204
  %210 = getelementptr double, ptr %209, i64 %188
  store double %207, ptr %210, align 8, !tbaa !14
  %211 = or disjoint i64 %.1124151.us159.us.us, 2
  %212 = load ptr, ptr %90, align 8, !tbaa !13
  %213 = getelementptr inbounds double, ptr %212, i64 %211
  %214 = load double, ptr %213, align 8, !tbaa !14
  %215 = load ptr, ptr %86, align 8, !tbaa !13
  %216 = getelementptr double, ptr %215, i64 %211
  %217 = getelementptr double, ptr %216, i64 %188
  store double %214, ptr %217, align 8, !tbaa !14
  %218 = or disjoint i64 %.1124151.us159.us.us, 3
  %219 = load ptr, ptr %90, align 8, !tbaa !13
  %220 = getelementptr inbounds double, ptr %219, i64 %218
  %221 = load double, ptr %220, align 8, !tbaa !14
  %222 = load ptr, ptr %86, align 8, !tbaa !13
  %223 = getelementptr double, ptr %222, i64 %218
  %224 = getelementptr double, ptr %223, i64 %188
  store double %221, ptr %224, align 8, !tbaa !14
  %225 = add nuw nsw i64 %.1124151.us159.us.us, 4
  %niter221.next.3 = add i64 %niter221, 4
  %niter221.ncmp.3 = icmp eq i64 %niter221.next.3, %unroll_iter220
  br i1 %niter221.ncmp.3, label %..loopexit_crit_edge.us164.us.us.unr-lcssa, label %.lr.ph153.us163.us.us.new, !llvm.loop !50

..loopexit_crit_edge.us164.us.us.unr-lcssa:       ; preds = %.lr.ph153.us163.us.us.new, %.lr.ph153.us163.us.us
  %.1124151.us159.us.us.unr = phi i64 [ 0, %.lr.ph153.us163.us.us ], [ %225, %.lr.ph153.us163.us.us.new ]
  br i1 %lcmp.mod219.not, label %..loopexit_crit_edge.us164.us.us, label %.epil.preheader216

.epil.preheader216:                               ; preds = %..loopexit_crit_edge.us164.us.us.unr-lcssa, %.epil.preheader216
  %.1124151.us159.us.us.epil = phi i64 [ %232, %.epil.preheader216 ], [ %.1124151.us159.us.us.unr, %..loopexit_crit_edge.us164.us.us.unr-lcssa ]
  %epil.iter218 = phi i64 [ %epil.iter218.next, %.epil.preheader216 ], [ 0, %..loopexit_crit_edge.us164.us.us.unr-lcssa ]
  %226 = load ptr, ptr %90, align 8, !tbaa !13
  %227 = getelementptr inbounds double, ptr %226, i64 %.1124151.us159.us.us.epil
  %228 = load double, ptr %227, align 8, !tbaa !14
  %229 = load ptr, ptr %86, align 8, !tbaa !13
  %230 = getelementptr double, ptr %229, i64 %.1124151.us159.us.us.epil
  %231 = getelementptr double, ptr %230, i64 %188
  store double %228, ptr %231, align 8, !tbaa !14
  %232 = add nuw nsw i64 %.1124151.us159.us.us.epil, 1
  %epil.iter218.next = add i64 %epil.iter218, 1
  %epil.iter218.cmp.not = icmp eq i64 %epil.iter218.next, %xtraiter217
  br i1 %epil.iter218.cmp.not, label %..loopexit_crit_edge.us164.us.us, label %.epil.preheader216, !llvm.loop !52

..loopexit_crit_edge.us164.us.us:                 ; preds = %.epil.preheader216, %..loopexit_crit_edge.us164.us.us.unr-lcssa
  %233 = add nuw nsw i64 %.0125155.us158.us.us, 1
  %exitcond192.not = icmp eq i64 %233, %4
  br i1 %exitcond192.not, label %._crit_edge157.split.split.us.us.us, label %.lr.ph153.us163.us.us, !llvm.loop !49

._crit_edge157.split.split.us.us.us:              ; preds = %..loopexit_crit_edge.us164.us.us
  %234 = add nuw nsw i64 %.3166.us.us178, 1
  %exitcond193.not = icmp eq i64 %234, %2
  br i1 %exitcond193.not, label %._crit_edge169, label %.preheader135.us.us177, !llvm.loop !51

.preheader135.us:                                 ; preds = %.preheader135.lr.ph.split.us.split, %._crit_edge157.split.split.us173
  %.3166.us = phi i64 [ %245, %._crit_edge157.split.split.us173 ], [ 0, %.preheader135.lr.ph.split.us.split ]
  br label %.loopexit.us170

.loopexit.us170:                                  ; preds = %.preheader135.us, %.loopexit.us170
  %.0125155.us171 = phi i64 [ 0, %.preheader135.us ], [ %244, %.loopexit.us170 ]
  %235 = load ptr, ptr %87, align 8, !tbaa !13
  %236 = getelementptr inbounds double, ptr %235, i64 %.3166.us
  %237 = load double, ptr %236, align 8, !tbaa !14
  %238 = load ptr, ptr %88, align 8, !tbaa !13
  store double %237, ptr %238, align 8, !tbaa !14
  %239 = load ptr, ptr %89, align 8, !tbaa !13
  %240 = getelementptr inbounds double, ptr %239, i64 %.0125155.us171
  %241 = load double, ptr %240, align 8, !tbaa !14
  %242 = load ptr, ptr %88, align 8, !tbaa !13
  %243 = getelementptr inbounds i8, ptr %242, i64 8
  store double %241, ptr %243, align 8, !tbaa !14
  call void @_ZN11alglib_impl12rbftscalcbufEPKNS_8rbfmodelEPNS_13rbfcalcbufferEPKNS_9ae_vectorEPS5_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %16, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %8)
  %244 = add nuw nsw i64 %.0125155.us171, 1
  %exitcond189.not = icmp eq i64 %244, %4
  br i1 %exitcond189.not, label %._crit_edge157.split.split.us173, label %.loopexit.us170, !llvm.loop !49

._crit_edge157.split.split.us173:                 ; preds = %.loopexit.us170
  %245 = add nuw nsw i64 %.3166.us, 1
  %exitcond190.not = icmp eq i64 %245, %2
  br i1 %exitcond190.not, label %._crit_edge169, label %.preheader135.us, !llvm.loop !51

246:                                              ; preds = %69
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.1090, ptr noundef %8)
  br label %._crit_edge169

._crit_edge169:                                   ; preds = %._crit_edge157.split.split.us173, %._crit_edge157.split.split.us.us.us, %._crit_edge157.split.us.us.us.split, %._crit_edge157.split.us.us.us.split.us.us.split.us.us, %84, %.preheader135.lr.ph, %._crit_edge146, %246, %78, %72
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 2560, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  ret void
}

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_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!20, !7, i64 0}
!20 = !{!"_ZTSN11alglib_impl8rbfmodelE", !7, i64 0, !7, i64 8, !7, i64 16, !21, i64 24, !25, i64 1576, !27, i64 2560, !36, i64 6296, !15, i64 8856, !15, i64 8864, !15, i64 8872, !7, i64 8880, !7, i64 8888, !7, i64 8896, !7, i64 8904, !7, i64 8912, !15, i64 8920, !15, i64 8928, !15, i64 8936, !7, i64 8944, !15, i64 8952, !7, i64 8960, !7, i64 8968, !23, i64 8976, !23, i64 9056, !10, i64 9136, !6, i64 9144, !15, i64 9208, !7, i64 9216, !10, i64 9224}
!21 = !{!"_ZTSN11alglib_impl10rbfv1modelE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !22, i64 32, !23, i64 1096, !23, i64 1176, !15, i64 1256, !23, i64 1264, !6, i64 1344, !23, i64 1408, !6, i64 1488}
!22 = !{!"_ZTSN11alglib_impl6kdtreeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !23, i64 32, !6, i64 112, !6, i64 176, !6, i64 240, !6, i64 304, !6, i64 368, !24, i64 432, !7, i64 1056}
!23 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!24 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !6, i64 0, !6, i64 64, !6, i64 128, !7, i64 192, !15, i64 200, !10, i64 208, !15, i64 216, !7, i64 224, !6, i64 232, !6, i64 296, !6, i64 360, !6, i64 424, !6, i64 488, !15, i64 552, !6, i64 560}
!25 = !{!"_ZTSN11alglib_impl10rbfv2modelE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !6, i64 32, !6, i64 96, !6, i64 160, !6, i64 224, !6, i64 288, !6, i64 352, !6, i64 416, !6, i64 480, !23, i64 544, !15, i64 624, !7, i64 632, !15, i64 640, !7, i64 648, !26, i64 656}
!26 = !{!"_ZTSN11alglib_impl15rbfv2calcbufferE", !6, i64 0, !6, i64 64, !6, i64 128, !15, i64 192, !6, i64 200, !6, i64 264}
!27 = !{!"_ZTSN11alglib_impl10rbfv3modelE", !7, i64 0, !7, i64 8, !7, i64 16, !15, i64 24, !6, i64 32, !23, i64 96, !6, i64 176, !6, i64 240, !7, i64 304, !28, i64 312, !31, i64 864, !23, i64 2440, !34, i64 2520, !10, i64 3720, !15, i64 3728}
!28 = !{!"_ZTSN11alglib_impl13rbf3evaluatorE", !7, i64 0, !7, i64 8, !23, i64 16, !7, i64 96, !7, i64 104, !15, i64 112, !7, i64 120, !6, i64 128, !23, i64 192, !23, i64 272, !29, i64 352, !6, i64 488}
!29 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !30, i64 0, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !7, i64 80, !12, i64 88, !12, i64 96, !11, i64 104}
!30 = !{!"_ZTSN11alglib_impl7ae_lockE", !12, i64 0, !11, i64 8, !10, i64 40}
!31 = !{!"_ZTSN11alglib_impl17rbf3fastevaluatorE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !15, i64 40, !23, i64 48, !6, i64 128, !23, i64 192, !10, i64 272, !32, i64 280, !33, i64 416, !29, i64 1328, !23, i64 1464, !10, i64 1544, !7, i64 1552, !7, i64 1560, !7, i64 1568}
!32 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !7, i64 0, !7, i64 8, !10, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !30, i64 56, !11, i64 104}
!33 = !{!"_ZTSN11alglib_impl19biharmonicevaluatorE", !7, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !6, i64 144, !6, i64 208, !6, i64 272, !6, i64 336, !6, i64 400, !6, i64 464, !6, i64 528, !6, i64 592, !6, i64 656, !6, i64 720, !6, i64 784, !6, i64 848}
!34 = !{!"_ZTSN11alglib_impl15rbfv3calcbufferE", !6, i64 0, !35, i64 64, !6, i64 784, !6, i64 848, !23, i64 912, !23, i64 992, !6, i64 1072, !6, i64 1136}
!35 = !{!"_ZTSN11alglib_impl19rbf3evaluatorbufferE", !6, i64 0, !6, i64 64, !6, i64 128, !6, i64 192, !6, i64 256, !6, i64 320, !6, i64 384, !6, i64 448, !6, i64 512, !6, i64 576, !23, i64 640}
!36 = !{!"_ZTSN11alglib_impl13rbfcalcbufferE", !7, i64 0, !37, i64 8, !26, i64 840, !34, i64 1168, !6, i64 2368, !6, i64 2432, !6, i64 2496}
!37 = !{!"_ZTSN11alglib_impl15rbfv1calcbufferE", !6, i64 0, !23, i64 64, !6, i64 144, !24, i64 208}
!38 = !{!20, !7, i64 8}
!39 = distinct !{!39, !17}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.unroll.disable"}
!42 = !{!20, !7, i64 16}
!43 = !{!10, !10, i64 0}
!44 = !{i8 0, i8 2}
!45 = !{}
!46 = distinct !{!46, !17}
!47 = distinct !{!47, !41}
!48 = distinct !{!48, !41}
!49 = distinct !{!49, !17}
!50 = distinct !{!50, !17}
!51 = distinct !{!51, !17}
!52 = distinct !{!52, !41}


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