; 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::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::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 }
%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" }

@.str.1468 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1469 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1470 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1471 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1472 = external hidden unnamed_addr constant [35 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: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12mindfsetnlc2EPNS_10mindfstateEPKNS_9ae_vectorES4_lPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i64 %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %12 = load i64, ptr %9, align 8, !tbaa !9
  %13 = icmp sge i64 %12, 0
  %14 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef @.str.1468, ptr noundef %14)
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 0
  %17 = load i64, ptr %16, align 8, !tbaa !11
  %18 = load i64, ptr %9, align 8, !tbaa !9
  %19 = icmp sge i64 %17, %18
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef @.str.1469, ptr noundef %20)
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 0
  %23 = load i64, ptr %22, align 8, !tbaa !11
  %24 = load i64, ptr %9, align 8, !tbaa !9
  %25 = icmp sge i64 %23, %24
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef @.str.1470, ptr noundef %26)
  %27 = load i64, ptr %9, align 8, !tbaa !9
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %28, i32 0, i32 14
  store i64 %27, ptr %29, align 8, !tbaa !15
  %30 = load i64, ptr %9, align 8, !tbaa !9
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %31, i32 0, i32 12
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %30, ptr noundef %32, ptr noundef %33)
  %34 = load i64, ptr %9, align 8, !tbaa !9
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %35, i32 0, i32 13
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %34, ptr noundef %36, ptr noundef %37)
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %38

38:                                               ; preds = %108, %5
  %39 = load i64, ptr %11, align 8, !tbaa !9
  %40 = load i64, ptr %9, align 8, !tbaa !9
  %41 = sub nsw i64 %40, 1
  %42 = icmp sle i64 %39, %41
  br i1 %42, label %43, label %111

43:                                               ; preds = %38
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %46 = load ptr, ptr %45, align 8, !tbaa !26
  %47 = load i64, ptr %11, align 8, !tbaa !9
  %48 = getelementptr inbounds double, ptr %46, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !27
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %49, ptr noundef %50)
  br i1 %51, label %61, label %52

52:                                               ; preds = %43
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !26
  %56 = load i64, ptr %11, align 8, !tbaa !9
  %57 = getelementptr inbounds double, ptr %55, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !27
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %58, ptr noundef %59)
  br label %61

61:                                               ; preds = %52, %43
  %62 = phi i1 [ true, %43 ], [ %60, %52 ]
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %62, ptr noundef @.str.1471, ptr noundef %63)
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %64, i32 0, i32 4
  %66 = load ptr, ptr %65, align 8, !tbaa !26
  %67 = load i64, ptr %11, align 8, !tbaa !9
  %68 = getelementptr inbounds double, ptr %66, i64 %67
  %69 = load double, ptr %68, align 8, !tbaa !27
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %69, ptr noundef %70)
  br i1 %71, label %81, label %72

72:                                               ; preds = %61
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !26
  %76 = load i64, ptr %11, align 8, !tbaa !9
  %77 = getelementptr inbounds double, ptr %75, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !27
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %78, ptr noundef %79)
  br label %81

81:                                               ; preds = %72, %61
  %82 = phi i1 [ true, %61 ], [ %80, %72 ]
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %82, ptr noundef @.str.1472, ptr noundef %83)
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !26
  %87 = load i64, ptr %11, align 8, !tbaa !9
  %88 = getelementptr inbounds double, ptr %86, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !27
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %90, i32 0, i32 12
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %91, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !26
  %94 = load i64, ptr %11, align 8, !tbaa !9
  %95 = getelementptr inbounds double, ptr %93, i64 %94
  store double %89, ptr %95, align 8, !tbaa !27
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %96, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !26
  %99 = load i64, ptr %11, align 8, !tbaa !9
  %100 = getelementptr inbounds double, ptr %98, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !27
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %102, i32 0, i32 13
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %103, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !26
  %106 = load i64, ptr %11, align 8, !tbaa !9
  %107 = getelementptr inbounds double, ptr %105, i64 %106
  store double %101, ptr %107, align 8, !tbaa !27
  br label %108

108:                                              ; preds = %81
  %109 = load i64, ptr %11, align 8, !tbaa !9
  %110 = add nsw i64 %109, 1
  store i64 %110, ptr %11, align 8, !tbaa !9
  br label %38, !llvm.loop !28

111:                                              ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  ret void
}

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

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

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

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

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 = { 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 #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, 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 = !{!16, !10, i64 744}
!16 = !{!"_ZTSN11alglib_impl10mindfstateE", !10, i64 0, !10, i64 8, !12, i64 16, !12, i64 80, !12, i64 144, !12, i64 208, !12, i64 272, !12, i64 336, !17, i64 400, !12, i64 480, !12, i64 544, !10, i64 608, !12, i64 616, !12, i64 680, !10, i64 744, !12, i64 752, !13, i64 816, !12, i64 824, !18, i64 888, !18, i64 896, !13, i64 904, !18, i64 912, !10, i64 920, !13, i64 928, !12, i64 936, !10, i64 1000, !10, i64 1008, !12, i64 1016, !18, i64 1080, !10, i64 1088, !10, i64 1096, !10, i64 1104, !10, i64 1112, !10, i64 1120, !12, i64 1128, !12, i64 1192, !12, i64 1256, !19, i64 1320, !12, i64 1688, !12, i64 1752, !12, i64 1816, !12, i64 1880, !17, i64 1944, !19, i64 2024, !13, i64 2392, !10, i64 2400, !10, i64 2408, !10, i64 2416, !18, i64 2424, !18, i64 2432, !20, i64 2440, !13, i64 6024, !10, i64 6032, !18, i64 6040, !18, i64 6048, !10, i64 6056, !18, i64 6064, !18, i64 6072, !18, i64 6080, !18, i64 6088, !10, i64 6096, !18, i64 6104, !18, i64 6112, !25, i64 6120, !21, i64 9048, !10, i64 9312, !10, i64 9320, !10, i64 9328, !10, i64 9336, !18, i64 9344, !10, i64 9352, !18, i64 9360, !10, i64 9368, !18, i64 9376, !10, i64 9384, !12, i64 9392, !12, i64 9456, !10, i64 9520, !12, i64 9528}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!18 = !{!"double", !7, i64 0}
!19 = !{!"_ZTSN11alglib_impl12sparsematrixE", !12, i64 0, !12, i64 64, !12, i64 128, !12, i64 192, !12, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!20 = !{!"_ZTSN11alglib_impl10gdemostateE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !13, i64 96, !12, i64 104, !12, i64 168, !12, i64 232, !12, i64 296, !12, i64 360, !17, 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, !10, i64 1080, !12, i64 1088, !10, i64 1152, !18, i64 1160, !18, i64 1168, !10, i64 1176, !10, i64 1184, !18, i64 1192, !18, i64 1200, !10, i64 1208, !18, i64 1216, !18, i64 1224, !18, i64 1232, !18, i64 1240, !13, i64 1248, !10, i64 1256, !18, i64 1264, !18, i64 1272, !13, i64 1280, !18, i64 1288, !18, i64 1296, !18, i64 1304, !10, i64 1312, !12, i64 1320, !18, i64 1384, !10, i64 1392, !12, i64 1400, !12, i64 1464, !21, i64 1528, !23, i64 1792, !24, i64 1816, !24, i64 2208, !17, i64 2600, !10, i64 2680, !10, i64 2688, !10, i64 2696, !17, i64 2704, !12, i64 2784, !10, i64 2848, !10, i64 2856, !18, i64 2864, !10, i64 2872, !18, i64 2880, !10, i64 2888, !12, i64 2896, !19, i64 2960, !12, i64 3328, !12, i64 3392, !12, i64 3456, !12, i64 3520}
!21 = !{!"_ZTSN11alglib_impl10rcommstateE", !22, i64 0, !12, i64 8, !12, i64 72, !12, i64 136, !12, i64 200}
!22 = !{!"int", !7, i64 0}
!23 = !{!"_ZTSN11alglib_impl10hqrndstateE", !10, i64 0, !10, i64 8, !10, i64 16}
!24 = !{!"_ZTSN11alglib_impl15gdemopopulationE", !10, i64 0, !17, i64 8, !17, i64 88, !17, i64 168, !17, i64 248, !12, i64 328}
!25 = !{!"_ZTSN11alglib_impl9ssgdstateE", !10, i64 0, !10, i64 8, !10, i64 16, !12, i64 24, !12, i64 88, !12, i64 152, !12, i64 216, !12, i64 280, !12, i64 344, !17, 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, !10, i64 1064, !18, i64 1072, !18, i64 1080, !18, i64 1088, !18, i64 1096, !18, i64 1104, !10, i64 1112, !18, i64 1120, !12, i64 1128, !18, i64 1192, !12, i64 1200, !13, i64 1264, !13, i64 1265, !12, i64 1272, !12, i64 1336, !23, i64 1400, !12, i64 1424, !12, i64 1488, !12, i64 1552, !12, i64 1616, !12, i64 1680, !18, i64 1744, !18, i64 1752, !18, i64 1760, !10, i64 1768, !10, i64 1776, !21, 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, !19, i64 2560}
!26 = !{!7, !7, i64 0}
!27 = !{!18, !18, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


; 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.1468 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1469 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1470 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1471 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1472 = external hidden unnamed_addr constant [35 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 uwtable
define dso_local void @_ZN11alglib_impl12mindfsetnlc2EPNS_10mindfstateEPKNS_9ae_vectorES4_lPNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, i64 noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = icmp sgt i64 %3, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.1468, ptr noundef %4)
  %7 = load i64, ptr %1, align 8, !tbaa !5
  %8 = icmp sge i64 %7, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.1469, ptr noundef %4)
  %9 = load i64, ptr %2, align 8, !tbaa !5
  %10 = icmp sge i64 %9, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.1470, ptr noundef %4)
  %11 = getelementptr inbounds i8, ptr %0, i64 744
  store i64 %3, ptr %11, align 8, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %0, i64 616
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %3, ptr noundef nonnull %12, ptr noundef %4)
  %13 = getelementptr inbounds i8, ptr %0, i64 680
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %3, ptr noundef nonnull %13, ptr noundef %4)
  %.not.not40 = icmp sgt i64 %3, 0
  br i1 %.not.not40, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5
  %14 = getelementptr inbounds i8, ptr %1, i64 56
  %15 = getelementptr inbounds i8, ptr %2, i64 56
  %16 = getelementptr inbounds i8, ptr %0, i64 672
  %17 = getelementptr inbounds i8, ptr %0, i64 736
  br label %18

18:                                               ; preds = %.lr.ph, %39
  %.041 = phi i64 [ 0, %.lr.ph ], [ %51, %39 ]
  %19 = load ptr, ptr %14, align 8, !tbaa !24
  %20 = getelementptr inbounds double, ptr %19, i64 %.041
  %21 = load double, ptr %20, align 8, !tbaa !25
  %22 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %21, ptr noundef %4)
  br i1 %22, label %28, label %23

23:                                               ; preds = %18
  %24 = load ptr, ptr %14, align 8, !tbaa !24
  %25 = getelementptr inbounds double, ptr %24, i64 %.041
  %26 = load double, ptr %25, align 8, !tbaa !25
  %27 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %26, ptr noundef %4)
  br label %28

28:                                               ; preds = %23, %18
  %29 = phi i1 [ true, %18 ], [ %27, %23 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef nonnull @.str.1471, ptr noundef %4)
  %30 = load ptr, ptr %15, align 8, !tbaa !24
  %31 = getelementptr inbounds double, ptr %30, i64 %.041
  %32 = load double, ptr %31, align 8, !tbaa !25
  %33 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %32, ptr noundef %4)
  br i1 %33, label %39, label %34

34:                                               ; preds = %28
  %35 = load ptr, ptr %15, align 8, !tbaa !24
  %36 = getelementptr inbounds double, ptr %35, i64 %.041
  %37 = load double, ptr %36, align 8, !tbaa !25
  %38 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %37, ptr noundef %4)
  br label %39

39:                                               ; preds = %34, %28
  %40 = phi i1 [ true, %28 ], [ %38, %34 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef nonnull @.str.1472, ptr noundef %4)
  %41 = load ptr, ptr %14, align 8, !tbaa !24
  %42 = getelementptr inbounds double, ptr %41, i64 %.041
  %43 = load double, ptr %42, align 8, !tbaa !25
  %44 = load ptr, ptr %16, align 8, !tbaa !24
  %45 = getelementptr inbounds double, ptr %44, i64 %.041
  store double %43, ptr %45, align 8, !tbaa !25
  %46 = load ptr, ptr %15, align 8, !tbaa !24
  %47 = getelementptr inbounds double, ptr %46, i64 %.041
  %48 = load double, ptr %47, align 8, !tbaa !25
  %49 = load ptr, ptr %17, align 8, !tbaa !24
  %50 = getelementptr inbounds double, ptr %49, i64 %.041
  store double %48, ptr %50, align 8, !tbaa !25
  %51 = add nuw nsw i64 %.041, 1
  %exitcond.not = icmp eq i64 %51, %3
  br i1 %exitcond.not, label %._crit_edge, label %18, !llvm.loop !26

._crit_edge:                                      ; preds = %39, %5
  ret void
}

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

declare void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass