; 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.701 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.702 = external hidden unnamed_addr constant [44 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_impl10rbfv3calc2EPNS_10rbfv3modelEddPNS_8ae_stateE(ptr noundef %0, double noundef %1, double noundef %2, ptr noundef %3) #3 {
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !9
  store double %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %12 = load double, ptr %7, align 8, !tbaa !9
  %13 = load ptr, ptr %9, align 8, !tbaa !5
  %14 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %12, ptr noundef %13)
  %15 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef @.str.701, ptr noundef %15)
  %16 = load double, ptr %8, align 8, !tbaa !9
  %17 = load ptr, ptr %9, align 8, !tbaa !5
  %18 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %16, ptr noundef %17)
  %19 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef @.str.702, ptr noundef %19)
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %20, i32 0, i32 0
  %22 = load i64, ptr %21, align 8, !tbaa !11
  %23 = icmp ne i64 %22, 1
  br i1 %23, label %29, label %24

24:                                               ; preds = %4
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %25, i32 0, i32 1
  %27 = load i64, ptr %26, align 8, !tbaa !26
  %28 = icmp ne i64 %27, 2
  br i1 %28, label %29, label %31

29:                                               ; preds = %24, %4
  store double 0.000000e+00, ptr %10, align 8, !tbaa !9
  %30 = load double, ptr %10, align 8, !tbaa !9
  store double %30, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %100

31:                                               ; preds = %24
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %32, i32 0, i32 5
  %34 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %35 = load ptr, ptr %34, align 8, !tbaa !27
  %36 = getelementptr inbounds ptr, ptr %35, i64 0
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = getelementptr inbounds double, ptr %37, i64 0
  %39 = load double, ptr %38, align 8, !tbaa !9
  %40 = load double, ptr %7, align 8, !tbaa !9
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %41, i32 0, i32 5
  %43 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %42, i32 0, i32 6
  %44 = load ptr, ptr %43, align 8, !tbaa !27
  %45 = getelementptr inbounds ptr, ptr %44, i64 0
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = getelementptr inbounds double, ptr %46, i64 1
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = load double, ptr %8, align 8, !tbaa !9
  %50 = fmul double %48, %49
  %51 = call double @llvm.fmuladd.f64(double %39, double %40, double %50)
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %52, i32 0, i32 5
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %53, i32 0, i32 6
  %55 = load ptr, ptr %54, align 8, !tbaa !27
  %56 = getelementptr inbounds ptr, ptr %55, i64 0
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = getelementptr inbounds double, ptr %57, i64 2
  %59 = load double, ptr %58, align 8, !tbaa !9
  %60 = fadd double %51, %59
  store double %60, ptr %10, align 8, !tbaa !9
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %61, i32 0, i32 8
  %63 = load i64, ptr %62, align 8, !tbaa !28
  %64 = icmp eq i64 %63, 0
  br i1 %64, label %65, label %67

65:                                               ; preds = %31
  %66 = load double, ptr %10, align 8, !tbaa !9
  store double %66, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %100

67:                                               ; preds = %31
  %68 = load double, ptr %7, align 8, !tbaa !9
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %69, i32 0, i32 12
  %71 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %70, i32 0, i32 2
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %71, i32 0, i32 4
  %73 = load ptr, ptr %72, align 8, !tbaa !27
  %74 = getelementptr inbounds double, ptr %73, i64 0
  store double %68, ptr %74, align 8, !tbaa !9
  %75 = load double, ptr %8, align 8, !tbaa !9
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %76, i32 0, i32 12
  %78 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %77, i32 0, i32 2
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !27
  %81 = getelementptr inbounds double, ptr %80, i64 1
  store double %75, ptr %81, align 8, !tbaa !9
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %83, i32 0, i32 12
  %85 = load ptr, ptr %6, 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 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %88, i32 0, i32 12
  %90 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %89, i32 0, i32 3
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl14rbfv3tscalcbufEPKNS_10rbfv3modelEPNS_15rbfv3calcbufferEPKNS_9ae_vectorEPS5_PNS_8ae_stateE(ptr noundef %82, ptr noundef %84, ptr noundef %87, ptr noundef %90, ptr noundef %91)
  %92 = load ptr, ptr %6, 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 3
  %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 0
  %98 = load double, ptr %97, align 8, !tbaa !9
  store double %98, ptr %10, align 8, !tbaa !9
  %99 = load double, ptr %10, align 8, !tbaa !9
  store double %99, ptr %5, align 8
  store i32 1, ptr %11, align 4
  br label %100

100:                                              ; preds = %67, %65, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %101 = load double, ptr %5, align 8
  ret double %101
}

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.701 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.702 = external hidden unnamed_addr constant [44 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_impl10rbfv3calc2EPNS_10rbfv3modelEddPNS_8ae_stateE(ptr noundef %0, double noundef %1, double noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %1, ptr noundef %3)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %5, ptr noundef nonnull @.str.701, ptr noundef %3)
  %6 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %2, ptr noundef %3)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.702, ptr noundef %3)
  %7 = load i64, ptr %0, align 8, !tbaa !5
  %.not = icmp eq i64 %7, 1
  br i1 %.not, label %8, label %38

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i64, ptr %9, align 8, !tbaa !24
  %.not28 = icmp eq i64 %10, 2
  br i1 %.not28, label %11, label %38

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %0, i64 304
  %13 = load i64, ptr %12, align 8, !tbaa !25
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %15, label %27

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

27:                                               ; preds = %11
  %28 = getelementptr inbounds i8, ptr %0, i64 2520
  %29 = getelementptr inbounds i8, ptr %0, i64 3304
  %30 = getelementptr inbounds i8, ptr %0, i64 3360
  %31 = load ptr, ptr %30, align 8, !tbaa !26
  store double %1, ptr %31, align 8, !tbaa !28
  %32 = load ptr, ptr %30, align 8, !tbaa !26
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  store double %2, ptr %33, align 8, !tbaa !28
  %34 = 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 %28, ptr noundef nonnull %29, ptr noundef nonnull %34, ptr noundef %3)
  %35 = getelementptr inbounds i8, ptr %0, i64 3424
  %36 = load ptr, ptr %35, align 8, !tbaa !26
  %37 = load double, ptr %36, align 8, !tbaa !28
  br label %38

38:                                               ; preds = %4, %8, %27, %15
  %.0 = phi double [ %26, %15 ], [ %37, %27 ], [ 0.000000e+00, %8 ], [ 0.000000e+00, %4 ]
  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