; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (solvers)

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

@.str.71 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [46 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; 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) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14sparsesolvesksEPNS_12sparsematrixElbPNS_9ae_vectorEPNS_18sparsesolverreportES3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.alglib_impl::ae_frame", align 8
  %16 = alloca i64, align 8
  %17 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  %19 = zext i1 %2 to i8
  store i8 %19, ptr %10, align 1, !tbaa !11
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %17) #4
  %20 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %20, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 368, i1 false)
  %21 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl25_sparsesolverreport_clearEPv(ptr noundef %21)
  %22 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %22)
  %23 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %17, ptr noundef %23, i1 noundef zeroext true)
  %24 = load i64, ptr %9, align 8, !tbaa !9
  %25 = icmp sgt i64 %24, 0
  %26 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef @.str.71, ptr noundef %26)
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = load ptr, ptr %14, align 8, !tbaa !5
  %29 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %27, ptr noundef %28)
  %30 = load i64, ptr %9, align 8, !tbaa !9
  %31 = icmp eq i64 %29, %30
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef @.str.72, ptr noundef %32)
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  %35 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %33, ptr noundef %34)
  %36 = load i64, ptr %9, align 8, !tbaa !9
  %37 = icmp eq i64 %35, %36
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %37, ptr noundef @.str.73, ptr noundef %38)
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %39, i32 0, i32 0
  %41 = load i64, ptr %40, align 8, !tbaa !13
  %42 = load i64, ptr %9, align 8, !tbaa !9
  %43 = icmp sge i64 %41, %42
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.74, ptr noundef %44)
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = load i64, ptr %9, align 8, !tbaa !9
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  %48 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %45, i64 noundef %46, ptr noundef %47)
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.75, ptr noundef %49)
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL30directsparsesolvers_initreportEPNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef %50, ptr noundef %51)
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = load i64, ptr %9, align 8, !tbaa !9
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %52, i64 noundef %53, ptr noundef %54)
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytosksEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %55, ptr noundef %17, ptr noundef %56)
  %57 = load i64, ptr %9, align 8, !tbaa !9
  %58 = load i8, ptr %10, align 1, !tbaa !11, !range !16, !noundef !17
  %59 = trunc i8 %58 to i1
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  %61 = call noundef zeroext i1 @_ZN11alglib_impl21sparsecholeskyskylineEPNS_12sparsematrixElbPNS_8ae_stateE(ptr noundef %17, i64 noundef %57, i1 noundef zeroext %59, ptr noundef %60)
  br i1 %61, label %81, label %62

62:                                               ; preds = %7
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::sparsesolverreport", ptr %63, i32 0, i32 0
  store i64 -3, ptr %64, align 8, !tbaa !18
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %65

65:                                               ; preds = %76, %62
  %66 = load i64, ptr %16, align 8, !tbaa !9
  %67 = load i64, ptr %9, align 8, !tbaa !9
  %68 = sub nsw i64 %67, 1
  %69 = icmp sle i64 %66, %68
  br i1 %69, label %70, label %79

70:                                               ; preds = %65
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %71, i32 0, i32 4
  %73 = load ptr, ptr %72, align 8, !tbaa !20
  %74 = load i64, ptr %16, align 8, !tbaa !9
  %75 = getelementptr inbounds double, ptr %73, i64 %74
  store double 0.000000e+00, ptr %75, align 8, !tbaa !21
  br label %76

76:                                               ; preds = %70
  %77 = load i64, ptr %16, align 8, !tbaa !9
  %78 = add nsw i64 %77, 1
  store i64 %78, ptr %16, align 8, !tbaa !9
  br label %65, !llvm.loop !23

79:                                               ; preds = %65
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %80)
  store i32 1, ptr %18, align 4
  br label %127

81:                                               ; preds = %7
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %99, %81
  %83 = load i64, ptr %16, align 8, !tbaa !9
  %84 = load i64, ptr %9, align 8, !tbaa !9
  %85 = sub nsw i64 %84, 1
  %86 = icmp sle i64 %83, %85
  br i1 %86, label %87, label %102

87:                                               ; preds = %82
  %88 = load ptr, ptr %11, 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 !20
  %91 = load i64, ptr %16, align 8, !tbaa !9
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !21
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !20
  %97 = load i64, ptr %16, align 8, !tbaa !9
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  store double %93, ptr %98, align 8, !tbaa !21
  br label %99

99:                                               ; preds = %87
  %100 = load i64, ptr %16, align 8, !tbaa !9
  %101 = add nsw i64 %100, 1
  store i64 %101, ptr %16, align 8, !tbaa !9
  br label %82, !llvm.loop !25

102:                                              ; preds = %82
  %103 = load i8, ptr %10, align 1, !tbaa !11, !range !16, !noundef !17
  %104 = trunc i8 %103 to i1
  br i1 %104, label %105, label %114

105:                                              ; preds = %102
  %106 = load i8, ptr %10, align 1, !tbaa !11, !range !16, !noundef !17
  %107 = trunc i8 %106 to i1
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %17, i1 noundef zeroext %107, i1 noundef zeroext false, i64 noundef 1, ptr noundef %108, ptr noundef %109)
  %110 = load i8, ptr %10, align 1, !tbaa !11, !range !16, !noundef !17
  %111 = trunc i8 %110 to i1
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %17, i1 noundef zeroext %111, i1 noundef zeroext false, i64 noundef 0, ptr noundef %112, ptr noundef %113)
  br label %123

114:                                              ; preds = %102
  %115 = load i8, ptr %10, align 1, !tbaa !11, !range !16, !noundef !17
  %116 = trunc i8 %115 to i1
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %17, i1 noundef zeroext %116, i1 noundef zeroext false, i64 noundef 0, ptr noundef %117, ptr noundef %118)
  %119 = load i8, ptr %10, align 1, !tbaa !11, !range !16, !noundef !17
  %120 = trunc i8 %119 to i1
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %17, i1 noundef zeroext %120, i1 noundef zeroext false, i64 noundef 1, ptr noundef %121, ptr noundef %122)
  br label %123

123:                                              ; preds = %114, %105
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::sparsesolverreport", ptr %124, i32 0, i32 0
  store i64 1, ptr %125, align 8, !tbaa !18
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %126)
  store i32 0, ptr %18, align 4
  br label %127

127:                                              ; preds = %123, %79
  call void @llvm.lifetime.end.p0(i64 368, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  %128 = load i32, ptr %18, align 4
  switch i32 %128, label %130 [
    i32 0, label %129
    i32 1, label %129
  ]

129:                                              ; preds = %127, %127
  ret void

130:                                              ; preds = %127
  unreachable
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl25_sparsesolverreport_clearEPv(ptr noundef) #3

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

declare noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

declare noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL30directsparsesolvers_initreportEPNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl15sparsecopytosksEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl21sparsecholeskyskylineEPNS_12sparsematrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) #2

declare void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "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 = { 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 #4 = { 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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !12, i64 16, !15, i64 24, !7, i64 56}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !10, i64 0}
!19 = !{!"_ZTSN11alglib_impl18sparsesolverreportE", !10, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


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

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

@.str.71 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress 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) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14sparsesolvesksEPNS_12sparsematrixElbPNS_9ae_vectorEPNS_18sparsesolverreportES3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #3 {
  %8 = alloca %"struct.alglib_impl::ae_frame", align 8
  %9 = alloca %"struct.alglib_impl::sparsematrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %9) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %6, ptr noundef nonnull %8)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %9, i8 0, i64 368, i1 false)
  call void @_ZN11alglib_impl25_sparsesolverreport_clearEPv(ptr noundef %4)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %5)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %9, ptr noundef %6, i1 noundef zeroext true)
  %10 = icmp sgt i64 %1, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.71, ptr noundef %6)
  %11 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %6)
  %12 = icmp eq i64 %11, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef nonnull @.str.72, ptr noundef %6)
  %13 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %6)
  %14 = icmp eq i64 %13, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.73, ptr noundef %6)
  %15 = load i64, ptr %3, align 8, !tbaa !5
  %16 = icmp sge i64 %15, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.74, ptr noundef %6)
  %17 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %1, ptr noundef %6)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.75, ptr noundef %6)
  call void @_ZN11alglib_implL30directsparsesolvers_initreportEPNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef %4, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %5, i64 noundef %1, ptr noundef %6)
  call void @_ZN11alglib_impl15sparsecopytosksEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %9, ptr noundef %6)
  %18 = call noundef zeroext i1 @_ZN11alglib_impl21sparsecholeskyskylineEPNS_12sparsematrixElbPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %6)
  br i1 %18, label %.preheader, label %22

.preheader:                                       ; preds = %7
  br i1 %10, label %.lr.ph66, label %._crit_edge67

.lr.ph66:                                         ; preds = %.preheader
  %19 = getelementptr inbounds i8, ptr %3, i64 56
  %20 = getelementptr inbounds i8, ptr %5, i64 56
  %xtraiter70 = and i64 %1, 3
  %21 = icmp ult i64 %1, 4
  br i1 %21, label %._crit_edge67.loopexit.unr-lcssa, label %.lr.ph66.new

.lr.ph66.new:                                     ; preds = %.lr.ph66
  %unroll_iter73 = and i64 %1, 9223372036854775804
  br label %38

22:                                               ; preds = %7
  store i64 -3, ptr %4, align 8, !tbaa !13
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %22
  %23 = getelementptr inbounds i8, ptr %5, i64 56
  %xtraiter = and i64 %1, 3
  %24 = icmp ult i64 %1, 4
  br i1 %24, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %1, 9223372036854775804
  br label %25

25:                                               ; preds = %25, %.lr.ph.new
  %.063 = phi i64 [ 0, %.lr.ph.new ], [ %37, %25 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %25 ]
  %26 = load ptr, ptr %23, align 8, !tbaa !15
  %27 = getelementptr inbounds double, ptr %26, i64 %.063
  store double 0.000000e+00, ptr %27, align 8, !tbaa !16
  %28 = or disjoint i64 %.063, 1
  %29 = load ptr, ptr %23, align 8, !tbaa !15
  %30 = getelementptr inbounds double, ptr %29, i64 %28
  store double 0.000000e+00, ptr %30, align 8, !tbaa !16
  %31 = or disjoint i64 %.063, 2
  %32 = load ptr, ptr %23, align 8, !tbaa !15
  %33 = getelementptr inbounds double, ptr %32, i64 %31
  store double 0.000000e+00, ptr %33, align 8, !tbaa !16
  %34 = or disjoint i64 %.063, 3
  %35 = load ptr, ptr %23, align 8, !tbaa !15
  %36 = getelementptr inbounds double, ptr %35, i64 %34
  store double 0.000000e+00, ptr %36, align 8, !tbaa !16
  %37 = add nuw nsw i64 %.063, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %25, !llvm.loop !18

38:                                               ; preds = %38, %.lr.ph66.new
  %.165 = phi i64 [ 0, %.lr.ph66.new ], [ %62, %38 ]
  %niter74 = phi i64 [ 0, %.lr.ph66.new ], [ %niter74.next.3, %38 ]
  %39 = load ptr, ptr %19, align 8, !tbaa !15
  %40 = getelementptr inbounds double, ptr %39, i64 %.165
  %41 = load double, ptr %40, align 8, !tbaa !16
  %42 = load ptr, ptr %20, align 8, !tbaa !15
  %43 = getelementptr inbounds double, ptr %42, i64 %.165
  store double %41, ptr %43, align 8, !tbaa !16
  %44 = or disjoint i64 %.165, 1
  %45 = load ptr, ptr %19, align 8, !tbaa !15
  %46 = getelementptr inbounds double, ptr %45, i64 %44
  %47 = load double, ptr %46, align 8, !tbaa !16
  %48 = load ptr, ptr %20, align 8, !tbaa !15
  %49 = getelementptr inbounds double, ptr %48, i64 %44
  store double %47, ptr %49, align 8, !tbaa !16
  %50 = or disjoint i64 %.165, 2
  %51 = load ptr, ptr %19, align 8, !tbaa !15
  %52 = getelementptr inbounds double, ptr %51, i64 %50
  %53 = load double, ptr %52, align 8, !tbaa !16
  %54 = load ptr, ptr %20, align 8, !tbaa !15
  %55 = getelementptr inbounds double, ptr %54, i64 %50
  store double %53, ptr %55, align 8, !tbaa !16
  %56 = or disjoint i64 %.165, 3
  %57 = load ptr, ptr %19, align 8, !tbaa !15
  %58 = getelementptr inbounds double, ptr %57, i64 %56
  %59 = load double, ptr %58, align 8, !tbaa !16
  %60 = load ptr, ptr %20, align 8, !tbaa !15
  %61 = getelementptr inbounds double, ptr %60, i64 %56
  store double %59, ptr %61, align 8, !tbaa !16
  %62 = add nuw nsw i64 %.165, 4
  %niter74.next.3 = add i64 %niter74, 4
  %niter74.ncmp.3 = icmp eq i64 %niter74.next.3, %unroll_iter73
  br i1 %niter74.ncmp.3, label %._crit_edge67.loopexit.unr-lcssa, label %38, !llvm.loop !20

._crit_edge67.loopexit.unr-lcssa:                 ; preds = %38, %.lr.ph66
  %.165.unr = phi i64 [ 0, %.lr.ph66 ], [ %62, %38 ]
  %lcmp.mod72.not = icmp eq i64 %xtraiter70, 0
  br i1 %lcmp.mod72.not, label %._crit_edge67, label %.epil.preheader69

.epil.preheader69:                                ; preds = %._crit_edge67.loopexit.unr-lcssa, %.epil.preheader69
  %.165.epil = phi i64 [ %68, %.epil.preheader69 ], [ %.165.unr, %._crit_edge67.loopexit.unr-lcssa ]
  %epil.iter71 = phi i64 [ %epil.iter71.next, %.epil.preheader69 ], [ 0, %._crit_edge67.loopexit.unr-lcssa ]
  %63 = load ptr, ptr %19, align 8, !tbaa !15
  %64 = getelementptr inbounds double, ptr %63, i64 %.165.epil
  %65 = load double, ptr %64, align 8, !tbaa !16
  %66 = load ptr, ptr %20, align 8, !tbaa !15
  %67 = getelementptr inbounds double, ptr %66, i64 %.165.epil
  store double %65, ptr %67, align 8, !tbaa !16
  %68 = add nuw nsw i64 %.165.epil, 1
  %epil.iter71.next = add i64 %epil.iter71, 1
  %epil.iter71.cmp.not = icmp eq i64 %epil.iter71.next, %xtraiter70
  br i1 %epil.iter71.cmp.not, label %._crit_edge67, label %.epil.preheader69, !llvm.loop !21

._crit_edge67:                                    ; preds = %._crit_edge67.loopexit.unr-lcssa, %.epil.preheader69, %.preheader
  br i1 %2, label %69, label %70

69:                                               ; preds = %._crit_edge67
  call void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %9, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 1, ptr noundef %5, ptr noundef %6)
  call void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %9, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %5, ptr noundef %6)
  br label %71

70:                                               ; preds = %._crit_edge67
  call void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %9, i1 noundef zeroext false, i1 noundef zeroext false, i64 noundef 0, ptr noundef %5, ptr noundef %6)
  call void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %9, i1 noundef zeroext false, i1 noundef zeroext false, i64 noundef 1, ptr noundef %5, ptr noundef %6)
  br label %71

71:                                               ; preds = %70, %69
  store i64 1, ptr %4, align 8, !tbaa !13
  br label %._crit_edge

._crit_edge.loopexit.unr-lcssa:                   ; preds = %25, %.lr.ph
  %.063.unr = phi i64 [ 0, %.lr.ph ], [ %37, %25 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.063.epil = phi i64 [ %74, %.epil.preheader ], [ %.063.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %72 = load ptr, ptr %23, align 8, !tbaa !15
  %73 = getelementptr inbounds double, ptr %72, i64 %.063.epil
  store double 0.000000e+00, ptr %73, align 8, !tbaa !16
  %74 = add nuw nsw i64 %.063.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !23

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %22, %71
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  ret void
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl25_sparsesolverreport_clearEPv(ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL30directsparsesolvers_initreportEPNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl15sparsecopytosksEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl21sparsecholeskyskylineEPNS_12sparsematrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "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 = { 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 #4 = { 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, !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_impl18sparsesolverreportE", !7, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = distinct !{!23, !22}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass