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

@.str.371 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.372 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.373 = external hidden unnamed_addr constant [33 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 noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorES1_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.alglib_impl::ae_frame", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i8, align 1
  %23 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  store i64 %3, ptr %11, align 8, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #4
  %24 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %24, ptr noundef %14)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 80, i1 false)
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %15, ptr noundef %25, ptr noundef %26, i1 noundef zeroext true)
  store ptr %15, ptr %9, align 8, !tbaa !5
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 3, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %30, i1 noundef zeroext true)
  %31 = load i64, ptr %10, align 8, !tbaa !9
  %32 = icmp sge i64 %31, 1
  %33 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef @.str.371, ptr noundef %33)
  %34 = load i64, ptr %11, align 8, !tbaa !9
  %35 = icmp sge i64 %34, 0
  br i1 %35, label %36, label %39

36:                                               ; preds = %6
  %37 = load i64, ptr %11, align 8, !tbaa !9
  %38 = icmp sle i64 %37, 3
  br label %39

39:                                               ; preds = %36, %6
  %40 = phi i1 [ false, %6 ], [ %38, %36 ]
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef @.str.372, ptr noundef %41)
  store i8 0, ptr %22, align 1, !tbaa !11
  %42 = load i64, ptr %11, align 8, !tbaa !9
  %43 = icmp eq i64 %42, 2
  br i1 %43, label %44, label %85

44:                                               ; preds = %39
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = load i64, ptr %10, align 8, !tbaa !9
  %47 = load i64, ptr %10, align 8, !tbaa !9
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %45, i64 noundef %46, i64 noundef %47, ptr noundef %48)
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %49

49:                                               ; preds = %81, %44
  %50 = load i64, ptr %20, align 8, !tbaa !9
  %51 = load i64, ptr %10, align 8, !tbaa !9
  %52 = sub nsw i64 %51, 1
  %53 = icmp sle i64 %50, %52
  br i1 %53, label %54, label %84

54:                                               ; preds = %49
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %69, %54
  %56 = load i64, ptr %21, align 8, !tbaa !9
  %57 = load i64, ptr %10, align 8, !tbaa !9
  %58 = sub nsw i64 %57, 1
  %59 = icmp sle i64 %56, %58
  br i1 %59, label %60, label %72

60:                                               ; preds = %55
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %61, i32 0, i32 6
  %63 = load ptr, ptr %62, align 8, !tbaa !13
  %64 = load i64, ptr %20, align 8, !tbaa !9
  %65 = getelementptr inbounds ptr, ptr %63, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = load i64, ptr %21, align 8, !tbaa !9
  %68 = getelementptr inbounds double, ptr %66, i64 %67
  store double 0.000000e+00, ptr %68, align 8, !tbaa !14
  br label %69

69:                                               ; preds = %60
  %70 = load i64, ptr %21, align 8, !tbaa !9
  %71 = add nsw i64 %70, 1
  store i64 %71, ptr %21, align 8, !tbaa !9
  br label %55, !llvm.loop !16

72:                                               ; preds = %55
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %73, i32 0, i32 6
  %75 = load ptr, ptr %74, align 8, !tbaa !13
  %76 = load i64, ptr %20, align 8, !tbaa !9
  %77 = getelementptr inbounds ptr, ptr %75, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = load i64, ptr %20, align 8, !tbaa !9
  %80 = getelementptr inbounds double, ptr %78, i64 %79
  store double 1.000000e+00, ptr %80, align 8, !tbaa !14
  br label %81

81:                                               ; preds = %72
  %82 = load i64, ptr %20, align 8, !tbaa !9
  %83 = add nsw i64 %82, 1
  store i64 %83, ptr %20, align 8, !tbaa !9
  br label %49, !llvm.loop !18

84:                                               ; preds = %49
  store i64 1, ptr %11, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %84, %39
  %86 = load i64, ptr %11, align 8, !tbaa !9
  %87 = icmp eq i64 %86, 3
  br i1 %87, label %88, label %92

88:                                               ; preds = %85
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = load i64, ptr %10, align 8, !tbaa !9
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %89, i64 noundef 1, i64 noundef %90, ptr noundef %91)
  br label %92

92:                                               ; preds = %88, %85
  %93 = load i64, ptr %10, align 8, !tbaa !9
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %93, ptr noundef %94)
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %111, %92
  %96 = load i64, ptr %20, align 8, !tbaa !9
  %97 = load i64, ptr %10, align 8, !tbaa !9
  %98 = sub nsw i64 %97, 2
  %99 = icmp sle i64 %96, %98
  br i1 %99, label %100, label %114

100:                                              ; preds = %95
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %101, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !13
  %104 = load i64, ptr %20, align 8, !tbaa !9
  %105 = getelementptr inbounds double, ptr %103, i64 %104
  %106 = load double, ptr %105, align 8, !tbaa !14
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !13
  %109 = load i64, ptr %20, align 8, !tbaa !9
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  store double %106, ptr %110, align 8, !tbaa !14
  br label %111

111:                                              ; preds = %100
  %112 = load i64, ptr %20, align 8, !tbaa !9
  %113 = add nsw i64 %112, 1
  store i64 %113, ptr %20, align 8, !tbaa !9
  br label %95, !llvm.loop !19

114:                                              ; preds = %95
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = load i64, ptr %10, align 8, !tbaa !9
  %117 = load i64, ptr %11, align 8, !tbaa !9
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = call noundef zeroext i1 @_ZN11alglib_impl15smatrixtdevdmklEPNS_9ae_vectorES1_llPNS_9ae_matrixEPbPNS_8ae_stateE(ptr noundef %115, ptr noundef %18, i64 noundef %116, i64 noundef %117, ptr noundef %118, ptr noundef %22, ptr noundef %119)
  br i1 %120, label %121, label %125

121:                                              ; preds = %114
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %122)
  %123 = load i8, ptr %22, align 1, !tbaa !11, !range !20, !noundef !21
  %124 = trunc i8 %123 to i1
  store i1 %124, ptr %7, align 1
  store i32 1, ptr %23, align 4
  br label %319

125:                                              ; preds = %114
  %126 = load i64, ptr %10, align 8, !tbaa !9
  %127 = add nsw i64 %126, 1
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %127, ptr noundef %128)
  %129 = load i64, ptr %10, align 8, !tbaa !9
  %130 = add nsw i64 %129, 1
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %130, ptr noundef %131)
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !13
  %134 = getelementptr inbounds double, ptr %133, i64 1
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !13
  %138 = getelementptr inbounds double, ptr %137, i64 0
  %139 = load i64, ptr %10, align 8, !tbaa !9
  %140 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %139)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %134, i64 noundef 1, ptr noundef %138, i64 noundef 1, i64 noundef %140)
  %141 = load i64, ptr %10, align 8, !tbaa !9
  %142 = icmp sgt i64 %141, 1
  br i1 %142, label %143, label %154

143:                                              ; preds = %125
  %144 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %145 = load ptr, ptr %144, align 8, !tbaa !13
  %146 = getelementptr inbounds double, ptr %145, i64 1
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %147, i32 0, i32 4
  %149 = load ptr, ptr %148, align 8, !tbaa !13
  %150 = getelementptr inbounds double, ptr %149, i64 0
  %151 = load i64, ptr %10, align 8, !tbaa !9
  %152 = sub nsw i64 %151, 1
  %153 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %152)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %146, i64 noundef 1, ptr noundef %150, i64 noundef 1, i64 noundef %153)
  br label %154

154:                                              ; preds = %143, %125
  %155 = load i64, ptr %11, align 8, !tbaa !9
  %156 = icmp eq i64 %155, 1
  br i1 %156, label %157, label %188

157:                                              ; preds = %154
  %158 = load i64, ptr %10, align 8, !tbaa !9
  %159 = add nsw i64 %158, 1
  %160 = load i64, ptr %10, align 8, !tbaa !9
  %161 = add nsw i64 %160, 1
  %162 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %19, i64 noundef %159, i64 noundef %161, ptr noundef %162)
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %163

163:                                              ; preds = %184, %157
  %164 = load i64, ptr %20, align 8, !tbaa !9
  %165 = load i64, ptr %10, align 8, !tbaa !9
  %166 = icmp sle i64 %164, %165
  br i1 %166, label %167, label %187

167:                                              ; preds = %163
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %169 = load ptr, ptr %168, align 8, !tbaa !13
  %170 = load i64, ptr %20, align 8, !tbaa !9
  %171 = getelementptr inbounds ptr, ptr %169, i64 %170
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  %173 = getelementptr inbounds double, ptr %172, i64 1
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %174, i32 0, i32 6
  %176 = load ptr, ptr %175, align 8, !tbaa !13
  %177 = load i64, ptr %20, align 8, !tbaa !9
  %178 = sub nsw i64 %177, 1
  %179 = getelementptr inbounds ptr, ptr %176, i64 %178
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  %181 = getelementptr inbounds double, ptr %180, i64 0
  %182 = load i64, ptr %10, align 8, !tbaa !9
  %183 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %182)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %173, i64 noundef 1, ptr noundef %181, i64 noundef 1, i64 noundef %183)
  br label %184

184:                                              ; preds = %167
  %185 = load i64, ptr %20, align 8, !tbaa !9
  %186 = add nsw i64 %185, 1
  store i64 %186, ptr %20, align 8, !tbaa !9
  br label %163, !llvm.loop !22

187:                                              ; preds = %163
  br label %188

188:                                              ; preds = %187, %154
  %189 = load i64, ptr %10, align 8, !tbaa !9
  %190 = load i64, ptr %11, align 8, !tbaa !9
  %191 = load ptr, ptr %13, align 8, !tbaa !5
  %192 = call noundef zeroext i1 @_ZN11alglib_implL18evd_tridiagonalevdEPNS_9ae_vectorES1_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %16, ptr noundef %17, i64 noundef %189, i64 noundef %190, ptr noundef %19, ptr noundef %191)
  %193 = zext i1 %192 to i8
  store i8 %193, ptr %22, align 1, !tbaa !11
  %194 = load i8, ptr %22, align 1, !tbaa !11, !range !20, !noundef !21
  %195 = trunc i8 %194 to i1
  br i1 %195, label %200, label %196

196:                                              ; preds = %188
  %197 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %197)
  %198 = load i8, ptr %22, align 1, !tbaa !11, !range !20, !noundef !21
  %199 = trunc i8 %198 to i1
  store i1 %199, ptr %7, align 1
  store i32 1, ptr %23, align 4
  br label %319

200:                                              ; preds = %188
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %201, i32 0, i32 4
  %203 = load ptr, ptr %202, align 8, !tbaa !13
  %204 = getelementptr inbounds double, ptr %203, i64 0
  %205 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %206 = load ptr, ptr %205, align 8, !tbaa !13
  %207 = getelementptr inbounds double, ptr %206, i64 1
  %208 = load i64, ptr %10, align 8, !tbaa !9
  %209 = sub nsw i64 %208, 1
  %210 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %209)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %204, i64 noundef 1, ptr noundef %207, i64 noundef 1, i64 noundef %210)
  %211 = load i64, ptr %11, align 8, !tbaa !9
  %212 = icmp ne i64 %211, 0
  br i1 %212, label %213, label %315

213:                                              ; preds = %200
  %214 = load i64, ptr %11, align 8, !tbaa !9
  %215 = icmp eq i64 %214, 1
  br i1 %215, label %216, label %246

216:                                              ; preds = %213
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %217

217:                                              ; preds = %239, %216
  %218 = load i64, ptr %20, align 8, !tbaa !9
  %219 = load i64, ptr %10, align 8, !tbaa !9
  %220 = icmp sle i64 %218, %219
  br i1 %220, label %221, label %242

221:                                              ; preds = %217
  %222 = load ptr, ptr %12, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %222, i32 0, i32 6
  %224 = load ptr, ptr %223, align 8, !tbaa !13
  %225 = load i64, ptr %20, align 8, !tbaa !9
  %226 = sub nsw i64 %225, 1
  %227 = getelementptr inbounds ptr, ptr %224, i64 %226
  %228 = load ptr, ptr %227, align 8, !tbaa !5
  %229 = getelementptr inbounds double, ptr %228, i64 0
  %230 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %231 = load ptr, ptr %230, align 8, !tbaa !13
  %232 = load i64, ptr %20, align 8, !tbaa !9
  %233 = getelementptr inbounds ptr, ptr %231, i64 %232
  %234 = load ptr, ptr %233, align 8, !tbaa !5
  %235 = getelementptr inbounds double, ptr %234, i64 1
  %236 = load i64, ptr %10, align 8, !tbaa !9
  %237 = sub nsw i64 %236, 1
  %238 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %237)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %229, i64 noundef 1, ptr noundef %235, i64 noundef 1, i64 noundef %238)
  br label %239

239:                                              ; preds = %221
  %240 = load i64, ptr %20, align 8, !tbaa !9
  %241 = add nsw i64 %240, 1
  store i64 %241, ptr %20, align 8, !tbaa !9
  br label %217, !llvm.loop !23

242:                                              ; preds = %217
  %243 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %243)
  %244 = load i8, ptr %22, align 1, !tbaa !11, !range !20, !noundef !21
  %245 = trunc i8 %244 to i1
  store i1 %245, ptr %7, align 1
  store i32 1, ptr %23, align 4
  br label %319

246:                                              ; preds = %213
  %247 = load i64, ptr %11, align 8, !tbaa !9
  %248 = icmp eq i64 %247, 2
  br i1 %248, label %249, label %287

249:                                              ; preds = %246
  %250 = load ptr, ptr %12, align 8, !tbaa !5
  %251 = load i64, ptr %10, align 8, !tbaa !9
  %252 = sub nsw i64 %251, 1
  %253 = add nsw i64 %252, 1
  %254 = load i64, ptr %10, align 8, !tbaa !9
  %255 = sub nsw i64 %254, 1
  %256 = add nsw i64 %255, 1
  %257 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %250, i64 noundef %253, i64 noundef %256, ptr noundef %257)
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %258

258:                                              ; preds = %280, %249
  %259 = load i64, ptr %20, align 8, !tbaa !9
  %260 = load i64, ptr %10, align 8, !tbaa !9
  %261 = icmp sle i64 %259, %260
  br i1 %261, label %262, label %283

262:                                              ; preds = %258
  %263 = load ptr, ptr %12, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %263, i32 0, i32 6
  %265 = load ptr, ptr %264, align 8, !tbaa !13
  %266 = load i64, ptr %20, align 8, !tbaa !9
  %267 = sub nsw i64 %266, 1
  %268 = getelementptr inbounds ptr, ptr %265, i64 %267
  %269 = load ptr, ptr %268, align 8, !tbaa !5
  %270 = getelementptr inbounds double, ptr %269, i64 0
  %271 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %272 = load ptr, ptr %271, align 8, !tbaa !13
  %273 = load i64, ptr %20, align 8, !tbaa !9
  %274 = getelementptr inbounds ptr, ptr %272, i64 %273
  %275 = load ptr, ptr %274, align 8, !tbaa !5
  %276 = getelementptr inbounds double, ptr %275, i64 1
  %277 = load i64, ptr %10, align 8, !tbaa !9
  %278 = sub nsw i64 %277, 1
  %279 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %278)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %270, i64 noundef 1, ptr noundef %276, i64 noundef 1, i64 noundef %279)
  br label %280

280:                                              ; preds = %262
  %281 = load i64, ptr %20, align 8, !tbaa !9
  %282 = add nsw i64 %281, 1
  store i64 %282, ptr %20, align 8, !tbaa !9
  br label %258, !llvm.loop !24

283:                                              ; preds = %258
  %284 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %284)
  %285 = load i8, ptr %22, align 1, !tbaa !11, !range !20, !noundef !21
  %286 = trunc i8 %285 to i1
  store i1 %286, ptr %7, align 1
  store i32 1, ptr %23, align 4
  br label %319

287:                                              ; preds = %246
  %288 = load i64, ptr %11, align 8, !tbaa !9
  %289 = icmp eq i64 %288, 3
  br i1 %289, label %290, label %313

290:                                              ; preds = %287
  %291 = load ptr, ptr %12, align 8, !tbaa !5
  %292 = load i64, ptr %10, align 8, !tbaa !9
  %293 = sub nsw i64 %292, 1
  %294 = add nsw i64 %293, 1
  %295 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %291, i64 noundef 1, i64 noundef %294, ptr noundef %295)
  %296 = load ptr, ptr %12, align 8, !tbaa !5
  %297 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %296, i32 0, i32 6
  %298 = load ptr, ptr %297, align 8, !tbaa !13
  %299 = getelementptr inbounds ptr, ptr %298, i64 0
  %300 = load ptr, ptr %299, align 8, !tbaa !5
  %301 = getelementptr inbounds double, ptr %300, i64 0
  %302 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %303 = load ptr, ptr %302, align 8, !tbaa !13
  %304 = getelementptr inbounds ptr, ptr %303, i64 1
  %305 = load ptr, ptr %304, align 8, !tbaa !5
  %306 = getelementptr inbounds double, ptr %305, i64 1
  %307 = load i64, ptr %10, align 8, !tbaa !9
  %308 = sub nsw i64 %307, 1
  %309 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %308)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %301, i64 noundef 1, ptr noundef %306, i64 noundef 1, i64 noundef %309)
  %310 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %310)
  %311 = load i8, ptr %22, align 1, !tbaa !11, !range !20, !noundef !21
  %312 = trunc i8 %311 to i1
  store i1 %312, ptr %7, align 1
  store i32 1, ptr %23, align 4
  br label %319

313:                                              ; preds = %287
  %314 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.373, ptr noundef %314)
  br label %315

315:                                              ; preds = %313, %200
  %316 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %316)
  %317 = load i8, ptr %22, align 1, !tbaa !11, !range !20, !noundef !21
  %318 = trunc i8 %317 to i1
  store i1 %318, ptr %7, align 1
  store i32 1, ptr %23, align 4
  br label %319

319:                                              ; preds = %315, %290, %283, %242, %196, %121
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  %320 = load i1, ptr %7, align 1
  ret i1 %320
}

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #2

declare void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}


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

@.str.371 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.372 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.373 = external hidden unnamed_addr constant [33 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 noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorES1_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %5, ptr noundef nonnull %7)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %12, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %1, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  %14 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.371, ptr noundef %5)
  %15 = icmp ult i64 %3, 4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.372, ptr noundef %5)
  store i8 0, ptr %13, align 1, !tbaa !5
  switch i64 %3, label %.thread [
    i64 2, label %16
    i64 3, label %49
  ]

16:                                               ; preds = %6
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %4, i64 noundef %2, i64 noundef %2, ptr noundef %5)
  br i1 %14, label %.preheader118.lr.ph, label %.thread.thread

.thread.thread:                                   ; preds = %16
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %2, ptr noundef %5)
  br label %._crit_edge

.preheader118.lr.ph:                              ; preds = %16
  %17 = getelementptr inbounds i8, ptr %4, i64 72
  %xtraiter = and i64 %2, 3
  %18 = icmp ult i64 %2, 4
  %unroll_iter = and i64 %2, 9223372036854775804
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader118.us

.preheader118.us:                                 ; preds = %._crit_edge.us, %.preheader118.lr.ph
  %.0105122.us = phi i64 [ 0, %.preheader118.lr.ph ], [ %48, %._crit_edge.us ]
  br i1 %18, label %._crit_edge.us.unr-lcssa, label %.preheader118.us.new

.preheader118.us.new:                             ; preds = %.preheader118.us, %.preheader118.us.new
  %.0120.us = phi i64 [ %38, %.preheader118.us.new ], [ 0, %.preheader118.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader118.us.new ], [ 0, %.preheader118.us ]
  %19 = load ptr, ptr %17, align 8, !tbaa !9
  %20 = getelementptr inbounds ptr, ptr %19, i64 %.0105122.us
  %21 = load ptr, ptr %20, align 8, !tbaa !10
  %22 = getelementptr inbounds double, ptr %21, i64 %.0120.us
  store double 0.000000e+00, ptr %22, align 8, !tbaa !12
  %23 = or disjoint i64 %.0120.us, 1
  %24 = load ptr, ptr %17, align 8, !tbaa !9
  %25 = getelementptr inbounds ptr, ptr %24, i64 %.0105122.us
  %26 = load ptr, ptr %25, align 8, !tbaa !10
  %27 = getelementptr inbounds double, ptr %26, i64 %23
  store double 0.000000e+00, ptr %27, align 8, !tbaa !12
  %28 = or disjoint i64 %.0120.us, 2
  %29 = load ptr, ptr %17, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %29, i64 %.0105122.us
  %31 = load ptr, ptr %30, align 8, !tbaa !10
  %32 = getelementptr inbounds double, ptr %31, i64 %28
  store double 0.000000e+00, ptr %32, align 8, !tbaa !12
  %33 = or disjoint i64 %.0120.us, 3
  %34 = load ptr, ptr %17, align 8, !tbaa !9
  %35 = getelementptr inbounds ptr, ptr %34, i64 %.0105122.us
  %36 = load ptr, ptr %35, align 8, !tbaa !10
  %37 = getelementptr inbounds double, ptr %36, i64 %33
  store double 0.000000e+00, ptr %37, align 8, !tbaa !12
  %38 = add nuw nsw i64 %.0120.us, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.preheader118.us.new, !llvm.loop !14

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader118.us.new, %.preheader118.us
  %.0120.us.unr = phi i64 [ 0, %.preheader118.us ], [ %38, %.preheader118.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %.0120.us.epil = phi i64 [ %43, %.epil.preheader ], [ %.0120.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %39 = load ptr, ptr %17, align 8, !tbaa !9
  %40 = getelementptr inbounds ptr, ptr %39, i64 %.0105122.us
  %41 = load ptr, ptr %40, align 8, !tbaa !10
  %42 = getelementptr inbounds double, ptr %41, i64 %.0120.us.epil
  store double 0.000000e+00, ptr %42, align 8, !tbaa !12
  %43 = add nuw nsw i64 %.0120.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !16

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %44 = load ptr, ptr %17, align 8, !tbaa !9
  %45 = getelementptr inbounds ptr, ptr %44, i64 %.0105122.us
  %46 = load ptr, ptr %45, align 8, !tbaa !10
  %47 = getelementptr inbounds double, ptr %46, i64 %.0105122.us
  store double 1.000000e+00, ptr %47, align 8, !tbaa !12
  %48 = add nuw nsw i64 %.0105122.us, 1
  %exitcond133.not = icmp eq i64 %48, %2
  br i1 %exitcond133.not, label %.thread, label %.preheader118.us, !llvm.loop !18

49:                                               ; preds = %6
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %4, i64 noundef 1, i64 noundef %2, ptr noundef %5)
  br label %.thread

.thread:                                          ; preds = %._crit_edge.us, %6, %49
  %50 = phi i1 [ true, %49 ], [ false, %6 ], [ false, %._crit_edge.us ]
  %.0107117 = phi i64 [ 3, %49 ], [ %3, %6 ], [ 1, %._crit_edge.us ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %2, ptr noundef %5)
  %.not123 = icmp slt i64 %2, 2
  br i1 %.not123, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.thread
  %51 = getelementptr inbounds i8, ptr %8, i64 56
  %52 = getelementptr inbounds i8, ptr %11, i64 56
  %53 = add nsw i64 %2, -2
  %54 = add nsw i64 %2, -1
  %xtraiter141 = and i64 %54, 3
  %55 = icmp ult i64 %53, 3
  br i1 %55, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter144 = and i64 %54, -4
  br label %56

56:                                               ; preds = %56, %.lr.ph.new
  %.1124 = phi i64 [ 0, %.lr.ph.new ], [ %80, %56 ]
  %niter145 = phi i64 [ 0, %.lr.ph.new ], [ %niter145.next.3, %56 ]
  %57 = load ptr, ptr %51, align 8, !tbaa !9
  %58 = getelementptr inbounds double, ptr %57, i64 %.1124
  %59 = load double, ptr %58, align 8, !tbaa !12
  %60 = load ptr, ptr %52, align 8, !tbaa !9
  %61 = getelementptr inbounds double, ptr %60, i64 %.1124
  store double %59, ptr %61, align 8, !tbaa !12
  %62 = or disjoint i64 %.1124, 1
  %63 = load ptr, ptr %51, align 8, !tbaa !9
  %64 = getelementptr inbounds double, ptr %63, i64 %62
  %65 = load double, ptr %64, align 8, !tbaa !12
  %66 = load ptr, ptr %52, align 8, !tbaa !9
  %67 = getelementptr inbounds double, ptr %66, i64 %62
  store double %65, ptr %67, align 8, !tbaa !12
  %68 = or disjoint i64 %.1124, 2
  %69 = load ptr, ptr %51, align 8, !tbaa !9
  %70 = getelementptr inbounds double, ptr %69, i64 %68
  %71 = load double, ptr %70, align 8, !tbaa !12
  %72 = load ptr, ptr %52, align 8, !tbaa !9
  %73 = getelementptr inbounds double, ptr %72, i64 %68
  store double %71, ptr %73, align 8, !tbaa !12
  %74 = or disjoint i64 %.1124, 3
  %75 = load ptr, ptr %51, align 8, !tbaa !9
  %76 = getelementptr inbounds double, ptr %75, i64 %74
  %77 = load double, ptr %76, align 8, !tbaa !12
  %78 = load ptr, ptr %52, align 8, !tbaa !9
  %79 = getelementptr inbounds double, ptr %78, i64 %74
  store double %77, ptr %79, align 8, !tbaa !12
  %80 = add nuw i64 %.1124, 4
  %niter145.next.3 = add i64 %niter145, 4
  %niter145.ncmp.3 = icmp eq i64 %niter145.next.3, %unroll_iter144
  br i1 %niter145.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %56, !llvm.loop !19

._crit_edge.loopexit.unr-lcssa:                   ; preds = %56, %.lr.ph
  %.1124.unr = phi i64 [ 0, %.lr.ph ], [ %80, %56 ]
  %lcmp.mod143.not = icmp eq i64 %xtraiter141, 0
  br i1 %lcmp.mod143.not, label %._crit_edge, label %.epil.preheader140

.epil.preheader140:                               ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader140
  %.1124.epil = phi i64 [ %86, %.epil.preheader140 ], [ %.1124.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter142 = phi i64 [ %epil.iter142.next, %.epil.preheader140 ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %81 = load ptr, ptr %51, align 8, !tbaa !9
  %82 = getelementptr inbounds double, ptr %81, i64 %.1124.epil
  %83 = load double, ptr %82, align 8, !tbaa !12
  %84 = load ptr, ptr %52, align 8, !tbaa !9
  %85 = getelementptr inbounds double, ptr %84, i64 %.1124.epil
  store double %83, ptr %85, align 8, !tbaa !12
  %86 = add nuw i64 %.1124.epil, 1
  %epil.iter142.next = add i64 %epil.iter142, 1
  %epil.iter142.cmp.not = icmp eq i64 %epil.iter142.next, %xtraiter141
  br i1 %epil.iter142.cmp.not, label %._crit_edge, label %.epil.preheader140, !llvm.loop !20

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader140, %.thread.thread, %.thread
  %.0107117139 = phi i64 [ 1, %.thread.thread ], [ %.0107117, %.thread ], [ %.0107117, %.epil.preheader140 ], [ %.0107117, %._crit_edge.loopexit.unr-lcssa ]
  %87 = phi i1 [ false, %.thread.thread ], [ %50, %.thread ], [ %50, %.epil.preheader140 ], [ %50, %._crit_edge.loopexit.unr-lcssa ]
  %88 = call noundef zeroext i1 @_ZN11alglib_impl15smatrixtdevdmklEPNS_9ae_vectorES1_llPNS_9ae_matrixEPbPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %11, i64 noundef %2, i64 noundef %.0107117139, ptr noundef %4, ptr noundef nonnull %13, ptr noundef %5)
  br i1 %88, label %._crit_edge132, label %89

89:                                               ; preds = %._crit_edge
  %90 = add i64 %2, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %90, ptr noundef %5)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %90, ptr noundef %5)
  %91 = getelementptr inbounds i8, ptr %9, i64 56
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = getelementptr inbounds i8, ptr %92, i64 8
  %94 = getelementptr inbounds i8, ptr %0, i64 56
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  %96 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %2)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %93, i64 noundef 1, ptr noundef %95, i64 noundef 1, i64 noundef %96)
  %97 = icmp sgt i64 %2, 1
  br i1 %97, label %98, label %106

98:                                               ; preds = %89
  %99 = getelementptr inbounds i8, ptr %10, i64 56
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  %101 = getelementptr inbounds i8, ptr %100, i64 8
  %102 = getelementptr inbounds i8, ptr %8, i64 56
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = add nsw i64 %2, -1
  %105 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %104)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %101, i64 noundef 1, ptr noundef %103, i64 noundef 1, i64 noundef %105)
  br label %106

106:                                              ; preds = %98, %89
  %107 = icmp eq i64 %.0107117139, 1
  br i1 %107, label %108, label %.loopexit

108:                                              ; preds = %106
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %90, i64 noundef %90, ptr noundef %5)
  %.not112125 = icmp slt i64 %2, 1
  br i1 %.not112125, label %.loopexit, label %.lr.ph128

.lr.ph128:                                        ; preds = %108
  %109 = getelementptr inbounds i8, ptr %12, i64 72
  %110 = getelementptr inbounds i8, ptr %4, i64 72
  br label %111

111:                                              ; preds = %.lr.ph128, %111
  %.2126 = phi i64 [ 1, %.lr.ph128 ], [ %121, %111 ]
  %112 = load ptr, ptr %109, align 8, !tbaa !9
  %113 = getelementptr inbounds ptr, ptr %112, i64 %.2126
  %114 = load ptr, ptr %113, align 8, !tbaa !10
  %115 = getelementptr inbounds i8, ptr %114, i64 8
  %116 = load ptr, ptr %110, align 8, !tbaa !9
  %117 = getelementptr ptr, ptr %116, i64 %.2126
  %118 = getelementptr i8, ptr %117, i64 -8
  %119 = load ptr, ptr %118, align 8, !tbaa !10
  %120 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %2)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %115, i64 noundef 1, ptr noundef %119, i64 noundef 1, i64 noundef %120)
  %121 = add nuw i64 %.2126, 1
  %exitcond135.not = icmp eq i64 %.2126, %2
  br i1 %exitcond135.not, label %.loopexit, label %111, !llvm.loop !21

.loopexit:                                        ; preds = %111, %108, %106
  %122 = call noundef zeroext i1 @_ZN11alglib_implL18evd_tridiagonalevdEPNS_9ae_vectorES1_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %10, i64 noundef %2, i64 noundef %.0107117139, ptr noundef nonnull %12, ptr noundef %5)
  %123 = zext i1 %122 to i8
  store i8 %123, ptr %13, align 1, !tbaa !5
  br i1 %122, label %124, label %._crit_edge132

124:                                              ; preds = %.loopexit
  %125 = load ptr, ptr %94, align 8, !tbaa !9
  %126 = load ptr, ptr %91, align 8, !tbaa !9
  %127 = getelementptr inbounds i8, ptr %126, i64 8
  %128 = add nsw i64 %2, -1
  %129 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %128)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %125, i64 noundef 1, ptr noundef nonnull %127, i64 noundef 1, i64 noundef %129)
  %.not113 = icmp eq i64 %.0107117139, 0
  br i1 %.not113, label %._crit_edge132, label %130

130:                                              ; preds = %124
  br i1 %107, label %.preheader, label %144

.preheader:                                       ; preds = %130
  %.not114129 = icmp slt i64 %2, 1
  br i1 %.not114129, label %._crit_edge132, label %.lr.ph131

.lr.ph131:                                        ; preds = %.preheader
  %131 = getelementptr inbounds i8, ptr %4, i64 72
  %132 = getelementptr inbounds i8, ptr %12, i64 72
  br label %133

133:                                              ; preds = %.lr.ph131, %133
  %.3130 = phi i64 [ 1, %.lr.ph131 ], [ %143, %133 ]
  %134 = load ptr, ptr %131, align 8, !tbaa !9
  %135 = getelementptr ptr, ptr %134, i64 %.3130
  %136 = getelementptr i8, ptr %135, i64 -8
  %137 = load ptr, ptr %136, align 8, !tbaa !10
  %138 = load ptr, ptr %132, align 8, !tbaa !9
  %139 = getelementptr inbounds ptr, ptr %138, i64 %.3130
  %140 = load ptr, ptr %139, align 8, !tbaa !10
  %141 = getelementptr inbounds i8, ptr %140, i64 8
  %142 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %128)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %137, i64 noundef 1, ptr noundef nonnull %141, i64 noundef 1, i64 noundef %142)
  %143 = add nuw i64 %.3130, 1
  %exitcond136.not = icmp eq i64 %.3130, %2
  br i1 %exitcond136.not, label %._crit_edge132, label %133, !llvm.loop !22

144:                                              ; preds = %130
  br i1 %87, label %145, label %155

145:                                              ; preds = %144
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %4, i64 noundef 1, i64 noundef %2, ptr noundef %5)
  %146 = getelementptr inbounds i8, ptr %4, i64 72
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = load ptr, ptr %147, align 8, !tbaa !10
  %149 = getelementptr inbounds i8, ptr %12, i64 72
  %150 = load ptr, ptr %149, align 8, !tbaa !9
  %151 = getelementptr inbounds i8, ptr %150, i64 8
  %152 = load ptr, ptr %151, align 8, !tbaa !10
  %153 = getelementptr inbounds i8, ptr %152, i64 8
  %154 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %128)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %148, i64 noundef 1, ptr noundef nonnull %153, i64 noundef 1, i64 noundef %154)
  br label %._crit_edge132

155:                                              ; preds = %144
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.373, ptr noundef %5)
  br label %._crit_edge132

._crit_edge132:                                   ; preds = %133, %124, %155, %.preheader, %.loopexit, %._crit_edge, %145
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  %.0106.in = load i8, ptr %13, align 1, !tbaa !5, !range !23, !noundef !24
  %.0106 = trunc nuw i8 %.0106.in to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  ret i1 %.0106
}

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 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

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

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

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

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

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

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

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, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = !{i8 0, i8 2}
!24 = !{}


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