; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (linalg)

; 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::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::spcholanalysis" = type { i64, i64, i64, i8, i64, double, double, double, double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, 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_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, i8, %"struct.alglib_impl::spcholadj", %"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_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"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::amdbuffer", %"struct.alglib_impl::priorityamdbuffers", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::spcholadj" = 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", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_nxpool" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_dyn_block", %"struct.alglib_impl::ae_lock", %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"struct.alglib_impl::amdbuffer" = type { i64, i8, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::amdllmatrix", %"struct.alglib_impl::amdvertexset", %"struct.alglib_impl::niset", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::niset", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::amdllmatrix" = type { i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64 }
%"struct.alglib_impl::amdvertexset" = type { i64, i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::amdknset" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::niset" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64 }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::priorityamdbuffers" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::amdbuffer", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix" }
%"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 }

@.str.381 = external hidden unnamed_addr constant [59 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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

declare void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl15spsymmfactorizeEPNS_14spcholanalysisEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.alglib_impl::ae_frame", align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %18, ptr noundef %6)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 64, i1 false)
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %10, i64 noundef 0, i64 noundef 2, ptr noundef %19, i1 noundef zeroext true)
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %20, i32 0, i32 0
  %22 = load i64, ptr %21, align 8, !tbaa !9
  %23 = icmp eq i64 %22, 0
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef @.str.381, ptr noundef %24)
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %25, i32 0, i32 1
  %27 = load i64, ptr %26, align 8, !tbaa !27
  store i64 %27, ptr %7, align 8, !tbaa !28
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %28, i32 0, i32 52
  %30 = load i64, ptr %7, align 8, !tbaa !28
  %31 = add nsw i64 %30, 1
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %29, i64 noundef %31, ptr noundef %32)
  %33 = load i64, ptr %7, align 8, !tbaa !28
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %34, i32 0, i32 38
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %33, double noundef 0.000000e+00, ptr noundef %35, ptr noundef %36)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %37, i32 0, i32 37
  %39 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %38, i32 0, i32 4
  %40 = load ptr, ptr %39, align 8, !tbaa !29
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %41, i32 0, i32 16
  %43 = load i64, ptr %42, align 8, !tbaa !30
  %44 = getelementptr inbounds i64, ptr %40, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !28
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %46, i32 0, i32 34
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %48, i32 0, i32 35
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %45, ptr noundef %47, ptr noundef %49, ptr noundef %50)
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %51, i32 0, i32 16
  %53 = load i64, ptr %52, align 8, !tbaa !30
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %54, i32 0, i32 32
  %56 = getelementptr inbounds %"struct.alglib_impl::spcholadj", ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %57, i32 0, i32 45
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl11icopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %53, ptr noundef %56, ptr noundef %58, ptr noundef %59)
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %60, i32 0, i32 41
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl18ae_nxpool_retrieveEPNS_9ae_nxpoolEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %61, ptr noundef %10, ptr noundef %62)
  store i64 0, ptr %13, align 8, !tbaa !28
  br label %63

63:                                               ; preds = %205, %2
  %64 = load i64, ptr %13, align 8, !tbaa !28
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %65, i32 0, i32 16
  %67 = load i64, ptr %66, align 8, !tbaa !30
  %68 = sub nsw i64 %67, 1
  %69 = icmp sle i64 %64, %68
  br i1 %69, label %70, label %208

70:                                               ; preds = %63
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %71, i32 0, i32 20
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %72, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !29
  %75 = load i64, ptr %13, align 8, !tbaa !28
  %76 = getelementptr inbounds i64, ptr %74, i64 %75
  %77 = load i64, ptr %76, align 8, !tbaa !28
  store i64 %77, ptr %11, align 8, !tbaa !28
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %78, i32 0, i32 20
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !29
  %82 = load i64, ptr %13, align 8, !tbaa !28
  %83 = add nsw i64 %82, 1
  %84 = getelementptr inbounds i64, ptr %81, i64 %83
  %85 = load i64, ptr %84, align 8, !tbaa !28
  store i64 %85, ptr %12, align 8, !tbaa !28
  %86 = load i64, ptr %12, align 8, !tbaa !28
  %87 = load i64, ptr %11, align 8, !tbaa !28
  %88 = sub nsw i64 %86, %87
  store i64 %88, ptr %14, align 8, !tbaa !28
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %89, i32 0, i32 37
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %90, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !29
  %93 = load i64, ptr %13, align 8, !tbaa !28
  %94 = getelementptr inbounds i64, ptr %92, i64 %93
  %95 = load i64, ptr %94, align 8, !tbaa !28
  store i64 %95, ptr %15, align 8, !tbaa !28
  %96 = load i64, ptr %11, align 8, !tbaa !28
  store i64 %96, ptr %8, align 8, !tbaa !28
  br label %97

97:                                               ; preds = %110, %70
  %98 = load i64, ptr %8, align 8, !tbaa !28
  %99 = load i64, ptr %12, align 8, !tbaa !28
  %100 = sub nsw i64 %99, 1
  %101 = icmp sle i64 %98, %100
  br i1 %101, label %102, label %113

102:                                              ; preds = %97
  %103 = load i64, ptr %8, align 8, !tbaa !28
  %104 = load i64, ptr %11, align 8, !tbaa !28
  %105 = sub nsw i64 %103, %104
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !29
  %108 = load i64, ptr %8, align 8, !tbaa !28
  %109 = getelementptr inbounds i64, ptr %107, i64 %108
  store i64 %105, ptr %109, align 8, !tbaa !28
  br label %110

110:                                              ; preds = %102
  %111 = load i64, ptr %8, align 8, !tbaa !28
  %112 = add nsw i64 %111, 1
  store i64 %112, ptr %8, align 8, !tbaa !28
  br label %97, !llvm.loop !31

113:                                              ; preds = %97
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %114, i32 0, i32 21
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %115, i32 0, i32 4
  %117 = load ptr, ptr %116, align 8, !tbaa !29
  %118 = load i64, ptr %13, align 8, !tbaa !28
  %119 = getelementptr inbounds i64, ptr %117, i64 %118
  %120 = load i64, ptr %119, align 8, !tbaa !28
  store i64 %120, ptr %9, align 8, !tbaa !28
  br label %121

121:                                              ; preds = %155, %113
  %122 = load i64, ptr %9, align 8, !tbaa !28
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %123, i32 0, i32 21
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %124, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !29
  %127 = load i64, ptr %13, align 8, !tbaa !28
  %128 = add nsw i64 %127, 1
  %129 = getelementptr inbounds i64, ptr %126, i64 %128
  %130 = load i64, ptr %129, align 8, !tbaa !28
  %131 = sub nsw i64 %130, 1
  %132 = icmp sle i64 %122, %131
  br i1 %132, label %133, label %158

133:                                              ; preds = %121
  %134 = load i64, ptr %14, align 8, !tbaa !28
  %135 = load i64, ptr %9, align 8, !tbaa !28
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %136, i32 0, i32 21
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %137, i32 0, i32 4
  %139 = load ptr, ptr %138, align 8, !tbaa !29
  %140 = load i64, ptr %13, align 8, !tbaa !28
  %141 = getelementptr inbounds i64, ptr %139, i64 %140
  %142 = load i64, ptr %141, align 8, !tbaa !28
  %143 = sub nsw i64 %135, %142
  %144 = add nsw i64 %134, %143
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !29
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %147, i32 0, i32 22
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %148, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !29
  %151 = load i64, ptr %9, align 8, !tbaa !28
  %152 = getelementptr inbounds i64, ptr %150, i64 %151
  %153 = load i64, ptr %152, align 8, !tbaa !28
  %154 = getelementptr inbounds i64, ptr %146, i64 %153
  store i64 %144, ptr %154, align 8, !tbaa !28
  br label %155

155:                                              ; preds = %133
  %156 = load i64, ptr %9, align 8, !tbaa !28
  %157 = add nsw i64 %156, 1
  store i64 %157, ptr %9, align 8, !tbaa !28
  br label %121, !llvm.loop !33

158:                                              ; preds = %121
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = load i64, ptr %13, align 8, !tbaa !28
  %161 = load i64, ptr %11, align 8, !tbaa !28
  %162 = load i64, ptr %12, align 8, !tbaa !28
  %163 = load i64, ptr %15, align 8, !tbaa !28
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %164, i32 0, i32 45
  %166 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %165, i32 0, i32 4
  %167 = load ptr, ptr %166, align 8, !tbaa !29
  %168 = load i64, ptr %13, align 8, !tbaa !28
  %169 = getelementptr inbounds i64, ptr %167, i64 %168
  %170 = load i64, ptr %169, align 8, !tbaa !28
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %171, i32 0, i32 32
  %173 = getelementptr inbounds %"struct.alglib_impl::spcholadj", ptr %172, i32 0, i32 1
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %173, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !29
  %176 = load i64, ptr %13, align 8, !tbaa !28
  %177 = getelementptr inbounds i64, ptr %175, i64 %176
  %178 = load i64, ptr %177, align 8, !tbaa !28
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %179, i32 0, i32 38
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_implL22spchol_updatesupernodeEPNS_14spcholanalysisEllllPKNS_9ae_vectorEllS4_PNS_8ae_stateE(ptr noundef %159, i64 noundef %160, i64 noundef %161, i64 noundef %162, i64 noundef %163, ptr noundef %10, i64 noundef %170, i64 noundef %178, ptr noundef %180, ptr noundef %181)
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %182, i32 0, i32 32
  %184 = getelementptr inbounds %"struct.alglib_impl::spcholadj", ptr %183, i32 0, i32 1
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %184, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !29
  %187 = load i64, ptr %13, align 8, !tbaa !28
  %188 = getelementptr inbounds i64, ptr %186, i64 %187
  %189 = load i64, ptr %188, align 8, !tbaa !28
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %190, i32 0, i32 45
  %192 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %191, i32 0, i32 4
  %193 = load ptr, ptr %192, align 8, !tbaa !29
  %194 = load i64, ptr %13, align 8, !tbaa !28
  %195 = getelementptr inbounds i64, ptr %193, i64 %194
  store i64 %189, ptr %195, align 8, !tbaa !28
  %196 = load ptr, ptr %4, align 8, !tbaa !5
  %197 = load i64, ptr %13, align 8, !tbaa !28
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = call noundef zeroext i1 @_ZN11alglib_implL25spchol_factorizesupernodeEPNS_14spcholanalysisElPNS_8ae_stateE(ptr noundef %196, i64 noundef %197, ptr noundef %198)
  br i1 %199, label %204, label %200

200:                                              ; preds = %158
  store i8 0, ptr %16, align 1, !tbaa !34
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %201)
  %202 = load i8, ptr %16, align 1, !tbaa !34, !range !35, !noundef !36
  %203 = trunc i8 %202 to i1
  store i1 %203, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %215

204:                                              ; preds = %158
  br label %205

205:                                              ; preds = %204
  %206 = load i64, ptr %13, align 8, !tbaa !28
  %207 = add nsw i64 %206, 1
  store i64 %207, ptr %13, align 8, !tbaa !28
  br label %63, !llvm.loop !37

208:                                              ; preds = %63
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %209, i32 0, i32 41
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl17ae_nxpool_recycleEPNS_9ae_nxpoolEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %210, ptr noundef %10, ptr noundef %211)
  store i8 1, ptr %16, align 1, !tbaa !34
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %212)
  %213 = load i8, ptr %16, align 1, !tbaa !34, !range !35, !noundef !36
  %214 = trunc i8 %213 to i1
  store i1 %214, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %215

215:                                              ; preds = %208, %200
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #4
  %216 = load i1, ptr %3, align 1
  ret i1 %216
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL25spchol_factorizesupernodeEPNS_14spcholanalysisElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #3

declare void @_ZN11alglib_impl17ae_nxpool_recycleEPNS_9ae_nxpoolEPNS_9ae_vectorEPNS_8ae_stateE(ptr 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, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl14spcholanalysisE", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !11, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !14, i64 72, !12, i64 136, !12, i64 137, !12, i64 138, !12, i64 139, !12, i64 140, !14, i64 144, !11, i64 208, !14, i64 216, !14, i64 280, !14, i64 344, !14, i64 408, !14, i64 472, !14, i64 536, !12, i64 600, !14, i64 608, !14, i64 672, !14, i64 736, !14, i64 800, !14, i64 864, !14, i64 928, !12, i64 992, !12, i64 993, !16, i64 1000, !14, i64 1512, !14, i64 1576, !14, i64 1640, !14, i64 1704, !14, i64 1768, !14, i64 1832, !17, i64 1896, !17, i64 2040, !17, i64 2184, !17, i64 2328, !17, i64 2472, !17, i64 2616, !14, i64 2760, !14, i64 2824, !14, i64 2888, !14, i64 2952, !14, i64 3016, !19, i64 3080, !25, i64 7464, !14, i64 13816, !14, i64 13880, !14, i64 13944, !14, i64 14008, !14, i64 14072, !14, i64 14136, !26, i64 14200, !26, i64 14568, !14, i64 14936, !14, i64 15000}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, 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 = !{!"_ZTSN11alglib_impl9spcholadjE", !14, i64 0, !14, i64 64, !14, i64 128, !14, i64 192, !14, i64 256, !14, i64 320, !14, i64 384, !14, i64 448}
!17 = !{!"_ZTSN11alglib_impl9ae_nxpoolE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !15, i64 32, !18, i64 64, !15, i64 112}
!18 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !15, i64 8, !12, i64 40}
!19 = !{!"_ZTSN11alglib_impl9amdbufferE", !11, i64 0, !12, i64 8, !12, i64 9, !14, i64 16, !14, i64 80, !14, i64 144, !20, i64 208, !20, i64 568, !20, i64 928, !21, i64 1288, !22, i64 1496, !23, i64 1968, !14, i64 2120, !14, i64 2184, !14, i64 2248, !23, i64 2312, !23, i64 2464, !23, i64 2616, !23, i64 2768, !23, i64 2920, !23, i64 3072, !14, i64 3224, !11, i64 3288, !23, i64 3296, !23, i64 3448, !20, i64 3600, !23, i64 3960, !14, i64 4112, !14, i64 4176, !14, i64 4240, !24, i64 4304}
!20 = !{!"_ZTSN11alglib_impl8amdknsetE", !11, i64 0, !11, i64 8, !14, i64 16, !14, i64 80, !14, i64 144, !14, i64 208, !14, i64 272, !11, i64 336, !11, i64 344, !11, i64 352}
!21 = !{!"_ZTSN11alglib_impl11amdllmatrixE", !11, i64 0, !14, i64 8, !14, i64 72, !14, i64 136, !11, i64 200}
!22 = !{!"_ZTSN11alglib_impl12amdvertexsetE", !11, i64 0, !12, i64 8, !11, i64 16, !14, i64 24, !14, i64 88, !14, i64 152, !14, i64 216, !14, i64 280, !14, i64 344, !14, i64 408}
!23 = !{!"_ZTSN11alglib_impl5nisetE", !11, i64 0, !11, i64 8, !14, i64 16, !14, i64 80, !11, i64 144}
!24 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !15, i64 40, !7, i64 72}
!25 = !{!"_ZTSN11alglib_impl18priorityamdbuffersE", !14, i64 0, !14, i64 64, !19, i64 128, !26, i64 4512, !26, i64 4880, !26, i64 5248, !26, i64 5616, !26, i64 5984}
!26 = !{!"_ZTSN11alglib_impl12sparsematrixE", !14, i64 0, !14, i64 64, !14, i64 128, !14, i64 192, !14, i64 256, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360}
!27 = !{!10, !11, i64 8}
!28 = !{!11, !11, i64 0}
!29 = !{!7, !7, i64 0}
!30 = !{!10, !11, i64 208}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = !{!12, !12, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = distinct !{!37, !32}


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

@.str.381 = external hidden unnamed_addr constant [59 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl15spsymmfactorizeEPNS_14spcholanalysisEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %4, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %4, i64 noundef 0, i64 noundef 2, ptr noundef %1, i1 noundef zeroext true)
  %5 = load i64, ptr %0, align 8, !tbaa !5
  %6 = icmp eq i64 %5, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.381, ptr noundef %1)
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !26
  %9 = getelementptr inbounds i8, ptr %0, i64 13816
  %10 = add nsw i64 %8, 1
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %10, ptr noundef %1)
  %11 = getelementptr inbounds i8, ptr %0, i64 1832
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %8, double noundef 0.000000e+00, ptr noundef nonnull %11, ptr noundef %1)
  %12 = getelementptr inbounds i8, ptr %0, i64 1824
  %13 = load ptr, ptr %12, align 8, !tbaa !27
  %14 = getelementptr inbounds i8, ptr %0, i64 208
  %15 = load i64, ptr %14, align 8, !tbaa !28
  %16 = getelementptr inbounds i64, ptr %13, i64 %15
  %17 = load i64, ptr %16, align 8, !tbaa !29
  %18 = getelementptr inbounds i8, ptr %0, i64 1576
  %19 = getelementptr inbounds i8, ptr %0, i64 1640
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %17, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef %1)
  %20 = load i64, ptr %14, align 8, !tbaa !28
  %21 = getelementptr inbounds i8, ptr %0, i64 1000
  %22 = getelementptr inbounds i8, ptr %0, i64 2760
  call void @_ZN11alglib_impl11icopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef %1)
  %23 = getelementptr inbounds i8, ptr %0, i64 2184
  call void @_ZN11alglib_impl18ae_nxpool_retrieveEPNS_9ae_nxpoolEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %23, ptr noundef nonnull %4, ptr noundef %1)
  %24 = getelementptr inbounds i8, ptr %0, i64 464
  %25 = getelementptr inbounds i8, ptr %4, i64 56
  %26 = getelementptr inbounds i8, ptr %0, i64 528
  %27 = getelementptr inbounds i8, ptr %0, i64 592
  %28 = getelementptr inbounds i8, ptr %0, i64 2816
  %29 = getelementptr inbounds i8, ptr %0, i64 1120
  br label %30

30:                                               ; preds = %._crit_edge90, %2
  %.077 = phi i64 [ 0, %2 ], [ %36, %._crit_edge90 ]
  %31 = load i64, ptr %14, align 8, !tbaa !28
  %.not.not.not = icmp sge i64 %.077, %31
  br i1 %.not.not.not, label %97, label %32

32:                                               ; preds = %30
  %33 = load ptr, ptr %24, align 8, !tbaa !27
  %34 = getelementptr inbounds i64, ptr %33, i64 %.077
  %35 = load i64, ptr %34, align 8, !tbaa !29
  %36 = add nuw nsw i64 %.077, 1
  %37 = getelementptr inbounds i64, ptr %33, i64 %36
  %38 = load i64, ptr %37, align 8, !tbaa !29
  %39 = load ptr, ptr %12, align 8, !tbaa !27
  %40 = getelementptr inbounds i64, ptr %39, i64 %.077
  %41 = load i64, ptr %40, align 8, !tbaa !29
  %.not.not7984 = icmp slt i64 %35, %38
  br i1 %.not.not7984, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %32
  %42 = sub i64 %38, %35
  %xtraiter = and i64 %42, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %.07685.prol = phi i64 [ %46, %.lr.ph.prol ], [ %35, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %43 = sub nsw i64 %.07685.prol, %35
  %44 = load ptr, ptr %25, align 8, !tbaa !27
  %45 = getelementptr inbounds i64, ptr %44, i64 %.07685.prol
  store i64 %43, ptr %45, align 8, !tbaa !29
  %46 = add nsw i64 %.07685.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !30

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.07685.unr = phi i64 [ %35, %.lr.ph.preheader ], [ %46, %.lr.ph.prol ]
  %47 = sub i64 %35, %38
  %48 = icmp ugt i64 %47, -4
  br i1 %48, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.07685 = phi i64 [ %64, %.lr.ph ], [ %.07685.unr, %.lr.ph.prol.loopexit ]
  %49 = sub nsw i64 %.07685, %35
  %50 = load ptr, ptr %25, align 8, !tbaa !27
  %51 = getelementptr inbounds i64, ptr %50, i64 %.07685
  store i64 %49, ptr %51, align 8, !tbaa !29
  %52 = add nsw i64 %.07685, 1
  %53 = sub nsw i64 %52, %35
  %54 = load ptr, ptr %25, align 8, !tbaa !27
  %55 = getelementptr inbounds i64, ptr %54, i64 %52
  store i64 %53, ptr %55, align 8, !tbaa !29
  %56 = add nsw i64 %.07685, 2
  %57 = sub nsw i64 %56, %35
  %58 = load ptr, ptr %25, align 8, !tbaa !27
  %59 = getelementptr inbounds i64, ptr %58, i64 %56
  store i64 %57, ptr %59, align 8, !tbaa !29
  %60 = add nsw i64 %.07685, 3
  %61 = sub nsw i64 %60, %35
  %62 = load ptr, ptr %25, align 8, !tbaa !27
  %63 = getelementptr inbounds i64, ptr %62, i64 %60
  store i64 %61, ptr %63, align 8, !tbaa !29
  %64 = add nsw i64 %.07685, 4
  %exitcond.not.3 = icmp eq i64 %64, %38
  br i1 %exitcond.not.3, label %._crit_edge, label %.lr.ph, !llvm.loop !32

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %32
  %65 = load ptr, ptr %26, align 8, !tbaa !27
  %66 = getelementptr inbounds i64, ptr %65, i64 %.077
  %67 = load i64, ptr %66, align 8, !tbaa !29
  %68 = getelementptr inbounds i64, ptr %65, i64 %36
  %69 = load i64, ptr %68, align 8, !tbaa !29
  %.not.not8086 = icmp slt i64 %67, %69
  br i1 %.not.not8086, label %.lr.ph89, label %._crit_edge90

.lr.ph89:                                         ; preds = %._crit_edge, %.lr.ph89
  %70 = phi ptr [ %82, %.lr.ph89 ], [ %65, %._crit_edge ]
  %.07887 = phi i64 [ %81, %.lr.ph89 ], [ %67, %._crit_edge ]
  %71 = getelementptr inbounds i64, ptr %70, i64 %.077
  %72 = load i64, ptr %71, align 8, !tbaa !29
  %73 = add i64 %38, %.07887
  %74 = add i64 %35, %72
  %75 = sub i64 %73, %74
  %76 = load ptr, ptr %25, align 8, !tbaa !27
  %77 = load ptr, ptr %27, align 8, !tbaa !27
  %78 = getelementptr inbounds i64, ptr %77, i64 %.07887
  %79 = load i64, ptr %78, align 8, !tbaa !29
  %80 = getelementptr inbounds i64, ptr %76, i64 %79
  store i64 %75, ptr %80, align 8, !tbaa !29
  %81 = add nsw i64 %.07887, 1
  %82 = load ptr, ptr %26, align 8, !tbaa !27
  %83 = getelementptr inbounds i64, ptr %82, i64 %36
  %84 = load i64, ptr %83, align 8, !tbaa !29
  %.not.not80 = icmp slt i64 %81, %84
  br i1 %.not.not80, label %.lr.ph89, label %._crit_edge90, !llvm.loop !34

._crit_edge90:                                    ; preds = %.lr.ph89, %._crit_edge
  %85 = load ptr, ptr %28, align 8, !tbaa !27
  %86 = getelementptr inbounds i64, ptr %85, i64 %.077
  %87 = load i64, ptr %86, align 8, !tbaa !29
  %88 = load ptr, ptr %29, align 8, !tbaa !27
  %89 = getelementptr inbounds i64, ptr %88, i64 %.077
  %90 = load i64, ptr %89, align 8, !tbaa !29
  call void @_ZN11alglib_implL22spchol_updatesupernodeEPNS_14spcholanalysisEllllPKNS_9ae_vectorEllS4_PNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %.077, i64 noundef %35, i64 noundef %38, i64 noundef %41, ptr noundef nonnull %4, i64 noundef %87, i64 noundef %90, ptr noundef nonnull %11, ptr noundef %1)
  %91 = load ptr, ptr %29, align 8, !tbaa !27
  %92 = getelementptr inbounds i64, ptr %91, i64 %.077
  %93 = load i64, ptr %92, align 8, !tbaa !29
  %94 = load ptr, ptr %28, align 8, !tbaa !27
  %95 = getelementptr inbounds i64, ptr %94, i64 %.077
  store i64 %93, ptr %95, align 8, !tbaa !29
  %96 = call noundef zeroext i1 @_ZN11alglib_implL25spchol_factorizesupernodeEPNS_14spcholanalysisElPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %.077, ptr noundef %1)
  br i1 %96, label %30, label %.loopexit, !llvm.loop !35

97:                                               ; preds = %30
  call void @_ZN11alglib_impl17ae_nxpool_recycleEPNS_9ae_nxpoolEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %23, ptr noundef nonnull %4, ptr noundef %1)
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge90, %97
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  ret i1 %.not.not.not
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL25spchol_factorizesupernodeEPNS_14spcholanalysisElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl17ae_nxpool_recycleEPNS_9ae_nxpoolEPNS_9ae_vectorEPNS_8ae_stateE(ptr 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_impl14spcholanalysisE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !12, i64 72, !10, i64 136, !10, i64 137, !10, i64 138, !10, i64 139, !10, i64 140, !12, i64 144, !7, i64 208, !12, i64 216, !12, i64 280, !12, i64 344, !12, i64 408, !12, i64 472, !12, i64 536, !10, i64 600, !12, i64 608, !12, i64 672, !12, i64 736, !12, i64 800, !12, i64 864, !12, i64 928, !10, i64 992, !10, i64 993, !15, i64 1000, !12, i64 1512, !12, i64 1576, !12, i64 1640, !12, i64 1704, !12, i64 1768, !12, i64 1832, !16, i64 1896, !16, i64 2040, !16, i64 2184, !16, i64 2328, !16, i64 2472, !16, i64 2616, !12, i64 2760, !12, i64 2824, !12, i64 2888, !12, i64 2952, !12, i64 3016, !18, i64 3080, !24, i64 7464, !12, i64 13816, !12, i64 13880, !12, i64 13944, !12, i64 14008, !12, i64 14072, !12, i64 14136, !25, i64 14200, !25, i64 14568, !12, i64 14936, !12, i64 15000}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !13, i64 24, !8, i64 56}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl9spcholadjE", !12, i64 0, !12, i64 64, !12, i64 128, !12, i64 192, !12, i64 256, !12, i64 320, !12, i64 384, !12, i64 448}
!16 = !{!"_ZTSN11alglib_impl9ae_nxpoolE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !13, i64 32, !17, i64 64, !13, i64 112}
!17 = !{!"_ZTSN11alglib_impl7ae_lockE", !14, i64 0, !13, i64 8, !10, i64 40}
!18 = !{!"_ZTSN11alglib_impl9amdbufferE", !7, i64 0, !10, i64 8, !10, i64 9, !12, i64 16, !12, i64 80, !12, i64 144, !19, i64 208, !19, i64 568, !19, i64 928, !20, i64 1288, !21, i64 1496, !22, i64 1968, !12, i64 2120, !12, i64 2184, !12, i64 2248, !22, i64 2312, !22, i64 2464, !22, i64 2616, !22, i64 2768, !22, i64 2920, !22, i64 3072, !12, i64 3224, !7, i64 3288, !22, i64 3296, !22, i64 3448, !19, i64 3600, !22, i64 3960, !12, i64 4112, !12, i64 4176, !12, i64 4240, !23, i64 4304}
!19 = !{!"_ZTSN11alglib_impl8amdknsetE", !7, i64 0, !7, i64 8, !12, i64 16, !12, i64 80, !12, i64 144, !12, i64 208, !12, i64 272, !7, i64 336, !7, i64 344, !7, i64 352}
!20 = !{!"_ZTSN11alglib_impl11amdllmatrixE", !7, i64 0, !12, i64 8, !12, i64 72, !12, i64 136, !7, i64 200}
!21 = !{!"_ZTSN11alglib_impl12amdvertexsetE", !7, i64 0, !10, i64 8, !7, i64 16, !12, i64 24, !12, i64 88, !12, i64 152, !12, i64 216, !12, i64 280, !12, i64 344, !12, i64 408}
!22 = !{!"_ZTSN11alglib_impl5nisetE", !7, i64 0, !7, i64 8, !12, i64 16, !12, i64 80, !7, i64 144}
!23 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !13, i64 40, !8, i64 72}
!24 = !{!"_ZTSN11alglib_impl18priorityamdbuffersE", !12, i64 0, !12, i64 64, !18, i64 128, !25, i64 4512, !25, i64 4880, !25, i64 5248, !25, i64 5616, !25, i64 5984}
!25 = !{!"_ZTSN11alglib_impl12sparsematrixE", !12, i64 0, !12, i64 64, !12, i64 128, !12, i64 192, !12, i64 256, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360}
!26 = !{!6, !7, i64 8}
!27 = !{!8, !8, i64 0}
!28 = !{!6, !7, i64 208}
!29 = !{!7, !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.unroll.disable"}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}
!35 = distinct !{!35, !33}


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