; 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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = 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::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.1 }
%union.anon.1 = 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.314 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.315 = 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_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) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl22eigsubspacesolvedensesEPNS_16eigsubspacestateEPKNS_9ae_matrixEbPNS_9ae_vectorEPS2_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) #1 {
  %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 i64, align 8
  %23 = 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
  %24 = zext i1 %2 to i8
  store i8 %24, 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 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %23) #5
  %25 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %25, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 80, i1 false)
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %26)
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %27)
  %28 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl24_eigsubspacereport_clearEPv(ptr noundef %28)
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %30, i32 0, i32 10
  %32 = load i8, ptr %31, align 8, !tbaa !11, !range !22, !noundef !23
  %33 = trunc i8 %32 to i1
  %34 = xor i1 %33, true
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef @.str.314, ptr noundef %35)
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %36, i32 0, i32 0
  %38 = load i64, ptr %37, align 8, !tbaa !24
  store i64 %38, ptr %16, align 8, !tbaa !25
  %39 = load i64, ptr %16, align 8, !tbaa !25
  %40 = load i64, ptr %16, align 8, !tbaa !25
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %23, i64 noundef %39, i64 noundef %40, ptr noundef %41)
  store i64 0, ptr %18, align 8, !tbaa !25
  br label %42

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

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

49:                                               ; preds = %94, %47
  %50 = load i64, ptr %19, align 8, !tbaa !25
  %51 = load i64, ptr %16, align 8, !tbaa !25
  %52 = sub nsw i64 %51, 1
  %53 = icmp sle i64 %50, %52
  br i1 %53, label %54, label %97

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

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

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

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

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

97:                                               ; preds = %49
  br label %98

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

101:                                              ; preds = %42
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %102, i32 0, i32 6
  %104 = load i64, ptr %103, align 8, !tbaa !31
  store i64 %104, ptr %22, align 8, !tbaa !25
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %105, i32 0, i32 6
  store i64 0, ptr %106, align 8, !tbaa !31
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %107, i32 0, i32 33
  %109 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %108, i32 0, i32 1
  %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 9, ptr noundef %110)
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %111, i32 0, i32 33
  %113 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %112, i32 0, i32 3
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %113, i64 noundef 2, ptr noundef %114)
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %115, i32 0, i32 33
  %117 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %116, i32 0, i32 0
  store i32 -1, ptr %117, align 8, !tbaa !32
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL16evd_clearrfieldsEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef %118, ptr noundef %119)
  br label %120

120:                                              ; preds = %124, %101
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = call noundef zeroext i1 @_ZN11alglib_impl20eigsubspaceiterationEPNS_16eigsubspacestateEPNS_8ae_stateE(ptr noundef %121, ptr noundef %122)
  br i1 %123, label %124, label %146

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

146:                                              ; preds = %120
  %147 = load i64, ptr %22, align 8, !tbaa !25
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %148, i32 0, i32 6
  store i64 %147, ptr %149, align 8, !tbaa !31
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %150, i32 0, i32 1
  %152 = load i64, ptr %151, align 8, !tbaa !36
  store i64 %152, ptr %20, align 8, !tbaa !25
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = load i64, ptr %20, align 8, !tbaa !25
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %153, i64 noundef %154, ptr noundef %155)
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = load i64, ptr %16, align 8, !tbaa !25
  %158 = load i64, ptr %20, align 8, !tbaa !25
  %159 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %156, i64 noundef %157, i64 noundef %158, ptr noundef %159)
  store i64 0, ptr %18, align 8, !tbaa !25
  br label %160

160:                                              ; preds = %178, %146
  %161 = load i64, ptr %18, align 8, !tbaa !25
  %162 = load i64, ptr %20, align 8, !tbaa !25
  %163 = sub nsw i64 %162, 1
  %164 = icmp sle i64 %161, %163
  br i1 %164, label %165, label %181

165:                                              ; preds = %160
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %166, i32 0, i32 21
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %167, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !26
  %170 = load i64, ptr %18, align 8, !tbaa !25
  %171 = getelementptr inbounds double, ptr %169, i64 %170
  %172 = load double, ptr %171, align 8, !tbaa !27
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %173, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !26
  %176 = load i64, ptr %18, align 8, !tbaa !25
  %177 = getelementptr inbounds double, ptr %175, i64 %176
  store double %172, ptr %177, align 8, !tbaa !27
  br label %178

178:                                              ; preds = %165
  %179 = load i64, ptr %18, align 8, !tbaa !25
  %180 = add nsw i64 %179, 1
  store i64 %180, ptr %18, align 8, !tbaa !25
  br label %160, !llvm.loop !37

181:                                              ; preds = %160
  store i64 0, ptr %18, align 8, !tbaa !25
  br label %182

182:                                              ; preds = %216, %181
  %183 = load i64, ptr %18, align 8, !tbaa !25
  %184 = load i64, ptr %16, align 8, !tbaa !25
  %185 = sub nsw i64 %184, 1
  %186 = icmp sle i64 %183, %185
  br i1 %186, label %187, label %219

187:                                              ; preds = %182
  store i64 0, ptr %19, align 8, !tbaa !25
  br label %188

188:                                              ; preds = %212, %187
  %189 = load i64, ptr %19, align 8, !tbaa !25
  %190 = load i64, ptr %20, align 8, !tbaa !25
  %191 = sub nsw i64 %190, 1
  %192 = icmp sle i64 %189, %191
  br i1 %192, label %193, label %215

193:                                              ; preds = %188
  %194 = load ptr, ptr %8, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %194, i32 0, i32 19
  %196 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %195, i32 0, i32 6
  %197 = load ptr, ptr %196, align 8, !tbaa !26
  %198 = load i64, ptr %18, align 8, !tbaa !25
  %199 = getelementptr inbounds ptr, ptr %197, i64 %198
  %200 = load ptr, ptr %199, align 8, !tbaa !5
  %201 = load i64, ptr %19, align 8, !tbaa !25
  %202 = getelementptr inbounds double, ptr %200, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !27
  %204 = load ptr, ptr %12, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %204, i32 0, i32 6
  %206 = load ptr, ptr %205, align 8, !tbaa !26
  %207 = load i64, ptr %18, align 8, !tbaa !25
  %208 = getelementptr inbounds ptr, ptr %206, i64 %207
  %209 = load ptr, ptr %208, align 8, !tbaa !5
  %210 = load i64, ptr %19, align 8, !tbaa !25
  %211 = getelementptr inbounds double, ptr %209, i64 %210
  store double %203, ptr %211, align 8, !tbaa !27
  br label %212

212:                                              ; preds = %193
  %213 = load i64, ptr %19, align 8, !tbaa !25
  %214 = add nsw i64 %213, 1
  store i64 %214, ptr %19, align 8, !tbaa !25
  br label %188, !llvm.loop !38

215:                                              ; preds = %188
  br label %216

216:                                              ; preds = %215
  %217 = load i64, ptr %18, align 8, !tbaa !25
  %218 = add nsw i64 %217, 1
  store i64 %218, ptr %18, align 8, !tbaa !25
  br label %182, !llvm.loop !39

219:                                              ; preds = %182
  %220 = load ptr, ptr %8, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::eigsubspacestate", ptr %220, i32 0, i32 32
  %222 = load i64, ptr %221, align 8, !tbaa !40
  %223 = load ptr, ptr %13, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.alglib_impl::eigsubspacereport", ptr %223, i32 0, i32 0
  store i64 %222, ptr %224, align 8, !tbaa !41
  %225 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %225)
  call void @llvm.lifetime.end.p0(i64 80, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, 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) #3

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #3

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

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

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #3

; 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) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl24_eigsubspacereport_clearEPv(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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, !16, i64 1200, !19, i64 1264, !18, i64 2000, !18, i64 2080, !13, i64 2160, !13, i64 2168, !13, i64 2176, !20, i64 2184}
!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 2184}
!33 = !{!12, !13, i64 2160}
!34 = !{!12, !13, i64 2168}
!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 2176}
!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.0 }
%union.anon.0 = type { ptr }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11rmatrixgemmEllldPKNS_9ae_matrixElllS2_llldPS0_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 #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl22eigsubspacesolvedensesEPNS_16eigsubspacestateEPKNS_9ae_matrixEbPNS_9ae_vectorEPS2_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 #1 {
  %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.314, 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.not97 = icmp sgt i64 %14, 0
  br i1 %.not.not97, label %.preheader95.lr.ph, label %._crit_edge

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

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

17:                                               ; preds = %17, %.preheader95.us
  %.08596.us.us = phi i64 [ %.098.us, %.preheader95.us ], [ %30, %17 ]
  %18 = load ptr, ptr %15, align 8, !tbaa !23
  %19 = getelementptr inbounds ptr, ptr %18, i64 %.098.us
  %20 = load ptr, ptr %19, align 8, !tbaa !24
  %21 = getelementptr inbounds double, ptr %20, i64 %.08596.us.us
  %.084.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 %.098.us
  %24 = load ptr, ptr %23, align 8, !tbaa !24
  %25 = getelementptr inbounds double, ptr %24, i64 %.08596.us.us
  store double %.084.us.us, ptr %25, align 8, !tbaa !25
  %26 = load ptr, ptr %16, align 8, !tbaa !23
  %27 = getelementptr inbounds ptr, ptr %26, i64 %.08596.us.us
  %28 = load ptr, ptr %27, align 8, !tbaa !24
  %29 = getelementptr inbounds double, ptr %28, i64 %.098.us
  store double %.084.us.us, ptr %29, align 8, !tbaa !25
  %30 = add nuw nsw i64 %.08596.us.us, 1
  %.not.not93.us.us = icmp slt i64 %30, %14
  br i1 %.not.not93.us.us, label %17, label %.split.us.us, !llvm.loop !26

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

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

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

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

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

.lr.ph:                                           ; preds = %._crit_edge
  %53 = getelementptr inbounds i8, ptr %0, i64 2160
  %54 = getelementptr inbounds i8, ptr %0, i64 2168
  %55 = getelementptr inbounds i8, ptr %0, i64 2000
  %56 = getelementptr inbounds i8, ptr %0, i64 2080
  br label %57

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

._crit_edge100:                                   ; preds = %57, %._crit_edge
  store i64 %48, ptr %47, align 8, !tbaa !29
  %64 = getelementptr inbounds i8, ptr %0, i64 8
  %65 = load i64, ptr %64, align 8, !tbaa !34
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %3, i64 noundef %65, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %4, i64 noundef %14, i64 noundef %65, ptr noundef %6)
  %.not.not90101 = icmp sgt i64 %65, 0
  br i1 %.not.not90101, label %.lr.ph104, label %._crit_edge111

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

.lr.ph104.new:                                    ; preds = %.lr.ph104
  %unroll_iter = and i64 %65, 9223372036854775804
  br label %108

.preheader94.unr-lcssa:                           ; preds = %108, %.lr.ph104
  %.1102.unr = phi i64 [ 0, %.lr.ph104 ], [ %132, %108 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader94, label %.epil.preheader

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

.preheader94:                                     ; preds = %.epil.preheader, %.preheader94.unr-lcssa
  br i1 %.not.not97, label %.preheader.lr.ph, label %._crit_edge111

.preheader.lr.ph:                                 ; preds = %.preheader94
  %75 = getelementptr inbounds i8, ptr %0, i64 792
  %76 = getelementptr inbounds i8, ptr %4, i64 72
  br i1 %.not.not90101, label %.preheader.us.preheader, label %._crit_edge111

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter122 = and i64 %65, 1
  %77 = icmp eq i64 %65, 1
  %unroll_iter125 = and i64 %65, 9223372036854775806
  %lcmp.mod124.not = icmp eq i64 %xtraiter122, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge108.us
  %.2110.us = phi i64 [ %107, %._crit_edge108.us ], [ 0, %.preheader.us.preheader ]
  br i1 %77, label %._crit_edge108.us.unr-lcssa, label %.preheader.us.new

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

._crit_edge108.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.186106.us.unr = phi i64 [ 0, %.preheader.us ], [ %97, %.preheader.us.new ]
  br i1 %lcmp.mod124.not, label %._crit_edge108.us, label %._crit_edge108.us.epilog-lcssa

._crit_edge108.us.epilog-lcssa:                   ; preds = %._crit_edge108.us.unr-lcssa
  %98 = load ptr, ptr %75, align 8, !tbaa !23
  %99 = getelementptr inbounds ptr, ptr %98, i64 %.2110.us
  %100 = load ptr, ptr %99, align 8, !tbaa !24
  %101 = getelementptr inbounds double, ptr %100, i64 %.186106.us.unr
  %102 = load double, ptr %101, align 8, !tbaa !25
  %103 = load ptr, ptr %76, align 8, !tbaa !23
  %104 = getelementptr inbounds ptr, ptr %103, i64 %.2110.us
  %105 = load ptr, ptr %104, align 8, !tbaa !24
  %106 = getelementptr inbounds double, ptr %105, i64 %.186106.us.unr
  store double %102, ptr %106, align 8, !tbaa !25
  br label %._crit_edge108.us

._crit_edge108.us:                                ; preds = %._crit_edge108.us.unr-lcssa, %._crit_edge108.us.epilog-lcssa
  %107 = add nuw nsw i64 %.2110.us, 1
  %exitcond117.not = icmp eq i64 %107, %14
  br i1 %exitcond117.not, label %._crit_edge111, label %.preheader.us, !llvm.loop !38

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

._crit_edge111:                                   ; preds = %._crit_edge108.us, %._crit_edge100, %.preheader.lr.ph, %.preheader94
  %133 = getelementptr inbounds i8, ptr %0, i64 2176
  %134 = load i64, ptr %133, align 8, !tbaa !40
  store i64 %134, 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 #3

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #3

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 #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #3

; 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 #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl24_eigsubspacereport_clearEPv(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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, !13, i64 1200, !17, i64 1264, !16, i64 2000, !16, i64 2080, !7, i64 2160, !7, i64 2168, !7, i64 2176, !18, i64 2184}
!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 2184}
!31 = !{!6, !7, i64 2160}
!32 = !{!6, !7, i64 2168}
!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 2176}
!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