; LLVM IR from venumb/ZSPACE :: cpp/depends/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::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.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15sparseinitduidxEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %10, i32 0, i32 5
  %12 = load i64, ptr %11, align 8, !tbaa !9
  %13 = icmp eq i64 %12, 1
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef @.str.157, ptr noundef %14)
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %15, i32 0, i32 3
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %17, i32 0, i32 6
  %19 = load i64, ptr %18, align 8, !tbaa !15
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %19, ptr noundef %20)
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %21, i32 0, i32 4
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %23, i32 0, i32 6
  %25 = load i64, ptr %24, align 8, !tbaa !15
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %25, ptr noundef %26)
  store i64 0, ptr %5, align 8, !tbaa !16
  br label %27

27:                                               ; preds = %161, %2
  %28 = load i64, ptr %5, align 8, !tbaa !16
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %29, i32 0, i32 6
  %31 = load i64, ptr %30, align 8, !tbaa !15
  %32 = sub nsw i64 %31, 1
  %33 = icmp sle i64 %28, %32
  br i1 %33, label %34, label %164

34:                                               ; preds = %27
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %35, i32 0, i32 4
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %38 = load ptr, ptr %37, align 8, !tbaa !17
  %39 = load i64, ptr %5, align 8, !tbaa !16
  %40 = getelementptr inbounds i64, ptr %38, i64 %39
  store i64 -1, ptr %40, align 8, !tbaa !16
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %41, i32 0, i32 3
  %43 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %44 = load ptr, ptr %43, align 8, !tbaa !17
  %45 = load i64, ptr %5, align 8, !tbaa !16
  %46 = getelementptr inbounds i64, ptr %44, i64 %45
  store i64 -1, ptr %46, align 8, !tbaa !16
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %47, i32 0, i32 2
  %49 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = load i64, ptr %5, align 8, !tbaa !16
  %52 = getelementptr inbounds i64, ptr %50, i64 %51
  %53 = load i64, ptr %52, align 8, !tbaa !16
  store i64 %53, ptr %8, align 8, !tbaa !16
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %54, i32 0, i32 2
  %56 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %55, i32 0, i32 4
  %57 = load ptr, ptr %56, align 8, !tbaa !17
  %58 = load i64, ptr %5, align 8, !tbaa !16
  %59 = add nsw i64 %58, 1
  %60 = getelementptr inbounds i64, ptr %57, i64 %59
  %61 = load i64, ptr %60, align 8, !tbaa !16
  store i64 %61, ptr %9, align 8, !tbaa !16
  %62 = load i64, ptr %8, align 8, !tbaa !16
  store i64 %62, ptr %6, align 8, !tbaa !16
  br label %63

63:                                               ; preds = %110, %34
  %64 = load i64, ptr %6, align 8, !tbaa !16
  %65 = load i64, ptr %9, align 8, !tbaa !16
  %66 = sub nsw i64 %65, 1
  %67 = icmp sle i64 %64, %66
  br i1 %67, label %68, label %113

68:                                               ; preds = %63
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %69, i32 0, i32 1
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %70, i32 0, i32 4
  %72 = load ptr, ptr %71, align 8, !tbaa !17
  %73 = load i64, ptr %6, align 8, !tbaa !16
  %74 = getelementptr inbounds i64, ptr %72, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !16
  store i64 %75, ptr %7, align 8, !tbaa !16
  %76 = load i64, ptr %7, align 8, !tbaa !16
  %77 = load i64, ptr %5, align 8, !tbaa !16
  %78 = icmp eq i64 %76, %77
  br i1 %78, label %79, label %87

79:                                               ; preds = %68
  %80 = load i64, ptr %6, align 8, !tbaa !16
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %81, i32 0, i32 3
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !17
  %85 = load i64, ptr %5, align 8, !tbaa !16
  %86 = getelementptr inbounds i64, ptr %84, i64 %85
  store i64 %80, ptr %86, align 8, !tbaa !16
  br label %109

87:                                               ; preds = %68
  %88 = load i64, ptr %7, align 8, !tbaa !16
  %89 = load i64, ptr %5, align 8, !tbaa !16
  %90 = icmp sgt i64 %88, %89
  br i1 %90, label %91, label %108

91:                                               ; preds = %87
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %92, i32 0, i32 4
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !17
  %96 = load i64, ptr %5, align 8, !tbaa !16
  %97 = getelementptr inbounds i64, ptr %95, i64 %96
  %98 = load i64, ptr %97, align 8, !tbaa !16
  %99 = icmp eq i64 %98, -1
  br i1 %99, label %100, label %108

100:                                              ; preds = %91
  %101 = load i64, ptr %6, align 8, !tbaa !16
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %102, i32 0, i32 4
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %103, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !17
  %106 = load i64, ptr %5, align 8, !tbaa !16
  %107 = getelementptr inbounds i64, ptr %105, i64 %106
  store i64 %101, ptr %107, align 8, !tbaa !16
  br label %113

108:                                              ; preds = %91, %87
  br label %109

109:                                              ; preds = %108, %79
  br label %110

110:                                              ; preds = %109
  %111 = load i64, ptr %6, align 8, !tbaa !16
  %112 = add nsw i64 %111, 1
  store i64 %112, ptr %6, align 8, !tbaa !16
  br label %63, !llvm.loop !18

113:                                              ; preds = %100, %63
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %114, i32 0, i32 4
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %115, i32 0, i32 4
  %117 = load ptr, ptr %116, align 8, !tbaa !17
  %118 = load i64, ptr %5, align 8, !tbaa !16
  %119 = getelementptr inbounds i64, ptr %117, i64 %118
  %120 = load i64, ptr %119, align 8, !tbaa !16
  %121 = icmp eq i64 %120, -1
  br i1 %121, label %122, label %137

122:                                              ; preds = %113
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %123, i32 0, i32 2
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %124, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !17
  %127 = load i64, ptr %5, align 8, !tbaa !16
  %128 = add nsw i64 %127, 1
  %129 = getelementptr inbounds i64, ptr %126, i64 %128
  %130 = load i64, ptr %129, align 8, !tbaa !16
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %131, i32 0, i32 4
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %132, i32 0, i32 4
  %134 = load ptr, ptr %133, align 8, !tbaa !17
  %135 = load i64, ptr %5, align 8, !tbaa !16
  %136 = getelementptr inbounds i64, ptr %134, i64 %135
  store i64 %130, ptr %136, align 8, !tbaa !16
  br label %137

137:                                              ; preds = %122, %113
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %138, i32 0, i32 3
  %140 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %139, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !17
  %142 = load i64, ptr %5, align 8, !tbaa !16
  %143 = getelementptr inbounds i64, ptr %141, i64 %142
  %144 = load i64, ptr %143, align 8, !tbaa !16
  %145 = icmp eq i64 %144, -1
  br i1 %145, label %146, label %160

146:                                              ; preds = %137
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %147, i32 0, i32 4
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %148, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !17
  %151 = load i64, ptr %5, align 8, !tbaa !16
  %152 = getelementptr inbounds i64, ptr %150, i64 %151
  %153 = load i64, ptr %152, align 8, !tbaa !16
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %154, i32 0, i32 3
  %156 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %155, i32 0, i32 4
  %157 = load ptr, ptr %156, align 8, !tbaa !17
  %158 = load i64, ptr %5, align 8, !tbaa !16
  %159 = getelementptr inbounds i64, ptr %157, i64 %158
  store i64 %153, ptr %159, align 8, !tbaa !16
  br label %160

160:                                              ; preds = %146, %137
  br label %161

161:                                              ; preds = %160
  %162 = load i64, ptr %5, align 8, !tbaa !16
  %163 = add nsw i64 %162, 1
  store i64 %163, ptr %5, align 8, !tbaa !16
  br label %27, !llvm.loop !20

164:                                              ; preds = %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

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, !12, i64 320}
!10 = !{!"_ZTSN11alglib_impl12sparsematrixE", !11, i64 0, !11, i64 64, !11, i64 128, !11, i64 192, !11, i64 256, !12, i64 320, !12, i64 328, !12, i64 336, !12, i64 344, !12, i64 352, !12, i64 360}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !12, i64 0, !12, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!12 = !{!"long", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!10, !12, i64 328}
!16 = !{!12, !12, i64 0}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; 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.157 = external hidden unnamed_addr constant [55 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15sparseinitduidxEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 320
  %4 = load i64, ptr %3, align 8, !tbaa !5
  %5 = icmp eq i64 %4, 1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %5, ptr noundef nonnull @.str.157, ptr noundef %1)
  %6 = getelementptr inbounds i8, ptr %0, i64 192
  %7 = getelementptr inbounds i8, ptr %0, i64 328
  %8 = load i64, ptr %7, align 8, !tbaa !14
  tail call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %8, ptr noundef %1)
  %9 = getelementptr inbounds i8, ptr %0, i64 256
  %10 = load i64, ptr %7, align 8, !tbaa !14
  tail call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %10, ptr noundef %1)
  %11 = load i64, ptr %7, align 8, !tbaa !14
  %.not.not55 = icmp sgt i64 %11, 0
  br i1 %.not.not55, label %.lr.ph58, label %._crit_edge

.lr.ph58:                                         ; preds = %2
  %12 = getelementptr inbounds i8, ptr %0, i64 312
  %13 = getelementptr inbounds i8, ptr %0, i64 248
  %14 = getelementptr inbounds i8, ptr %0, i64 184
  %15 = getelementptr inbounds i8, ptr %0, i64 120
  br label %16

16:                                               ; preds = %.lr.ph58, %62
  %.056 = phi i64 [ 0, %.lr.ph58 ], [ %24, %62 ]
  %17 = load ptr, ptr %12, align 8, !tbaa !15
  %18 = getelementptr inbounds i64, ptr %17, i64 %.056
  store i64 -1, ptr %18, align 8, !tbaa !16
  %19 = load ptr, ptr %13, align 8, !tbaa !15
  %20 = getelementptr inbounds i64, ptr %19, i64 %.056
  store i64 -1, ptr %20, align 8, !tbaa !16
  %21 = load ptr, ptr %14, align 8, !tbaa !15
  %22 = getelementptr inbounds i64, ptr %21, i64 %.056
  %23 = load i64, ptr %22, align 8, !tbaa !16
  %24 = add nuw nsw i64 %.056, 1
  %25 = getelementptr inbounds i64, ptr %21, i64 %24
  %26 = load i64, ptr %25, align 8, !tbaa !16
  %.not.not5053 = icmp slt i64 %23, %26
  br i1 %.not.not5053, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %16, %43
  %.04854 = phi i64 [ %44, %43 ], [ %23, %16 ]
  %27 = load ptr, ptr %15, align 8, !tbaa !15
  %28 = getelementptr inbounds i64, ptr %27, i64 %.04854
  %29 = load i64, ptr %28, align 8, !tbaa !16
  %30 = icmp eq i64 %29, %.056
  br i1 %30, label %31, label %34

31:                                               ; preds = %.lr.ph
  %32 = load ptr, ptr %13, align 8, !tbaa !15
  %33 = getelementptr inbounds i64, ptr %32, i64 %.056
  store i64 %.04854, ptr %33, align 8, !tbaa !16
  br label %43

34:                                               ; preds = %.lr.ph
  %35 = icmp sgt i64 %29, %.056
  br i1 %35, label %36, label %43

36:                                               ; preds = %34
  %37 = load ptr, ptr %12, align 8, !tbaa !15
  %38 = getelementptr inbounds i64, ptr %37, i64 %.056
  %39 = load i64, ptr %38, align 8, !tbaa !16
  %40 = icmp eq i64 %39, -1
  br i1 %40, label %41, label %43

41:                                               ; preds = %36
  %42 = getelementptr inbounds i64, ptr %37, i64 %.056
  store i64 %.04854, ptr %42, align 8, !tbaa !16
  br label %.loopexit

43:                                               ; preds = %31, %36, %34
  %44 = add i64 %.04854, 1
  %exitcond.not = icmp eq i64 %44, %26
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !17

.loopexit:                                        ; preds = %43, %16, %41
  %45 = load ptr, ptr %12, align 8, !tbaa !15
  %46 = getelementptr inbounds i64, ptr %45, i64 %.056
  %47 = load i64, ptr %46, align 8, !tbaa !16
  %48 = icmp eq i64 %47, -1
  br i1 %48, label %49, label %53

49:                                               ; preds = %.loopexit
  %50 = load ptr, ptr %14, align 8, !tbaa !15
  %51 = getelementptr inbounds i64, ptr %50, i64 %24
  %52 = load i64, ptr %51, align 8, !tbaa !16
  store i64 %52, ptr %46, align 8, !tbaa !16
  br label %53

53:                                               ; preds = %49, %.loopexit
  %54 = load ptr, ptr %13, align 8, !tbaa !15
  %55 = getelementptr inbounds i64, ptr %54, i64 %.056
  %56 = load i64, ptr %55, align 8, !tbaa !16
  %57 = icmp eq i64 %56, -1
  br i1 %57, label %58, label %62

58:                                               ; preds = %53
  %59 = load ptr, ptr %12, align 8, !tbaa !15
  %60 = getelementptr inbounds i64, ptr %59, i64 %.056
  %61 = load i64, ptr %60, align 8, !tbaa !16
  store i64 %61, ptr %55, align 8, !tbaa !16
  br label %62

62:                                               ; preds = %53, %58
  %63 = load i64, ptr %7, align 8, !tbaa !14
  %.not.not = icmp slt i64 %24, %63
  br i1 %.not.not, label %16, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %62, %2
  ret void
}

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, !8, i64 320}
!6 = !{!"_ZTSN11alglib_impl12sparsematrixE", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 192, !7, i64 256, !8, i64 320, !8, i64 328, !8, i64 336, !8, i64 344, !8, i64 352, !8, i64 360}
!7 = !{!"_ZTSN11alglib_impl9ae_vectorE", !8, i64 0, !8, i64 8, !11, i64 16, !12, i64 24, !9, i64 56}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!6, !8, i64 328}
!15 = !{!9, !9, i64 0}
!16 = !{!8, !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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