; 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::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 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%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 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.257 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.260 = external hidden unnamed_addr constant [41 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_impl13minbleicsetbcEPNS_13minbleicstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %11 = load ptr, ptr %5, 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 !9
  store i64 %13, ptr %10, align 8, !tbaa !26
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 0
  %16 = load i64, ptr %15, align 8, !tbaa !27
  %17 = load i64, ptr %10, align 8, !tbaa !26
  %18 = icmp sge i64 %16, %17
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef @.str.257, ptr noundef %19)
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %22 = load i64, ptr %21, align 8, !tbaa !27
  %23 = load i64, ptr %10, align 8, !tbaa !26
  %24 = icmp sge i64 %22, %23
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef @.str.258, ptr noundef %25)
  store i64 0, ptr %9, align 8, !tbaa !26
  br label %26

26:                                               ; preds = %126, %4
  %27 = load i64, ptr %9, align 8, !tbaa !26
  %28 = load i64, ptr %10, align 8, !tbaa !26
  %29 = sub nsw i64 %28, 1
  %30 = icmp sle i64 %27, %29
  br i1 %30, label %31, label %129

31:                                               ; preds = %26
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %34 = load ptr, ptr %33, align 8, !tbaa !28
  %35 = load i64, ptr %9, align 8, !tbaa !26
  %36 = getelementptr inbounds double, ptr %34, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !29
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %37, ptr noundef %38)
  br i1 %39, label %49, label %40

40:                                               ; preds = %31
  %41 = load ptr, ptr %6, 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 %9, align 8, !tbaa !26
  %45 = getelementptr inbounds double, ptr %43, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !29
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %46, ptr noundef %47)
  br label %49

49:                                               ; preds = %40, %31
  %50 = phi i1 [ true, %31 ], [ %48, %40 ]
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %50, ptr noundef @.str.259, ptr noundef %51)
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !28
  %55 = load i64, ptr %9, align 8, !tbaa !26
  %56 = getelementptr inbounds double, ptr %54, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !29
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %57, ptr noundef %58)
  br i1 %59, label %69, label %60

60:                                               ; preds = %49
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %61, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !28
  %64 = load i64, ptr %9, align 8, !tbaa !26
  %65 = getelementptr inbounds double, ptr %63, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !29
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %66, ptr noundef %67)
  br label %69

69:                                               ; preds = %60, %49
  %70 = phi i1 [ true, %49 ], [ %68, %60 ]
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %70, ptr noundef @.str.260, ptr noundef %71)
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %72, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !28
  %75 = load i64, ptr %9, align 8, !tbaa !26
  %76 = getelementptr inbounds double, ptr %74, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !29
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %78, i32 0, i32 43
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !28
  %82 = load i64, ptr %9, align 8, !tbaa !26
  %83 = getelementptr inbounds double, ptr %81, i64 %82
  store double %77, ptr %83, align 8, !tbaa !29
  %84 = load ptr, ptr %6, 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 !28
  %87 = load i64, ptr %9, align 8, !tbaa !26
  %88 = getelementptr inbounds double, ptr %86, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !29
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %89, ptr noundef %90)
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %92, i32 0, i32 41
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !28
  %96 = load i64, ptr %9, align 8, !tbaa !26
  %97 = getelementptr inbounds i8, ptr %95, i64 %96
  %98 = zext i1 %91 to i8
  store i8 %98, ptr %97, align 1, !tbaa !30
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %99, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !28
  %102 = load i64, ptr %9, align 8, !tbaa !26
  %103 = getelementptr inbounds double, ptr %101, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !29
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %105, i32 0, i32 44
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !28
  %109 = load i64, ptr %9, align 8, !tbaa !26
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  store double %104, ptr %110, align 8, !tbaa !29
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %111, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !28
  %114 = load i64, ptr %9, align 8, !tbaa !26
  %115 = getelementptr inbounds double, ptr %113, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !29
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %116, ptr noundef %117)
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %119, i32 0, i32 42
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %120, i32 0, i32 4
  %122 = load ptr, ptr %121, align 8, !tbaa !28
  %123 = load i64, ptr %9, align 8, !tbaa !26
  %124 = getelementptr inbounds i8, ptr %122, i64 %123
  %125 = zext i1 %118 to i8
  store i8 %125, ptr %124, align 1, !tbaa !30
  br label %126

126:                                              ; preds = %69
  %127 = load i64, ptr %9, align 8, !tbaa !26
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %9, align 8, !tbaa !26
  br label %26, !llvm.loop !31

129:                                              ; preds = %26
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %130, i32 0, i32 10
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl8sassetbcEPNS_10sactivesetEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %131, ptr noundef %132, ptr noundef %133, ptr noundef %134)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

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

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

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

.lr.ph:                                           ; preds = %4
  %10 = getelementptr inbounds i8, ptr %1, i64 56
  %11 = getelementptr inbounds i8, ptr %2, i64 56
  %12 = getelementptr inbounds i8, ptr %0, i64 5736
  %13 = getelementptr inbounds i8, ptr %0, i64 5608
  %14 = getelementptr inbounds i8, ptr %0, i64 5800
  %15 = getelementptr inbounds i8, ptr %0, i64 5672
  br label %16

16:                                               ; preds = %.lr.ph, %37
  %.046 = phi i64 [ 0, %.lr.ph ], [ %63, %37 ]
  %17 = load ptr, ptr %10, align 8, !tbaa !26
  %18 = getelementptr inbounds double, ptr %17, i64 %.046
  %19 = load double, ptr %18, align 8, !tbaa !27
  %20 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %19, ptr noundef %3)
  br i1 %20, label %26, label %21

21:                                               ; preds = %16
  %22 = load ptr, ptr %10, align 8, !tbaa !26
  %23 = getelementptr inbounds double, ptr %22, i64 %.046
  %24 = load double, ptr %23, align 8, !tbaa !27
  %25 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %24, ptr noundef %3)
  br label %26

26:                                               ; preds = %21, %16
  %27 = phi i1 [ true, %16 ], [ %25, %21 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef nonnull @.str.259, ptr noundef %3)
  %28 = load ptr, ptr %11, align 8, !tbaa !26
  %29 = getelementptr inbounds double, ptr %28, i64 %.046
  %30 = load double, ptr %29, align 8, !tbaa !27
  %31 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %30, ptr noundef %3)
  br i1 %31, label %37, label %32

32:                                               ; preds = %26
  %33 = load ptr, ptr %11, align 8, !tbaa !26
  %34 = getelementptr inbounds double, ptr %33, i64 %.046
  %35 = load double, ptr %34, align 8, !tbaa !27
  %36 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %35, ptr noundef %3)
  br label %37

37:                                               ; preds = %32, %26
  %38 = phi i1 [ true, %26 ], [ %36, %32 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef nonnull @.str.260, ptr noundef %3)
  %39 = load ptr, ptr %10, align 8, !tbaa !26
  %40 = getelementptr inbounds double, ptr %39, i64 %.046
  %41 = load double, ptr %40, align 8, !tbaa !27
  %42 = load ptr, ptr %12, align 8, !tbaa !26
  %43 = getelementptr inbounds double, ptr %42, i64 %.046
  store double %41, ptr %43, align 8, !tbaa !27
  %44 = load ptr, ptr %10, align 8, !tbaa !26
  %45 = getelementptr inbounds double, ptr %44, i64 %.046
  %46 = load double, ptr %45, align 8, !tbaa !27
  %47 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %46, ptr noundef %3)
  %48 = load ptr, ptr %13, align 8, !tbaa !26
  %49 = getelementptr inbounds i8, ptr %48, i64 %.046
  %50 = zext i1 %47 to i8
  store i8 %50, ptr %49, align 1, !tbaa !28
  %51 = load ptr, ptr %11, align 8, !tbaa !26
  %52 = getelementptr inbounds double, ptr %51, i64 %.046
  %53 = load double, ptr %52, align 8, !tbaa !27
  %54 = load ptr, ptr %14, align 8, !tbaa !26
  %55 = getelementptr inbounds double, ptr %54, i64 %.046
  store double %53, ptr %55, align 8, !tbaa !27
  %56 = load ptr, ptr %11, align 8, !tbaa !26
  %57 = getelementptr inbounds double, ptr %56, i64 %.046
  %58 = load double, ptr %57, align 8, !tbaa !27
  %59 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %58, ptr noundef %3)
  %60 = load ptr, ptr %15, align 8, !tbaa !26
  %61 = getelementptr inbounds i8, ptr %60, i64 %.046
  %62 = zext i1 %59 to i8
  store i8 %62, ptr %61, align 1, !tbaa !28
  %63 = add nuw nsw i64 %.046, 1
  %exitcond.not = icmp eq i64 %63, %5
  br i1 %exitcond.not, label %._crit_edge, label %16, !llvm.loop !29

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

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

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

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


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