; 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.324 = 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_impl16rmatrixlqunpackqEPNS_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 %10, 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.324, 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 %246

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 i64, ptr %9, align 8, !tbaa !9
  %65 = load i64, ptr %10, align 8, !tbaa !9
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %64, i64 noundef %65, ptr noundef %66)
  %68 = add nsw i64 %67, 1
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %68, ptr noundef %69)
  %70 = load i64, ptr %9, align 8, !tbaa !9
  %71 = load i64, ptr %10, align 8, !tbaa !9
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  %73 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %70, i64 noundef %71, ptr noundef %72)
  %74 = add nsw i64 %73, 1
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %74, ptr noundef %75)
  %76 = load i64, ptr %19, align 8, !tbaa !9
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %76, ptr noundef %77)
  %78 = load i64, ptr %29, align 8, !tbaa !9
  %79 = load i64, ptr %10, align 8, !tbaa !9
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %21, i64 noundef %78, i64 noundef %79, ptr noundef %80)
  %81 = load i64, ptr %29, align 8, !tbaa !9
  %82 = load i64, ptr %29, align 8, !tbaa !9
  %83 = mul nsw i64 2, %82
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %81, i64 noundef %83, ptr noundef %84)
  %85 = load i64, ptr %12, align 8, !tbaa !9
  %86 = load i64, ptr %29, align 8, !tbaa !9
  %87 = mul nsw i64 2, %86
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %23, i64 noundef %85, i64 noundef %87, ptr noundef %88)
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = load i64, ptr %12, align 8, !tbaa !9
  %91 = load i64, ptr %10, align 8, !tbaa !9
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %89, i64 noundef %90, i64 noundef %91, ptr noundef %92)
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %93

93:                                               ; preds = %131, %53
  %94 = load i64, ptr %27, align 8, !tbaa !9
  %95 = load i64, ptr %12, align 8, !tbaa !9
  %96 = sub nsw i64 %95, 1
  %97 = icmp sle i64 %94, %96
  br i1 %97, label %98, label %134

98:                                               ; preds = %93
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %127, %98
  %100 = load i64, ptr %28, align 8, !tbaa !9
  %101 = load i64, ptr %10, align 8, !tbaa !9
  %102 = sub nsw i64 %101, 1
  %103 = icmp sle i64 %100, %102
  br i1 %103, label %104, label %130

104:                                              ; preds = %99
  %105 = load i64, ptr %27, align 8, !tbaa !9
  %106 = load i64, ptr %28, align 8, !tbaa !9
  %107 = icmp eq i64 %105, %106
  br i1 %107, label %108, label %117

108:                                              ; preds = %104
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %109, i32 0, i32 6
  %111 = load ptr, ptr %110, align 8, !tbaa !11
  %112 = load i64, ptr %27, align 8, !tbaa !9
  %113 = getelementptr inbounds ptr, ptr %111, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  %115 = load i64, ptr %28, align 8, !tbaa !9
  %116 = getelementptr inbounds double, ptr %114, i64 %115
  store double 1.000000e+00, ptr %116, align 8, !tbaa !12
  br label %126

117:                                              ; preds = %104
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %118, i32 0, i32 6
  %120 = load ptr, ptr %119, align 8, !tbaa !11
  %121 = load i64, ptr %27, align 8, !tbaa !9
  %122 = getelementptr inbounds ptr, ptr %120, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = load i64, ptr %28, align 8, !tbaa !9
  %125 = getelementptr inbounds double, ptr %123, i64 %124
  store double 0.000000e+00, ptr %125, align 8, !tbaa !12
  br label %126

126:                                              ; preds = %117, %108
  br label %127

127:                                              ; preds = %126
  %128 = load i64, ptr %28, align 8, !tbaa !9
  %129 = add nsw i64 %128, 1
  store i64 %129, ptr %28, align 8, !tbaa !9
  br label %99, !llvm.loop !14

130:                                              ; preds = %99
  br label %131

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

134:                                              ; preds = %93
  %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 = %239, %134
  %144 = load i64, ptr %24, align 8, !tbaa !9
  %145 = icmp sge i64 %144, 0
  br i1 %145, label %146, label %244

146:                                              ; preds = %143
  %147 = load i64, ptr %10, 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 %239

152:                                              ; preds = %146
  %153 = load i64, ptr %25, align 8, !tbaa !9
  %154 = load i64, ptr %26, 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 false, i64 noundef %175, i64 noundef %176, ptr noundef %22, ptr noundef %16, ptr noundef %177)
  %178 = load i64, ptr %12, align 8, !tbaa !9
  %179 = load i64, ptr %25, 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 %181, i64 noundef 0, i64 noundef %182, i64 noundef 0, ptr noundef %21, i64 noundef 0, i64 noundef 0, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %23, i64 noundef 0, i64 noundef 0, ptr noundef %183)
  %184 = load i64, ptr %12, align 8, !tbaa !9
  %185 = load i64, ptr %25, 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 %23, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %22, i64 noundef 0, i64 noundef 0, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %23, i64 noundef 0, i64 noundef %187, ptr noundef %188)
  %189 = load i64, ptr %12, align 8, !tbaa !9
  %190 = load i64, ptr %26, 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 %23, i64 noundef 0, i64 noundef %192, i64 noundef 0, ptr noundef %21, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 1.000000e+00, ptr noundef %193, i64 noundef 0, i64 noundef %194, ptr noundef %195)
  br label %238

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 = %234, %196
  %200 = load i64, ptr %27, align 8, !tbaa !9
  %201 = icmp sge i64 %200, 0
  br i1 %201, label %202, label %237

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 = load i64, ptr %26, align 8, !tbaa !9
  %214 = load i64, ptr %27, align 8, !tbaa !9
  %215 = sub nsw i64 %213, %214
  %216 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %215)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %205, i64 noundef 1, ptr noundef %212, i64 noundef 1, i64 noundef %216)
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !11
  %219 = getelementptr inbounds double, ptr %218, i64 1
  store double 1.000000e+00, ptr %219, align 8, !tbaa !12
  %220 = load ptr, ptr %13, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !11
  %223 = load i64, ptr %27, align 8, !tbaa !9
  %224 = getelementptr inbounds double, ptr %222, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !12
  %226 = load i64, ptr %12, align 8, !tbaa !9
  %227 = sub nsw i64 %226, 1
  %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 %10, align 8, !tbaa !9
  %232 = sub nsw i64 %231, 1
  %233 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl27applyreflectionfromtherightEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %220, double noundef %225, ptr noundef %17, i64 noundef 0, i64 noundef %227, i64 noundef %230, i64 noundef %232, ptr noundef %16, ptr noundef %233)
  br label %234

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

237:                                              ; preds = %199
  br label %238

238:                                              ; preds = %237, %174
  br label %239

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

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

246:                                              ; preds = %244, %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
  %247 = load i32, ptr %30, align 4
  switch i32 %247, label %249 [
    i32 0, label %248
    i32 1, label %248
  ]

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

249:                                              ; preds = %246
  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_impl27applyreflectionfromtherightEPNS_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 = distinct !{!17, !15}
!18 = distinct !{!18, !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.324 = 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_impl16rmatrixlqunpackqEPNS_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, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.324, 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)
  %22 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %2, ptr noundef %6)
  %23 = add nsw i64 %22, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %23, ptr noundef %6)
  %24 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %2, ptr noundef %6)
  %25 = add nsw i64 %24, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %25, 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 %19, i64 noundef %2, ptr noundef %6)
  %26 = 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 %26, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %4, i64 noundef %26, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %4, i64 noundef %2, ptr noundef %6)
  %27 = getelementptr inbounds i8, ptr %5, i64 72
  %xtraiter = and i64 %2, 1
  %28 = icmp eq i64 %2, 1
  %unroll_iter = and i64 %2, 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 ], [ %46, %._crit_edge.us ]
  br i1 %28, label %._crit_edge.us.unr-lcssa, label %.preheader128.us.new

.preheader128.us.new:                             ; preds = %.preheader128.us, %.preheader128.us.new
  %.0120130.us = phi i64 [ %40, %.preheader128.us.new ], [ 0, %.preheader128.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader128.us.new ], [ 0, %.preheader128.us ]
  %29 = icmp eq i64 %.0121131.us, %.0120130.us
  %30 = load ptr, ptr %27, align 8, !tbaa !5
  %31 = getelementptr inbounds ptr, ptr %30, i64 %.0121131.us
  %32 = load ptr, ptr %31, align 8, !tbaa !8
  %. = select i1 %29, double 1.000000e+00, double 0.000000e+00
  %33 = getelementptr inbounds double, ptr %32, i64 %.0120130.us
  store double %., ptr %33, align 8, !tbaa !10
  %34 = or disjoint i64 %.0120130.us, 1
  %35 = icmp eq i64 %.0121131.us, %34
  %36 = load ptr, ptr %27, align 8, !tbaa !5
  %37 = getelementptr inbounds ptr, ptr %36, i64 %.0121131.us
  %38 = load ptr, ptr %37, align 8, !tbaa !8
  %..1 = select i1 %35, double 1.000000e+00, double 0.000000e+00
  %39 = getelementptr inbounds double, ptr %38, i64 %34
  store double %..1, ptr %39, align 8, !tbaa !10
  %40 = 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 ], [ %40, %.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
  %41 = icmp eq i64 %.0121131.us, %.0120130.us.unr
  %42 = load ptr, ptr %27, align 8, !tbaa !5
  %43 = getelementptr inbounds ptr, ptr %42, i64 %.0121131.us
  %44 = load ptr, ptr %43, align 8, !tbaa !8
  %..epil = select i1 %41, double 1.000000e+00, double 0.000000e+00
  %45 = getelementptr inbounds double, ptr %44, i64 %.0120130.us.unr
  store double %..epil, ptr %45, align 8, !tbaa !10
  br label %._crit_edge.us

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

.split133.us:                                     ; preds = %._crit_edge.us
  %47 = add nsw i64 %4, -1
  %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 %26, %4
  %53 = getelementptr inbounds i8, ptr %10, i64 56
  %54 = getelementptr inbounds i8, ptr %12, i64 72
  %55 = add nsw i64 %2, -1
  br i1 %.not, label %.lr.ph138.split.us, label %.lr.ph138.split.preheader

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

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

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

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

.lr.ph138.split.us:                               ; preds = %.lr.ph138, %.loopexit.us
  %.0136.us = phi i64 [ %76, %.loopexit.us ], [ %49, %.lr.ph138 ]
  %.0122135.us = phi i64 [ %19, %.loopexit.us ], [ %48, %.lr.ph138 ]
  %69 = sub nsw i64 %2, %.0136.us
  %70 = icmp sgt i64 %.0122135.us, 0
  br i1 %70, 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 %.0122135.us, i64 noundef %69, ptr noundef %0, i64 noundef %.0136.us, i64 noundef %.0136.us, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %71 = load ptr, ptr %51, align 8, !tbaa !5
  %72 = load ptr, ptr %52, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %72, i64 %.0136.us
  %74 = add nsw i64 %.0122135.us, -1
  %75 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %74)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %71, i64 noundef 1, ptr noundef %73, i64 noundef 1, i64 noundef %75)
  br label %.lr.ph.us

.loopexit.us:                                     ; preds = %.lr.ph.us, %.lr.ph138.split.us
  %76 = sub nsw i64 %.0136.us, %19
  %77 = icmp sgt i64 %76, -1
  br i1 %77, 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 [ %92, %.lr.ph.us ], [ %74, %.lr.ph.us.preheader ]
  %78 = load ptr, ptr %53, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i64 8
  %80 = load ptr, ptr %54, align 8, !tbaa !5
  %81 = getelementptr inbounds ptr, ptr %80, i64 %.1134.us
  %82 = load ptr, ptr %81, align 8, !tbaa !8
  %83 = getelementptr inbounds double, ptr %82, i64 %.1134.us
  %84 = sub nsw i64 %69, %.1134.us
  %85 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %84)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %79, i64 noundef 1, ptr noundef %83, i64 noundef 1, i64 noundef %85)
  %86 = load ptr, ptr %53, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i64 8
  store double 1.000000e+00, ptr %87, align 8, !tbaa !10
  %88 = load ptr, ptr %51, align 8, !tbaa !5
  %89 = getelementptr inbounds double, ptr %88, i64 %.1134.us
  %90 = load double, ptr %89, align 8, !tbaa !10
  %91 = add nuw nsw i64 %.1134.us, %.0136.us
  call void @_ZN11alglib_impl27applyreflectionfromtherightEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %5, double noundef %90, ptr noundef nonnull %10, i64 noundef 0, i64 noundef %47, i64 noundef %91, i64 noundef %55, ptr noundef nonnull %9, ptr noundef %6)
  %92 = 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 !16

.lr.ph138.split:                                  ; preds = %.lr.ph138.split.peel.next, %99
  %.0136 = phi i64 [ %100, %99 ], [ %65, %.lr.ph138.split.peel.next ]
  br i1 %67, label %93, label %99

93:                                               ; preds = %.lr.ph138.split
  %94 = sub nsw i64 %2, %.0136
  call void @_ZN11alglib_impl11rmatrixcopyEllPNS_9ae_matrixEllS1_llPNS_8ae_stateE(i64 noundef %19, i64 noundef %94, ptr noundef %0, i64 noundef %.0136, i64 noundef %.0136, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  %95 = load ptr, ptr %51, align 8, !tbaa !5
  %96 = load ptr, ptr %52, align 8, !tbaa !5
  %97 = getelementptr inbounds double, ptr %96, i64 %.0136
  %98 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %68)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %95, i64 noundef 1, ptr noundef %97, i64 noundef 1, i64 noundef %98)
  call void @_ZN11alglib_implL28ortfac_rmatrixblockreflectorEPNS_9ae_matrixEPNS_9ae_vectorEbllS1_S3_PNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef nonnull %11, i1 noundef zeroext false, i64 noundef %94, 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 %4, i64 noundef %19, i64 noundef %94, double noundef 1.000000e+00, ptr noundef %5, i64 noundef 0, i64 noundef %.0136, i64 noundef 0, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 1, 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 %4, i64 noundef %19, i64 noundef %19, double noundef 1.000000e+00, ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 1, double noundef 0.000000e+00, ptr noundef nonnull %14, i64 noundef 0, i64 noundef %19, ptr noundef %6)
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %4, i64 noundef %94, i64 noundef %19, double noundef 1.000000e+00, ptr noundef nonnull %14, i64 noundef 0, i64 noundef %19, i64 noundef 0, ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, double noundef 1.000000e+00, ptr noundef %5, i64 noundef 0, i64 noundef %.0136, ptr noundef %6)
  br label %99

99:                                               ; preds = %93, %.lr.ph138.split
  %100 = sub nsw i64 %.0136, %19
  %101 = icmp sgt i64 %100, -1
  br i1 %101, label %.lr.ph138.split, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %99, %.loopexit.us, %.split133.us, %64, %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_impl27applyreflectionfromtherightEPNS_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 = distinct !{!16, !13}
!17 = distinct !{!17, !13, !18}
!18 = !{!"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