; LLVM IR from venumb/ZSPACE :: cpp/depends/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::minbleicstate" = type { i64, i64, double, double, double, i64, i8, i8, double, double, %"struct.alglib_impl::sactiveset", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, i8, i8, i8, %"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", double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, i64, double, double, double, %"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, double, double, double, double, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::snnlssolver", double, double, double, double, double, double, double, double, double, i64, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::linminstate", double, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sactiveset" = type { i64, i64, %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::ae_vector", i64, i64, i8, 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_matrix", 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::snnlssolver", %"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_matrix", %"struct.alglib_impl::ae_matrix", %"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::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::snnlssolver" = type { i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"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", %"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::linminstate" = type { i8, i8, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"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::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", i64, %"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, i8, i8, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"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::ae_matrix", %"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", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }

@.str.273 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [43 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_impl16minbleicsetscaleEPNS_13minbleicstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %8 = load ptr, ptr %5, align 8, !tbaa !5
  %9 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 0
  %10 = load i64, ptr %9, align 8, !tbaa !9
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %11, i32 0, i32 0
  %13 = load i64, ptr %12, align 8, !tbaa !14
  %14 = icmp sge i64 %10, %13
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef @.str.273, ptr noundef %15)
  store i64 0, ptr %7, align 8, !tbaa !27
  br label %16

16:                                               ; preds = %55, %3
  %17 = load i64, ptr %7, align 8, !tbaa !27
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %18, i32 0, i32 0
  %20 = load i64, ptr %19, align 8, !tbaa !14
  %21 = sub nsw i64 %20, 1
  %22 = icmp sle i64 %17, %21
  br i1 %22, label %23, label %58

23:                                               ; preds = %16
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %26 = load ptr, ptr %25, align 8, !tbaa !28
  %27 = load i64, ptr %7, align 8, !tbaa !27
  %28 = getelementptr inbounds double, ptr %26, i64 %27
  %29 = load double, ptr %28, align 8, !tbaa !29
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %29, ptr noundef %30)
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef @.str.274, ptr noundef %32)
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %35 = load ptr, ptr %34, align 8, !tbaa !28
  %36 = load i64, ptr %7, align 8, !tbaa !27
  %37 = getelementptr inbounds double, ptr %35, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !29
  %39 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %38, double noundef 0.000000e+00)
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef @.str.275, ptr noundef %40)
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %43 = load ptr, ptr %42, align 8, !tbaa !28
  %44 = load i64, ptr %7, align 8, !tbaa !27
  %45 = getelementptr inbounds double, ptr %43, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !29
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %46, ptr noundef %47)
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %49, i32 0, i32 11
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %50, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !28
  %53 = load i64, ptr %7, align 8, !tbaa !27
  %54 = getelementptr inbounds double, ptr %52, i64 %53
  store double %48, ptr %54, align 8, !tbaa !29
  br label %55

55:                                               ; preds = %23
  %56 = load i64, ptr %7, align 8, !tbaa !27
  %57 = add nsw i64 %56, 1
  store i64 %57, ptr %7, align 8, !tbaa !27
  br label %16, !llvm.loop !30

58:                                               ; preds = %16
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %59, i32 0, i32 10
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl11sassetscaleEPNS_10sactivesetEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %60, ptr noundef %61, ptr noundef %62)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

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

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #1

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11sassetscaleEPNS_10sactivesetEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #2

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, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !12, i64 16, !13, i64 24, !7, i64 56}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!15, !11, i64 0}
!15 = !{!"_ZTSN11alglib_impl13minbleicstateE", !11, i64 0, !11, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !11, i64 40, !12, i64 48, !12, i64 49, !16, i64 56, !16, i64 64, !17, i64 72, !10, i64 4416, !11, i64 4480, !10, i64 4488, !10, i64 4552, !16, i64 4616, !10, i64 4624, !12, i64 4688, !12, i64 4689, !12, i64 4690, !12, i64 4691, !12, i64 4692, !12, i64 4693, !12, i64 4694, !20, i64 4696, !10, i64 4960, !10, i64 5024, !10, i64 5088, !10, i64 5152, !10, i64 5216, !10, i64 5280, !16, i64 5344, !16, i64 5352, !16, i64 5360, !10, i64 5368, !18, i64 5432, !11, i64 5512, !11, i64 5520, !16, i64 5528, !16, i64 5536, !16, i64 5544, !10, i64 5552, !10, i64 5616, !10, i64 5680, !10, i64 5744, !11, i64 5808, !11, i64 5816, !11, i64 5824, !11, i64 5832, !11, i64 5840, !16, i64 5848, !16, i64 5856, !16, i64 5864, !16, i64 5872, !11, i64 5880, !11, i64 5888, !10, i64 5896, !19, i64 5960, !16, i64 7600, !16, i64 7608, !16, i64 7616, !16, i64 7624, !16, i64 7632, !16, i64 7640, !16, i64 7648, !16, i64 7656, !16, i64 7664, !11, i64 7672, !16, i64 7680, !10, i64 7688, !10, i64 7752, !11, i64 7816, !11, i64 7824, !16, i64 7832, !16, i64 7840, !16, i64 7848, !10, i64 7856, !22, i64 7920, !16, i64 8112, !11, i64 8120, !18, i64 8128, !18, i64 8208, !10, i64 8288, !10, i64 8352, !11, i64 8416, !16, i64 8424, !11, i64 8432, !23, i64 8440, !10, i64 12408, !10, i64 12472}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl10sactivesetE", !11, i64 0, !11, i64 8, !10, i64 16, !12, i64 80, !10, i64 88, !10, i64 152, !10, i64 216, !12, i64 280, !18, i64 288, !18, i64 368, !18, i64 448, !11, i64 528, !10, i64 536, !11, i64 600, !11, i64 608, !12, i64 616, !12, i64 617, !10, i64 624, !10, i64 688, !10, i64 752, !10, i64 816, !18, i64 880, !11, i64 960, !11, i64 968, !10, i64 976, !10, i64 1040, !10, i64 1104, !10, i64 1168, !10, i64 1232, !10, i64 1296, !19, i64 1360, !10, i64 3000, !10, i64 3064, !10, i64 3128, !18, i64 3192, !10, i64 3272, !10, i64 3336, !10, i64 3400, !18, i64 3464, !18, i64 3544, !10, i64 3624, !10, i64 3688, !10, i64 3752, !18, i64 3816, !10, i64 3896, !10, i64 3960, !10, i64 4024, !10, i64 4088, !10, i64 4152, !10, i64 4216, !10, i64 4280}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 40, !7, i64 72}
!19 = !{!"_ZTSN11alglib_impl11snnlssolverE", !11, i64 0, !11, i64 8, !11, i64 16, !18, i64 24, !10, i64 104, !10, i64 168, !16, i64 232, !11, i64 240, !10, i64 248, !10, i64 312, !18, i64 376, !18, i64 456, !18, i64 536, !10, i64 616, !10, i64 680, !10, i64 744, !10, i64 808, !10, i64 872, !10, i64 936, !10, i64 1000, !10, i64 1064, !10, i64 1128, !10, i64 1192, !10, i64 1256, !10, i64 1320, !10, i64 1384, !10, i64 1448, !10, i64 1512, !10, i64 1576}
!20 = !{!"_ZTSN11alglib_impl10rcommstateE", !21, i64 0, !10, i64 8, !10, i64 72, !10, i64 136, !10, i64 200}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSN11alglib_impl11linminstateE", !12, i64 0, !12, i64 1, !11, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !16, i64 184}
!23 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !11, i64 0, !11, i64 8, !12, i64 16, !10, i64 24, !11, i64 88, !10, i64 96, !10, i64 160, !10, i64 224, !18, i64 288, !10, i64 368, !10, i64 432, !11, i64 496, !12, i64 504, !12, i64 505, !16, i64 512, !16, i64 520, !12, i64 528, !24, i64 536, !16, i64 832, !16, i64 840, !25, i64 848, !25, i64 1152, !16, i64 1456, !16, i64 1464, !26, i64 1472, !26, i64 1784, !12, i64 2096, !10, i64 2104, !10, i64 2168, !18, i64 2232, !20, i64 2312, !10, i64 2576, !10, i64 2640, !10, i64 2704, !10, i64 2768, !10, i64 2832, !10, i64 2896, !10, i64 2960, !10, i64 3024, !18, i64 3088, !18, i64 3168, !10, i64 3248, !10, i64 3312, !10, i64 3376, !10, i64 3440, !10, i64 3504, !10, i64 3568, !10, i64 3632, !10, i64 3696, !10, i64 3760, !10, i64 3824, !18, i64 3888}
!24 = !{!"_ZTSN11alglib_impl14optguardreportE", !12, i64 0, !12, i64 1, !11, i64 8, !16, i64 16, !12, i64 24, !12, i64 25, !12, i64 26, !11, i64 32, !16, i64 40, !12, i64 48, !11, i64 56, !11, i64 64, !10, i64 72, !18, i64 136, !18, i64 216}
!25 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !12, i64 0, !11, i64 8, !10, i64 16, !10, i64 80, !11, i64 144, !10, i64 152, !10, i64 216, !11, i64 280, !11, i64 288, !11, i64 296}
!26 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !12, i64 0, !11, i64 8, !11, i64 16, !10, i64 24, !10, i64 88, !11, i64 152, !10, i64 160, !10, i64 224, !11, i64 288, !11, i64 296, !11, i64 304}
!27 = !{!11, !11, i64 0}
!28 = !{!7, !7, i64 0}
!29 = !{!16, !16, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"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.273 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [43 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_impl16minbleicsetscaleEPNS_13minbleicstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = load i64, ptr %1, align 8, !tbaa !5
  %5 = load i64, ptr %0, align 8, !tbaa !13
  %6 = icmp sge i64 %4, %5
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.273, ptr noundef %2)
  %7 = load i64, ptr %0, align 8, !tbaa !13
  %.not.not20 = icmp sgt i64 %7, 0
  br i1 %.not.not20, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %8 = getelementptr inbounds i8, ptr %1, i64 56
  %9 = getelementptr inbounds i8, ptr %0, i64 4472
  br label %10

10:                                               ; preds = %.lr.ph, %10
  %.021 = phi i64 [ 0, %.lr.ph ], [ %25, %10 ]
  %11 = load ptr, ptr %8, align 8, !tbaa !26
  %12 = getelementptr inbounds double, ptr %11, i64 %.021
  %13 = load double, ptr %12, align 8, !tbaa !27
  %14 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %13, ptr noundef %2)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.274, ptr noundef %2)
  %15 = load ptr, ptr %8, align 8, !tbaa !26
  %16 = getelementptr inbounds double, ptr %15, i64 %.021
  %17 = load double, ptr %16, align 8, !tbaa !27
  %18 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %17, double noundef 0.000000e+00)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.275, ptr noundef %2)
  %19 = load ptr, ptr %8, align 8, !tbaa !26
  %20 = getelementptr inbounds double, ptr %19, i64 %.021
  %21 = load double, ptr %20, align 8, !tbaa !27
  %22 = tail call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %21, ptr noundef %2)
  %23 = load ptr, ptr %9, align 8, !tbaa !26
  %24 = getelementptr inbounds double, ptr %23, i64 %.021
  store double %22, ptr %24, align 8, !tbaa !27
  %25 = add nuw nsw i64 %.021, 1
  %26 = load i64, ptr %0, align 8, !tbaa !13
  %.not.not = icmp slt i64 %25, %26
  br i1 %.not.not, label %10, label %._crit_edge, !llvm.loop !28

._crit_edge:                                      ; preds = %10, %3
  %27 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZN11alglib_impl11sassetscaleEPNS_10sactivesetEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %27, ptr noundef nonnull %1, ptr noundef %2)
  ret void
}

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

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

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11sassetscaleEPNS_10sactivesetEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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 0}
!14 = !{!"_ZTSN11alglib_impl13minbleicstateE", !7, i64 0, !7, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !7, i64 40, !10, i64 48, !10, i64 49, !15, i64 56, !15, i64 64, !16, i64 72, !6, i64 4416, !7, i64 4480, !6, i64 4488, !6, i64 4552, !15, i64 4616, !6, i64 4624, !10, i64 4688, !10, i64 4689, !10, i64 4690, !10, i64 4691, !10, i64 4692, !10, i64 4693, !10, i64 4694, !19, i64 4696, !6, i64 4960, !6, i64 5024, !6, i64 5088, !6, i64 5152, !6, i64 5216, !6, i64 5280, !15, i64 5344, !15, i64 5352, !15, i64 5360, !6, i64 5368, !17, i64 5432, !7, i64 5512, !7, i64 5520, !15, i64 5528, !15, i64 5536, !15, i64 5544, !6, i64 5552, !6, i64 5616, !6, i64 5680, !6, i64 5744, !7, i64 5808, !7, i64 5816, !7, i64 5824, !7, i64 5832, !7, i64 5840, !15, i64 5848, !15, i64 5856, !15, i64 5864, !15, i64 5872, !7, i64 5880, !7, i64 5888, !6, i64 5896, !18, i64 5960, !15, i64 7600, !15, i64 7608, !15, i64 7616, !15, i64 7624, !15, i64 7632, !15, i64 7640, !15, i64 7648, !15, i64 7656, !15, i64 7664, !7, i64 7672, !15, i64 7680, !6, i64 7688, !6, i64 7752, !7, i64 7816, !7, i64 7824, !15, i64 7832, !15, i64 7840, !15, i64 7848, !6, i64 7856, !21, i64 7920, !15, i64 8112, !7, i64 8120, !17, i64 8128, !17, i64 8208, !6, i64 8288, !6, i64 8352, !7, i64 8416, !15, i64 8424, !7, i64 8432, !22, i64 8440, !6, i64 12408, !6, i64 12472}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl10sactivesetE", !7, i64 0, !7, i64 8, !6, i64 16, !10, i64 80, !6, i64 88, !6, i64 152, !6, i64 216, !10, i64 280, !17, i64 288, !17, i64 368, !17, i64 448, !7, i64 528, !6, i64 536, !7, i64 600, !7, i64 608, !10, i64 616, !10, i64 617, !6, i64 624, !6, i64 688, !6, i64 752, !6, i64 816, !17, i64 880, !7, i64 960, !7, i64 968, !6, i64 976, !6, i64 1040, !6, i64 1104, !6, i64 1168, !6, i64 1232, !6, i64 1296, !18, i64 1360, !6, i64 3000, !6, i64 3064, !6, i64 3128, !17, i64 3192, !6, i64 3272, !6, i64 3336, !6, i64 3400, !17, i64 3464, !17, i64 3544, !6, i64 3624, !6, i64 3688, !6, i64 3752, !17, i64 3816, !6, i64 3896, !6, i64 3960, !6, i64 4024, !6, i64 4088, !6, i64 4152, !6, i64 4216, !6, i64 4280}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!18 = !{!"_ZTSN11alglib_impl11snnlssolverE", !7, i64 0, !7, i64 8, !7, i64 16, !17, i64 24, !6, i64 104, !6, i64 168, !15, i64 232, !7, i64 240, !6, i64 248, !6, i64 312, !17, i64 376, !17, i64 456, !17, i64 536, !6, i64 616, !6, i64 680, !6, i64 744, !6, i64 808, !6, i64 872, !6, i64 936, !6, i64 1000, !6, i64 1064, !6, i64 1128, !6, i64 1192, !6, i64 1256, !6, i64 1320, !6, i64 1384, !6, i64 1448, !6, i64 1512, !6, i64 1576}
!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_impl11linminstateE", !10, i64 0, !10, i64 1, !7, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184}
!22 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !7, i64 0, !7, i64 8, !10, i64 16, !6, i64 24, !7, i64 88, !6, i64 96, !6, i64 160, !6, i64 224, !17, i64 288, !6, i64 368, !6, i64 432, !7, i64 496, !10, i64 504, !10, i64 505, !15, i64 512, !15, i64 520, !10, i64 528, !23, i64 536, !15, i64 832, !15, i64 840, !24, i64 848, !24, i64 1152, !15, i64 1456, !15, i64 1464, !25, i64 1472, !25, i64 1784, !10, i64 2096, !6, i64 2104, !6, i64 2168, !17, i64 2232, !19, i64 2312, !6, i64 2576, !6, i64 2640, !6, i64 2704, !6, i64 2768, !6, i64 2832, !6, i64 2896, !6, i64 2960, !6, i64 3024, !17, i64 3088, !17, i64 3168, !6, i64 3248, !6, i64 3312, !6, i64 3376, !6, i64 3440, !6, i64 3504, !6, i64 3568, !6, i64 3632, !6, i64 3696, !6, i64 3760, !6, i64 3824, !17, i64 3888}
!23 = !{!"_ZTSN11alglib_impl14optguardreportE", !10, i64 0, !10, i64 1, !7, i64 8, !15, i64 16, !10, i64 24, !10, i64 25, !10, i64 26, !7, i64 32, !15, i64 40, !10, i64 48, !7, i64 56, !7, i64 64, !6, i64 72, !17, i64 136, !17, i64 216}
!24 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !10, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !7, i64 144, !6, i64 152, !6, i64 216, !7, i64 280, !7, i64 288, !7, i64 296}
!25 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !10, i64 0, !7, i64 8, !7, i64 16, !6, i64 24, !6, i64 88, !7, i64 152, !6, i64 160, !6, i64 224, !7, i64 288, !7, i64 296, !7, i64 304}
!26 = !{!8, !8, i64 0}
!27 = !{!15, !15, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


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