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

@.str.376 = external hidden unnamed_addr constant [31 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_impl17rmatrixhessenbergEPNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl24rmatrixhessenbergunpackqEPNS_9ae_matrixElPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl10rmatrixevdEPNS_9ae_matrixEllPNS_9ae_vectorES3_S1_S1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #3 {
  %9 = alloca i1, align 1
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.alglib_impl::ae_frame", align 8
  %19 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %20 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %21 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %22 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %23 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %24 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %25 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca %"struct.alglib_impl::ae_vector", align 8
  %32 = alloca i64, align 8
  %33 = alloca i8, align 1
  %34 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i64 %1, ptr %11, align 8, !tbaa !9
  store i64 %2, ptr %12, align 8, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #4
  %35 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %35, ptr noundef %18)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 64, i1 false)
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef %19, ptr noundef %36, ptr noundef %37, i1 noundef zeroext true)
  store ptr %19, ptr %10, align 8, !tbaa !5
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %38)
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %39)
  %40 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %40)
  %41 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %41)
  %42 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %42, i1 noundef zeroext true)
  %43 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %43, i1 noundef zeroext true)
  %44 = load ptr, ptr %17, 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 %44, i1 noundef zeroext true)
  %45 = load ptr, ptr %17, 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 %45, i1 noundef zeroext true)
  %46 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %24, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %46, i1 noundef zeroext true)
  %47 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %25, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %47, i1 noundef zeroext true)
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %26, i64 noundef 0, i64 noundef 3, ptr noundef %48, i1 noundef zeroext true)
  %49 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 3, ptr noundef %49, i1 noundef zeroext true)
  %50 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %28, i64 noundef 0, i64 noundef 3, ptr noundef %50, i1 noundef zeroext true)
  %51 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %31, i64 noundef 0, i64 noundef 1, ptr noundef %51, i1 noundef zeroext true)
  %52 = load i64, ptr %12, align 8, !tbaa !9
  %53 = icmp sge i64 %52, 0
  br i1 %53, label %54, label %57

54:                                               ; preds = %8
  %55 = load i64, ptr %12, align 8, !tbaa !9
  %56 = icmp sle i64 %55, 3
  br label %57

57:                                               ; preds = %54, %8
  %58 = phi i1 [ false, %8 ], [ %56, %54 ]
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %58, ptr noundef @.str.376, ptr noundef %59)
  %60 = load i64, ptr %12, align 8, !tbaa !9
  %61 = icmp eq i64 %60, 0
  br i1 %61, label %62, label %77

62:                                               ; preds = %57
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = load i64, ptr %11, align 8, !tbaa !9
  %65 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl17rmatrixhessenbergEPNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %63, i64 noundef %64, ptr noundef %28, ptr noundef %65)
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = load i64, ptr %11, align 8, !tbaa !9
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl33rmatrixinternalschurdecompositionEPNS_9ae_matrixElllPNS_9ae_vectorES3_S1_PlPNS_8ae_stateE(ptr noundef %66, i64 noundef %67, i64 noundef 0, i64 noundef 0, ptr noundef %68, ptr noundef %69, ptr noundef %25, ptr noundef %30, ptr noundef %70)
  %71 = load i64, ptr %30, align 8, !tbaa !9
  %72 = icmp eq i64 %71, 0
  %73 = zext i1 %72 to i8
  store i8 %73, ptr %33, align 1, !tbaa !11
  %74 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %74)
  %75 = load i8, ptr %33, align 1, !tbaa !11, !range !13, !noundef !14
  %76 = trunc i8 %75 to i1
  store i1 %76, ptr %9, align 1
  store i32 1, ptr %34, align 4
  br label %185

77:                                               ; preds = %57
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = load i64, ptr %11, align 8, !tbaa !9
  %80 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl17rmatrixhessenbergEPNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %78, i64 noundef %79, ptr noundef %28, ptr noundef %80)
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = load i64, ptr %11, align 8, !tbaa !9
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl24rmatrixhessenbergunpackqEPNS_9ae_matrixElPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef %81, i64 noundef %82, ptr noundef %28, ptr noundef %24, ptr noundef %83)
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = load i64, ptr %11, align 8, !tbaa !9
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl33rmatrixinternalschurdecompositionEPNS_9ae_matrixElllPNS_9ae_vectorES3_S1_PlPNS_8ae_stateE(ptr noundef %84, i64 noundef %85, i64 noundef 1, i64 noundef 1, ptr noundef %86, ptr noundef %87, ptr noundef %24, ptr noundef %30, ptr noundef %88)
  %89 = load i64, ptr %30, align 8, !tbaa !9
  %90 = icmp eq i64 %89, 0
  %91 = zext i1 %90 to i8
  store i8 %91, ptr %33, align 1, !tbaa !11
  %92 = load i8, ptr %33, align 1, !tbaa !11, !range !13, !noundef !14
  %93 = trunc i8 %92 to i1
  br i1 %93, label %98, label %94

94:                                               ; preds = %77
  %95 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %95)
  %96 = load i8, ptr %33, align 1, !tbaa !11, !range !13, !noundef !14
  %97 = trunc i8 %96 to i1
  store i1 %97, ptr %9, align 1
  store i32 1, ptr %34, align 4
  br label %185

98:                                               ; preds = %77
  %99 = load i64, ptr %12, align 8, !tbaa !9
  %100 = icmp eq i64 %99, 1
  br i1 %100, label %104, label %101

101:                                              ; preds = %98
  %102 = load i64, ptr %12, align 8, !tbaa !9
  %103 = icmp eq i64 %102, 3
  br i1 %103, label %104, label %135

104:                                              ; preds = %101, %98
  %105 = load ptr, ptr %16, align 8, !tbaa !5
  %106 = load i64, ptr %11, align 8, !tbaa !9
  %107 = load i64, ptr %11, align 8, !tbaa !9
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %105, i64 noundef %106, i64 noundef %107, ptr noundef %108)
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %109

109:                                              ; preds = %131, %104
  %110 = load i64, ptr %29, align 8, !tbaa !9
  %111 = load i64, ptr %11, align 8, !tbaa !9
  %112 = sub nsw i64 %111, 1
  %113 = icmp sle i64 %110, %112
  br i1 %113, label %114, label %134

114:                                              ; preds = %109
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %115, i32 0, i32 6
  %117 = load ptr, ptr %116, align 8, !tbaa !15
  %118 = load i64, ptr %29, align 8, !tbaa !9
  %119 = getelementptr inbounds ptr, ptr %117, i64 %118
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = getelementptr inbounds double, ptr %120, i64 0
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %123 = load ptr, ptr %122, align 8, !tbaa !15
  %124 = load i64, ptr %29, align 8, !tbaa !9
  %125 = getelementptr inbounds ptr, ptr %123, i64 %124
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = getelementptr inbounds double, ptr %126, i64 0
  %128 = load i64, ptr %11, align 8, !tbaa !9
  %129 = sub nsw i64 %128, 1
  %130 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %129)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %121, i64 noundef 1, ptr noundef %127, i64 noundef 1, i64 noundef %130)
  br label %131

131:                                              ; preds = %114
  %132 = load i64, ptr %29, align 8, !tbaa !9
  %133 = add nsw i64 %132, 1
  store i64 %133, ptr %29, align 8, !tbaa !9
  br label %109, !llvm.loop !16

134:                                              ; preds = %109
  br label %135

135:                                              ; preds = %134, %101
  %136 = load i64, ptr %12, align 8, !tbaa !9
  %137 = icmp eq i64 %136, 2
  br i1 %137, label %141, label %138

138:                                              ; preds = %135
  %139 = load i64, ptr %12, align 8, !tbaa !9
  %140 = icmp eq i64 %139, 3
  br i1 %140, label %141, label %172

141:                                              ; preds = %138, %135
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = load i64, ptr %11, align 8, !tbaa !9
  %144 = load i64, ptr %11, align 8, !tbaa !9
  %145 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %142, i64 noundef %143, i64 noundef %144, ptr noundef %145)
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %146

146:                                              ; preds = %168, %141
  %147 = load i64, ptr %29, align 8, !tbaa !9
  %148 = load i64, ptr %11, align 8, !tbaa !9
  %149 = sub nsw i64 %148, 1
  %150 = icmp sle i64 %147, %149
  br i1 %150, label %151, label %171

151:                                              ; preds = %146
  %152 = load ptr, ptr %15, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %152, i32 0, i32 6
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  %155 = load i64, ptr %29, align 8, !tbaa !9
  %156 = getelementptr inbounds ptr, ptr %154, i64 %155
  %157 = load ptr, ptr %156, align 8, !tbaa !5
  %158 = getelementptr inbounds double, ptr %157, i64 0
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %160 = load ptr, ptr %159, align 8, !tbaa !15
  %161 = load i64, ptr %29, align 8, !tbaa !9
  %162 = getelementptr inbounds ptr, ptr %160, i64 %161
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = getelementptr inbounds double, ptr %163, i64 0
  %165 = load i64, ptr %11, align 8, !tbaa !9
  %166 = sub nsw i64 %165, 1
  %167 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %166)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %158, i64 noundef 1, ptr noundef %164, i64 noundef 1, i64 noundef %167)
  br label %168

168:                                              ; preds = %151
  %169 = load i64, ptr %29, align 8, !tbaa !9
  %170 = add nsw i64 %169, 1
  store i64 %170, ptr %29, align 8, !tbaa !9
  br label %146, !llvm.loop !18

171:                                              ; preds = %146
  br label %172

172:                                              ; preds = %171, %138
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = load i64, ptr %11, align 8, !tbaa !9
  %175 = load i64, ptr %12, align 8, !tbaa !9
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = load ptr, ptr %16, align 8, !tbaa !5
  %178 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_implL24evd_rmatrixinternaltrevcEPNS_9ae_matrixElllPNS_9ae_vectorES1_S1_PlS4_PNS_8ae_stateE(ptr noundef %173, i64 noundef %174, i64 noundef %175, i64 noundef 1, ptr noundef %31, ptr noundef %176, ptr noundef %177, ptr noundef %32, ptr noundef %30, ptr noundef %178)
  %179 = load i64, ptr %30, align 8, !tbaa !9
  %180 = icmp eq i64 %179, 0
  %181 = zext i1 %180 to i8
  store i8 %181, ptr %33, align 1, !tbaa !11
  %182 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %182)
  %183 = load i8, ptr %33, align 1, !tbaa !11, !range !13, !noundef !14
  %184 = trunc i8 %183 to i1
  store i1 %184, ptr %9, align 1
  store i32 1, ptr %34, align 4
  br label %185

185:                                              ; preds = %172, %94, %62
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #4
  %186 = load i1, ptr %9, align 1
  ret i1 %186
}

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

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

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

declare void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef, ptr 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 uwtable
declare dso_local void @_ZN11alglib_impl33rmatrixinternalschurdecompositionEPNS_9ae_matrixElllPNS_9ae_vectorES3_S1_PlPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL24evd_rmatrixinternaltrevcEPNS_9ae_matrixElllPNS_9ae_vectorES1_S1_PlS4_PNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

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

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


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

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

@.str.376 = external hidden unnamed_addr constant [31 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_impl17rmatrixhessenbergEPNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl24rmatrixhessenbergunpackqEPNS_9ae_matrixElPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl10rmatrixevdEPNS_9ae_matrixEllPNS_9ae_vectorES3_S1_S1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #3 {
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %11 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %14 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %15 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %16 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca i64, align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %7, ptr noundef nonnull %9)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %11, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %13, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %14, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %15, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %16, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %21, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef nonnull %10, ptr noundef %0, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %3)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %4)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %5)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %6)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %19, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %21, i64 noundef 0, i64 noundef 1, ptr noundef %7, i1 noundef zeroext true)
  %23 = icmp ult i64 %2, 4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef nonnull @.str.376, ptr noundef %7)
  %24 = icmp eq i64 %2, 0
  call void @_ZN11alglib_impl17rmatrixhessenbergEPNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %1, ptr noundef nonnull %19, ptr noundef %7)
  br i1 %24, label %25, label %28

25:                                               ; preds = %8
  call void @_ZN11alglib_impl33rmatrixinternalschurdecompositionEPNS_9ae_matrixElllPNS_9ae_vectorES3_S1_PlPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %1, i64 noundef 0, i64 noundef 0, ptr noundef %3, ptr noundef %4, ptr noundef nonnull %16, ptr noundef nonnull %20, ptr noundef %7)
  %26 = load i64, ptr %20, align 8, !tbaa !5
  %27 = icmp eq i64 %26, 0
  br label %62

28:                                               ; preds = %8
  call void @_ZN11alglib_impl24rmatrixhessenbergunpackqEPNS_9ae_matrixElPNS_9ae_vectorES1_PNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %1, ptr noundef nonnull %19, ptr noundef nonnull %15, ptr noundef %7)
  call void @_ZN11alglib_impl33rmatrixinternalschurdecompositionEPNS_9ae_matrixElllPNS_9ae_vectorES3_S1_PlPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %1, i64 noundef 1, i64 noundef 1, ptr noundef %3, ptr noundef %4, ptr noundef nonnull %15, ptr noundef nonnull %20, ptr noundef %7)
  %29 = load i64, ptr %20, align 8, !tbaa !5
  %30 = icmp eq i64 %29, 0
  br i1 %30, label %31, label %62

31:                                               ; preds = %28
  %32 = and i64 %2, -3
  %or.cond = icmp eq i64 %32, 1
  br i1 %or.cond, label %33, label %.loopexit88

33:                                               ; preds = %31
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %1, i64 noundef %1, ptr noundef %7)
  %.not.not89 = icmp sgt i64 %1, 0
  br i1 %.not.not89, label %.lr.ph, label %.loopexit88

.lr.ph:                                           ; preds = %33
  %34 = add nsw i64 %1, -1
  %35 = getelementptr inbounds i8, ptr %6, i64 72
  %36 = getelementptr inbounds i8, ptr %15, i64 72
  br label %37

37:                                               ; preds = %.lr.ph, %37
  %.090 = phi i64 [ 0, %.lr.ph ], [ %45, %37 ]
  %38 = load ptr, ptr %35, align 8, !tbaa !9
  %39 = getelementptr inbounds ptr, ptr %38, i64 %.090
  %40 = load ptr, ptr %39, align 8, !tbaa !10
  %41 = load ptr, ptr %36, align 8, !tbaa !9
  %42 = getelementptr inbounds ptr, ptr %41, i64 %.090
  %43 = load ptr, ptr %42, align 8, !tbaa !10
  %44 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %34)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %40, i64 noundef 1, ptr noundef %43, i64 noundef 1, i64 noundef %44)
  %45 = add nuw nsw i64 %.090, 1
  %exitcond.not = icmp eq i64 %45, %1
  br i1 %exitcond.not, label %.loopexit88, label %37, !llvm.loop !12

.loopexit88:                                      ; preds = %37, %33, %31
  %46 = and i64 %2, -2
  %or.cond3 = icmp eq i64 %46, 2
  br i1 %or.cond3, label %47, label %.loopexit

47:                                               ; preds = %.loopexit88
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %1, i64 noundef %1, ptr noundef %7)
  %.not.not8791 = icmp sgt i64 %1, 0
  br i1 %.not.not8791, label %.lr.ph93, label %.loopexit

.lr.ph93:                                         ; preds = %47
  %48 = add nsw i64 %1, -1
  %49 = getelementptr inbounds i8, ptr %5, i64 72
  %50 = getelementptr inbounds i8, ptr %15, i64 72
  br label %51

51:                                               ; preds = %.lr.ph93, %51
  %.192 = phi i64 [ 0, %.lr.ph93 ], [ %59, %51 ]
  %52 = load ptr, ptr %49, align 8, !tbaa !9
  %53 = getelementptr inbounds ptr, ptr %52, i64 %.192
  %54 = load ptr, ptr %53, align 8, !tbaa !10
  %55 = load ptr, ptr %50, align 8, !tbaa !9
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.192
  %57 = load ptr, ptr %56, align 8, !tbaa !10
  %58 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %48)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %54, i64 noundef 1, ptr noundef %57, i64 noundef 1, i64 noundef %58)
  %59 = add nuw nsw i64 %.192, 1
  %exitcond94.not = icmp eq i64 %59, %1
  br i1 %exitcond94.not, label %.loopexit, label %51, !llvm.loop !14

.loopexit:                                        ; preds = %51, %47, %.loopexit88
  call void @_ZN11alglib_implL24evd_rmatrixinternaltrevcEPNS_9ae_matrixElllPNS_9ae_vectorES1_S1_PlS4_PNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %1, i64 noundef %2, i64 noundef 1, ptr noundef nonnull %21, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %22, ptr noundef nonnull %20, ptr noundef %7)
  %60 = load i64, ptr %20, align 8, !tbaa !5
  %61 = icmp eq i64 %60, 0
  br label %62

62:                                               ; preds = %28, %.loopexit, %25
  %.082 = phi i1 [ %27, %25 ], [ %61, %.loopexit ], [ false, %28 ]
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  ret i1 %.082
}

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

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

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

declare void @_ZN11alglib_impl14ae_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_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef, ptr 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 uwtable
declare dso_local void @_ZN11alglib_impl33rmatrixinternalschurdecompositionEPNS_9ae_matrixElllPNS_9ae_vectorES3_S1_PlPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL24evd_rmatrixinternaltrevcEPNS_9ae_matrixElllPNS_9ae_vectorES1_S1_PlS4_PNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass