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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.326 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.327 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.328 = 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorEPKS0_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_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %15, ptr noundef %25, ptr noundef %26, i1 noundef zeroext true)
  %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.326, 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.327, 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 = %110, %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 %113

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

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

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

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

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

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

152:                                              ; preds = %142, %124
  %153 = load i64, ptr %11, align 8, !tbaa !9
  %154 = icmp eq i64 %153, 1
  br i1 %154, label %155, label %186

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

161:                                              ; preds = %182, %155
  %162 = load i64, ptr %20, align 8, !tbaa !9
  %163 = load i64, ptr %10, align 8, !tbaa !9
  %164 = icmp sle i64 %162, %163
  br i1 %164, label %165, label %185

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

182:                                              ; preds = %165
  %183 = load i64, ptr %20, align 8, !tbaa !9
  %184 = add nsw i64 %183, 1
  store i64 %184, ptr %20, align 8, !tbaa !9
  br label %161, !llvm.loop !22

185:                                              ; preds = %161
  br label %186

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

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

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

211:                                              ; preds = %198
  %212 = load i64, ptr %11, align 8, !tbaa !9
  %213 = icmp eq i64 %212, 1
  br i1 %213, label %214, label %244

214:                                              ; preds = %211
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %215

215:                                              ; preds = %237, %214
  %216 = load i64, ptr %20, align 8, !tbaa !9
  %217 = load i64, ptr %10, align 8, !tbaa !9
  %218 = icmp sle i64 %216, %217
  br i1 %218, label %219, label %240

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

237:                                              ; preds = %219
  %238 = load i64, ptr %20, align 8, !tbaa !9
  %239 = add nsw i64 %238, 1
  store i64 %239, ptr %20, align 8, !tbaa !9
  br label %215, !llvm.loop !23

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

244:                                              ; preds = %211
  %245 = load i64, ptr %11, align 8, !tbaa !9
  %246 = icmp eq i64 %245, 3
  br i1 %246, label %247, label %270

247:                                              ; preds = %244
  %248 = load ptr, ptr %12, align 8, !tbaa !5
  %249 = load i64, ptr %10, align 8, !tbaa !9
  %250 = sub nsw i64 %249, 1
  %251 = add nsw i64 %250, 1
  %252 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %248, i64 noundef 1, i64 noundef %251, ptr noundef %252)
  %253 = load ptr, ptr %12, align 8, !tbaa !5
  %254 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %253, i32 0, i32 6
  %255 = load ptr, ptr %254, align 8, !tbaa !13
  %256 = getelementptr inbounds ptr, ptr %255, i64 0
  %257 = load ptr, ptr %256, align 8, !tbaa !5
  %258 = getelementptr inbounds double, ptr %257, i64 0
  %259 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %260 = load ptr, ptr %259, align 8, !tbaa !13
  %261 = getelementptr inbounds ptr, ptr %260, i64 1
  %262 = load ptr, ptr %261, align 8, !tbaa !5
  %263 = getelementptr inbounds double, ptr %262, i64 1
  %264 = load i64, ptr %10, align 8, !tbaa !9
  %265 = sub nsw i64 %264, 1
  %266 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %265)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %258, i64 noundef 1, ptr noundef %263, i64 noundef 1, i64 noundef %266)
  %267 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %267)
  %268 = load i8, ptr %22, align 1, !tbaa !11, !range !20, !noundef !21
  %269 = trunc i8 %268 to i1
  store i1 %269, ptr %7, align 1
  store i32 1, ptr %23, align 4
  br label %276

270:                                              ; preds = %244
  %271 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.328, ptr noundef %271)
  br label %272

272:                                              ; preds = %270, %198
  %273 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %273)
  %274 = load i8, ptr %22, align 1, !tbaa !11, !range !20, !noundef !21
  %275 = trunc i8 %274 to i1
  store i1 %275, ptr %7, align 1
  store i32 1, ptr %23, align 4
  br label %276

276:                                              ; preds = %272, %247, %240, %194, %120
  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
  %277 = load i1, ptr %7, align 1
  ret i1 %277
}

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

declare void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #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_vectorEPKS0_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}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.326 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.327 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.328 = 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorEPKS0_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_vectorEPKS0_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.326, ptr noundef %5)
  %15 = icmp ult i64 %3, 4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.327, 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 %.preheader103.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

.preheader103.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 %.preheader103.us

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

.preheader103.us.new:                             ; preds = %.preheader103.us, %.preheader103.us.new
  %.0105.us = phi i64 [ %38, %.preheader103.us.new ], [ 0, %.preheader103.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader103.us.new ], [ 0, %.preheader103.us ]
  %19 = load ptr, ptr %17, align 8, !tbaa !9
  %20 = getelementptr inbounds ptr, ptr %19, i64 %.090107.us
  %21 = load ptr, ptr %20, align 8, !tbaa !10
  %22 = getelementptr inbounds double, ptr %21, i64 %.0105.us
  store double 0.000000e+00, ptr %22, align 8, !tbaa !12
  %23 = or disjoint i64 %.0105.us, 1
  %24 = load ptr, ptr %17, align 8, !tbaa !9
  %25 = getelementptr inbounds ptr, ptr %24, i64 %.090107.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 %.0105.us, 2
  %29 = load ptr, ptr %17, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %29, i64 %.090107.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 %.0105.us, 3
  %34 = load ptr, ptr %17, align 8, !tbaa !9
  %35 = getelementptr inbounds ptr, ptr %34, i64 %.090107.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 %.0105.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 %.preheader103.us.new, !llvm.loop !14

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

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %.0105.us.epil = phi i64 [ %43, %.epil.preheader ], [ %.0105.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 %.090107.us
  %41 = load ptr, ptr %40, align 8, !tbaa !10
  %42 = getelementptr inbounds double, ptr %41, i64 %.0105.us.epil
  store double 0.000000e+00, ptr %42, align 8, !tbaa !12
  %43 = add nuw nsw i64 %.0105.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 %.090107.us
  %46 = load ptr, ptr %45, align 8, !tbaa !10
  %47 = getelementptr inbounds double, ptr %46, i64 %.090107.us
  store double 1.000000e+00, ptr %47, align 8, !tbaa !12
  %48 = add nuw nsw i64 %.090107.us, 1
  %exitcond118.not = icmp eq i64 %48, %2
  br i1 %exitcond118.not, label %.thread, label %.preheader103.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 ]
  %.092102 = 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)
  %.not108 = icmp slt i64 %2, 2
  br i1 %.not108, 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
  %xtraiter126 = 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_iter129 = and i64 %54, -4
  br label %56

56:                                               ; preds = %56, %.lr.ph.new
  %.1109 = phi i64 [ 0, %.lr.ph.new ], [ %80, %56 ]
  %niter130 = phi i64 [ 0, %.lr.ph.new ], [ %niter130.next.3, %56 ]
  %57 = load ptr, ptr %51, align 8, !tbaa !9
  %58 = getelementptr inbounds double, ptr %57, i64 %.1109
  %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 %.1109
  store double %59, ptr %61, align 8, !tbaa !12
  %62 = or disjoint i64 %.1109, 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 %.1109, 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 %.1109, 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 %.1109, 4
  %niter130.next.3 = add i64 %niter130, 4
  %niter130.ncmp.3 = icmp eq i64 %niter130.next.3, %unroll_iter129
  br i1 %niter130.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %56, !llvm.loop !19

._crit_edge.loopexit.unr-lcssa:                   ; preds = %56, %.lr.ph
  %.1109.unr = phi i64 [ 0, %.lr.ph ], [ %80, %56 ]
  %lcmp.mod128.not = icmp eq i64 %xtraiter126, 0
  br i1 %lcmp.mod128.not, label %._crit_edge, label %.epil.preheader125

.epil.preheader125:                               ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader125
  %.1109.epil = phi i64 [ %86, %.epil.preheader125 ], [ %.1109.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter127 = phi i64 [ %epil.iter127.next, %.epil.preheader125 ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %81 = load ptr, ptr %51, align 8, !tbaa !9
  %82 = getelementptr inbounds double, ptr %81, i64 %.1109.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 %.1109.epil
  store double %83, ptr %85, align 8, !tbaa !12
  %86 = add nuw i64 %.1109.epil, 1
  %epil.iter127.next = add i64 %epil.iter127, 1
  %epil.iter127.cmp.not = icmp eq i64 %epil.iter127.next, %xtraiter126
  br i1 %epil.iter127.cmp.not, label %._crit_edge, label %.epil.preheader125, !llvm.loop !20

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader125, %.thread.thread, %.thread
  %.092102124 = phi i64 [ 1, %.thread.thread ], [ %.092102, %.thread ], [ %.092102, %.epil.preheader125 ], [ %.092102, %._crit_edge.loopexit.unr-lcssa ]
  %87 = phi i1 [ false, %.thread.thread ], [ %50, %.thread ], [ %50, %.epil.preheader125 ], [ %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 %.092102124, ptr noundef %4, ptr noundef nonnull %13, ptr noundef %5)
  br i1 %88, label %._crit_edge117, 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 %.092102124, 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)
  %.not97110 = icmp slt i64 %2, 1
  br i1 %.not97110, label %.loopexit, label %.lr.ph113

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

111:                                              ; preds = %.lr.ph113, %111
  %.2111 = phi i64 [ 1, %.lr.ph113 ], [ %121, %111 ]
  %112 = load ptr, ptr %109, align 8, !tbaa !9
  %113 = getelementptr inbounds ptr, ptr %112, i64 %.2111
  %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 %.2111
  %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 %.2111, 1
  %exitcond120.not = icmp eq i64 %.2111, %2
  br i1 %exitcond120.not, label %.loopexit, label %111, !llvm.loop !21

.loopexit:                                        ; preds = %111, %108, %106
  %122 = call noundef zeroext i1 @_ZN11alglib_implL18evd_tridiagonalevdEPNS_9ae_vectorEPKS0_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %10, i64 noundef %2, i64 noundef %.092102124, 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_edge117

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)
  %.not98 = icmp eq i64 %.092102124, 0
  br i1 %.not98, label %._crit_edge117, label %130

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

.preheader:                                       ; preds = %130
  %.not99114 = icmp slt i64 %2, 1
  br i1 %.not99114, label %._crit_edge117, label %.lr.ph116

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

133:                                              ; preds = %.lr.ph116, %133
  %.3115 = phi i64 [ 1, %.lr.ph116 ], [ %143, %133 ]
  %134 = load ptr, ptr %131, align 8, !tbaa !9
  %135 = getelementptr ptr, ptr %134, i64 %.3115
  %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 %.3115
  %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 %.3115, 1
  %exitcond121.not = icmp eq i64 %.3115, %2
  br i1 %exitcond121.not, label %._crit_edge117, 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_edge117

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

._crit_edge117:                                   ; preds = %133, %124, %155, %.preheader, %.loopexit, %._crit_edge, %145
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  %.091.in = load i8, ptr %13, align 1, !tbaa !5, !range !23, !noundef !24
  %.091 = trunc nuw i8 %.091.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 %.091
}

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) 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_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl14ae_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_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) 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_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr 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_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) 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_vectorEPKS0_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