; 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::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.0 }
%union.anon.0 = type { 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 }

@.str.172 = external hidden unnamed_addr constant [52 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_impl18sparsetransposecrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, 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 i64, align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", 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 32, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #4
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %18, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %6, i64 noundef 0, i64 noundef 3, ptr noundef %19, i1 noundef zeroext true)
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %7, i64 noundef 0, i64 noundef 2, ptr noundef %20, i1 noundef zeroext true)
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %8, i64 noundef 0, i64 noundef 2, ptr noundef %21, i1 noundef zeroext true)
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 2, ptr noundef %22, i1 noundef zeroext true)
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %23, i32 0, i32 5
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = icmp eq i64 %25, 1
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef @.str.172, ptr noundef %27)
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %28, i32 0, i32 0
  call void @_ZN11alglib_impl15ae_swap_vectorsEPNS_9ae_vectorES1_(ptr noundef %29, ptr noundef %6)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %30, i32 0, i32 1
  call void @_ZN11alglib_impl15ae_swap_vectorsEPNS_9ae_vectorES1_(ptr noundef %31, ptr noundef %7)
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %32, i32 0, i32 2
  call void @_ZN11alglib_impl15ae_swap_vectorsEPNS_9ae_vectorES1_(ptr noundef %33, ptr noundef %8)
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %34, i32 0, i32 7
  %36 = load i64, ptr %35, align 8, !tbaa !15
  store i64 %36, ptr %9, align 8, !tbaa !16
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %37, i32 0, i32 6
  %39 = load i64, ptr %38, align 8, !tbaa !17
  store i64 %39, ptr %10, align 8, !tbaa !16
  %40 = load i64, ptr %10, align 8, !tbaa !16
  store i64 %40, ptr %11, align 8, !tbaa !16
  %41 = load i64, ptr %9, align 8, !tbaa !16
  store i64 %41, ptr %12, align 8, !tbaa !16
  %42 = load i64, ptr %11, align 8, !tbaa !16
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %43, i32 0, i32 7
  store i64 %42, ptr %44, align 8, !tbaa !15
  %45 = load i64, ptr %12, align 8, !tbaa !16
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %46, i32 0, i32 6
  store i64 %45, ptr %47, align 8, !tbaa !17
  store i64 0, ptr %16, align 8, !tbaa !16
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %48, i32 0, i32 2
  %50 = load i64, ptr %12, align 8, !tbaa !16
  %51 = add nsw i64 %50, 1
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %49, i64 noundef %51, ptr noundef %52)
  store i64 0, ptr %13, align 8, !tbaa !16
  br label %53

53:                                               ; preds = %64, %2
  %54 = load i64, ptr %13, align 8, !tbaa !16
  %55 = load i64, ptr %12, align 8, !tbaa !16
  %56 = icmp sle i64 %54, %55
  br i1 %56, label %57, label %67

57:                                               ; preds = %53
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %58, i32 0, i32 2
  %60 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %59, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !18
  %62 = load i64, ptr %13, align 8, !tbaa !16
  %63 = getelementptr inbounds i64, ptr %61, i64 %62
  store i64 0, ptr %63, align 8, !tbaa !16
  br label %64

64:                                               ; preds = %57
  %65 = load i64, ptr %13, align 8, !tbaa !16
  %66 = add nsw i64 %65, 1
  store i64 %66, ptr %13, align 8, !tbaa !16
  br label %53, !llvm.loop !19

67:                                               ; preds = %53
  store i64 0, ptr %13, align 8, !tbaa !16
  br label %68

68:                                               ; preds = %116, %67
  %69 = load i64, ptr %13, align 8, !tbaa !16
  %70 = load i64, ptr %10, align 8, !tbaa !16
  %71 = sub nsw i64 %70, 1
  %72 = icmp sle i64 %69, %71
  br i1 %72, label %73, label %119

73:                                               ; preds = %68
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !18
  %76 = load i64, ptr %13, align 8, !tbaa !16
  %77 = getelementptr inbounds i64, ptr %75, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !16
  store i64 %78, ptr %14, align 8, !tbaa !16
  br label %79

79:                                               ; preds = %112, %73
  %80 = load i64, ptr %14, align 8, !tbaa !16
  %81 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !18
  %83 = load i64, ptr %13, align 8, !tbaa !16
  %84 = add nsw i64 %83, 1
  %85 = getelementptr inbounds i64, ptr %82, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !16
  %87 = sub nsw i64 %86, 1
  %88 = icmp sle i64 %80, %87
  br i1 %88, label %89, label %115

89:                                               ; preds = %79
  %90 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !18
  %92 = load i64, ptr %14, align 8, !tbaa !16
  %93 = getelementptr inbounds i64, ptr %91, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !16
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %15, align 8, !tbaa !16
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %96, i32 0, i32 2
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %97, i32 0, i32 4
  %99 = load ptr, ptr %98, align 8, !tbaa !18
  %100 = load i64, ptr %15, align 8, !tbaa !16
  %101 = getelementptr inbounds i64, ptr %99, i64 %100
  %102 = load i64, ptr %101, align 8, !tbaa !16
  %103 = add nsw i64 %102, 1
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %104, i32 0, i32 2
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %105, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !18
  %108 = load i64, ptr %15, align 8, !tbaa !16
  %109 = getelementptr inbounds i64, ptr %107, i64 %108
  store i64 %103, ptr %109, align 8, !tbaa !16
  %110 = load i64, ptr %16, align 8, !tbaa !16
  %111 = add nsw i64 %110, 1
  store i64 %111, ptr %16, align 8, !tbaa !16
  br label %112

112:                                              ; preds = %89
  %113 = load i64, ptr %14, align 8, !tbaa !16
  %114 = add nsw i64 %113, 1
  store i64 %114, ptr %14, align 8, !tbaa !16
  br label %79, !llvm.loop !21

115:                                              ; preds = %79
  br label %116

116:                                              ; preds = %115
  %117 = load i64, ptr %13, align 8, !tbaa !16
  %118 = add nsw i64 %117, 1
  store i64 %118, ptr %13, align 8, !tbaa !16
  br label %68, !llvm.loop !22

119:                                              ; preds = %68
  store i64 0, ptr %13, align 8, !tbaa !16
  br label %120

120:                                              ; preds = %149, %119
  %121 = load i64, ptr %13, align 8, !tbaa !16
  %122 = load i64, ptr %12, align 8, !tbaa !16
  %123 = sub nsw i64 %122, 1
  %124 = icmp sle i64 %121, %123
  br i1 %124, label %125, label %152

125:                                              ; preds = %120
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %126, i32 0, i32 2
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %127, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !18
  %130 = load i64, ptr %13, align 8, !tbaa !16
  %131 = add nsw i64 %130, 1
  %132 = getelementptr inbounds i64, ptr %129, i64 %131
  %133 = load i64, ptr %132, align 8, !tbaa !16
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %134, i32 0, i32 2
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !18
  %138 = load i64, ptr %13, align 8, !tbaa !16
  %139 = getelementptr inbounds i64, ptr %137, i64 %138
  %140 = load i64, ptr %139, align 8, !tbaa !16
  %141 = add nsw i64 %133, %140
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %142, i32 0, i32 2
  %144 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %143, i32 0, i32 4
  %145 = load ptr, ptr %144, align 8, !tbaa !18
  %146 = load i64, ptr %13, align 8, !tbaa !16
  %147 = add nsw i64 %146, 1
  %148 = getelementptr inbounds i64, ptr %145, i64 %147
  store i64 %141, ptr %148, align 8, !tbaa !16
  br label %149

149:                                              ; preds = %125
  %150 = load i64, ptr %13, align 8, !tbaa !16
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %13, align 8, !tbaa !16
  br label %120, !llvm.loop !23

152:                                              ; preds = %120
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %153, i32 0, i32 2
  %155 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %154, i32 0, i32 4
  %156 = load ptr, ptr %155, align 8, !tbaa !18
  %157 = load i64, ptr %12, align 8, !tbaa !16
  %158 = getelementptr inbounds i64, ptr %156, i64 %157
  %159 = load i64, ptr %158, align 8, !tbaa !16
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %160, i32 0, i32 9
  store i64 %159, ptr %161, align 8, !tbaa !24
  %162 = load i64, ptr %12, align 8, !tbaa !16
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %162, ptr noundef %163)
  store i64 0, ptr %13, align 8, !tbaa !16
  br label %164

164:                                              ; preds = %174, %152
  %165 = load i64, ptr %13, align 8, !tbaa !16
  %166 = load i64, ptr %12, align 8, !tbaa !16
  %167 = sub nsw i64 %166, 1
  %168 = icmp sle i64 %165, %167
  br i1 %168, label %169, label %177

169:                                              ; preds = %164
  %170 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !18
  %172 = load i64, ptr %13, align 8, !tbaa !16
  %173 = getelementptr inbounds i64, ptr %171, i64 %172
  store i64 0, ptr %173, align 8, !tbaa !16
  br label %174

174:                                              ; preds = %169
  %175 = load i64, ptr %13, align 8, !tbaa !16
  %176 = add nsw i64 %175, 1
  store i64 %176, ptr %13, align 8, !tbaa !16
  br label %164, !llvm.loop !25

177:                                              ; preds = %164
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %178, i32 0, i32 0
  %180 = load i64, ptr %16, align 8, !tbaa !16
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %179, i64 noundef %180, ptr noundef %181)
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %182, i32 0, i32 1
  %184 = load i64, ptr %16, align 8, !tbaa !16
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %183, i64 noundef %184, ptr noundef %185)
  store i64 0, ptr %13, align 8, !tbaa !16
  br label %186

186:                                              ; preds = %263, %177
  %187 = load i64, ptr %13, align 8, !tbaa !16
  %188 = load i64, ptr %10, align 8, !tbaa !16
  %189 = sub nsw i64 %188, 1
  %190 = icmp sle i64 %187, %189
  br i1 %190, label %191, label %266

191:                                              ; preds = %186
  %192 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %193 = load ptr, ptr %192, align 8, !tbaa !18
  %194 = load i64, ptr %13, align 8, !tbaa !16
  %195 = getelementptr inbounds i64, ptr %193, i64 %194
  %196 = load i64, ptr %195, align 8, !tbaa !16
  store i64 %196, ptr %14, align 8, !tbaa !16
  br label %197

197:                                              ; preds = %259, %191
  %198 = load i64, ptr %14, align 8, !tbaa !16
  %199 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %200 = load ptr, ptr %199, align 8, !tbaa !18
  %201 = load i64, ptr %13, align 8, !tbaa !16
  %202 = add nsw i64 %201, 1
  %203 = getelementptr inbounds i64, ptr %200, i64 %202
  %204 = load i64, ptr %203, align 8, !tbaa !16
  %205 = sub nsw i64 %204, 1
  %206 = icmp sle i64 %198, %205
  br i1 %206, label %207, label %262

207:                                              ; preds = %197
  %208 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %209 = load ptr, ptr %208, align 8, !tbaa !18
  %210 = load i64, ptr %14, align 8, !tbaa !16
  %211 = getelementptr inbounds i64, ptr %209, i64 %210
  %212 = load i64, ptr %211, align 8, !tbaa !16
  store i64 %212, ptr %15, align 8, !tbaa !16
  %213 = load ptr, ptr %3, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %213, i32 0, i32 2
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %214, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !18
  %217 = load i64, ptr %15, align 8, !tbaa !16
  %218 = getelementptr inbounds i64, ptr %216, i64 %217
  %219 = load i64, ptr %218, align 8, !tbaa !16
  %220 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %221 = load ptr, ptr %220, align 8, !tbaa !18
  %222 = load i64, ptr %15, align 8, !tbaa !16
  %223 = getelementptr inbounds i64, ptr %221, i64 %222
  %224 = load i64, ptr %223, align 8, !tbaa !16
  %225 = add nsw i64 %219, %224
  store i64 %225, ptr %15, align 8, !tbaa !16
  %226 = load i64, ptr %13, align 8, !tbaa !16
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %227, i32 0, i32 1
  %229 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %228, i32 0, i32 4
  %230 = load ptr, ptr %229, align 8, !tbaa !18
  %231 = load i64, ptr %15, align 8, !tbaa !16
  %232 = getelementptr inbounds i64, ptr %230, i64 %231
  store i64 %226, ptr %232, align 8, !tbaa !16
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %234 = load ptr, ptr %233, align 8, !tbaa !18
  %235 = load i64, ptr %14, align 8, !tbaa !16
  %236 = getelementptr inbounds double, ptr %234, i64 %235
  %237 = load double, ptr %236, align 8, !tbaa !26
  %238 = load ptr, ptr %3, align 8, !tbaa !5
  %239 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %238, i32 0, i32 0
  %240 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %239, i32 0, i32 4
  %241 = load ptr, ptr %240, align 8, !tbaa !18
  %242 = load i64, ptr %15, align 8, !tbaa !16
  %243 = getelementptr inbounds double, ptr %241, i64 %242
  store double %237, ptr %243, align 8, !tbaa !26
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %245 = load ptr, ptr %244, align 8, !tbaa !18
  %246 = load i64, ptr %14, align 8, !tbaa !16
  %247 = getelementptr inbounds i64, ptr %245, i64 %246
  %248 = load i64, ptr %247, align 8, !tbaa !16
  store i64 %248, ptr %15, align 8, !tbaa !16
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %250 = load ptr, ptr %249, align 8, !tbaa !18
  %251 = load i64, ptr %15, align 8, !tbaa !16
  %252 = getelementptr inbounds i64, ptr %250, i64 %251
  %253 = load i64, ptr %252, align 8, !tbaa !16
  %254 = add nsw i64 %253, 1
  %255 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %256 = load ptr, ptr %255, align 8, !tbaa !18
  %257 = load i64, ptr %15, align 8, !tbaa !16
  %258 = getelementptr inbounds i64, ptr %256, i64 %257
  store i64 %254, ptr %258, align 8, !tbaa !16
  br label %259

259:                                              ; preds = %207
  %260 = load i64, ptr %14, align 8, !tbaa !16
  %261 = add nsw i64 %260, 1
  store i64 %261, ptr %14, align 8, !tbaa !16
  br label %197, !llvm.loop !28

262:                                              ; preds = %197
  br label %263

263:                                              ; preds = %262
  %264 = load i64, ptr %13, align 8, !tbaa !16
  %265 = add nsw i64 %264, 1
  store i64 %265, ptr %13, align 8, !tbaa !16
  br label %186, !llvm.loop !29

266:                                              ; preds = %186
  %267 = load ptr, ptr %3, align 8, !tbaa !5
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparseinitduidxEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %267, ptr noundef %268)
  %269 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %269)
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #4
  ret void
}

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

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

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

declare void @_ZN11alglib_impl15ae_swap_vectorsEPNS_9ae_vectorES1_(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_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(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, !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 336}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !12, i64 328}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = !{!10, !12, i64 352}
!25 = distinct !{!25, !20}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !7, i64 0}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}


; 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.0 }
%union.anon.0 = type { ptr }

@.str.172 = external hidden unnamed_addr constant [52 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_impl18sparsetransposecrsEPNS_12sparsematrixEPNS_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
  %5 = alloca %"struct.alglib_impl::ae_vector", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = 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 @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #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 @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %5, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, 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 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 2, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 2, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 2, ptr noundef %1, i1 noundef zeroext true)
  %8 = getelementptr inbounds i8, ptr %0, i64 320
  %9 = load i64, ptr %8, align 8, !tbaa !5
  %10 = icmp eq i64 %9, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.172, ptr noundef %1)
  call void @_ZN11alglib_impl15ae_swap_vectorsEPNS_9ae_vectorES1_(ptr noundef %0, ptr noundef nonnull %4)
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  call void @_ZN11alglib_impl15ae_swap_vectorsEPNS_9ae_vectorES1_(ptr noundef nonnull %11, ptr noundef nonnull %5)
  %12 = getelementptr inbounds i8, ptr %0, i64 128
  call void @_ZN11alglib_impl15ae_swap_vectorsEPNS_9ae_vectorES1_(ptr noundef nonnull %12, ptr noundef nonnull %6)
  %13 = getelementptr inbounds i8, ptr %0, i64 336
  %14 = load i64, ptr %13, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %0, i64 328
  %16 = load i64, ptr %15, align 8, !tbaa !15
  store i64 %16, ptr %13, align 8, !tbaa !14
  store i64 %14, ptr %15, align 8, !tbaa !15
  %17 = add i64 %14, 1
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %17, ptr noundef %1)
  %.not101 = icmp slt i64 %14, 0
  br i1 %.not101, label %.preheader99, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %18 = getelementptr inbounds i8, ptr %0, i64 184
  %19 = add nuw i64 %14, 1
  %xtraiter = and i64 %19, 3
  %20 = icmp ult i64 %14, 3
  br i1 %20, label %.preheader99.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %19, -4
  br label %27

.preheader99.loopexit.unr-lcssa:                  ; preds = %27, %.lr.ph
  %.087102.unr = phi i64 [ 0, %.lr.ph ], [ %39, %27 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader99, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader99.loopexit.unr-lcssa, %.epil.preheader
  %.087102.epil = phi i64 [ %23, %.epil.preheader ], [ %.087102.unr, %.preheader99.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader99.loopexit.unr-lcssa ]
  %21 = load ptr, ptr %18, align 8, !tbaa !16
  %22 = getelementptr inbounds i64, ptr %21, i64 %.087102.epil
  store i64 0, ptr %22, align 8, !tbaa !17
  %23 = add nuw i64 %.087102.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 %.preheader99, label %.epil.preheader, !llvm.loop !18

.preheader99:                                     ; preds = %.preheader99.loopexit.unr-lcssa, %.epil.preheader, %2
  %.not92.not108 = icmp sgt i64 %16, 0
  br i1 %.not92.not108, label %.lr.ph111, label %.preheader

.lr.ph111:                                        ; preds = %.preheader99
  %24 = getelementptr inbounds i8, ptr %6, i64 56
  %25 = getelementptr inbounds i8, ptr %5, i64 56
  %26 = getelementptr inbounds i8, ptr %0, i64 184
  %.pre = load ptr, ptr %24, align 8, !tbaa !16
  br label %43

27:                                               ; preds = %27, %.lr.ph.new
  %.087102 = phi i64 [ 0, %.lr.ph.new ], [ %39, %27 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %27 ]
  %28 = load ptr, ptr %18, align 8, !tbaa !16
  %29 = getelementptr inbounds i64, ptr %28, i64 %.087102
  store i64 0, ptr %29, align 8, !tbaa !17
  %30 = or disjoint i64 %.087102, 1
  %31 = load ptr, ptr %18, align 8, !tbaa !16
  %32 = getelementptr inbounds i64, ptr %31, i64 %30
  store i64 0, ptr %32, align 8, !tbaa !17
  %33 = or disjoint i64 %.087102, 2
  %34 = load ptr, ptr %18, align 8, !tbaa !16
  %35 = getelementptr inbounds i64, ptr %34, i64 %33
  store i64 0, ptr %35, align 8, !tbaa !17
  %36 = or disjoint i64 %.087102, 3
  %37 = load ptr, ptr %18, align 8, !tbaa !16
  %38 = getelementptr inbounds i64, ptr %37, i64 %36
  store i64 0, ptr %38, align 8, !tbaa !17
  %39 = add nuw i64 %.087102, 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 %.preheader99.loopexit.unr-lcssa, label %27, !llvm.loop !20

.loopexit98:                                      ; preds = %.lr.ph106, %43
  %40 = phi ptr [ %44, %43 ], [ %60, %.lr.ph106 ]
  %.1.lcssa = phi i64 [ %.0110, %43 ], [ %58, %.lr.ph106 ]
  %exitcond131.not = icmp eq i64 %47, %16
  br i1 %exitcond131.not, label %.preheader, label %43, !llvm.loop !22

.preheader:                                       ; preds = %.loopexit98, %.preheader99
  %.0.lcssa = phi i64 [ 0, %.preheader99 ], [ %.1.lcssa, %.loopexit98 ]
  %.not93.not113 = icmp sgt i64 %14, 0
  br i1 %.not93.not113, label %.lr.ph115, label %._crit_edge

.lr.ph115:                                        ; preds = %.preheader
  %41 = getelementptr inbounds i8, ptr %0, i64 184
  %xtraiter143 = and i64 %14, 1
  %42 = icmp eq i64 %14, 1
  br i1 %42, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph115.new

.lr.ph115.new:                                    ; preds = %.lr.ph115
  %unroll_iter146 = and i64 %14, 9223372036854775806
  br label %63

43:                                               ; preds = %.lr.ph111, %.loopexit98
  %44 = phi ptr [ %.pre, %.lr.ph111 ], [ %40, %.loopexit98 ]
  %.0110 = phi i64 [ 0, %.lr.ph111 ], [ %.1.lcssa, %.loopexit98 ]
  %.188109 = phi i64 [ 0, %.lr.ph111 ], [ %47, %.loopexit98 ]
  %45 = getelementptr inbounds i64, ptr %44, i64 %.188109
  %46 = load i64, ptr %45, align 8, !tbaa !17
  %47 = add nuw nsw i64 %.188109, 1
  %48 = getelementptr inbounds i64, ptr %44, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !17
  %.not97.not103 = icmp slt i64 %46, %49
  br i1 %.not97.not103, label %.lr.ph106, label %.loopexit98

.lr.ph106:                                        ; preds = %43, %.lr.ph106
  %.1105 = phi i64 [ %58, %.lr.ph106 ], [ %.0110, %43 ]
  %.085104 = phi i64 [ %59, %.lr.ph106 ], [ %46, %43 ]
  %50 = load ptr, ptr %25, align 8, !tbaa !16
  %51 = getelementptr inbounds i64, ptr %50, i64 %.085104
  %52 = load i64, ptr %51, align 8, !tbaa !17
  %53 = load ptr, ptr %26, align 8, !tbaa !16
  %54 = getelementptr i64, ptr %53, i64 %52
  %55 = getelementptr i8, ptr %54, i64 8
  %56 = load i64, ptr %55, align 8, !tbaa !17
  %57 = add nsw i64 %56, 1
  store i64 %57, ptr %55, align 8, !tbaa !17
  %58 = add nsw i64 %.1105, 1
  %59 = add nsw i64 %.085104, 1
  %60 = load ptr, ptr %24, align 8, !tbaa !16
  %61 = getelementptr inbounds i64, ptr %60, i64 %47
  %62 = load i64, ptr %61, align 8, !tbaa !17
  %.not97.not = icmp slt i64 %59, %62
  br i1 %.not97.not, label %.lr.ph106, label %.loopexit98, !llvm.loop !23

63:                                               ; preds = %63, %.lr.ph115.new
  %.2114 = phi i64 [ 0, %.lr.ph115.new ], [ %72, %63 ]
  %niter147 = phi i64 [ 0, %.lr.ph115.new ], [ %niter147.next.1, %63 ]
  %64 = load ptr, ptr %41, align 8, !tbaa !16
  %65 = or disjoint i64 %.2114, 1
  %66 = getelementptr inbounds i64, ptr %64, i64 %65
  %67 = load i64, ptr %66, align 8, !tbaa !17
  %68 = getelementptr inbounds i64, ptr %64, i64 %.2114
  %69 = load i64, ptr %68, align 8, !tbaa !17
  %70 = add nsw i64 %69, %67
  store i64 %70, ptr %66, align 8, !tbaa !17
  %71 = load ptr, ptr %41, align 8, !tbaa !16
  %72 = add nuw nsw i64 %.2114, 2
  %73 = getelementptr inbounds i64, ptr %71, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !17
  %75 = getelementptr inbounds i64, ptr %71, i64 %65
  %76 = load i64, ptr %75, align 8, !tbaa !17
  %77 = add nsw i64 %76, %74
  store i64 %77, ptr %73, align 8, !tbaa !17
  %niter147.next.1 = add i64 %niter147, 2
  %niter147.ncmp.1 = icmp eq i64 %niter147.next.1, %unroll_iter146
  br i1 %niter147.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %63, !llvm.loop !24

._crit_edge.loopexit.unr-lcssa:                   ; preds = %63, %.lr.ph115
  %.2114.unr = phi i64 [ 0, %.lr.ph115 ], [ %72, %63 ]
  %lcmp.mod145.not = icmp eq i64 %xtraiter143, 0
  br i1 %lcmp.mod145.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %78 = load ptr, ptr %41, align 8, !tbaa !16
  %79 = getelementptr i64, ptr %78, i64 %.2114.unr
  %80 = getelementptr i8, ptr %79, i64 8
  %81 = load i64, ptr %80, align 8, !tbaa !17
  %82 = getelementptr inbounds i64, ptr %78, i64 %.2114.unr
  %83 = load i64, ptr %82, align 8, !tbaa !17
  %84 = add nsw i64 %83, %81
  store i64 %84, ptr %80, align 8, !tbaa !17
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %.preheader
  %85 = getelementptr inbounds i8, ptr %0, i64 184
  %86 = load ptr, ptr %85, align 8, !tbaa !16
  %87 = getelementptr inbounds i64, ptr %86, i64 %14
  %88 = load i64, ptr %87, align 8, !tbaa !17
  %89 = getelementptr inbounds i8, ptr %0, i64 352
  store i64 %88, ptr %89, align 8, !tbaa !25
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %14, ptr noundef %1)
  br i1 %.not93.not113, label %.lr.ph119, label %._crit_edge120

.lr.ph119:                                        ; preds = %._crit_edge
  %90 = getelementptr inbounds i8, ptr %7, i64 56
  %xtraiter149 = and i64 %14, 3
  %91 = icmp ult i64 %14, 4
  br i1 %91, label %._crit_edge120.loopexit.unr-lcssa, label %.lr.ph119.new

.lr.ph119.new:                                    ; preds = %.lr.ph119
  %unroll_iter152 = and i64 %14, 9223372036854775804
  br label %92

92:                                               ; preds = %92, %.lr.ph119.new
  %.3117 = phi i64 [ 0, %.lr.ph119.new ], [ %104, %92 ]
  %niter153 = phi i64 [ 0, %.lr.ph119.new ], [ %niter153.next.3, %92 ]
  %93 = load ptr, ptr %90, align 8, !tbaa !16
  %94 = getelementptr inbounds i64, ptr %93, i64 %.3117
  store i64 0, ptr %94, align 8, !tbaa !17
  %95 = or disjoint i64 %.3117, 1
  %96 = load ptr, ptr %90, align 8, !tbaa !16
  %97 = getelementptr inbounds i64, ptr %96, i64 %95
  store i64 0, ptr %97, align 8, !tbaa !17
  %98 = or disjoint i64 %.3117, 2
  %99 = load ptr, ptr %90, align 8, !tbaa !16
  %100 = getelementptr inbounds i64, ptr %99, i64 %98
  store i64 0, ptr %100, align 8, !tbaa !17
  %101 = or disjoint i64 %.3117, 3
  %102 = load ptr, ptr %90, align 8, !tbaa !16
  %103 = getelementptr inbounds i64, ptr %102, i64 %101
  store i64 0, ptr %103, align 8, !tbaa !17
  %104 = add nuw nsw i64 %.3117, 4
  %niter153.next.3 = add i64 %niter153, 4
  %niter153.ncmp.3 = icmp eq i64 %niter153.next.3, %unroll_iter152
  br i1 %niter153.ncmp.3, label %._crit_edge120.loopexit.unr-lcssa, label %92, !llvm.loop !26

._crit_edge120.loopexit.unr-lcssa:                ; preds = %92, %.lr.ph119
  %.3117.unr = phi i64 [ 0, %.lr.ph119 ], [ %104, %92 ]
  %lcmp.mod151.not = icmp eq i64 %xtraiter149, 0
  br i1 %lcmp.mod151.not, label %._crit_edge120, label %.epil.preheader148

.epil.preheader148:                               ; preds = %._crit_edge120.loopexit.unr-lcssa, %.epil.preheader148
  %.3117.epil = phi i64 [ %107, %.epil.preheader148 ], [ %.3117.unr, %._crit_edge120.loopexit.unr-lcssa ]
  %epil.iter150 = phi i64 [ %epil.iter150.next, %.epil.preheader148 ], [ 0, %._crit_edge120.loopexit.unr-lcssa ]
  %105 = load ptr, ptr %90, align 8, !tbaa !16
  %106 = getelementptr inbounds i64, ptr %105, i64 %.3117.epil
  store i64 0, ptr %106, align 8, !tbaa !17
  %107 = add nuw nsw i64 %.3117.epil, 1
  %epil.iter150.next = add i64 %epil.iter150, 1
  %epil.iter150.cmp.not = icmp eq i64 %epil.iter150.next, %xtraiter149
  br i1 %epil.iter150.cmp.not, label %._crit_edge120, label %.epil.preheader148, !llvm.loop !27

._crit_edge120:                                   ; preds = %._crit_edge120.loopexit.unr-lcssa, %.epil.preheader148, %._crit_edge
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %0, i64 noundef %.0.lcssa, ptr noundef %1)
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %.0.lcssa, ptr noundef %1)
  br i1 %.not92.not108, label %.lr.ph129, label %._crit_edge130

.lr.ph129:                                        ; preds = %._crit_edge120
  %108 = getelementptr inbounds i8, ptr %6, i64 56
  %109 = getelementptr inbounds i8, ptr %5, i64 56
  %110 = getelementptr inbounds i8, ptr %7, i64 56
  %111 = getelementptr inbounds i8, ptr %0, i64 120
  %112 = getelementptr inbounds i8, ptr %4, i64 56
  %113 = getelementptr inbounds i8, ptr %0, i64 56
  %.pre135 = load ptr, ptr %108, align 8, !tbaa !16
  br label %115

.loopexit:                                        ; preds = %.lr.ph124, %115
  %114 = phi ptr [ %116, %115 ], [ %147, %.lr.ph124 ]
  %exitcond134.not = icmp eq i64 %119, %16
  br i1 %exitcond134.not, label %._crit_edge130, label %115, !llvm.loop !28

115:                                              ; preds = %.lr.ph129, %.loopexit
  %116 = phi ptr [ %.pre135, %.lr.ph129 ], [ %114, %.loopexit ]
  %.4127 = phi i64 [ 0, %.lr.ph129 ], [ %119, %.loopexit ]
  %117 = getelementptr inbounds i64, ptr %116, i64 %.4127
  %118 = load i64, ptr %117, align 8, !tbaa !17
  %119 = add nuw nsw i64 %.4127, 1
  %120 = getelementptr inbounds i64, ptr %116, i64 %119
  %121 = load i64, ptr %120, align 8, !tbaa !17
  %.not96.not121 = icmp slt i64 %118, %121
  br i1 %.not96.not121, label %.lr.ph124, label %.loopexit

.lr.ph124:                                        ; preds = %115, %.lr.ph124
  %.186122 = phi i64 [ %146, %.lr.ph124 ], [ %118, %115 ]
  %122 = load ptr, ptr %109, align 8, !tbaa !16
  %123 = getelementptr inbounds i64, ptr %122, i64 %.186122
  %124 = load i64, ptr %123, align 8, !tbaa !17
  %125 = load ptr, ptr %85, align 8, !tbaa !16
  %126 = getelementptr inbounds i64, ptr %125, i64 %124
  %127 = load i64, ptr %126, align 8, !tbaa !17
  %128 = load ptr, ptr %110, align 8, !tbaa !16
  %129 = getelementptr inbounds i64, ptr %128, i64 %124
  %130 = load i64, ptr %129, align 8, !tbaa !17
  %131 = add nsw i64 %130, %127
  %132 = load ptr, ptr %111, align 8, !tbaa !16
  %133 = getelementptr inbounds i64, ptr %132, i64 %131
  store i64 %.4127, ptr %133, align 8, !tbaa !17
  %134 = load ptr, ptr %112, align 8, !tbaa !16
  %135 = getelementptr inbounds double, ptr %134, i64 %.186122
  %136 = load double, ptr %135, align 8, !tbaa !29
  %137 = load ptr, ptr %113, align 8, !tbaa !16
  %138 = getelementptr inbounds double, ptr %137, i64 %131
  store double %136, ptr %138, align 8, !tbaa !29
  %139 = load ptr, ptr %109, align 8, !tbaa !16
  %140 = getelementptr inbounds i64, ptr %139, i64 %.186122
  %141 = load i64, ptr %140, align 8, !tbaa !17
  %142 = load ptr, ptr %110, align 8, !tbaa !16
  %143 = getelementptr inbounds i64, ptr %142, i64 %141
  %144 = load i64, ptr %143, align 8, !tbaa !17
  %145 = add nsw i64 %144, 1
  store i64 %145, ptr %143, align 8, !tbaa !17
  %146 = add nsw i64 %.186122, 1
  %147 = load ptr, ptr %108, align 8, !tbaa !16
  %148 = getelementptr inbounds i64, ptr %147, i64 %119
  %149 = load i64, ptr %148, align 8, !tbaa !17
  %.not96.not = icmp slt i64 %146, %149
  br i1 %.not96.not, label %.lr.ph124, label %.loopexit, !llvm.loop !31

._crit_edge130:                                   ; preds = %.loopexit, %._crit_edge120
  call void @_ZN11alglib_impl15sparseinitduidxEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1)
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #4
  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 void
}

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

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

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

declare void @_ZN11alglib_impl15ae_swap_vectorsEPNS_9ae_vectorES1_(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_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(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, !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 336}
!15 = !{!6, !8, i64 328}
!16 = !{!9, !9, i64 0}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}
!25 = !{!6, !8, i64 352}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !21}
!29 = !{!30, !30, i64 0}
!30 = !{!"double", !9, i64 0}
!31 = distinct !{!31, !21}


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