; 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::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::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"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" }
%"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::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.703 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.704 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.705 = external hidden unnamed_addr constant [51 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 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) #1

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

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #1

; 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) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN11alglib_impl10rbfv3calc3EPNS_10rbfv3modelEdddPNS_8ae_stateE(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4) #3 {
  %6 = alloca double, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store double %1, ptr %8, align 8, !tbaa !9
  store double %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %14 = load double, ptr %8, align 8, !tbaa !9
  %15 = load ptr, ptr %11, align 8, !tbaa !5
  %16 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %14, ptr noundef %15)
  %17 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef @.str.703, ptr noundef %17)
  %18 = load double, ptr %9, align 8, !tbaa !9
  %19 = load ptr, ptr %11, align 8, !tbaa !5
  %20 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %18, ptr noundef %19)
  %21 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef @.str.704, ptr noundef %21)
  %22 = load double, ptr %10, align 8, !tbaa !9
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %22, ptr noundef %23)
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef @.str.705, ptr noundef %25)
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %26, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !11
  %29 = icmp ne i64 %28, 1
  br i1 %29, label %35, label %30

30:                                               ; preds = %5
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %31, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !26
  %34 = icmp ne i64 %33, 3
  br i1 %34, label %35, label %37

35:                                               ; preds = %30, %5
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  %36 = load double, ptr %12, align 8, !tbaa !9
  store double %36, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %123

37:                                               ; preds = %30
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %38, i32 0, i32 5
  %40 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %39, i32 0, i32 6
  %41 = load ptr, ptr %40, align 8, !tbaa !27
  %42 = getelementptr inbounds ptr, ptr %41, i64 0
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i64 0
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = load double, ptr %8, align 8, !tbaa !9
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %47, i32 0, i32 5
  %49 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %48, i32 0, i32 6
  %50 = load ptr, ptr %49, align 8, !tbaa !27
  %51 = getelementptr inbounds ptr, ptr %50, i64 0
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = getelementptr inbounds double, ptr %52, i64 1
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = load double, ptr %9, align 8, !tbaa !9
  %56 = fmul double %54, %55
  %57 = call double @llvm.fmuladd.f64(double %45, double %46, double %56)
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %58, i32 0, i32 5
  %60 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %59, i32 0, i32 6
  %61 = load ptr, ptr %60, align 8, !tbaa !27
  %62 = getelementptr inbounds ptr, ptr %61, i64 0
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = getelementptr inbounds double, ptr %63, i64 2
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = load double, ptr %10, align 8, !tbaa !9
  %67 = call double @llvm.fmuladd.f64(double %65, double %66, double %57)
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %68, i32 0, i32 5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %69, i32 0, i32 6
  %71 = load ptr, ptr %70, align 8, !tbaa !27
  %72 = getelementptr inbounds ptr, ptr %71, i64 0
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = getelementptr inbounds double, ptr %73, i64 3
  %75 = load double, ptr %74, align 8, !tbaa !9
  %76 = fadd double %67, %75
  store double %76, ptr %12, align 8, !tbaa !9
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %77, i32 0, i32 8
  %79 = load i64, ptr %78, align 8, !tbaa !28
  %80 = icmp eq i64 %79, 0
  br i1 %80, label %81, label %83

81:                                               ; preds = %37
  %82 = load double, ptr %12, align 8, !tbaa !9
  store double %82, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %123

83:                                               ; preds = %37
  %84 = load double, ptr %8, align 8, !tbaa !9
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %85, i32 0, i32 12
  %87 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %86, i32 0, i32 2
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %87, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !27
  %90 = getelementptr inbounds double, ptr %89, i64 0
  store double %84, ptr %90, align 8, !tbaa !9
  %91 = load double, ptr %9, align 8, !tbaa !9
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %92, i32 0, i32 12
  %94 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %93, i32 0, i32 2
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !27
  %97 = getelementptr inbounds double, ptr %96, i64 1
  store double %91, ptr %97, align 8, !tbaa !9
  %98 = load double, ptr %10, align 8, !tbaa !9
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %99, i32 0, i32 12
  %101 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %100, i32 0, i32 2
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %101, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !27
  %104 = getelementptr inbounds double, ptr %103, i64 2
  store double %98, ptr %104, align 8, !tbaa !9
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %106, i32 0, i32 12
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %108, i32 0, i32 12
  %110 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %109, i32 0, i32 2
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %111, i32 0, i32 12
  %113 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %112, i32 0, i32 3
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl14rbfv3tscalcbufEPKNS_10rbfv3modelEPNS_15rbfv3calcbufferEPKNS_9ae_vectorEPS5_PNS_8ae_stateE(ptr noundef %105, ptr noundef %107, ptr noundef %110, ptr noundef %113, ptr noundef %114)
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %115, i32 0, i32 12
  %117 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %116, i32 0, i32 3
  %118 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %117, i32 0, i32 4
  %119 = load ptr, ptr %118, align 8, !tbaa !27
  %120 = getelementptr inbounds double, ptr %119, i64 0
  %121 = load double, ptr %120, align 8, !tbaa !9
  store double %121, ptr %12, align 8, !tbaa !9
  %122 = load double, ptr %12, align 8, !tbaa !9
  store double %122, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %123

123:                                              ; preds = %83, %81, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %124 = load double, ptr %6, align 8
  ret double %124
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 0}
!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 = !{!12, !13, i64 8}
!27 = !{!7, !7, i64 0}
!28 = !{!12, !13, i64 304}


; 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"

@.str.703 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.704 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.705 = external hidden unnamed_addr constant [51 x i8], align 1

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

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

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

; 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 #2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN11alglib_impl10rbfv3calc3EPNS_10rbfv3modelEdddPNS_8ae_stateE(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4) local_unnamed_addr #2 {
  %6 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %1, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.703, ptr noundef %4)
  %7 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %2, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.704, ptr noundef %4)
  %8 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %3, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.705, ptr noundef %4)
  %9 = load i64, ptr %0, align 8, !tbaa !5
  %.not = icmp eq i64 %9, 1
  br i1 %.not, label %10, label %45

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !24
  %.not35 = icmp eq i64 %12, 3
  br i1 %.not35, label %13, label %45

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %0, i64 304
  %15 = load i64, ptr %14, align 8, !tbaa !25
  %16 = icmp eq i64 %15, 0
  br i1 %16, label %17, label %32

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %0, i64 168
  %19 = load ptr, ptr %18, align 8, !tbaa !26
  %20 = load ptr, ptr %19, align 8, !tbaa !27
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  %22 = load double, ptr %21, align 8, !tbaa !28
  %23 = load double, ptr %20, align 8, !tbaa !28
  %24 = getelementptr inbounds i8, ptr %20, i64 8
  %25 = load double, ptr %24, align 8, !tbaa !28
  %26 = fmul double %25, %2
  %27 = tail call double @llvm.fmuladd.f64(double %23, double %1, double %26)
  %28 = tail call double @llvm.fmuladd.f64(double %22, double %3, double %27)
  %29 = getelementptr inbounds i8, ptr %20, i64 24
  %30 = load double, ptr %29, align 8, !tbaa !28
  %31 = fadd double %30, %28
  br label %45

32:                                               ; preds = %13
  %33 = getelementptr inbounds i8, ptr %0, i64 2520
  %34 = getelementptr inbounds i8, ptr %0, i64 3304
  %35 = getelementptr inbounds i8, ptr %0, i64 3360
  %36 = load ptr, ptr %35, align 8, !tbaa !26
  store double %1, ptr %36, align 8, !tbaa !28
  %37 = load ptr, ptr %35, align 8, !tbaa !26
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  store double %2, ptr %38, align 8, !tbaa !28
  %39 = load ptr, ptr %35, align 8, !tbaa !26
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  store double %3, ptr %40, align 8, !tbaa !28
  %41 = getelementptr inbounds i8, ptr %0, i64 3368
  tail call void @_ZN11alglib_impl14rbfv3tscalcbufEPKNS_10rbfv3modelEPNS_15rbfv3calcbufferEPKNS_9ae_vectorEPS5_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %33, ptr noundef nonnull %34, ptr noundef nonnull %41, ptr noundef %4)
  %42 = getelementptr inbounds i8, ptr %0, i64 3424
  %43 = load ptr, ptr %42, align 8, !tbaa !26
  %44 = load double, ptr %43, align 8, !tbaa !28
  br label %45

45:                                               ; preds = %5, %10, %32, %17
  %.0 = phi double [ %31, %17 ], [ %44, %32 ], [ 0.000000e+00, %10 ], [ 0.000000e+00, %5 ]
  ret double %.0
}

attributes #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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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" }

!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_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 304}
!26 = !{!8, !8, i64 0}
!27 = !{!14, !14, i64 0}
!28 = !{!10, !10, i64 0}


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