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

45:                                               ; preds = %56, %3
  %46 = load i64, ptr %12, align 8, !tbaa !16
  %47 = load i64, ptr %11, align 8, !tbaa !16
  %48 = icmp sle i64 %46, %47
  br i1 %48, label %49, label %59

49:                                               ; preds = %45
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %50, i32 0, i32 2
  %52 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %51, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  %54 = load i64, ptr %12, align 8, !tbaa !16
  %55 = getelementptr inbounds i64, ptr %53, i64 %54
  store i64 0, ptr %55, align 8, !tbaa !16
  br label %56

56:                                               ; preds = %49
  %57 = load i64, ptr %12, align 8, !tbaa !16
  %58 = add nsw i64 %57, 1
  store i64 %58, ptr %12, align 8, !tbaa !16
  br label %45, !llvm.loop !19

59:                                               ; preds = %45
  store i64 0, ptr %12, align 8, !tbaa !16
  br label %60

60:                                               ; preds = %114, %59
  %61 = load i64, ptr %12, align 8, !tbaa !16
  %62 = load i64, ptr %9, align 8, !tbaa !16
  %63 = sub nsw i64 %62, 1
  %64 = icmp sle i64 %61, %63
  br i1 %64, label %65, label %117

65:                                               ; preds = %60
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %66, i32 0, i32 2
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !18
  %70 = load i64, ptr %12, align 8, !tbaa !16
  %71 = getelementptr inbounds i64, ptr %69, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !16
  store i64 %72, ptr %13, align 8, !tbaa !16
  br label %73

73:                                               ; preds = %110, %65
  %74 = load i64, ptr %13, align 8, !tbaa !16
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %75, i32 0, i32 2
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %76, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !18
  %79 = load i64, ptr %12, align 8, !tbaa !16
  %80 = add nsw i64 %79, 1
  %81 = getelementptr inbounds i64, ptr %78, i64 %80
  %82 = load i64, ptr %81, align 8, !tbaa !16
  %83 = sub nsw i64 %82, 1
  %84 = icmp sle i64 %74, %83
  br i1 %84, label %85, label %113

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

110:                                              ; preds = %85
  %111 = load i64, ptr %13, align 8, !tbaa !16
  %112 = add nsw i64 %111, 1
  store i64 %112, ptr %13, align 8, !tbaa !16
  br label %73, !llvm.loop !21

113:                                              ; preds = %73
  br label %114

114:                                              ; preds = %113
  %115 = load i64, ptr %12, align 8, !tbaa !16
  %116 = add nsw i64 %115, 1
  store i64 %116, ptr %12, align 8, !tbaa !16
  br label %60, !llvm.loop !22

117:                                              ; preds = %60
  store i64 0, ptr %12, align 8, !tbaa !16
  br label %118

118:                                              ; preds = %147, %117
  %119 = load i64, ptr %12, align 8, !tbaa !16
  %120 = load i64, ptr %11, align 8, !tbaa !16
  %121 = sub nsw i64 %120, 1
  %122 = icmp sle i64 %119, %121
  br i1 %122, label %123, label %150

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

147:                                              ; preds = %123
  %148 = load i64, ptr %12, align 8, !tbaa !16
  %149 = add nsw i64 %148, 1
  store i64 %149, ptr %12, align 8, !tbaa !16
  br label %118, !llvm.loop !23

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

162:                                              ; preds = %172, %150
  %163 = load i64, ptr %12, align 8, !tbaa !16
  %164 = load i64, ptr %11, align 8, !tbaa !16
  %165 = sub nsw i64 %164, 1
  %166 = icmp sle i64 %163, %165
  br i1 %166, label %167, label %175

167:                                              ; preds = %162
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !18
  %170 = load i64, ptr %12, align 8, !tbaa !16
  %171 = getelementptr inbounds i64, ptr %169, i64 %170
  store i64 0, ptr %171, align 8, !tbaa !16
  br label %172

172:                                              ; preds = %167
  %173 = load i64, ptr %12, align 8, !tbaa !16
  %174 = add nsw i64 %173, 1
  store i64 %174, ptr %12, align 8, !tbaa !16
  br label %162, !llvm.loop !25

175:                                              ; preds = %162
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %176, i32 0, i32 0
  %178 = load i64, ptr %15, align 8, !tbaa !16
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %177, i64 noundef %178, ptr noundef %179)
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %180, i32 0, i32 1
  %182 = load i64, ptr %15, align 8, !tbaa !16
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %181, i64 noundef %182, ptr noundef %183)
  store i64 0, ptr %12, align 8, !tbaa !16
  br label %184

184:                                              ; preds = %271, %175
  %185 = load i64, ptr %12, align 8, !tbaa !16
  %186 = load i64, ptr %9, align 8, !tbaa !16
  %187 = sub nsw i64 %186, 1
  %188 = icmp sle i64 %185, %187
  br i1 %188, label %189, label %274

189:                                              ; preds = %184
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %190, i32 0, i32 2
  %192 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %191, i32 0, i32 4
  %193 = load ptr, ptr %192, align 8, !tbaa !18
  %194 = load i64, ptr %12, 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 %13, align 8, !tbaa !16
  br label %197

197:                                              ; preds = %267, %189
  %198 = load i64, ptr %13, align 8, !tbaa !16
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %199, i32 0, i32 2
  %201 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %200, i32 0, i32 4
  %202 = load ptr, ptr %201, align 8, !tbaa !18
  %203 = load i64, ptr %12, align 8, !tbaa !16
  %204 = add nsw i64 %203, 1
  %205 = getelementptr inbounds i64, ptr %202, i64 %204
  %206 = load i64, ptr %205, align 8, !tbaa !16
  %207 = sub nsw i64 %206, 1
  %208 = icmp sle i64 %198, %207
  br i1 %208, label %209, label %270

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

267:                                              ; preds = %209
  %268 = load i64, ptr %13, align 8, !tbaa !16
  %269 = add nsw i64 %268, 1
  store i64 %269, ptr %13, align 8, !tbaa !16
  br label %197, !llvm.loop !28

270:                                              ; preds = %197
  br label %271

271:                                              ; preds = %270
  %272 = load i64, ptr %12, align 8, !tbaa !16
  %273 = add nsw i64 %272, 1
  store i64 %273, ptr %12, align 8, !tbaa !16
  br label %184, !llvm.loop !29

274:                                              ; preds = %184
  %275 = load ptr, ptr %5, align 8, !tbaa !5
  %276 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparseinitduidxEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %275, ptr noundef %276)
  %277 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %277)
  call void @llvm.lifetime.end.p0(i64 64, 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 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #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_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.173 = 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 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_impl25sparsecopytransposecrsbufEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = alloca %"struct.alglib_impl::ae_frame", align 8
  %5 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %2, ptr noundef nonnull %4)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %5, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 2, ptr noundef %2, i1 noundef zeroext true)
  %6 = getelementptr inbounds i8, ptr %0, i64 320
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = icmp eq i64 %7, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.173, ptr noundef %2)
  %9 = getelementptr inbounds i8, ptr %0, i64 336
  %10 = load i64, ptr %9, align 8, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %0, i64 328
  %12 = load i64, ptr %11, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %1, i64 320
  store i64 1, ptr %13, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %1, i64 336
  store i64 %12, ptr %14, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %1, i64 328
  store i64 %10, ptr %15, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %1, i64 128
  %17 = add i64 %10, 1
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %17, ptr noundef %2)
  %.not104 = icmp slt i64 %10, 0
  br i1 %.not104, label %.preheader102, label %.lr.ph

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

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

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

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

.preheader102:                                    ; preds = %.preheader102.loopexit.unr-lcssa, %.epil.preheader, %3
  %.not95.not111 = icmp sgt i64 %12, 0
  br i1 %.not95.not111, label %.lr.ph114, label %.preheader

.lr.ph114:                                        ; preds = %.preheader102
  %24 = getelementptr inbounds i8, ptr %0, i64 184
  %25 = getelementptr inbounds i8, ptr %0, i64 120
  %26 = getelementptr inbounds i8, ptr %1, i64 184
  %.pre = load ptr, ptr %24, align 8, !tbaa !16
  br label %43

27:                                               ; preds = %27, %.lr.ph.new
  %.090105 = 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 %.090105
  store i64 0, ptr %29, align 8, !tbaa !17
  %30 = or disjoint i64 %.090105, 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 %.090105, 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 %.090105, 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 %.090105, 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 %.preheader102.loopexit.unr-lcssa, label %27, !llvm.loop !20

.loopexit101:                                     ; preds = %.lr.ph109, %43
  %40 = phi ptr [ %44, %43 ], [ %60, %.lr.ph109 ]
  %.1.lcssa = phi i64 [ %.0113, %43 ], [ %58, %.lr.ph109 ]
  %exitcond134.not = icmp eq i64 %47, %12
  br i1 %exitcond134.not, label %.preheader, label %43, !llvm.loop !22

.preheader:                                       ; preds = %.loopexit101, %.preheader102
  %.0.lcssa = phi i64 [ 0, %.preheader102 ], [ %.1.lcssa, %.loopexit101 ]
  %.not96.not116 = icmp sgt i64 %10, 0
  br i1 %.not96.not116, label %.lr.ph118, label %._crit_edge

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

.lr.ph118.new:                                    ; preds = %.lr.ph118
  %unroll_iter149 = and i64 %10, 9223372036854775806
  br label %63

43:                                               ; preds = %.lr.ph114, %.loopexit101
  %44 = phi ptr [ %.pre, %.lr.ph114 ], [ %40, %.loopexit101 ]
  %.0113 = phi i64 [ 0, %.lr.ph114 ], [ %.1.lcssa, %.loopexit101 ]
  %.191112 = phi i64 [ 0, %.lr.ph114 ], [ %47, %.loopexit101 ]
  %45 = getelementptr inbounds i64, ptr %44, i64 %.191112
  %46 = load i64, ptr %45, align 8, !tbaa !17
  %47 = add nuw nsw i64 %.191112, 1
  %48 = getelementptr inbounds i64, ptr %44, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !17
  %.not100.not106 = icmp slt i64 %46, %49
  br i1 %.not100.not106, label %.lr.ph109, label %.loopexit101

.lr.ph109:                                        ; preds = %43, %.lr.ph109
  %.1108 = phi i64 [ %58, %.lr.ph109 ], [ %.0113, %43 ]
  %.088107 = phi i64 [ %59, %.lr.ph109 ], [ %46, %43 ]
  %50 = load ptr, ptr %25, align 8, !tbaa !16
  %51 = getelementptr inbounds i64, ptr %50, i64 %.088107
  %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 %.1108, 1
  %59 = add nsw i64 %.088107, 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
  %.not100.not = icmp slt i64 %59, %62
  br i1 %.not100.not, label %.lr.ph109, label %.loopexit101, !llvm.loop !23

63:                                               ; preds = %63, %.lr.ph118.new
  %.2117 = phi i64 [ 0, %.lr.ph118.new ], [ %72, %63 ]
  %niter150 = phi i64 [ 0, %.lr.ph118.new ], [ %niter150.next.1, %63 ]
  %64 = load ptr, ptr %41, align 8, !tbaa !16
  %65 = or disjoint i64 %.2117, 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 %.2117
  %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 %.2117, 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
  %niter150.next.1 = add i64 %niter150, 2
  %niter150.ncmp.1 = icmp eq i64 %niter150.next.1, %unroll_iter149
  br i1 %niter150.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %63, !llvm.loop !24

._crit_edge.loopexit.unr-lcssa:                   ; preds = %63, %.lr.ph118
  %.2117.unr = phi i64 [ 0, %.lr.ph118 ], [ %72, %63 ]
  %lcmp.mod148.not = icmp eq i64 %xtraiter146, 0
  br i1 %lcmp.mod148.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 %.2117.unr
  %80 = getelementptr i8, ptr %79, i64 8
  %81 = load i64, ptr %80, align 8, !tbaa !17
  %82 = getelementptr inbounds i64, ptr %78, i64 %.2117.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 %1, i64 184
  %86 = load ptr, ptr %85, align 8, !tbaa !16
  %87 = getelementptr inbounds i64, ptr %86, i64 %10
  %88 = load i64, ptr %87, align 8, !tbaa !17
  %89 = getelementptr inbounds i8, ptr %1, 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 %5, i64 noundef %10, ptr noundef %2)
  br i1 %.not96.not116, label %.lr.ph122, label %._crit_edge123

.lr.ph122:                                        ; preds = %._crit_edge
  %90 = getelementptr inbounds i8, ptr %5, i64 56
  %xtraiter152 = and i64 %10, 3
  %91 = icmp ult i64 %10, 4
  br i1 %91, label %._crit_edge123.loopexit.unr-lcssa, label %.lr.ph122.new

.lr.ph122.new:                                    ; preds = %.lr.ph122
  %unroll_iter155 = and i64 %10, 9223372036854775804
  br label %92

92:                                               ; preds = %92, %.lr.ph122.new
  %.3120 = phi i64 [ 0, %.lr.ph122.new ], [ %104, %92 ]
  %niter156 = phi i64 [ 0, %.lr.ph122.new ], [ %niter156.next.3, %92 ]
  %93 = load ptr, ptr %90, align 8, !tbaa !16
  %94 = getelementptr inbounds i64, ptr %93, i64 %.3120
  store i64 0, ptr %94, align 8, !tbaa !17
  %95 = or disjoint i64 %.3120, 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 %.3120, 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 %.3120, 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 %.3120, 4
  %niter156.next.3 = add i64 %niter156, 4
  %niter156.ncmp.3 = icmp eq i64 %niter156.next.3, %unroll_iter155
  br i1 %niter156.ncmp.3, label %._crit_edge123.loopexit.unr-lcssa, label %92, !llvm.loop !26

._crit_edge123.loopexit.unr-lcssa:                ; preds = %92, %.lr.ph122
  %.3120.unr = phi i64 [ 0, %.lr.ph122 ], [ %104, %92 ]
  %lcmp.mod154.not = icmp eq i64 %xtraiter152, 0
  br i1 %lcmp.mod154.not, label %._crit_edge123, label %.epil.preheader151

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

._crit_edge123:                                   ; preds = %._crit_edge123.loopexit.unr-lcssa, %.epil.preheader151, %._crit_edge
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %1, i64 noundef %.0.lcssa, ptr noundef %2)
  %108 = getelementptr inbounds i8, ptr %1, i64 64
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %108, i64 noundef %.0.lcssa, ptr noundef %2)
  br i1 %.not95.not111, label %.lr.ph132, label %._crit_edge133

.lr.ph132:                                        ; preds = %._crit_edge123
  %109 = getelementptr inbounds i8, ptr %0, i64 184
  %110 = getelementptr inbounds i8, ptr %0, i64 120
  %111 = getelementptr inbounds i8, ptr %5, i64 56
  %112 = getelementptr inbounds i8, ptr %1, i64 120
  %113 = getelementptr inbounds i8, ptr %0, i64 56
  %114 = getelementptr inbounds i8, ptr %1, i64 56
  %.pre138 = load ptr, ptr %109, align 8, !tbaa !16
  br label %116

.loopexit:                                        ; preds = %.lr.ph127, %116
  %115 = phi ptr [ %117, %116 ], [ %148, %.lr.ph127 ]
  %exitcond137.not = icmp eq i64 %120, %12
  br i1 %exitcond137.not, label %._crit_edge133, label %116, !llvm.loop !28

116:                                              ; preds = %.lr.ph132, %.loopexit
  %117 = phi ptr [ %.pre138, %.lr.ph132 ], [ %115, %.loopexit ]
  %.4130 = phi i64 [ 0, %.lr.ph132 ], [ %120, %.loopexit ]
  %118 = getelementptr inbounds i64, ptr %117, i64 %.4130
  %119 = load i64, ptr %118, align 8, !tbaa !17
  %120 = add nuw nsw i64 %.4130, 1
  %121 = getelementptr inbounds i64, ptr %117, i64 %120
  %122 = load i64, ptr %121, align 8, !tbaa !17
  %.not99.not124 = icmp slt i64 %119, %122
  br i1 %.not99.not124, label %.lr.ph127, label %.loopexit

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

._crit_edge133:                                   ; preds = %.loopexit, %._crit_edge123
  call void @_ZN11alglib_impl15sparseinitduidxEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %1, ptr noundef %2)
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %2)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #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_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,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass