; 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::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::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::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.799 = external hidden unnamed_addr constant [28 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

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_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_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr 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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL26rbfv3_fastevaluatorpushtolEPNS_17rbf3fastevaluatorEdPNS_8ae_stateE(ptr noundef, double noundef, ptr noundef) #4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl19rbf3pushfastevaltolEPNS_10rbfv3modelEdPNS_8ae_stateE(ptr noundef %0, double noundef %1, ptr noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca %"struct.alglib_impl::rbfv3calcbuffer", align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store double %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 1200, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %24, ptr noundef %7)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 1200, i1 false)
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %10, ptr noundef %25, i1 noundef zeroext true)
  %26 = load ptr, ptr %6, 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 %26, i1 noundef zeroext true)
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl21_rbfv3calcbuffer_initEPvPNS_8ae_stateEb(ptr noundef %20, ptr noundef %29, i1 noundef zeroext true)
  %30 = load double, ptr %5, align 8, !tbaa !9
  %31 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %30, double noundef 0.000000e+00)
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef @.str.799, ptr noundef %32)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %33, i32 0, i32 8
  %35 = load i64, ptr %34, align 8, !tbaa !11
  %36 = icmp eq i64 %35, 0
  br i1 %36, label %37, label %39

37:                                               ; preds = %3
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %38)
  store i32 1, ptr %23, align 4
  br label %182

39:                                               ; preds = %3
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl21rbfv3createcalcbufferEPKNS_10rbfv3modelEPNS_15rbfv3calcbufferEPNS_8ae_stateE(ptr noundef %40, ptr noundef %20, ptr noundef %41)
  store i64 100, ptr %14, align 8, !tbaa !26
  store double 1.000000e+06, ptr %22, align 8, !tbaa !9
  store i64 47623, ptr %8, align 8, !tbaa !26
  store i64 83645264, ptr %9, align 8, !tbaa !26
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %42, i32 0, i32 10
  %44 = load double, ptr %5, align 8, !tbaa !9
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL26rbfv3_fastevaluatorpushtolEPNS_17rbf3fastevaluatorEdPNS_8ae_stateE(ptr noundef %43, double noundef %44, ptr noundef %45)
  store double 0.000000e+00, ptr %18, align 8, !tbaa !9
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %46, i32 0, i32 1
  %48 = load i64, ptr %47, align 8, !tbaa !27
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %48, ptr noundef %15, ptr noundef %49)
  %50 = load i64, ptr %8, align 8, !tbaa !26
  %51 = load i64, ptr %9, align 8, !tbaa !26
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef %50, i64 noundef %51, ptr noundef %10, ptr noundef %52)
  store i64 0, ptr %11, align 8, !tbaa !26
  br label %53

53:                                               ; preds = %144, %39
  %54 = load i64, ptr %11, align 8, !tbaa !26
  %55 = load i64, ptr %14, align 8, !tbaa !26
  %56 = sub nsw i64 %55, 1
  %57 = icmp sle i64 %54, %56
  br i1 %57, label %58, label %147

58:                                               ; preds = %53
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %59, i32 0, i32 8
  %61 = load i64, ptr %60, align 8, !tbaa !11
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %10, i64 noundef %61, ptr noundef %62)
  store i64 %63, ptr %13, align 8, !tbaa !26
  store i64 0, ptr %12, align 8, !tbaa !26
  br label %64

64:                                               ; preds = %93, %58
  %65 = load i64, ptr %12, align 8, !tbaa !26
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %66, i32 0, i32 1
  %68 = load i64, ptr %67, align 8, !tbaa !27
  %69 = sub nsw i64 %68, 1
  %70 = icmp sle i64 %65, %69
  br i1 %70, label %71, label %96

71:                                               ; preds = %64
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %72, i32 0, i32 6
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !28
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %76, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !27
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %79, i32 0, i32 0
  %81 = load i64, ptr %80, align 8, !tbaa !29
  %82 = add nsw i64 %78, %81
  %83 = load i64, ptr %13, align 8, !tbaa !26
  %84 = mul nsw i64 %82, %83
  %85 = load i64, ptr %12, align 8, !tbaa !26
  %86 = add nsw i64 %84, %85
  %87 = getelementptr inbounds double, ptr %75, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !28
  %91 = load i64, ptr %12, align 8, !tbaa !26
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  store double %88, ptr %92, align 8, !tbaa !9
  br label %93

93:                                               ; preds = %71
  %94 = load i64, ptr %12, align 8, !tbaa !26
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %12, align 8, !tbaa !26
  br label %64, !llvm.loop !30

96:                                               ; preds = %64
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14rbfv3tscalcbufEPKNS_10rbfv3modelEPNS_15rbfv3calcbufferEPKNS_9ae_vectorEPS5_PNS_8ae_stateE(ptr noundef %97, ptr noundef %20, ptr noundef %15, ptr noundef %16, ptr noundef %98)
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl18rbfv3tsfastcalcbufEPNS_10rbfv3modelEPNS_15rbfv3calcbufferEPKNS_9ae_vectorEPS4_PNS_8ae_stateE(ptr noundef %99, ptr noundef %20, ptr noundef %15, ptr noundef %17, ptr noundef %100)
  store i64 0, ptr %12, align 8, !tbaa !26
  br label %101

101:                                              ; preds = %140, %96
  %102 = load i64, ptr %12, align 8, !tbaa !26
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %103, i32 0, i32 0
  %105 = load i64, ptr %104, align 8, !tbaa !29
  %106 = sub nsw i64 %105, 1
  %107 = icmp sle i64 %102, %106
  br i1 %107, label %108, label %143

108:                                              ; preds = %101
  %109 = load double, ptr %18, align 8, !tbaa !9
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !28
  %112 = load i64, ptr %12, align 8, !tbaa !26
  %113 = getelementptr inbounds double, ptr %111, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !9
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !28
  %117 = load i64, ptr %12, align 8, !tbaa !26
  %118 = getelementptr inbounds double, ptr %116, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !9
  %120 = fsub double %114, %119
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %120, ptr noundef %121)
  %123 = fadd double %109, %122
  store double %123, ptr %18, align 8, !tbaa !9
  %124 = load double, ptr %19, align 8, !tbaa !9
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !28
  %127 = load i64, ptr %12, align 8, !tbaa !26
  %128 = getelementptr inbounds double, ptr %126, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !9
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !28
  %132 = load i64, ptr %12, align 8, !tbaa !26
  %133 = getelementptr inbounds double, ptr %131, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !9
  %135 = fsub double %129, %134
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %135, ptr noundef %136)
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %124, double noundef %137, ptr noundef %138)
  store double %139, ptr %19, align 8, !tbaa !9
  br label %140

140:                                              ; preds = %108
  %141 = load i64, ptr %12, align 8, !tbaa !26
  %142 = add nsw i64 %141, 1
  store i64 %142, ptr %12, align 8, !tbaa !26
  br label %101, !llvm.loop !32

143:                                              ; preds = %101
  br label %144

144:                                              ; preds = %143
  %145 = load i64, ptr %11, align 8, !tbaa !26
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %11, align 8, !tbaa !26
  br label %53, !llvm.loop !33

147:                                              ; preds = %53
  %148 = load double, ptr %18, align 8, !tbaa !9
  %149 = load i64, ptr %14, align 8, !tbaa !26
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %150, i32 0, i32 0
  %152 = load i64, ptr %151, align 8, !tbaa !29
  %153 = mul nsw i64 %149, %152
  %154 = sitofp i64 %153 to double
  %155 = fdiv double %148, %154
  store double %155, ptr %18, align 8, !tbaa !9
  %156 = load double, ptr %5, align 8, !tbaa !9
  %157 = load double, ptr %18, align 8, !tbaa !9
  %158 = load double, ptr %5, align 8, !tbaa !9
  %159 = load double, ptr %22, align 8, !tbaa !9
  %160 = fdiv double %158, %159
  %161 = call double @llvm.fmuladd.f64(double %157, double 2.500000e+01, double %160)
  %162 = load double, ptr %19, align 8, !tbaa !9
  %163 = load double, ptr %5, align 8, !tbaa !9
  %164 = load double, ptr %22, align 8, !tbaa !9
  %165 = fdiv double %163, %164
  %166 = call double @llvm.fmuladd.f64(double %162, double 5.000000e+00, double %165)
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %161, double noundef %166, ptr noundef %167)
  %169 = fdiv double %156, %168
  store double %169, ptr %21, align 8, !tbaa !9
  %170 = load double, ptr %21, align 8, !tbaa !9
  %171 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %170, double noundef 1.000000e+00)
  br i1 %171, label %172, label %174

172:                                              ; preds = %147
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %173)
  store i32 1, ptr %23, align 4
  br label %182

174:                                              ; preds = %147
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %175, i32 0, i32 10
  %177 = load double, ptr %5, align 8, !tbaa !9
  %178 = load double, ptr %21, align 8, !tbaa !9
  %179 = fmul double %177, %178
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL26rbfv3_fastevaluatorpushtolEPNS_17rbf3fastevaluatorEdPNS_8ae_stateE(ptr noundef %176, double noundef %179, ptr noundef %180)
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %181)
  store i32 0, ptr %23, align 4
  br label %182

182:                                              ; preds = %174, %172, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  %183 = load i32, ptr %23, align 4
  switch i32 %183, label %185 [
    i32 0, label %184
    i32 1, label %184
  ]

184:                                              ; preds = %182, %182
  ret void

185:                                              ; preds = %182
  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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 304}
!12 = !{!"_ZTSN11alglib_impl10rbfv3modelE", !13, i64 0, !13, i64 8, !13, i64 16, !10, i64 24, !14, i64 32, !17, i64 96, !14, i64 176, !14, i64 240, !13, i64 304, !18, i64 312, !21, i64 864, !17, i64 2440, !24, i64 2520, !15, i64 3720, !10, i64 3728}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !15, i64 16, !16, i64 24, !7, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !15, i64 32, !16, i64 40, !7, i64 72}
!18 = !{!"_ZTSN11alglib_impl13rbf3evaluatorE", !13, i64 0, !13, i64 8, !17, i64 16, !13, i64 96, !13, i64 104, !10, i64 112, !13, i64 120, !14, i64 128, !17, i64 192, !17, i64 272, !19, i64 352, !14, i64 488}
!19 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !20, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !13, i64 80, !6, i64 88, !6, i64 96, !16, i64 104}
!20 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !16, i64 8, !15, i64 40}
!21 = !{!"_ZTSN11alglib_impl17rbf3fastevaluatorE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !10, i64 40, !17, i64 48, !14, i64 128, !17, i64 192, !15, i64 272, !22, i64 280, !23, i64 416, !19, i64 1328, !17, i64 1464, !15, i64 1544, !13, i64 1552, !13, i64 1560, !13, i64 1568}
!22 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !13, i64 0, !13, i64 8, !15, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !20, i64 56, !16, i64 104}
!23 = !{!"_ZTSN11alglib_impl19biharmonicevaluatorE", !13, i64 0, !13, 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}
!24 = !{!"_ZTSN11alglib_impl15rbfv3calcbufferE", !14, i64 0, !25, i64 64, !14, i64 784, !14, i64 848, !17, i64 912, !17, i64 992, !14, i64 1072, !14, i64 1136}
!25 = !{!"_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, !17, i64 640}
!26 = !{!13, !13, i64 0}
!27 = !{!12, !13, i64 8}
!28 = !{!7, !7, i64 0}
!29 = !{!12, !13, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !31}


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

@.str.799 = external hidden unnamed_addr constant [28 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

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

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

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

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

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

declare 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_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr 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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL26rbfv3_fastevaluatorpushtolEPNS_17rbf3fastevaluatorEdPNS_8ae_stateE(ptr noundef, double noundef, ptr noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl19rbf3pushfastevaltolEPNS_10rbfv3modelEdPNS_8ae_stateE(ptr noundef %0, double noundef %1, ptr noundef %2) local_unnamed_addr #4 {
  %4 = alloca %"struct.alglib_impl::ae_frame", align 8
  %5 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::rbfv3calcbuffer", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %9) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %2, ptr noundef nonnull %4)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1200) %9, i8 0, i64 1200, i1 false)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %5, ptr noundef %2, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 3, ptr noundef %2, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 3, ptr noundef %2, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %2, i1 noundef zeroext true)
  call void @_ZN11alglib_impl21_rbfv3calcbuffer_initEPvPNS_8ae_stateEb(ptr noundef nonnull %9, ptr noundef %2, i1 noundef zeroext true)
  %10 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1, double noundef 0.000000e+00)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.799, ptr noundef %2)
  %11 = getelementptr inbounds i8, ptr %0, i64 304
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = icmp eq i64 %12, 0
  br i1 %13, label %101, label %14

14:                                               ; preds = %3
  call void @_ZN11alglib_impl21rbfv3createcalcbufferEPKNS_10rbfv3modelEPNS_15rbfv3calcbufferEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %9, ptr noundef %2)
  %15 = getelementptr inbounds i8, ptr %0, i64 864
  call void @_ZN11alglib_implL26rbfv3_fastevaluatorpushtolEPNS_17rbf3fastevaluatorEdPNS_8ae_stateE(ptr noundef nonnull %15, double noundef %1, ptr noundef %2)
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load i64, ptr %16, align 8, !tbaa !24
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %17, ptr noundef nonnull %6, ptr noundef %2)
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef 47623, i64 noundef 83645264, ptr noundef nonnull %5, ptr noundef %2)
  %18 = getelementptr inbounds i8, ptr %0, i64 232
  %19 = getelementptr inbounds i8, ptr %6, i64 56
  %20 = getelementptr inbounds i8, ptr %7, i64 56
  %21 = getelementptr inbounds i8, ptr %8, i64 56
  br label %22

22:                                               ; preds = %14, %._crit_edge81
  %.085 = phi i64 [ 0, %14 ], [ %88, %._crit_edge81 ]
  %.06884 = phi double [ 0.000000e+00, %14 ], [ %.169.lcssa, %._crit_edge81 ]
  %.07083 = phi double [ 0.000000e+00, %14 ], [ %.171.lcssa, %._crit_edge81 ]
  %23 = load i64, ptr %11, align 8, !tbaa !5
  %24 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %23, ptr noundef %2)
  %25 = load i64, ptr %16, align 8, !tbaa !24
  %.not.not73 = icmp sgt i64 %25, 0
  br i1 %.not.not73, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %22
  %26 = load i64, ptr %0, align 8, !tbaa !25
  %27 = add nsw i64 %26, %25
  %28 = mul nsw i64 %27, %24
  %xtraiter = and i64 %25, 3
  %29 = icmp ult i64 %25, 4
  br i1 %29, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %25, 9223372036854775804
  br label %30

30:                                               ; preds = %30, %.lr.ph.new
  %.06774 = phi i64 [ 0, %.lr.ph.new ], [ %58, %30 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %30 ]
  %31 = load ptr, ptr %18, align 8, !tbaa !26
  %32 = getelementptr double, ptr %31, i64 %28
  %33 = getelementptr double, ptr %32, i64 %.06774
  %34 = load double, ptr %33, align 8, !tbaa !27
  %35 = load ptr, ptr %19, align 8, !tbaa !26
  %36 = getelementptr inbounds double, ptr %35, i64 %.06774
  store double %34, ptr %36, align 8, !tbaa !27
  %37 = or disjoint i64 %.06774, 1
  %38 = load ptr, ptr %18, align 8, !tbaa !26
  %39 = getelementptr double, ptr %38, i64 %28
  %40 = getelementptr double, ptr %39, i64 %37
  %41 = load double, ptr %40, align 8, !tbaa !27
  %42 = load ptr, ptr %19, align 8, !tbaa !26
  %43 = getelementptr inbounds double, ptr %42, i64 %37
  store double %41, ptr %43, align 8, !tbaa !27
  %44 = or disjoint i64 %.06774, 2
  %45 = load ptr, ptr %18, align 8, !tbaa !26
  %46 = getelementptr double, ptr %45, i64 %28
  %47 = getelementptr double, ptr %46, i64 %44
  %48 = load double, ptr %47, align 8, !tbaa !27
  %49 = load ptr, ptr %19, align 8, !tbaa !26
  %50 = getelementptr inbounds double, ptr %49, i64 %44
  store double %48, ptr %50, align 8, !tbaa !27
  %51 = or disjoint i64 %.06774, 3
  %52 = load ptr, ptr %18, align 8, !tbaa !26
  %53 = getelementptr double, ptr %52, i64 %28
  %54 = getelementptr double, ptr %53, i64 %51
  %55 = load double, ptr %54, align 8, !tbaa !27
  %56 = load ptr, ptr %19, align 8, !tbaa !26
  %57 = getelementptr inbounds double, ptr %56, i64 %51
  store double %55, ptr %57, align 8, !tbaa !27
  %58 = add nuw nsw i64 %.06774, 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_edge.loopexit.unr-lcssa, label %30, !llvm.loop !28

._crit_edge.loopexit.unr-lcssa:                   ; preds = %30, %.lr.ph
  %.06774.unr = phi i64 [ 0, %.lr.ph ], [ %58, %30 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.06774.epil = phi i64 [ %65, %.epil.preheader ], [ %.06774.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %59 = load ptr, ptr %18, align 8, !tbaa !26
  %60 = getelementptr double, ptr %59, i64 %28
  %61 = getelementptr double, ptr %60, i64 %.06774.epil
  %62 = load double, ptr %61, align 8, !tbaa !27
  %63 = load ptr, ptr %19, align 8, !tbaa !26
  %64 = getelementptr inbounds double, ptr %63, i64 %.06774.epil
  store double %62, ptr %64, align 8, !tbaa !27
  %65 = add nuw nsw i64 %.06774.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_edge, label %.epil.preheader, !llvm.loop !30

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %22
  call void @_ZN11alglib_impl14rbfv3tscalcbufEPKNS_10rbfv3modelEPNS_15rbfv3calcbufferEPKNS_9ae_vectorEPS5_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %9, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %2)
  call void @_ZN11alglib_impl18rbfv3tsfastcalcbufEPNS_10rbfv3modelEPNS_15rbfv3calcbufferEPKNS_9ae_vectorEPS4_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %9, ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef %2)
  %66 = load i64, ptr %0, align 8, !tbaa !25
  %.not.not7275 = icmp sgt i64 %66, 0
  br i1 %.not.not7275, label %.lr.ph80, label %._crit_edge81

.lr.ph80:                                         ; preds = %._crit_edge, %.lr.ph80
  %.178 = phi i64 [ %85, %.lr.ph80 ], [ 0, %._crit_edge ]
  %.16977 = phi double [ %84, %.lr.ph80 ], [ %.06884, %._crit_edge ]
  %.17176 = phi double [ %75, %.lr.ph80 ], [ %.07083, %._crit_edge ]
  %67 = load ptr, ptr %20, align 8, !tbaa !26
  %68 = getelementptr inbounds double, ptr %67, i64 %.178
  %69 = load double, ptr %68, align 8, !tbaa !27
  %70 = load ptr, ptr %21, align 8, !tbaa !26
  %71 = getelementptr inbounds double, ptr %70, i64 %.178
  %72 = load double, ptr %71, align 8, !tbaa !27
  %73 = fsub double %69, %72
  %74 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %73, ptr noundef %2)
  %75 = fadd double %.17176, %74
  %76 = load ptr, ptr %20, align 8, !tbaa !26
  %77 = getelementptr inbounds double, ptr %76, i64 %.178
  %78 = load double, ptr %77, align 8, !tbaa !27
  %79 = load ptr, ptr %21, align 8, !tbaa !26
  %80 = getelementptr inbounds double, ptr %79, i64 %.178
  %81 = load double, ptr %80, align 8, !tbaa !27
  %82 = fsub double %78, %81
  %83 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %82, ptr noundef %2)
  %84 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.16977, double noundef %83, ptr noundef %2)
  %85 = add nuw nsw i64 %.178, 1
  %86 = load i64, ptr %0, align 8, !tbaa !25
  %.not.not72 = icmp slt i64 %85, %86
  br i1 %.not.not72, label %.lr.ph80, label %._crit_edge81, !llvm.loop !32

._crit_edge81:                                    ; preds = %.lr.ph80, %._crit_edge
  %87 = phi i64 [ %66, %._crit_edge ], [ %86, %.lr.ph80 ]
  %.171.lcssa = phi double [ %.07083, %._crit_edge ], [ %75, %.lr.ph80 ]
  %.169.lcssa = phi double [ %.06884, %._crit_edge ], [ %84, %.lr.ph80 ]
  %88 = add nuw nsw i64 %.085, 1
  %exitcond87.not = icmp eq i64 %88, 100
  br i1 %exitcond87.not, label %89, label %22, !llvm.loop !33

89:                                               ; preds = %._crit_edge81
  %90 = mul nsw i64 %87, 100
  %91 = sitofp i64 %90 to double
  %92 = fdiv double %.171.lcssa, %91
  %93 = fdiv double %1, 1.000000e+06
  %94 = call double @llvm.fmuladd.f64(double %92, double 2.500000e+01, double %93)
  %95 = call double @llvm.fmuladd.f64(double %.169.lcssa, double 5.000000e+00, double %93)
  %96 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %94, double noundef %95, ptr noundef %2)
  %97 = fdiv double %1, %96
  %98 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %97, double noundef 1.000000e+00)
  br i1 %98, label %101, label %99

99:                                               ; preds = %89
  %100 = fmul double %97, %1
  call void @_ZN11alglib_implL26rbfv3_fastevaluatorpushtolEPNS_17rbf3fastevaluatorEdPNS_8ae_stateE(ptr noundef nonnull %15, double noundef %100, ptr noundef %2)
  br label %101

101:                                              ; preds = %89, %3, %99
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %2)
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 304}
!6 = !{!"_ZTSN11alglib_impl10rbfv3modelE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !11, i64 32, !15, i64 96, !11, i64 176, !11, i64 240, !7, i64 304, !16, i64 312, !19, i64 864, !15, i64 2440, !22, i64 2520, !12, i64 3720, !10, i64 3728}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !12, i64 16, !13, i64 24, !8, i64 56}
!12 = !{!"bool", !8, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !12, i64 32, !13, i64 40, !8, i64 72}
!16 = !{!"_ZTSN11alglib_impl13rbf3evaluatorE", !7, i64 0, !7, i64 8, !15, i64 16, !7, i64 96, !7, i64 104, !10, i64 112, !7, i64 120, !11, i64 128, !15, i64 192, !15, i64 272, !17, i64 352, !11, i64 488}
!17 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !18, i64 0, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !7, i64 80, !14, i64 88, !14, i64 96, !13, i64 104}
!18 = !{!"_ZTSN11alglib_impl7ae_lockE", !14, i64 0, !13, i64 8, !12, i64 40}
!19 = !{!"_ZTSN11alglib_impl17rbf3fastevaluatorE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !15, i64 48, !11, i64 128, !15, i64 192, !12, i64 272, !20, i64 280, !21, i64 416, !17, i64 1328, !15, i64 1464, !12, i64 1544, !7, i64 1552, !7, i64 1560, !7, i64 1568}
!20 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !7, i64 0, !7, i64 8, !12, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !18, i64 56, !13, i64 104}
!21 = !{!"_ZTSN11alglib_impl19biharmonicevaluatorE", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 80, !11, i64 144, !11, i64 208, !11, i64 272, !11, i64 336, !11, i64 400, !11, i64 464, !11, i64 528, !11, i64 592, !11, i64 656, !11, i64 720, !11, i64 784, !11, i64 848}
!22 = !{!"_ZTSN11alglib_impl15rbfv3calcbufferE", !11, i64 0, !23, i64 64, !11, i64 784, !11, i64 848, !15, i64 912, !15, i64 992, !11, i64 1072, !11, i64 1136}
!23 = !{!"_ZTSN11alglib_impl19rbf3evaluatorbufferE", !11, i64 0, !11, i64 64, !11, i64 128, !11, i64 192, !11, i64 256, !11, i64 320, !11, i64 384, !11, i64 448, !11, i64 512, !11, i64 576, !15, i64 640}
!24 = !{!6, !7, i64 8}
!25 = !{!6, !7, i64 0}
!26 = !{!8, !8, i64 0}
!27 = !{!10, !10, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.unroll.disable"}
!32 = distinct !{!32, !29}
!33 = distinct !{!33, !29}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass