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

@.str.1460 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1461 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1462 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1463 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.1464 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1465 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1466 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1467 = external hidden unnamed_addr constant [42 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_impl16mindfsetlc2denseEPNS_10mindfstateEPKNS_9ae_matrixEPKNS_9ae_vectorES7_lPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %16, i32 0, i32 1
  %18 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %18, ptr %13, align 8, !tbaa !9
  %19 = load i64, ptr %11, align 8, !tbaa !9
  %20 = icmp sge i64 %19, 0
  %21 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef @.str.1460, ptr noundef %21)
  %22 = load i64, ptr %11, align 8, !tbaa !9
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %30, label %24

24:                                               ; preds = %6
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 1
  %27 = load i64, ptr %26, align 8, !tbaa !25
  %28 = load i64, ptr %13, align 8, !tbaa !9
  %29 = icmp sge i64 %27, %28
  br label %30

30:                                               ; preds = %24, %6
  %31 = phi i1 [ true, %6 ], [ %29, %24 ]
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef @.str.1461, ptr noundef %32)
  %33 = load i64, ptr %11, align 8, !tbaa !9
  %34 = icmp eq i64 %33, 0
  br i1 %34, label %41, label %35

35:                                               ; preds = %30
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %36, i32 0, i32 0
  %38 = load i64, ptr %37, align 8, !tbaa !26
  %39 = load i64, ptr %11, align 8, !tbaa !9
  %40 = icmp sge i64 %38, %39
  br label %41

41:                                               ; preds = %35, %30
  %42 = phi i1 [ true, %30 ], [ %40, %35 ]
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.1462, ptr noundef %43)
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = load i64, ptr %11, align 8, !tbaa !9
  %46 = load i64, ptr %13, align 8, !tbaa !9
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %44, i64 noundef %45, i64 noundef %46, ptr noundef %47)
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.1463, ptr noundef %49)
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %50, i32 0, i32 0
  %52 = load i64, ptr %51, align 8, !tbaa !27
  %53 = load i64, ptr %11, align 8, !tbaa !9
  %54 = icmp sge i64 %52, %53
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %54, ptr noundef @.str.1464, ptr noundef %55)
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %56, i32 0, i32 0
  %58 = load i64, ptr %57, align 8, !tbaa !27
  %59 = load i64, ptr %11, align 8, !tbaa !9
  %60 = icmp sge i64 %58, %59
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %60, ptr noundef @.str.1465, ptr noundef %61)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %62

62:                                               ; preds = %108, %41
  %63 = load i64, ptr %14, align 8, !tbaa !9
  %64 = load i64, ptr %11, align 8, !tbaa !9
  %65 = sub nsw i64 %64, 1
  %66 = icmp sle i64 %63, %65
  br i1 %66, label %67, label %111

67:                                               ; preds = %62
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %68, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !28
  %71 = load i64, ptr %14, align 8, !tbaa !9
  %72 = getelementptr inbounds double, ptr %70, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !29
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %73, ptr noundef %74)
  br i1 %75, label %85, label %76

76:                                               ; preds = %67
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %77, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !28
  %80 = load i64, ptr %14, align 8, !tbaa !9
  %81 = getelementptr inbounds double, ptr %79, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !29
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %82, ptr noundef %83)
  br label %85

85:                                               ; preds = %76, %67
  %86 = phi i1 [ true, %67 ], [ %84, %76 ]
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %86, ptr noundef @.str.1466, ptr noundef %87)
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !28
  %91 = load i64, ptr %14, align 8, !tbaa !9
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !29
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %93, ptr noundef %94)
  br i1 %95, label %105, label %96

96:                                               ; preds = %85
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %97, i32 0, i32 4
  %99 = load ptr, ptr %98, align 8, !tbaa !28
  %100 = load i64, ptr %14, align 8, !tbaa !9
  %101 = getelementptr inbounds double, ptr %99, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !29
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %102, ptr noundef %103)
  br label %105

105:                                              ; preds = %96, %85
  %106 = phi i1 [ true, %85 ], [ %104, %96 ]
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %106, ptr noundef @.str.1467, ptr noundef %107)
  br label %108

108:                                              ; preds = %105
  %109 = load i64, ptr %14, align 8, !tbaa !9
  %110 = add nsw i64 %109, 1
  store i64 %110, ptr %14, align 8, !tbaa !9
  br label %62, !llvm.loop !30

111:                                              ; preds = %62
  %112 = load i64, ptr %11, align 8, !tbaa !9
  %113 = icmp eq i64 %112, 0
  br i1 %113, label %114, label %117

114:                                              ; preds = %111
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %115, i32 0, i32 11
  store i64 0, ptr %116, align 8, !tbaa !32
  store i32 1, ptr %15, align 4
  br label %137

117:                                              ; preds = %111
  %118 = load i64, ptr %11, align 8, !tbaa !9
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %120, i32 0, i32 9
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %118, ptr noundef %119, ptr noundef %121, ptr noundef %122)
  %123 = load i64, ptr %11, align 8, !tbaa !9
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %125, i32 0, i32 10
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %123, ptr noundef %124, ptr noundef %126, ptr noundef %127)
  %128 = load i64, ptr %11, align 8, !tbaa !9
  %129 = load i64, ptr %13, align 8, !tbaa !9
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %131, i32 0, i32 8
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocmEllPKNS_9ae_matrixEPS0_PNS_8ae_stateE(i64 noundef %128, i64 noundef %129, ptr noundef %130, ptr noundef %132, ptr noundef %133)
  %134 = load i64, ptr %11, align 8, !tbaa !9
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %135, i32 0, i32 11
  store i64 %134, ptr %136, align 8, !tbaa !32
  store i32 0, ptr %15, align 4
  br label %137

137:                                              ; preds = %117, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  %138 = load i32, ptr %15, align 4
  switch i32 %138, label %140 [
    i32 0, label %139
    i32 1, label %139
  ]

139:                                              ; preds = %137, %137
  ret void

140:                                              ; preds = %137
  unreachable
}

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

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

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

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


; 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.1460 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1461 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1462 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1463 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.1464 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1465 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1466 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1467 = external hidden unnamed_addr constant [42 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_impl16mindfsetlc2denseEPNS_10mindfstateEPKNS_9ae_matrixEPKNS_9ae_vectorES7_lPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %9 = icmp sgt i64 %4, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.1460, ptr noundef %5)
  %10 = icmp eq i64 %4, 0
  br i1 %10, label %.critedge, label %11

11:                                               ; preds = %6
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load i64, ptr %12, align 8, !tbaa !23
  %14 = icmp sge i64 %13, %8
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.1461, ptr noundef %5)
  %15 = load i64, ptr %1, align 8, !tbaa !24
  %16 = icmp sge i64 %15, %4
  br label %17

.critedge:                                        ; preds = %6
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext true, ptr noundef nonnull @.str.1461, ptr noundef %5)
  br label %17

17:                                               ; preds = %.critedge, %11
  %18 = phi i1 [ %16, %11 ], [ true, %.critedge ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.1462, ptr noundef %5)
  %19 = tail call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %1, i64 noundef %4, i64 noundef %8, ptr noundef %5)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.1463, ptr noundef %5)
  %20 = load i64, ptr %2, align 8, !tbaa !25
  %21 = icmp sge i64 %20, %4
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.1464, ptr noundef %5)
  %22 = load i64, ptr %3, align 8, !tbaa !25
  %23 = icmp sge i64 %22, %4
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef nonnull @.str.1465, ptr noundef %5)
  %.not.not56 = icmp sgt i64 %4, 0
  br i1 %.not.not56, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %17
  %24 = getelementptr inbounds i8, ptr %2, i64 56
  %25 = getelementptr inbounds i8, ptr %3, i64 56
  br label %26

26:                                               ; preds = %.lr.ph, %47
  %.057 = phi i64 [ 0, %.lr.ph ], [ %49, %47 ]
  %27 = load ptr, ptr %24, align 8, !tbaa !26
  %28 = getelementptr inbounds double, ptr %27, i64 %.057
  %29 = load double, ptr %28, align 8, !tbaa !27
  %30 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %29, ptr noundef %5)
  br i1 %30, label %36, label %31

31:                                               ; preds = %26
  %32 = load ptr, ptr %24, align 8, !tbaa !26
  %33 = getelementptr inbounds double, ptr %32, i64 %.057
  %34 = load double, ptr %33, align 8, !tbaa !27
  %35 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %34, ptr noundef %5)
  br label %36

36:                                               ; preds = %31, %26
  %37 = phi i1 [ true, %26 ], [ %35, %31 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %37, ptr noundef nonnull @.str.1466, ptr noundef %5)
  %38 = load ptr, ptr %25, align 8, !tbaa !26
  %39 = getelementptr inbounds double, ptr %38, i64 %.057
  %40 = load double, ptr %39, align 8, !tbaa !27
  %41 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %40, ptr noundef %5)
  br i1 %41, label %47, label %42

42:                                               ; preds = %36
  %43 = load ptr, ptr %25, align 8, !tbaa !26
  %44 = getelementptr inbounds double, ptr %43, i64 %.057
  %45 = load double, ptr %44, align 8, !tbaa !27
  %46 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %45, ptr noundef %5)
  br label %47

47:                                               ; preds = %42, %36
  %48 = phi i1 [ true, %36 ], [ %46, %42 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef nonnull @.str.1467, ptr noundef %5)
  %49 = add nuw nsw i64 %.057, 1
  %exitcond.not = icmp eq i64 %49, %4
  br i1 %exitcond.not, label %._crit_edge.thread, label %26, !llvm.loop !28

._crit_edge:                                      ; preds = %17
  br i1 %10, label %53, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %47, %._crit_edge
  %50 = getelementptr inbounds i8, ptr %0, i64 480
  tail call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %4, ptr noundef nonnull %2, ptr noundef nonnull %50, ptr noundef %5)
  %51 = getelementptr inbounds i8, ptr %0, i64 544
  tail call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %4, ptr noundef nonnull %3, ptr noundef nonnull %51, ptr noundef %5)
  %52 = getelementptr inbounds i8, ptr %0, i64 400
  tail call void @_ZN11alglib_impl11rcopyallocmEllPKNS_9ae_matrixEPS0_PNS_8ae_stateE(i64 noundef %4, i64 noundef %8, ptr noundef %1, ptr noundef nonnull %52, ptr noundef %5)
  br label %53

53:                                               ; preds = %._crit_edge, %._crit_edge.thread
  %54 = getelementptr inbounds i8, ptr %0, i64 608
  store i64 %4, ptr %54, align 8
  ret void
}

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

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

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

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


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