; 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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::eigsubspacestate" = type { i64, i64, i64, i64, double, i64, i64, i8, i8, %"struct.alglib_impl::hqrndstate", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::apbuffers", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i64, i64, i64, %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"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::apbuffers" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::eigsubspacereport" = type { i64 }

@.str.359 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.360 = external hidden unnamed_addr constant [46 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
declare dso_local void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl22eigsubspacesolvedensesEPNS_16eigsubspacestateEPNS_9ae_matrixEbPNS_9ae_vectorES3_PNS_17eigsubspacereportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.alglib_impl::ae_frame", align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca double, align 8
  %22 = alloca %"struct.alglib_impl::ae_matrix", align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  %23 = zext i1 %2 to i8
  store i8 %23, ptr %10, align 1, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %22) #5
  %24 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %24, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 80, i1 false)
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %25)
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %26)
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl24_eigsubspacereport_clearEPv(ptr noundef %27)
  %28 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %29, i32 0, i32 10
  %31 = load i8, ptr %30, align 8, !tbaa !11, !range !22, !noundef !23
  %32 = trunc i8 %31 to i1
  %33 = xor i1 %32, true
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %33, ptr noundef @.str.359, ptr noundef %34)
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %35, i32 0, i32 0
  %37 = load i64, ptr %36, align 8, !tbaa !24
  store i64 %37, ptr %16, align 8, !tbaa !25
  %38 = load i64, ptr %16, align 8, !tbaa !25
  %39 = load i64, ptr %16, align 8, !tbaa !25
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %38, i64 noundef %39, ptr noundef %40)
  store i64 0, ptr %18, align 8, !tbaa !25
  br label %41

41:                                               ; preds = %97, %7
  %42 = load i64, ptr %18, align 8, !tbaa !25
  %43 = load i64, ptr %16, align 8, !tbaa !25
  %44 = sub nsw i64 %43, 1
  %45 = icmp sle i64 %42, %44
  br i1 %45, label %46, label %100

46:                                               ; preds = %41
  %47 = load i64, ptr %18, align 8, !tbaa !25
  store i64 %47, ptr %19, align 8, !tbaa !25
  br label %48

48:                                               ; preds = %93, %46
  %49 = load i64, ptr %19, align 8, !tbaa !25
  %50 = load i64, ptr %16, align 8, !tbaa !25
  %51 = sub nsw i64 %50, 1
  %52 = icmp sle i64 %49, %51
  br i1 %52, label %53, label %96

53:                                               ; preds = %48
  %54 = load i8, ptr %10, align 1, !tbaa !9, !range !22, !noundef !23
  %55 = trunc i8 %54 to i1
  br i1 %55, label %56, label %66

56:                                               ; preds = %53
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %57, i32 0, i32 6
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %60 = load i64, ptr %18, align 8, !tbaa !25
  %61 = getelementptr inbounds ptr, ptr %59, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = load i64, ptr %19, align 8, !tbaa !25
  %64 = getelementptr inbounds double, ptr %62, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !27
  store double %65, ptr %21, align 8, !tbaa !27
  br label %76

66:                                               ; preds = %53
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %67, i32 0, i32 6
  %69 = load ptr, ptr %68, align 8, !tbaa !26
  %70 = load i64, ptr %19, align 8, !tbaa !25
  %71 = getelementptr inbounds ptr, ptr %69, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = load i64, ptr %18, align 8, !tbaa !25
  %74 = getelementptr inbounds double, ptr %72, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !27
  store double %75, ptr %21, align 8, !tbaa !27
  br label %76

76:                                               ; preds = %66, %56
  %77 = load double, ptr %21, align 8, !tbaa !27
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %79 = load ptr, ptr %78, align 8, !tbaa !26
  %80 = load i64, ptr %18, align 8, !tbaa !25
  %81 = getelementptr inbounds ptr, ptr %79, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = load i64, ptr %19, align 8, !tbaa !25
  %84 = getelementptr inbounds double, ptr %82, i64 %83
  store double %77, ptr %84, align 8, !tbaa !27
  %85 = load double, ptr %21, align 8, !tbaa !27
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %87 = load ptr, ptr %86, align 8, !tbaa !26
  %88 = load i64, ptr %19, align 8, !tbaa !25
  %89 = getelementptr inbounds ptr, ptr %87, i64 %88
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = load i64, ptr %18, align 8, !tbaa !25
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  store double %85, ptr %92, align 8, !tbaa !27
  br label %93

93:                                               ; preds = %76
  %94 = load i64, ptr %19, align 8, !tbaa !25
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %19, align 8, !tbaa !25
  br label %48, !llvm.loop !28

96:                                               ; preds = %48
  br label %97

97:                                               ; preds = %96
  %98 = load i64, ptr %18, align 8, !tbaa !25
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %18, align 8, !tbaa !25
  br label %41, !llvm.loop !30

100:                                              ; preds = %41
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %101, i32 0, i32 6
  store i64 0, ptr %102, align 8, !tbaa !31
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %103, i32 0, i32 32
  %105 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %104, i32 0, i32 1
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %105, i64 noundef 8, ptr noundef %106)
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %107, i32 0, i32 32
  %109 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %108, i32 0, i32 3
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %109, i64 noundef 2, ptr noundef %110)
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %111, i32 0, i32 32
  %113 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %112, i32 0, i32 0
  store i32 -1, ptr %113, align 8, !tbaa !32
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL16evd_clearrfieldsEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef %114, ptr noundef %115)
  br label %116

116:                                              ; preds = %120, %100
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = call noundef zeroext i1 @_ZN11alglib_impl20eigsubspaceiterationEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef %117, ptr noundef %118)
  br i1 %119, label %120, label %142

120:                                              ; preds = %116
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %121, i32 0, i32 29
  %123 = load i64, ptr %122, align 8, !tbaa !33
  %124 = icmp eq i64 %123, 0
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %124, ptr noundef @.str.360, ptr noundef %125)
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %126, i32 0, i32 30
  %128 = load i64, ptr %127, align 8, !tbaa !34
  %129 = icmp sgt i64 %128, 0
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %129, ptr noundef @.str.360, ptr noundef %130)
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %131, i32 0, i32 30
  %133 = load i64, ptr %132, align 8, !tbaa !34
  store i64 %133, ptr %17, align 8, !tbaa !25
  %134 = load i64, ptr %16, align 8, !tbaa !25
  %135 = load i64, ptr %17, align 8, !tbaa !25
  %136 = load i64, ptr %16, align 8, !tbaa !25
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %137, i32 0, i32 27
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %139, i32 0, i32 28
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %134, i64 noundef %135, i64 noundef %136, double noundef 1.000000e+00, ptr noundef %22, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %138, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %140, i64 noundef 0, i64 noundef 0, ptr noundef %141)
  br label %116, !llvm.loop !35

142:                                              ; preds = %116
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %143, i32 0, i32 1
  %145 = load i64, ptr %144, align 8, !tbaa !36
  store i64 %145, ptr %20, align 8, !tbaa !25
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = load i64, ptr %20, align 8, !tbaa !25
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %146, i64 noundef %147, ptr noundef %148)
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = load i64, ptr %16, align 8, !tbaa !25
  %151 = load i64, ptr %20, align 8, !tbaa !25
  %152 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %149, i64 noundef %150, i64 noundef %151, ptr noundef %152)
  store i64 0, ptr %18, align 8, !tbaa !25
  br label %153

153:                                              ; preds = %171, %142
  %154 = load i64, ptr %18, align 8, !tbaa !25
  %155 = load i64, ptr %20, align 8, !tbaa !25
  %156 = sub nsw i64 %155, 1
  %157 = icmp sle i64 %154, %156
  br i1 %157, label %158, label %174

158:                                              ; preds = %153
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %159, i32 0, i32 21
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %160, i32 0, i32 4
  %162 = load ptr, ptr %161, align 8, !tbaa !26
  %163 = load i64, ptr %18, align 8, !tbaa !25
  %164 = getelementptr inbounds double, ptr %162, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !27
  %166 = load ptr, ptr %11, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %166, i32 0, i32 4
  %168 = load ptr, ptr %167, align 8, !tbaa !26
  %169 = load i64, ptr %18, align 8, !tbaa !25
  %170 = getelementptr inbounds double, ptr %168, i64 %169
  store double %165, ptr %170, align 8, !tbaa !27
  br label %171

171:                                              ; preds = %158
  %172 = load i64, ptr %18, align 8, !tbaa !25
  %173 = add nsw i64 %172, 1
  store i64 %173, ptr %18, align 8, !tbaa !25
  br label %153, !llvm.loop !37

174:                                              ; preds = %153
  store i64 0, ptr %18, align 8, !tbaa !25
  br label %175

175:                                              ; preds = %209, %174
  %176 = load i64, ptr %18, align 8, !tbaa !25
  %177 = load i64, ptr %16, align 8, !tbaa !25
  %178 = sub nsw i64 %177, 1
  %179 = icmp sle i64 %176, %178
  br i1 %179, label %180, label %212

180:                                              ; preds = %175
  store i64 0, ptr %19, align 8, !tbaa !25
  br label %181

181:                                              ; preds = %205, %180
  %182 = load i64, ptr %19, align 8, !tbaa !25
  %183 = load i64, ptr %20, align 8, !tbaa !25
  %184 = sub nsw i64 %183, 1
  %185 = icmp sle i64 %182, %184
  br i1 %185, label %186, label %208

186:                                              ; preds = %181
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %187, i32 0, i32 19
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %188, i32 0, i32 6
  %190 = load ptr, ptr %189, align 8, !tbaa !26
  %191 = load i64, ptr %18, align 8, !tbaa !25
  %192 = getelementptr inbounds ptr, ptr %190, i64 %191
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  %194 = load i64, ptr %19, align 8, !tbaa !25
  %195 = getelementptr inbounds double, ptr %193, i64 %194
  %196 = load double, ptr %195, align 8, !tbaa !27
  %197 = load ptr, ptr %12, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %197, i32 0, i32 6
  %199 = load ptr, ptr %198, align 8, !tbaa !26
  %200 = load i64, ptr %18, align 8, !tbaa !25
  %201 = getelementptr inbounds ptr, ptr %199, i64 %200
  %202 = load ptr, ptr %201, align 8, !tbaa !5
  %203 = load i64, ptr %19, align 8, !tbaa !25
  %204 = getelementptr inbounds double, ptr %202, i64 %203
  store double %196, ptr %204, align 8, !tbaa !27
  br label %205

205:                                              ; preds = %186
  %206 = load i64, ptr %19, align 8, !tbaa !25
  %207 = add nsw i64 %206, 1
  store i64 %207, ptr %19, align 8, !tbaa !25
  br label %181, !llvm.loop !38

208:                                              ; preds = %181
  br label %209

209:                                              ; preds = %208
  %210 = load i64, ptr %18, align 8, !tbaa !25
  %211 = add nsw i64 %210, 1
  store i64 %211, ptr %18, align 8, !tbaa !25
  br label %175, !llvm.loop !39

212:                                              ; preds = %175
  %213 = load ptr, ptr %8, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %213, i32 0, i32 31
  %215 = load i64, ptr %214, align 8, !tbaa !40
  %216 = load ptr, ptr %13, align 8, !tbaa !5
  %217 = getelementptr inbounds %"struct.alglib_impl::eigsubspacereport", ptr %216, i32 0, i32 0
  store i64 %215, ptr %217, align 8, !tbaa !41
  %218 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %218)
  call void @llvm.lifetime.end.p0(i64 80, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  ret void
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #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_impl15ae_vector_clearEPNS_9ae_vectorE(ptr 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_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL16evd_clearrfieldsEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl20eigsubspaceiterationEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl24_eigsubspacereport_clearEPv(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 = { mustprogress nounwind 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 #5 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !10, i64 88}
!12 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !14, i64 32, !13, i64 40, !13, i64 48, !10, i64 56, !10, i64 57, !15, i64 64, !10, i64 88, !16, i64 96, !18, i64 160, !18, i64 240, !18, i64 320, !18, i64 400, !18, i64 480, !18, i64 560, !18, i64 640, !18, i64 720, !18, i64 800, !16, i64 880, !16, i64 944, !16, i64 1008, !16, i64 1072, !16, i64 1136, !19, i64 1200, !18, i64 1936, !18, i64 2016, !13, i64 2096, !13, i64 2104, !13, i64 2112, !20, i64 2120}
!13 = !{!"long", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl10hqrndstateE", !13, i64 0, !13, i64 8, !13, i64 16}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !10, i64 16, !17, i64 24, !7, i64 56}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !10, i64 32, !17, i64 40, !7, i64 72}
!19 = !{!"_ZTSN11alglib_impl9apbuffersE", !16, i64 0, !16, i64 64, !16, i64 128, !16, i64 192, !16, i64 256, !16, i64 320, !16, i64 384, !16, i64 448, !16, i64 512, !18, i64 576, !18, i64 656}
!20 = !{!"_ZTSN11alglib_impl10rcommstateE", !21, i64 0, !16, i64 8, !16, i64 72, !16, i64 136, !16, i64 200}
!21 = !{!"int", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!12, !13, i64 0}
!25 = !{!13, !13, i64 0}
!26 = !{!7, !7, i64 0}
!27 = !{!14, !14, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = !{!12, !13, i64 48}
!32 = !{!12, !21, i64 2120}
!33 = !{!12, !13, i64 2096}
!34 = !{!12, !13, i64 2104}
!35 = distinct !{!35, !29}
!36 = !{!12, !13, i64 8}
!37 = distinct !{!37, !29}
!38 = distinct !{!38, !29}
!39 = distinct !{!39, !29}
!40 = !{!12, !13, i64 2112}
!41 = !{!42, !13, i64 0}
!42 = !{!"_ZTSN11alglib_impl17eigsubspacereportE", !13, i64 0}


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

@.str.359 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.360 = external hidden unnamed_addr constant [46 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
declare dso_local void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl22eigsubspacesolvedensesEPNS_16eigsubspacestateEPNS_9ae_matrixEbPNS_9ae_vectorES3_PNS_17eigsubspacereportEPNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #3 {
  %8 = alloca %"struct.alglib_impl::ae_frame", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %6, ptr noundef nonnull %8)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %9, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %3)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %4)
  call void @_ZN11alglib_impl24_eigsubspacereport_clearEPv(ptr noundef %5)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  %10 = getelementptr inbounds i8, ptr %0, i64 88
  %11 = load i8, ptr %10, align 8, !tbaa !5, !range !20, !noundef !21
  %12 = trunc nuw i8 %11 to i1
  %13 = xor i1 %12, true
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.359, ptr noundef %6)
  %14 = load i64, ptr %0, align 8, !tbaa !22
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %14, i64 noundef %14, ptr noundef %6)
  %.not.not94 = icmp sgt i64 %14, 0
  br i1 %.not.not94, label %.preheader92.lr.ph, label %._crit_edge

.preheader92.lr.ph:                               ; preds = %7
  %15 = getelementptr inbounds i8, ptr %1, i64 72
  %16 = getelementptr inbounds i8, ptr %9, i64 72
  br i1 %2, label %.preheader92.us, label %.preheader92

.preheader92.us:                                  ; preds = %.preheader92.lr.ph, %.split.us.us
  %.08195.us = phi i64 [ %31, %.split.us.us ], [ 0, %.preheader92.lr.ph ]
  br label %17

17:                                               ; preds = %17, %.preheader92.us
  %.08293.us.us = phi i64 [ %.08195.us, %.preheader92.us ], [ %30, %17 ]
  %18 = load ptr, ptr %15, align 8, !tbaa !23
  %19 = getelementptr inbounds ptr, ptr %18, i64 %.08195.us
  %20 = load ptr, ptr %19, align 8, !tbaa !24
  %21 = getelementptr inbounds double, ptr %20, i64 %.08293.us.us
  %.0.us.us = load double, ptr %21, align 8, !tbaa !25
  %22 = load ptr, ptr %16, align 8, !tbaa !23
  %23 = getelementptr inbounds ptr, ptr %22, i64 %.08195.us
  %24 = load ptr, ptr %23, align 8, !tbaa !24
  %25 = getelementptr inbounds double, ptr %24, i64 %.08293.us.us
  store double %.0.us.us, ptr %25, align 8, !tbaa !25
  %26 = load ptr, ptr %16, align 8, !tbaa !23
  %27 = getelementptr inbounds ptr, ptr %26, i64 %.08293.us.us
  %28 = load ptr, ptr %27, align 8, !tbaa !24
  %29 = getelementptr inbounds double, ptr %28, i64 %.08195.us
  store double %.0.us.us, ptr %29, align 8, !tbaa !25
  %30 = add nuw nsw i64 %.08293.us.us, 1
  %.not.not90.us.us = icmp slt i64 %30, %14
  br i1 %.not.not90.us.us, label %17, label %.split.us.us, !llvm.loop !26

.split.us.us:                                     ; preds = %17
  %31 = add nuw nsw i64 %.08195.us, 1
  %exitcond111.not = icmp eq i64 %31, %14
  br i1 %exitcond111.not, label %._crit_edge, label %.preheader92.us, !llvm.loop !28

.preheader92:                                     ; preds = %.preheader92.lr.ph, %.split
  %.08195 = phi i64 [ %46, %.split ], [ 0, %.preheader92.lr.ph ]
  br label %32

32:                                               ; preds = %.preheader92, %32
  %.08293 = phi i64 [ %.08195, %.preheader92 ], [ %45, %32 ]
  %33 = load ptr, ptr %15, align 8, !tbaa !23
  %34 = getelementptr inbounds ptr, ptr %33, i64 %.08293
  %35 = load ptr, ptr %34, align 8, !tbaa !24
  %36 = getelementptr inbounds double, ptr %35, i64 %.08195
  %.0 = load double, ptr %36, align 8, !tbaa !25
  %37 = load ptr, ptr %16, align 8, !tbaa !23
  %38 = getelementptr inbounds ptr, ptr %37, i64 %.08195
  %39 = load ptr, ptr %38, align 8, !tbaa !24
  %40 = getelementptr inbounds double, ptr %39, i64 %.08293
  store double %.0, ptr %40, align 8, !tbaa !25
  %41 = load ptr, ptr %16, align 8, !tbaa !23
  %42 = getelementptr inbounds ptr, ptr %41, i64 %.08293
  %43 = load ptr, ptr %42, align 8, !tbaa !24
  %44 = getelementptr inbounds double, ptr %43, i64 %.08195
  store double %.0, ptr %44, align 8, !tbaa !25
  %45 = add nuw nsw i64 %.08293, 1
  %.not.not90 = icmp slt i64 %45, %14
  br i1 %.not.not90, label %32, label %.split, !llvm.loop !26

.split:                                           ; preds = %32
  %46 = add nuw nsw i64 %.08195, 1
  %exitcond.not = icmp eq i64 %46, %14
  br i1 %exitcond.not, label %._crit_edge, label %.preheader92, !llvm.loop !28

._crit_edge:                                      ; preds = %.split, %.split.us.us, %7
  %47 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 0, ptr %47, align 8, !tbaa !29
  %48 = getelementptr inbounds i8, ptr %0, i64 2120
  %49 = getelementptr inbounds i8, ptr %0, i64 2128
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %49, i64 noundef 8, ptr noundef %6)
  %50 = getelementptr inbounds i8, ptr %0, i64 2256
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %50, i64 noundef 2, ptr noundef %6)
  store i32 -1, ptr %48, align 8, !tbaa !30
  call void @_ZN11alglib_implL16evd_clearrfieldsEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  %51 = call noundef zeroext i1 @_ZN11alglib_impl20eigsubspaceiterationEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  br i1 %51, label %.lr.ph, label %._crit_edge97

.lr.ph:                                           ; preds = %._crit_edge
  %52 = getelementptr inbounds i8, ptr %0, i64 2096
  %53 = getelementptr inbounds i8, ptr %0, i64 2104
  %54 = getelementptr inbounds i8, ptr %0, i64 1936
  %55 = getelementptr inbounds i8, ptr %0, i64 2016
  br label %56

56:                                               ; preds = %.lr.ph, %56
  %57 = load i64, ptr %52, align 8, !tbaa !31
  %58 = icmp eq i64 %57, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %58, ptr noundef nonnull @.str.360, ptr noundef %6)
  %59 = load i64, ptr %53, align 8, !tbaa !32
  %60 = icmp sgt i64 %59, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %60, ptr noundef nonnull @.str.360, ptr noundef %6)
  %61 = load i64, ptr %53, align 8, !tbaa !32
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %14, i64 noundef %61, i64 noundef %14, double noundef 1.000000e+00, ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %54, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %55, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %62 = call noundef zeroext i1 @_ZN11alglib_impl20eigsubspaceiterationEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %6)
  br i1 %62, label %56, label %._crit_edge97, !llvm.loop !33

._crit_edge97:                                    ; preds = %56, %._crit_edge
  %63 = getelementptr inbounds i8, ptr %0, i64 8
  %64 = load i64, ptr %63, align 8, !tbaa !34
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %3, i64 noundef %64, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %4, i64 noundef %14, i64 noundef %64, ptr noundef %6)
  %.not.not8798 = icmp sgt i64 %64, 0
  br i1 %.not.not8798, label %.lr.ph101, label %._crit_edge108

.lr.ph101:                                        ; preds = %._crit_edge97
  %65 = getelementptr inbounds i8, ptr %0, i64 936
  %66 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter = and i64 %64, 3
  %67 = icmp ult i64 %64, 4
  br i1 %67, label %.preheader91.unr-lcssa, label %.lr.ph101.new

.lr.ph101.new:                                    ; preds = %.lr.ph101
  %unroll_iter = and i64 %64, 9223372036854775804
  br label %107

.preheader91.unr-lcssa:                           ; preds = %107, %.lr.ph101
  %.199.unr = phi i64 [ 0, %.lr.ph101 ], [ %131, %107 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader91, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader91.unr-lcssa, %.epil.preheader
  %.199.epil = phi i64 [ %73, %.epil.preheader ], [ %.199.unr, %.preheader91.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader91.unr-lcssa ]
  %68 = load ptr, ptr %65, align 8, !tbaa !23
  %69 = getelementptr inbounds double, ptr %68, i64 %.199.epil
  %70 = load double, ptr %69, align 8, !tbaa !25
  %71 = load ptr, ptr %66, align 8, !tbaa !23
  %72 = getelementptr inbounds double, ptr %71, i64 %.199.epil
  store double %70, ptr %72, align 8, !tbaa !25
  %73 = add nuw nsw i64 %.199.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 %.preheader91, label %.epil.preheader, !llvm.loop !35

.preheader91:                                     ; preds = %.epil.preheader, %.preheader91.unr-lcssa
  br i1 %.not.not94, label %.preheader.lr.ph, label %._crit_edge108

.preheader.lr.ph:                                 ; preds = %.preheader91
  %74 = getelementptr inbounds i8, ptr %0, i64 792
  %75 = getelementptr inbounds i8, ptr %4, i64 72
  br i1 %.not.not8798, label %.preheader.us.preheader, label %._crit_edge108

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter119 = and i64 %64, 1
  %76 = icmp eq i64 %64, 1
  %unroll_iter122 = and i64 %64, 9223372036854775806
  %lcmp.mod121.not = icmp eq i64 %xtraiter119, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge105.us
  %.2107.us = phi i64 [ %106, %._crit_edge105.us ], [ 0, %.preheader.us.preheader ]
  br i1 %76, label %._crit_edge105.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.183103.us = phi i64 [ %96, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter123 = phi i64 [ %niter123.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %77 = load ptr, ptr %74, align 8, !tbaa !23
  %78 = getelementptr inbounds ptr, ptr %77, i64 %.2107.us
  %79 = load ptr, ptr %78, align 8, !tbaa !24
  %80 = getelementptr inbounds double, ptr %79, i64 %.183103.us
  %81 = load double, ptr %80, align 8, !tbaa !25
  %82 = load ptr, ptr %75, align 8, !tbaa !23
  %83 = getelementptr inbounds ptr, ptr %82, i64 %.2107.us
  %84 = load ptr, ptr %83, align 8, !tbaa !24
  %85 = getelementptr inbounds double, ptr %84, i64 %.183103.us
  store double %81, ptr %85, align 8, !tbaa !25
  %86 = or disjoint i64 %.183103.us, 1
  %87 = load ptr, ptr %74, align 8, !tbaa !23
  %88 = getelementptr inbounds ptr, ptr %87, i64 %.2107.us
  %89 = load ptr, ptr %88, align 8, !tbaa !24
  %90 = getelementptr inbounds double, ptr %89, i64 %86
  %91 = load double, ptr %90, align 8, !tbaa !25
  %92 = load ptr, ptr %75, align 8, !tbaa !23
  %93 = getelementptr inbounds ptr, ptr %92, i64 %.2107.us
  %94 = load ptr, ptr %93, align 8, !tbaa !24
  %95 = getelementptr inbounds double, ptr %94, i64 %86
  store double %91, ptr %95, align 8, !tbaa !25
  %96 = add nuw nsw i64 %.183103.us, 2
  %niter123.next.1 = add i64 %niter123, 2
  %niter123.ncmp.1 = icmp eq i64 %niter123.next.1, %unroll_iter122
  br i1 %niter123.ncmp.1, label %._crit_edge105.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !37

._crit_edge105.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.183103.us.unr = phi i64 [ 0, %.preheader.us ], [ %96, %.preheader.us.new ]
  br i1 %lcmp.mod121.not, label %._crit_edge105.us, label %._crit_edge105.us.epilog-lcssa

._crit_edge105.us.epilog-lcssa:                   ; preds = %._crit_edge105.us.unr-lcssa
  %97 = load ptr, ptr %74, align 8, !tbaa !23
  %98 = getelementptr inbounds ptr, ptr %97, i64 %.2107.us
  %99 = load ptr, ptr %98, align 8, !tbaa !24
  %100 = getelementptr inbounds double, ptr %99, i64 %.183103.us.unr
  %101 = load double, ptr %100, align 8, !tbaa !25
  %102 = load ptr, ptr %75, align 8, !tbaa !23
  %103 = getelementptr inbounds ptr, ptr %102, i64 %.2107.us
  %104 = load ptr, ptr %103, align 8, !tbaa !24
  %105 = getelementptr inbounds double, ptr %104, i64 %.183103.us.unr
  store double %101, ptr %105, align 8, !tbaa !25
  br label %._crit_edge105.us

._crit_edge105.us:                                ; preds = %._crit_edge105.us.unr-lcssa, %._crit_edge105.us.epilog-lcssa
  %106 = add nuw nsw i64 %.2107.us, 1
  %exitcond114.not = icmp eq i64 %106, %14
  br i1 %exitcond114.not, label %._crit_edge108, label %.preheader.us, !llvm.loop !38

107:                                              ; preds = %107, %.lr.ph101.new
  %.199 = phi i64 [ 0, %.lr.ph101.new ], [ %131, %107 ]
  %niter = phi i64 [ 0, %.lr.ph101.new ], [ %niter.next.3, %107 ]
  %108 = load ptr, ptr %65, align 8, !tbaa !23
  %109 = getelementptr inbounds double, ptr %108, i64 %.199
  %110 = load double, ptr %109, align 8, !tbaa !25
  %111 = load ptr, ptr %66, align 8, !tbaa !23
  %112 = getelementptr inbounds double, ptr %111, i64 %.199
  store double %110, ptr %112, align 8, !tbaa !25
  %113 = or disjoint i64 %.199, 1
  %114 = load ptr, ptr %65, align 8, !tbaa !23
  %115 = getelementptr inbounds double, ptr %114, i64 %113
  %116 = load double, ptr %115, align 8, !tbaa !25
  %117 = load ptr, ptr %66, align 8, !tbaa !23
  %118 = getelementptr inbounds double, ptr %117, i64 %113
  store double %116, ptr %118, align 8, !tbaa !25
  %119 = or disjoint i64 %.199, 2
  %120 = load ptr, ptr %65, align 8, !tbaa !23
  %121 = getelementptr inbounds double, ptr %120, i64 %119
  %122 = load double, ptr %121, align 8, !tbaa !25
  %123 = load ptr, ptr %66, align 8, !tbaa !23
  %124 = getelementptr inbounds double, ptr %123, i64 %119
  store double %122, ptr %124, align 8, !tbaa !25
  %125 = or disjoint i64 %.199, 3
  %126 = load ptr, ptr %65, align 8, !tbaa !23
  %127 = getelementptr inbounds double, ptr %126, i64 %125
  %128 = load double, ptr %127, align 8, !tbaa !25
  %129 = load ptr, ptr %66, align 8, !tbaa !23
  %130 = getelementptr inbounds double, ptr %129, i64 %125
  store double %128, ptr %130, align 8, !tbaa !25
  %131 = add nuw nsw i64 %.199, 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 %.preheader91.unr-lcssa, label %107, !llvm.loop !39

._crit_edge108:                                   ; preds = %._crit_edge105.us, %._crit_edge97, %.preheader.lr.ph, %.preheader91
  %132 = getelementptr inbounds i8, ptr %0, i64 2112
  %133 = load i64, ptr %132, align 8, !tbaa !40
  store i64 %133, ptr %5, align 8, !tbaa !41
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  ret void
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, 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_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr 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_impl15ae_matrix_clearEPNS_9ae_matrixE(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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL16evd_clearrfieldsEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl20eigsubspaceiterationEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl24_eigsubspacereport_clearEPv(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 = { mustprogress nounwind 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 #5 = { 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, !11, i64 88}
!6 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !7, i64 48, !11, i64 56, !11, i64 57, !12, i64 64, !11, i64 88, !13, i64 96, !16, i64 160, !16, i64 240, !16, i64 320, !16, i64 400, !16, i64 480, !16, i64 560, !16, i64 640, !16, i64 720, !16, i64 800, !13, i64 880, !13, i64 944, !13, i64 1008, !13, i64 1072, !13, i64 1136, !17, i64 1200, !16, i64 1936, !16, i64 2016, !7, i64 2096, !7, i64 2104, !7, i64 2112, !18, i64 2120}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl10hqrndstateE", !7, i64 0, !7, i64 8, !7, i64 16}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !14, i64 24, !8, i64 56}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !14, i64 40, !8, i64 72}
!17 = !{!"_ZTSN11alglib_impl9apbuffersE", !13, i64 0, !13, i64 64, !13, i64 128, !13, i64 192, !13, i64 256, !13, i64 320, !13, i64 384, !13, i64 448, !13, i64 512, !16, i64 576, !16, i64 656}
!18 = !{!"_ZTSN11alglib_impl10rcommstateE", !19, i64 0, !13, i64 8, !13, i64 72, !13, i64 136, !13, i64 200}
!19 = !{!"int", !8, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!6, !7, i64 0}
!23 = !{!8, !8, i64 0}
!24 = !{!15, !15, i64 0}
!25 = !{!10, !10, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = !{!6, !7, i64 48}
!30 = !{!6, !19, i64 2120}
!31 = !{!6, !7, i64 2096}
!32 = !{!6, !7, i64 2104}
!33 = distinct !{!33, !27}
!34 = !{!6, !7, i64 8}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.unroll.disable"}
!37 = distinct !{!37, !27}
!38 = distinct !{!38, !27}
!39 = distinct !{!39, !27}
!40 = !{!6, !7, i64 2112}
!41 = !{!42, !7, i64 0}
!42 = !{!"_ZTSN11alglib_impl17eigsubspacereportE", !7, i64 0}


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