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

; 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::mindfstate" = 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_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", double, double, i8, double, i64, i8, %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"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::sparsematrix", i8, i64, i64, i64, double, double, %"struct.alglib_impl::gdemostate", i8, i64, double, double, i64, double, double, double, double, i64, double, double, %"struct.alglib_impl::ssgdstate", %"struct.alglib_impl::rcommstate", i64, i64, i64, i64, double, i64, double, i64, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"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 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::sparsematrix" = 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", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::gdemostate" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", i8, %"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_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", i64, %"struct.alglib_impl::ae_vector", i64, double, double, i64, i64, double, double, i64, double, double, double, double, i8, i64, double, double, i8, double, double, double, i64, %"struct.alglib_impl::ae_vector", double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::hqrndstate", %"struct.alglib_impl::gdemopopulation", %"struct.alglib_impl::gdemopopulation", %"struct.alglib_impl::ae_matrix", i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", i64, i64, double, i64, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::gdemopopulation" = type { i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ssgdstate" = type { i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, double, double, double, double, i64, double, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::hqrndstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, i64, i64, %"struct.alglib_impl::rcommstate", %"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::sparsematrix" }
%"struct.alglib_impl::rcommstate" = type { i32, %"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" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::mindfreport" = type { i64, i64, double, double, double, i64 }
%"struct.alglib_impl::ae_state" = type { i64, double, double, double, ptr, %"struct.alglib_impl::ae_dyn_block", ptr, i32, ptr, i64, ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15mindfresultsbufEPKNS_10mindfstateEPNS_9ae_vectorEPNS_11mindfreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %9 = load ptr, ptr %5, align 8, !tbaa !5
  %10 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %9, i32 0, i32 66
  %11 = load i64, ptr %10, align 8, !tbaa !9
  %12 = load ptr, ptr %7, align 8, !tbaa !5
  %13 = getelementptr inbounds %"struct.alglib_impl::mindfreport", ptr %12, i32 0, i32 0
  store i64 %11, ptr %13, align 8, !tbaa !24
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %14, i32 0, i32 67
  %16 = load i64, ptr %15, align 8, !tbaa !26
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.alglib_impl::mindfreport", ptr %17, i32 0, i32 1
  store i64 %16, ptr %18, align 8, !tbaa !27
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %19, i32 0, i32 65
  %21 = load i64, ptr %20, align 8, !tbaa !28
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.alglib_impl::mindfreport", ptr %22, i32 0, i32 5
  store i64 %21, ptr %23, align 8, !tbaa !29
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %24, i32 0, i32 69
  %26 = load double, ptr %25, align 8, !tbaa !30
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::mindfreport", ptr %27, i32 0, i32 2
  store double %26, ptr %28, align 8, !tbaa !31
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %29, i32 0, i32 71
  %31 = load double, ptr %30, align 8, !tbaa !32
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::mindfreport", ptr %32, i32 0, i32 3
  store double %31, ptr %33, align 8, !tbaa !33
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %34, i32 0, i32 73
  %36 = load double, ptr %35, align 8, !tbaa !34
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::mindfreport", ptr %37, i32 0, i32 4
  store double %36, ptr %38, align 8, !tbaa !35
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %39, i32 0, i32 65
  %41 = load i64, ptr %40, align 8, !tbaa !28
  %42 = icmp sgt i64 %41, 0
  br i1 %42, label %43, label %51

43:                                               ; preds = %4
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %44, i32 0, i32 1
  %46 = load i64, ptr %45, align 8, !tbaa !36
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %47, i32 0, i32 24
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %46, ptr noundef %48, ptr noundef %49, ptr noundef %50)
  br label %60

51:                                               ; preds = %4
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %52, i32 0, i32 1
  %54 = load i64, ptr %53, align 8, !tbaa !36
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %55, i32 0, i32 1
  %57 = load double, ptr %56, align 8, !tbaa !37
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %54, double noundef %57, ptr noundef %58, ptr noundef %59)
  br label %60

60:                                               ; preds = %51, %43
  ret void
}

declare void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

attributes #0 = { 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 #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" }

!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, !11, i64 9320}
!10 = !{!"_ZTSN11alglib_impl10mindfstateE", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 80, !12, i64 144, !12, i64 208, !12, i64 272, !12, i64 336, !15, i64 400, !12, i64 480, !12, i64 544, !11, i64 608, !12, i64 616, !12, i64 680, !11, i64 744, !12, i64 752, !13, i64 816, !12, i64 824, !16, i64 888, !16, i64 896, !13, i64 904, !16, i64 912, !11, i64 920, !13, i64 928, !12, i64 936, !11, i64 1000, !11, i64 1008, !12, i64 1016, !16, i64 1080, !11, i64 1088, !11, i64 1096, !11, i64 1104, !11, i64 1112, !11, i64 1120, !12, i64 1128, !12, i64 1192, !12, i64 1256, !17, i64 1320, !12, i64 1688, !12, i64 1752, !12, i64 1816, !12, i64 1880, !15, i64 1944, !17, i64 2024, !13, i64 2392, !11, i64 2400, !11, i64 2408, !11, i64 2416, !16, i64 2424, !16, i64 2432, !18, i64 2440, !13, i64 6024, !11, i64 6032, !16, i64 6040, !16, i64 6048, !11, i64 6056, !16, i64 6064, !16, i64 6072, !16, i64 6080, !16, i64 6088, !11, i64 6096, !16, i64 6104, !16, i64 6112, !23, i64 6120, !19, i64 9048, !11, i64 9312, !11, i64 9320, !11, i64 9328, !11, i64 9336, !16, i64 9344, !11, i64 9352, !16, i64 9360, !11, i64 9368, !16, i64 9376, !11, i64 9384, !12, i64 9392, !12, i64 9456, !11, i64 9520, !12, i64 9528}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl12sparsematrixE", !12, i64 0, !12, i64 64, !12, i64 128, !12, i64 192, !12, i64 256, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360}
!18 = !{!"_ZTSN11alglib_impl10gdemostateE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 96, !12, i64 104, !12, i64 168, !12, i64 232, !12, i64 296, !12, i64 360, !15, i64 424, !12, i64 504, !12, i64 568, !12, i64 632, !12, i64 696, !12, i64 760, !12, i64 824, !12, i64 888, !12, i64 952, !12, i64 1016, !11, i64 1080, !12, i64 1088, !11, i64 1152, !16, i64 1160, !16, i64 1168, !11, i64 1176, !11, i64 1184, !16, i64 1192, !16, i64 1200, !11, i64 1208, !16, i64 1216, !16, i64 1224, !16, i64 1232, !16, i64 1240, !13, i64 1248, !11, i64 1256, !16, i64 1264, !16, i64 1272, !13, i64 1280, !16, i64 1288, !16, i64 1296, !16, i64 1304, !11, i64 1312, !12, i64 1320, !16, i64 1384, !11, i64 1392, !12, i64 1400, !12, i64 1464, !19, i64 1528, !21, i64 1792, !22, i64 1816, !22, i64 2208, !15, i64 2600, !11, i64 2680, !11, i64 2688, !11, i64 2696, !15, i64 2704, !12, i64 2784, !11, i64 2848, !11, i64 2856, !16, i64 2864, !11, i64 2872, !16, i64 2880, !11, i64 2888, !12, i64 2896, !17, i64 2960, !12, i64 3328, !12, i64 3392, !12, i64 3456, !12, i64 3520}
!19 = !{!"_ZTSN11alglib_impl10rcommstateE", !20, i64 0, !12, i64 8, !12, i64 72, !12, i64 136, !12, i64 200}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTSN11alglib_impl10hqrndstateE", !11, i64 0, !11, i64 8, !11, i64 16}
!22 = !{!"_ZTSN11alglib_impl15gdemopopulationE", !11, i64 0, !15, i64 8, !15, i64 88, !15, i64 168, !15, i64 248, !12, i64 328}
!23 = !{!"_ZTSN11alglib_impl9ssgdstateE", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !12, i64 88, !12, i64 152, !12, i64 216, !12, i64 280, !12, i64 344, !15, i64 408, !12, i64 488, !12, i64 552, !12, i64 616, !12, i64 680, !12, i64 744, !12, i64 808, !12, i64 872, !12, i64 936, !12, i64 1000, !11, i64 1064, !16, i64 1072, !16, i64 1080, !16, i64 1088, !16, i64 1096, !16, i64 1104, !11, i64 1112, !16, i64 1120, !12, i64 1128, !16, i64 1192, !12, i64 1200, !13, i64 1264, !13, i64 1265, !12, i64 1272, !12, i64 1336, !21, i64 1400, !12, i64 1424, !12, i64 1488, !12, i64 1552, !12, i64 1616, !12, i64 1680, !16, i64 1744, !16, i64 1752, !16, i64 1760, !11, i64 1768, !11, i64 1776, !19, i64 1784, !12, i64 2048, !12, i64 2112, !12, i64 2176, !12, i64 2240, !12, i64 2304, !12, i64 2368, !12, i64 2432, !12, i64 2496, !17, i64 2560}
!24 = !{!25, !11, i64 0}
!25 = !{!"_ZTSN11alglib_impl11mindfreportE", !11, i64 0, !11, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !11, i64 40}
!26 = !{!10, !11, i64 9328}
!27 = !{!25, !11, i64 8}
!28 = !{!10, !11, i64 9312}
!29 = !{!25, !11, i64 40}
!30 = !{!10, !16, i64 9344}
!31 = !{!25, !16, i64 16}
!32 = !{!10, !16, i64 9360}
!33 = !{!25, !16, i64 24}
!34 = !{!10, !16, i64 9376}
!35 = !{!25, !16, i64 32}
!36 = !{!10, !11, i64 8}
!37 = !{!38, !16, i64 8}
!38 = !{!"_ZTSN11alglib_impl8ae_stateE", !11, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !6, i64 32, !14, i64 40, !6, i64 72, !39, i64 80, !6, i64 88, !40, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!39 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!40 = !{!"long long", !7, i64 0}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15mindfresultsbufEPKNS_10mindfstateEPNS_9ae_vectorEPNS_11mindfreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %0, i64 9320
  %6 = load <2 x i64>, ptr %5, align 8, !tbaa !5
  store <2 x i64> %6, ptr %2, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 9312
  %8 = load i64, ptr %7, align 8, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %2, i64 40
  store i64 %8, ptr %9, align 8, !tbaa !24
  %10 = getelementptr inbounds i8, ptr %0, i64 9344
  %11 = load double, ptr %10, align 8, !tbaa !26
  %12 = getelementptr inbounds i8, ptr %2, i64 16
  store double %11, ptr %12, align 8, !tbaa !27
  %13 = getelementptr inbounds i8, ptr %0, i64 9360
  %14 = load double, ptr %13, align 8, !tbaa !28
  %15 = getelementptr inbounds i8, ptr %2, i64 24
  store double %14, ptr %15, align 8, !tbaa !29
  %16 = getelementptr inbounds i8, ptr %0, i64 9376
  %17 = load double, ptr %16, align 8, !tbaa !30
  %18 = getelementptr inbounds i8, ptr %2, i64 32
  store double %17, ptr %18, align 8, !tbaa !31
  %19 = icmp sgt i64 %8, 0
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !32
  br i1 %19, label %22, label %24

22:                                               ; preds = %4
  %23 = getelementptr inbounds i8, ptr %0, i64 936
  tail call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %21, ptr noundef nonnull %23, ptr noundef %1, ptr noundef %3)
  br label %27

24:                                               ; preds = %4
  %25 = getelementptr inbounds i8, ptr %3, i64 8
  %26 = load double, ptr %25, align 8, !tbaa !33
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %21, double noundef %26, ptr noundef %1, ptr noundef %3)
  br label %27

27:                                               ; preds = %24, %22
  ret void
}

declare void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { 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 #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" }

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 9312}
!10 = !{!"_ZTSN11alglib_impl10mindfstateE", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 80, !11, i64 144, !11, i64 208, !11, i64 272, !11, i64 336, !15, i64 400, !11, i64 480, !11, i64 544, !6, i64 608, !11, i64 616, !11, i64 680, !6, i64 744, !11, i64 752, !12, i64 816, !11, i64 824, !16, i64 888, !16, i64 896, !12, i64 904, !16, i64 912, !6, i64 920, !12, i64 928, !11, i64 936, !6, i64 1000, !6, i64 1008, !11, i64 1016, !16, i64 1080, !6, i64 1088, !6, i64 1096, !6, i64 1104, !6, i64 1112, !6, i64 1120, !11, i64 1128, !11, i64 1192, !11, i64 1256, !17, i64 1320, !11, i64 1688, !11, i64 1752, !11, i64 1816, !11, i64 1880, !15, i64 1944, !17, i64 2024, !12, i64 2392, !6, i64 2400, !6, i64 2408, !6, i64 2416, !16, i64 2424, !16, i64 2432, !18, i64 2440, !12, i64 6024, !6, i64 6032, !16, i64 6040, !16, i64 6048, !6, i64 6056, !16, i64 6064, !16, i64 6072, !16, i64 6080, !16, i64 6088, !6, i64 6096, !16, i64 6104, !16, i64 6112, !23, i64 6120, !19, i64 9048, !6, i64 9312, !6, i64 9320, !6, i64 9328, !6, i64 9336, !16, i64 9344, !6, i64 9352, !16, i64 9360, !6, i64 9368, !16, i64 9376, !6, i64 9384, !11, i64 9392, !11, i64 9456, !6, i64 9520, !11, i64 9528}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !6, i64 0, !6, i64 8, !12, i64 16, !13, i64 24, !7, i64 56}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !13, i64 40, !7, i64 72}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl12sparsematrixE", !11, i64 0, !11, i64 64, !11, i64 128, !11, i64 192, !11, i64 256, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360}
!18 = !{!"_ZTSN11alglib_impl10gdemostateE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !12, i64 96, !11, i64 104, !11, i64 168, !11, i64 232, !11, i64 296, !11, i64 360, !15, i64 424, !11, i64 504, !11, i64 568, !11, i64 632, !11, i64 696, !11, i64 760, !11, i64 824, !11, i64 888, !11, i64 952, !11, i64 1016, !6, i64 1080, !11, i64 1088, !6, i64 1152, !16, i64 1160, !16, i64 1168, !6, i64 1176, !6, i64 1184, !16, i64 1192, !16, i64 1200, !6, i64 1208, !16, i64 1216, !16, i64 1224, !16, i64 1232, !16, i64 1240, !12, i64 1248, !6, i64 1256, !16, i64 1264, !16, i64 1272, !12, i64 1280, !16, i64 1288, !16, i64 1296, !16, i64 1304, !6, i64 1312, !11, i64 1320, !16, i64 1384, !6, i64 1392, !11, i64 1400, !11, i64 1464, !19, i64 1528, !21, i64 1792, !22, i64 1816, !22, i64 2208, !15, i64 2600, !6, i64 2680, !6, i64 2688, !6, i64 2696, !15, i64 2704, !11, i64 2784, !6, i64 2848, !6, i64 2856, !16, i64 2864, !6, i64 2872, !16, i64 2880, !6, i64 2888, !11, i64 2896, !17, i64 2960, !11, i64 3328, !11, i64 3392, !11, i64 3456, !11, i64 3520}
!19 = !{!"_ZTSN11alglib_impl10rcommstateE", !20, i64 0, !11, i64 8, !11, i64 72, !11, i64 136, !11, i64 200}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTSN11alglib_impl10hqrndstateE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSN11alglib_impl15gdemopopulationE", !6, i64 0, !15, i64 8, !15, i64 88, !15, i64 168, !15, i64 248, !11, i64 328}
!23 = !{!"_ZTSN11alglib_impl9ssgdstateE", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 88, !11, i64 152, !11, i64 216, !11, i64 280, !11, i64 344, !15, i64 408, !11, i64 488, !11, i64 552, !11, i64 616, !11, i64 680, !11, i64 744, !11, i64 808, !11, i64 872, !11, i64 936, !11, i64 1000, !6, i64 1064, !16, i64 1072, !16, i64 1080, !16, i64 1088, !16, i64 1096, !16, i64 1104, !6, i64 1112, !16, i64 1120, !11, i64 1128, !16, i64 1192, !11, i64 1200, !12, i64 1264, !12, i64 1265, !11, i64 1272, !11, i64 1336, !21, i64 1400, !11, i64 1424, !11, i64 1488, !11, i64 1552, !11, i64 1616, !11, i64 1680, !16, i64 1744, !16, i64 1752, !16, i64 1760, !6, i64 1768, !6, i64 1776, !19, i64 1784, !11, i64 2048, !11, i64 2112, !11, i64 2176, !11, i64 2240, !11, i64 2304, !11, i64 2368, !11, i64 2432, !11, i64 2496, !17, i64 2560}
!24 = !{!25, !6, i64 40}
!25 = !{!"_ZTSN11alglib_impl11mindfreportE", !6, i64 0, !6, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !6, i64 40}
!26 = !{!10, !16, i64 9344}
!27 = !{!25, !16, i64 16}
!28 = !{!10, !16, i64 9360}
!29 = !{!25, !16, i64 24}
!30 = !{!10, !16, i64 9376}
!31 = !{!25, !16, i64 32}
!32 = !{!10, !6, i64 8}
!33 = !{!34, !16, i64 8}
!34 = !{!"_ZTSN11alglib_impl8ae_stateE", !6, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !14, i64 32, !13, i64 40, !14, i64 72, !35, i64 80, !14, i64 88, !36, i64 96, !14, i64 104, !14, i64 112, !14, i64 120}
!35 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!36 = !{!"long long", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass