; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (linalg)

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

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

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

; 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_impl16rmatrixqrunpackqEPNS_9ae_matrixEllPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.alglib_impl::ae_frame", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, 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 i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  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) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %31, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %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)
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %32)
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %33, i1 noundef zeroext true)
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %34, i1 noundef zeroext true)
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 3, ptr noundef %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %14, 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 %36, i1 noundef zeroext true)
  %37 = 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 %37, i1 noundef zeroext true)
  %38 = 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 %38, i1 noundef zeroext true)
  %39 = load i64, ptr %12, align 8, !tbaa !9
  %40 = load i64, ptr %9, align 8, !tbaa !9
  %41 = icmp sle i64 %39, %40
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef @.str.323, ptr noundef %42)
  %43 = load i64, ptr %9, align 8, !tbaa !9
  %44 = icmp sle i64 %43, 0
  br i1 %44, label %51, label %45

45:                                               ; preds = %7
  %46 = load i64, ptr %10, align 8, !tbaa !9
  %47 = icmp sle i64 %46, 0
  br i1 %47, label %51, label %48

48:                                               ; preds = %45
  %49 = load i64, ptr %12, align 8, !tbaa !9
  %50 = icmp sle i64 %49, 0
  br i1 %50, label %51, label %53

51:                                               ; preds = %48, %45, %7
  %52 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %52)
  store i32 1, ptr %30, align 4
  br label %248

53:                                               ; preds = %48
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %54)
  store i64 %55, ptr %29, align 8, !tbaa !9
  %56 = load i64, ptr %9, align 8, !tbaa !9
  %57 = load i64, ptr %10, align 8, !tbaa !9
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %56, i64 noundef %57, ptr noundef %58)
  store i64 %59, ptr %19, align 8, !tbaa !9
  %60 = load i64, ptr %19, align 8, !tbaa !9
  %61 = load i64, ptr %12, align 8, !tbaa !9
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %60, i64 noundef %61, ptr noundef %62)
  store i64 %63, ptr %20, align 8, !tbaa !9
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = load i64, ptr %9, align 8, !tbaa !9
  %66 = load i64, ptr %12, align 8, !tbaa !9
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %64, i64 noundef %65, i64 noundef %66, ptr noundef %67)
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %68

68:                                               ; preds = %106, %53
  %69 = load i64, ptr %27, align 8, !tbaa !9
  %70 = load i64, ptr %9, align 8, !tbaa !9
  %71 = sub nsw i64 %70, 1
  %72 = icmp sle i64 %69, %71
  br i1 %72, label %73, label %109

73:                                               ; preds = %68
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %74

74:                                               ; preds = %102, %73
  %75 = load i64, ptr %28, align 8, !tbaa !9
  %76 = load i64, ptr %12, align 8, !tbaa !9
  %77 = sub nsw i64 %76, 1
  %78 = icmp sle i64 %75, %77
  br i1 %78, label %79, label %105

79:                                               ; preds = %74
  %80 = load i64, ptr %27, align 8, !tbaa !9
  %81 = load i64, ptr %28, align 8, !tbaa !9
  %82 = icmp eq i64 %80, %81
  br i1 %82, label %83, label %92

83:                                               ; preds = %79
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %84, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !11
  %87 = load i64, ptr %27, align 8, !tbaa !9
  %88 = getelementptr inbounds ptr, ptr %86, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = load i64, ptr %28, align 8, !tbaa !9
  %91 = getelementptr inbounds double, ptr %89, i64 %90
  store double 1.000000e+00, ptr %91, align 8, !tbaa !12
  br label %101

92:                                               ; preds = %79
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %93, i32 0, i32 6
  %95 = load ptr, ptr %94, align 8, !tbaa !11
  %96 = load i64, ptr %27, align 8, !tbaa !9
  %97 = getelementptr inbounds ptr, ptr %95, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = load i64, ptr %28, align 8, !tbaa !9
  %100 = getelementptr inbounds double, ptr %98, i64 %99
  store double 0.000000e+00, ptr %100, align 8, !tbaa !12
  br label %101

101:                                              ; preds = %92, %83
  br label %102

102:                                              ; preds = %101
  %103 = load i64, ptr %28, align 8, !tbaa !9
  %104 = add nsw i64 %103, 1
  store i64 %104, ptr %28, align 8, !tbaa !9
  br label %74, !llvm.loop !14

105:                                              ; preds = %74
  br label %106

106:                                              ; preds = %105
  %107 = load i64, ptr %27, align 8, !tbaa !9
  %108 = add nsw i64 %107, 1
  store i64 %108, ptr %27, align 8, !tbaa !9
  br label %68, !llvm.loop !16

109:                                              ; preds = %68
  %110 = load i64, ptr %9, align 8, !tbaa !9
  %111 = load i64, ptr %12, align 8, !tbaa !9
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %110, i64 noundef %111, ptr noundef %112)
  %114 = add nsw i64 %113, 1
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %114, ptr noundef %115)
  %116 = load i64, ptr %9, align 8, !tbaa !9
  %117 = load i64, ptr %12, align 8, !tbaa !9
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %116, i64 noundef %117, ptr noundef %118)
  %120 = add nsw i64 %119, 1
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %120, ptr noundef %121)
  %122 = load i64, ptr %19, align 8, !tbaa !9
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %122, ptr noundef %123)
  %124 = load i64, ptr %9, align 8, !tbaa !9
  %125 = load i64, ptr %29, align 8, !tbaa !9
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %21, i64 noundef %124, i64 noundef %125, ptr noundef %126)
  %127 = load i64, ptr %29, align 8, !tbaa !9
  %128 = load i64, ptr %29, align 8, !tbaa !9
  %129 = mul nsw i64 2, %128
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %127, i64 noundef %129, ptr noundef %130)
  %131 = load i64, ptr %29, align 8, !tbaa !9
  %132 = mul nsw i64 2, %131
  %133 = load i64, ptr %12, align 8, !tbaa !9
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %23, i64 noundef %132, i64 noundef %133, ptr noundef %134)
  %135 = load i64, ptr %29, align 8, !tbaa !9
  %136 = load i64, ptr %20, align 8, !tbaa !9
  %137 = load i64, ptr %29, align 8, !tbaa !9
  %138 = sdiv i64 %136, %137
  %139 = mul nsw i64 %135, %138
  store i64 %139, ptr %24, align 8, !tbaa !9
  %140 = load i64, ptr %20, align 8, !tbaa !9
  %141 = load i64, ptr %24, align 8, !tbaa !9
  %142 = sub nsw i64 %140, %141
  store i64 %142, ptr %25, align 8, !tbaa !9
  br label %143

143:                                              ; preds = %241, %109
  %144 = load i64, ptr %24, align 8, !tbaa !9
  %145 = icmp sge i64 %144, 0
  br i1 %145, label %146, label %246

146:                                              ; preds = %143
  %147 = load i64, ptr %9, align 8, !tbaa !9
  %148 = load i64, ptr %24, align 8, !tbaa !9
  %149 = sub nsw i64 %147, %148
  store i64 %149, ptr %26, align 8, !tbaa !9
  %150 = load i64, ptr %25, align 8, !tbaa !9
  %151 = icmp sgt i64 %150, 0
  br i1 %151, label %152, label %241

152:                                              ; preds = %146
  %153 = load i64, ptr %26, align 8, !tbaa !9
  %154 = load i64, ptr %25, align 8, !tbaa !9
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = load i64, ptr %24, align 8, !tbaa !9
  %157 = load i64, ptr %24, align 8, !tbaa !9
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %153, i64 noundef %154, ptr noundef %155, i64 noundef %156, i64 noundef %157, ptr noundef %21, i64 noundef 0, i64 noundef 0, ptr noundef %158)
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !11
  %161 = getelementptr inbounds double, ptr %160, i64 0
  %162 = load ptr, ptr %11, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %162, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !11
  %165 = load i64, ptr %24, align 8, !tbaa !9
  %166 = getelementptr inbounds double, ptr %164, i64 %165
  %167 = load i64, ptr %25, align 8, !tbaa !9
  %168 = sub nsw i64 %167, 1
  %169 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %168)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %161, i64 noundef 1, ptr noundef %166, i64 noundef 1, i64 noundef %169)
  %170 = load i64, ptr %12, align 8, !tbaa !9
  %171 = load i64, ptr %29, align 8, !tbaa !9
  %172 = mul nsw i64 2, %171
  %173 = icmp sge i64 %170, %172
  br i1 %173, label %174, label %196

174:                                              ; preds = %152
  %175 = load i64, ptr %26, align 8, !tbaa !9
  %176 = load i64, ptr %25, align 8, !tbaa !9
  %177 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL28ortfac_rmatrixblockreflectorEPNS_9ae_matrixEPNS_9ae_vectorEbllS1_S3_PNS_8ae_stateE(ptr noundef %21, ptr noundef %18, i1 noundef zeroext true, i64 noundef %175, i64 noundef %176, ptr noundef %22, ptr noundef %16, ptr noundef %177)
  %178 = load i64, ptr %25, align 8, !tbaa !9
  %179 = load i64, ptr %12, align 8, !tbaa !9
  %180 = load i64, ptr %26, align 8, !tbaa !9
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = load i64, ptr %24, align 8, !tbaa !9
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %178, i64 noundef %179, i64 noundef %180, double noundef 1.000000e+00, ptr noundef %21, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef %181, i64 noundef %182, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %23, i64 noundef 0, i64 noundef 0, ptr noundef %183)
  %184 = load i64, ptr %25, align 8, !tbaa !9
  %185 = load i64, ptr %12, align 8, !tbaa !9
  %186 = load i64, ptr %25, align 8, !tbaa !9
  %187 = load i64, ptr %25, align 8, !tbaa !9
  %188 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %184, i64 noundef %185, i64 noundef %186, double noundef 1.000000e+00, ptr noundef %22, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %23, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %23, i64 noundef %187, i64 noundef 0, ptr noundef %188)
  %189 = load i64, ptr %26, align 8, !tbaa !9
  %190 = load i64, ptr %12, align 8, !tbaa !9
  %191 = load i64, ptr %25, align 8, !tbaa !9
  %192 = load i64, ptr %25, align 8, !tbaa !9
  %193 = load ptr, ptr %13, align 8, !tbaa !5
  %194 = load i64, ptr %24, align 8, !tbaa !9
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %189, i64 noundef %190, i64 noundef %191, double noundef 1.000000e+00, ptr noundef %21, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %23, i64 noundef %192, i64 noundef 0, i64 noundef 0, double noundef 1.000000e+00, ptr noundef %193, i64 noundef %194, i64 noundef 0, ptr noundef %195)
  br label %240

196:                                              ; preds = %152
  %197 = load i64, ptr %25, align 8, !tbaa !9
  %198 = sub nsw i64 %197, 1
  store i64 %198, ptr %27, align 8, !tbaa !9
  br label %199

199:                                              ; preds = %236, %196
  %200 = load i64, ptr %27, align 8, !tbaa !9
  %201 = icmp sge i64 %200, 0
  br i1 %201, label %202, label %239

202:                                              ; preds = %199
  %203 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %204 = load ptr, ptr %203, align 8, !tbaa !11
  %205 = getelementptr inbounds double, ptr %204, i64 1
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %207 = load ptr, ptr %206, align 8, !tbaa !11
  %208 = load i64, ptr %27, align 8, !tbaa !9
  %209 = getelementptr inbounds ptr, ptr %207, i64 %208
  %210 = load ptr, ptr %209, align 8, !tbaa !5
  %211 = load i64, ptr %27, align 8, !tbaa !9
  %212 = getelementptr inbounds double, ptr %210, i64 %211
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 2
  %214 = load i64, ptr %213, align 8, !tbaa !17
  %215 = load i64, ptr %26, align 8, !tbaa !9
  %216 = load i64, ptr %27, align 8, !tbaa !9
  %217 = sub nsw i64 %215, %216
  %218 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %217)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %205, i64 noundef 1, ptr noundef %212, i64 noundef %214, i64 noundef %218)
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %220 = load ptr, ptr %219, align 8, !tbaa !11
  %221 = getelementptr inbounds double, ptr %220, i64 1
  store double 1.000000e+00, ptr %221, align 8, !tbaa !12
  %222 = load ptr, ptr %13, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !11
  %225 = load i64, ptr %27, align 8, !tbaa !9
  %226 = getelementptr inbounds double, ptr %224, i64 %225
  %227 = load double, ptr %226, align 8, !tbaa !12
  %228 = load i64, ptr %24, align 8, !tbaa !9
  %229 = load i64, ptr %27, align 8, !tbaa !9
  %230 = add nsw i64 %228, %229
  %231 = load i64, ptr %9, align 8, !tbaa !9
  %232 = sub nsw i64 %231, 1
  %233 = load i64, ptr %12, align 8, !tbaa !9
  %234 = sub nsw i64 %233, 1
  %235 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl26applyreflectionfromtheleftEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %222, double noundef %227, ptr noundef %17, i64 noundef %230, i64 noundef %232, i64 noundef 0, i64 noundef %234, ptr noundef %16, ptr noundef %235)
  br label %236

236:                                              ; preds = %202
  %237 = load i64, ptr %27, align 8, !tbaa !9
  %238 = add nsw i64 %237, -1
  store i64 %238, ptr %27, align 8, !tbaa !9
  br label %199, !llvm.loop !21

239:                                              ; preds = %199
  br label %240

240:                                              ; preds = %239, %174
  br label %241

241:                                              ; preds = %240, %146
  %242 = load i64, ptr %24, align 8, !tbaa !9
  %243 = load i64, ptr %29, align 8, !tbaa !9
  %244 = sub nsw i64 %242, %243
  store i64 %244, ptr %24, align 8, !tbaa !9
  %245 = load i64, ptr %29, align 8, !tbaa !9
  store i64 %245, ptr %25, align 8, !tbaa !9
  br label %143, !llvm.loop !22

246:                                              ; preds = %143
  %247 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %247)
  store i32 0, ptr %30, align 4
  br label %248

248:                                              ; preds = %246, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  %249 = load i32, ptr %30, align 4
  switch i32 %249, label %251 [
    i32 0, label %250
    i32 1, label %250
  ]

250:                                              ; preds = %248, %248
  ret void

251:                                              ; preds = %248
  unreachable
}

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #2

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #2

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_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

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

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

declare noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(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 uwtable
declare hidden void @_ZN11alglib_implL28ortfac_rmatrixblockreflectorEPNS_9ae_matrixEPNS_9ae_vectorEbllS1_S3_PNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, i64 noundef, i64 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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !10, i64 16}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !19, i64 32, !20, i64 40, !7, i64 72}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}


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

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

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

; 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_impl16rmatrixqrunpackqEPNS_9ae_matrixEllPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr nocapture noundef readonly %3, i64 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_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %14 = alloca %"struct.alglib_impl::ae_matrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #4
  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(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %12, i8 0, i64 80, i1 false)
  call void @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 @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %5)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %6, 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 %6, 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 %6, 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 %6, i1 noundef zeroext true)
  %15 = icmp sle i64 %4, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.323, ptr noundef %6)
  %16 = icmp slt i64 %1, 1
  %17 = icmp slt i64 %2, 1
  %or.cond = or i1 %16, %17
  %18 = icmp slt i64 %4, 1
  %or.cond3 = or i1 %or.cond, %18
  br i1 %or.cond3, label %._crit_edge, label %.split.us

.split.us:                                        ; preds = %7
  %19 = call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %6)
  %20 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %2, ptr noundef %6)
  %21 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %20, i64 noundef %4, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %1, i64 noundef %4, ptr noundef %6)
  %22 = getelementptr inbounds i8, ptr %5, i64 72
  %xtraiter = and i64 %4, 1
  %23 = icmp eq i64 %4, 1
  %unroll_iter = and i64 %4, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader128.us

.preheader128.us:                                 ; preds = %._crit_edge.us, %.split.us
  %.0121131.us = phi i64 [ 0, %.split.us ], [ %41, %._crit_edge.us ]
  br i1 %23, label %._crit_edge.us.unr-lcssa, label %.preheader128.us.new

.preheader128.us.new:                             ; preds = %.preheader128.us, %.preheader128.us.new
  %.0120130.us = phi i64 [ %35, %.preheader128.us.new ], [ 0, %.preheader128.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader128.us.new ], [ 0, %.preheader128.us ]
  %24 = icmp eq i64 %.0121131.us, %.0120130.us
  %25 = load ptr, ptr %22, align 8, !tbaa !5
  %26 = getelementptr inbounds ptr, ptr %25, i64 %.0121131.us
  %27 = load ptr, ptr %26, align 8, !tbaa !8
  %. = select i1 %24, double 1.000000e+00, double 0.000000e+00
  %28 = getelementptr inbounds double, ptr %27, i64 %.0120130.us
  store double %., ptr %28, align 8, !tbaa !10
  %29 = or disjoint i64 %.0120130.us, 1
  %30 = icmp eq i64 %.0121131.us, %29
  %31 = load ptr, ptr %22, align 8, !tbaa !5
  %32 = getelementptr inbounds ptr, ptr %31, i64 %.0121131.us
  %33 = load ptr, ptr %32, align 8, !tbaa !8
  %..1 = select i1 %30, double 1.000000e+00, double 0.000000e+00
  %34 = getelementptr inbounds double, ptr %33, i64 %29
  store double %..1, ptr %34, align 8, !tbaa !10
  %35 = add nuw nsw i64 %.0120130.us, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader128.us.new, !llvm.loop !12

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader128.us.new, %.preheader128.us
  %.0120130.us.unr = phi i64 [ 0, %.preheader128.us ], [ %35, %.preheader128.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %36 = icmp eq i64 %.0121131.us, %.0120130.us.unr
  %37 = load ptr, ptr %22, align 8, !tbaa !5
  %38 = getelementptr inbounds ptr, ptr %37, i64 %.0121131.us
  %39 = load ptr, ptr %38, align 8, !tbaa !8
  %..epil = select i1 %36, double 1.000000e+00, double 0.000000e+00
  %40 = getelementptr inbounds double, ptr %39, i64 %.0120130.us.unr
  store double %..epil, ptr %40, align 8, !tbaa !10
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %41 = add nuw nsw i64 %.0121131.us, 1
  %exitcond140.not = icmp eq i64 %41, %1
  br i1 %exitcond140.not, label %.split133.us, label %.preheader128.us, !llvm.loop !14

.split133.us:                                     ; preds = %._crit_edge.us
  %42 = add nsw i64 %1, -1
  %43 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %4, ptr noundef %6)
  %44 = add nsw i64 %43, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %44, ptr noundef %6)
  %45 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %4, ptr noundef %6)
  %46 = add nsw i64 %45, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %46, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %20, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %1, i64 noundef %19, ptr noundef %6)
  %47 = shl nsw i64 %19, 1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %19, i64 noundef %47, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %47, i64 noundef %4, ptr noundef %6)
  %48 = srem i64 %21, %19
  %49 = sub nsw i64 %21, %48
  %50 = icmp sgt i64 %49, -1
  br i1 %50, label %.lr.ph138, label %._crit_edge

.lr.ph138:                                        ; preds = %.split133.us
  %51 = getelementptr inbounds i8, ptr %11, i64 56
  %52 = getelementptr inbounds i8, ptr %3, i64 56
  %.not = icmp sgt i64 %47, %4
  %53 = getelementptr inbounds i8, ptr %10, i64 56
  %54 = getelementptr inbounds i8, ptr %12, i64 72
  %55 = getelementptr inbounds i8, ptr %12, i64 16
  %56 = add nsw i64 %4, -1
  br i1 %.not, label %.lr.ph138.split.us, label %.lr.ph138.split.preheader

.lr.ph138.split.preheader:                        ; preds = %.lr.ph138
  %57 = icmp sgt i64 %48, 0
  br i1 %57, label %58, label %65

58:                                               ; preds = %.lr.ph138.split.preheader
  %59 = sub nsw i64 %1, %49
  call void @_ZN11alglib_impl11rmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %59, i64 noundef %48, ptr noundef %0, i64 noundef %49, i64 noundef %49, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %60 = load ptr, ptr %51, align 8, !tbaa !5
  %61 = load ptr, ptr %52, align 8, !tbaa !5
  %62 = getelementptr inbounds double, ptr %61, i64 %49
  %63 = add nsw i64 %48, -1
  %64 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %63)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %60, i64 noundef 1, ptr noundef %62, i64 noundef 1, i64 noundef %64)
  call void @_ZN11alglib_implL28ortfac_rmatrixblockreflectorEPNS_9ae_matrixEPNS_9ae_vectorEbllS1_S3_PNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef nonnull %11, i1 noundef zeroext true, i64 noundef %59, i64 noundef %48, ptr noundef nonnull %13, ptr noundef nonnull %9, ptr noundef %6)
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %48, i64 noundef %4, i64 noundef %59, double noundef 1.000000e+00, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef nonnull %5, i64 noundef %49, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %48, i64 noundef %4, i64 noundef %48, double noundef 1.000000e+00, ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %14, i64 noundef %48, i64 noundef 0, ptr noundef %6)
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %59, i64 noundef %4, i64 noundef %48, double noundef 1.000000e+00, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %14, i64 noundef %48, i64 noundef 0, i64 noundef 0, double noundef 1.000000e+00, ptr noundef nonnull %5, i64 noundef %49, i64 noundef 0, ptr noundef %6)
  br label %65

65:                                               ; preds = %58, %.lr.ph138.split.preheader
  %66 = sub nsw i64 %49, %19
  %67 = icmp sgt i64 %66, -1
  br i1 %67, label %.lr.ph138.split.peel.next, label %._crit_edge

.lr.ph138.split.peel.next:                        ; preds = %65
  %68 = icmp sgt i64 %19, 0
  %69 = add nsw i64 %19, -1
  br label %.lr.ph138.split

.lr.ph138.split.us:                               ; preds = %.lr.ph138, %.loopexit.us
  %.0136.us = phi i64 [ %77, %.loopexit.us ], [ %49, %.lr.ph138 ]
  %.0122135.us = phi i64 [ %19, %.loopexit.us ], [ %48, %.lr.ph138 ]
  %70 = sub nsw i64 %1, %.0136.us
  %71 = icmp sgt i64 %.0122135.us, 0
  br i1 %71, label %.lr.ph.us.preheader, label %.loopexit.us

.lr.ph.us.preheader:                              ; preds = %.lr.ph138.split.us
  call void @_ZN11alglib_impl11rmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %70, i64 noundef %.0122135.us, ptr noundef %0, i64 noundef %.0136.us, i64 noundef %.0136.us, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %72 = load ptr, ptr %51, align 8, !tbaa !5
  %73 = load ptr, ptr %52, align 8, !tbaa !5
  %74 = getelementptr inbounds double, ptr %73, i64 %.0136.us
  %75 = add nsw i64 %.0122135.us, -1
  %76 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %75)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %72, i64 noundef 1, ptr noundef %74, i64 noundef 1, i64 noundef %76)
  br label %.lr.ph.us

.loopexit.us:                                     ; preds = %.lr.ph.us, %.lr.ph138.split.us
  %77 = sub nsw i64 %.0136.us, %19
  %78 = icmp sgt i64 %77, -1
  br i1 %78, label %.lr.ph138.split.us, label %._crit_edge, !llvm.loop !15

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %.1134.us = phi i64 [ %94, %.lr.ph.us ], [ %75, %.lr.ph.us.preheader ]
  %79 = load ptr, ptr %53, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  %81 = load ptr, ptr %54, align 8, !tbaa !5
  %82 = getelementptr inbounds ptr, ptr %81, i64 %.1134.us
  %83 = load ptr, ptr %82, align 8, !tbaa !8
  %84 = getelementptr inbounds double, ptr %83, i64 %.1134.us
  %85 = load i64, ptr %55, align 8, !tbaa !16
  %86 = sub nsw i64 %70, %.1134.us
  %87 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %86)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %80, i64 noundef 1, ptr noundef %84, i64 noundef %85, i64 noundef %87)
  %88 = load ptr, ptr %53, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 8
  store double 1.000000e+00, ptr %89, align 8, !tbaa !10
  %90 = load ptr, ptr %51, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i64 %.1134.us
  %92 = load double, ptr %91, align 8, !tbaa !10
  %93 = add nuw nsw i64 %.1134.us, %.0136.us
  call void @_ZN11alglib_impl26applyreflectionfromtheleftEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %5, double noundef %92, ptr noundef nonnull %10, i64 noundef %93, i64 noundef %42, i64 noundef 0, i64 noundef %56, ptr noundef nonnull %9, ptr noundef %6)
  %94 = add nsw i64 %.1134.us, -1
  %.not144 = icmp eq i64 %.1134.us, 0
  br i1 %.not144, label %.loopexit.us, label %.lr.ph.us, !llvm.loop !21

.lr.ph138.split:                                  ; preds = %.lr.ph138.split.peel.next, %101
  %.0136 = phi i64 [ %102, %101 ], [ %66, %.lr.ph138.split.peel.next ]
  br i1 %68, label %95, label %101

95:                                               ; preds = %.lr.ph138.split
  %96 = sub nsw i64 %1, %.0136
  call void @_ZN11alglib_impl11rmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %96, i64 noundef %19, ptr noundef %0, i64 noundef %.0136, i64 noundef %.0136, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %97 = load ptr, ptr %51, align 8, !tbaa !5
  %98 = load ptr, ptr %52, align 8, !tbaa !5
  %99 = getelementptr inbounds double, ptr %98, i64 %.0136
  %100 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %69)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %97, i64 noundef 1, ptr noundef %99, i64 noundef 1, i64 noundef %100)
  call void @_ZN11alglib_implL28ortfac_rmatrixblockreflectorEPNS_9ae_matrixEPNS_9ae_vectorEbllS1_S3_PNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef nonnull %11, i1 noundef zeroext true, i64 noundef %96, i64 noundef %19, ptr noundef nonnull %13, ptr noundef nonnull %9, ptr noundef %6)
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %19, i64 noundef %4, i64 noundef %96, double noundef 1.000000e+00, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef %5, i64 noundef %.0136, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %19, i64 noundef %4, i64 noundef %19, double noundef 1.000000e+00, ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %14, i64 noundef %19, i64 noundef 0, ptr noundef %6)
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %96, i64 noundef %4, i64 noundef %19, double noundef 1.000000e+00, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %14, i64 noundef %19, i64 noundef 0, i64 noundef 0, double noundef 1.000000e+00, ptr noundef %5, i64 noundef %.0136, i64 noundef 0, ptr noundef %6)
  br label %101

101:                                              ; preds = %95, %.lr.ph138.split
  %102 = sub nsw i64 %.0136, %19
  %103 = icmp sgt i64 %102, -1
  br i1 %103, label %.lr.ph138.split, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %101, %.loopexit.us, %.split133.us, %65, %7
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  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 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  ret void
}

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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_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

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

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

declare noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(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 uwtable
declare hidden void @_ZN11alglib_implL28ortfac_rmatrixblockreflectorEPNS_9ae_matrixEPNS_9ae_vectorEbllS1_S3_PNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, i64 noundef, i64 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = !{!17, !18, i64 16}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !19, i64 32, !20, i64 40, !6, i64 72}
!18 = !{!"long", !6, i64 0}
!19 = !{!"bool", !6, i64 0}
!20 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13, !23}
!23 = !{!"llvm.loop.peeled.count", i32 1}


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