; 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.327 = external hidden unnamed_addr constant [40 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
define dso_local void @_ZN11alglib_impl20rmatrixbdmultiplybyqEPNS_9ae_matrixEllPNS_9ae_vectorES1_llbbPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5, i64 noundef %6, i1 noundef zeroext %7, i1 noundef zeroext %8, ptr noundef %9) #3 {
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca ptr, align 8
  %21 = alloca %"struct.alglib_impl::ae_frame", align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca i64, align 8
  %30 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store i64 %1, ptr %12, align 8, !tbaa !9
  store i64 %2, ptr %13, align 8, !tbaa !9
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store i64 %5, ptr %16, align 8, !tbaa !9
  store i64 %6, ptr %17, align 8, !tbaa !9
  %31 = zext i1 %7 to i8
  store i8 %31, ptr %18, align 1, !tbaa !11
  %32 = zext i1 %8 to i8
  store i8 %32, ptr %19, align 1, !tbaa !11
  store ptr %9, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 64, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %33 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %33, ptr noundef %21)
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 64, i1 false)
  %34 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %26, i64 noundef 0, i64 noundef 3, ptr noundef %34, i1 noundef zeroext true)
  %35 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 3, ptr noundef %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %28, i64 noundef 0, i64 noundef 3, ptr noundef %36, i1 noundef zeroext true)
  %37 = load i64, ptr %12, align 8, !tbaa !9
  %38 = icmp sle i64 %37, 0
  br i1 %38, label %48, label %39

39:                                               ; preds = %10
  %40 = load i64, ptr %13, align 8, !tbaa !9
  %41 = icmp sle i64 %40, 0
  br i1 %41, label %48, label %42

42:                                               ; preds = %39
  %43 = load i64, ptr %16, align 8, !tbaa !9
  %44 = icmp sle i64 %43, 0
  br i1 %44, label %48, label %45

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

48:                                               ; preds = %45, %42, %39, %10
  %49 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %49)
  store i32 1, ptr %30, align 4
  br label %283

50:                                               ; preds = %45
  %51 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %52 = trunc i8 %51 to i1
  br i1 %52, label %53, label %57

53:                                               ; preds = %50
  %54 = load i64, ptr %17, align 8, !tbaa !9
  %55 = load i64, ptr %12, align 8, !tbaa !9
  %56 = icmp eq i64 %54, %55
  br i1 %56, label %66, label %57

57:                                               ; preds = %53, %50
  %58 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %59 = trunc i8 %58 to i1
  br i1 %59, label %64, label %60

60:                                               ; preds = %57
  %61 = load i64, ptr %16, align 8, !tbaa !9
  %62 = load i64, ptr %12, align 8, !tbaa !9
  %63 = icmp eq i64 %61, %62
  br label %64

64:                                               ; preds = %60, %57
  %65 = phi i1 [ false, %57 ], [ %63, %60 ]
  br label %66

66:                                               ; preds = %64, %53
  %67 = phi i1 [ true, %53 ], [ %65, %64 ]
  %68 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %67, ptr noundef @.str.327, ptr noundef %68)
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = load i64, ptr %12, align 8, !tbaa !9
  %71 = load i64, ptr %13, align 8, !tbaa !9
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = load i64, ptr %16, align 8, !tbaa !9
  %75 = load i64, ptr %17, align 8, !tbaa !9
  %76 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %77 = trunc i8 %76 to i1
  %78 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %79 = trunc i8 %78 to i1
  %80 = load ptr, ptr %20, align 8, !tbaa !5
  %81 = call noundef zeroext i1 @_ZN11alglib_impl22rmatrixbdmultiplybymklEPNS_9ae_matrixEllPNS_9ae_vectorES3_S1_llbbbPNS_8ae_stateE(ptr noundef %69, i64 noundef %70, i64 noundef %71, ptr noundef %72, ptr noundef %28, ptr noundef %73, i64 noundef %74, i64 noundef %75, i1 noundef zeroext true, i1 noundef zeroext %77, i1 noundef zeroext %79, ptr noundef %80)
  br i1 %81, label %82, label %84

82:                                               ; preds = %66
  %83 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %83)
  store i32 1, ptr %30, align 4
  br label %283

84:                                               ; preds = %66
  %85 = load i64, ptr %12, align 8, !tbaa !9
  %86 = load i64, ptr %13, align 8, !tbaa !9
  %87 = load ptr, ptr %20, align 8, !tbaa !5
  %88 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %85, i64 noundef %86, ptr noundef %87)
  store i64 %88, ptr %29, align 8, !tbaa !9
  %89 = load i64, ptr %29, align 8, !tbaa !9
  %90 = load i64, ptr %16, align 8, !tbaa !9
  %91 = load ptr, ptr %20, align 8, !tbaa !5
  %92 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %89, i64 noundef %90, ptr noundef %91)
  store i64 %92, ptr %29, align 8, !tbaa !9
  %93 = load i64, ptr %29, align 8, !tbaa !9
  %94 = load i64, ptr %17, align 8, !tbaa !9
  %95 = load ptr, ptr %20, align 8, !tbaa !5
  %96 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %93, i64 noundef %94, ptr noundef %95)
  store i64 %96, ptr %29, align 8, !tbaa !9
  %97 = load i64, ptr %29, align 8, !tbaa !9
  %98 = add nsw i64 %97, 1
  %99 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %98, ptr noundef %99)
  %100 = load i64, ptr %29, align 8, !tbaa !9
  %101 = add nsw i64 %100, 1
  %102 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %27, i64 noundef %101, ptr noundef %102)
  %103 = load i64, ptr %12, align 8, !tbaa !9
  %104 = load i64, ptr %13, align 8, !tbaa !9
  %105 = icmp sge i64 %103, %104
  br i1 %105, label %106, label %189

106:                                              ; preds = %84
  %107 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %108 = trunc i8 %107 to i1
  br i1 %108, label %109, label %112

109:                                              ; preds = %106
  store i64 0, ptr %23, align 8, !tbaa !9
  %110 = load i64, ptr %13, align 8, !tbaa !9
  %111 = sub nsw i64 %110, 1
  store i64 %111, ptr %24, align 8, !tbaa !9
  store i64 1, ptr %25, align 8, !tbaa !9
  br label %115

112:                                              ; preds = %106
  %113 = load i64, ptr %13, align 8, !tbaa !9
  %114 = sub nsw i64 %113, 1
  store i64 %114, ptr %23, align 8, !tbaa !9
  store i64 0, ptr %24, align 8, !tbaa !9
  store i64 -1, ptr %25, align 8, !tbaa !9
  br label %115

115:                                              ; preds = %112, %109
  %116 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %117 = trunc i8 %116 to i1
  br i1 %117, label %118, label %124

118:                                              ; preds = %115
  %119 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %119, ptr %22, align 8, !tbaa !9
  %120 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %120, ptr %23, align 8, !tbaa !9
  %121 = load i64, ptr %22, align 8, !tbaa !9
  store i64 %121, ptr %24, align 8, !tbaa !9
  %122 = load i64, ptr %25, align 8, !tbaa !9
  %123 = sub nsw i64 0, %122
  store i64 %123, ptr %25, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %118, %115
  %125 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %125, ptr %22, align 8, !tbaa !9
  br label %126

126:                                              ; preds = %182, %124
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !15
  %129 = getelementptr inbounds double, ptr %128, i64 1
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %130, i32 0, i32 6
  %132 = load ptr, ptr %131, align 8, !tbaa !15
  %133 = load i64, ptr %22, align 8, !tbaa !9
  %134 = getelementptr inbounds ptr, ptr %132, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = load i64, ptr %22, align 8, !tbaa !9
  %137 = getelementptr inbounds double, ptr %135, i64 %136
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %138, i32 0, i32 2
  %140 = load i64, ptr %139, align 8, !tbaa !16
  %141 = load i64, ptr %12, align 8, !tbaa !9
  %142 = load i64, ptr %22, align 8, !tbaa !9
  %143 = sub nsw i64 %141, %142
  %144 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %143)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %129, i64 noundef 1, ptr noundef %137, i64 noundef %140, i64 noundef %144)
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !15
  %147 = getelementptr inbounds double, ptr %146, i64 1
  store double 1.000000e+00, ptr %147, align 8, !tbaa !19
  %148 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %149 = trunc i8 %148 to i1
  br i1 %149, label %150, label %164

150:                                              ; preds = %126
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = load ptr, ptr %14, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %152, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  %155 = load i64, ptr %22, align 8, !tbaa !9
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !19
  %158 = load i64, ptr %16, align 8, !tbaa !9
  %159 = sub nsw i64 %158, 1
  %160 = load i64, ptr %22, align 8, !tbaa !9
  %161 = load i64, ptr %12, align 8, !tbaa !9
  %162 = sub nsw i64 %161, 1
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl27applyreflectionfromtherightEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %151, double noundef %157, ptr noundef %26, i64 noundef 0, i64 noundef %159, i64 noundef %160, i64 noundef %162, ptr noundef %27, ptr noundef %163)
  br label %178

164:                                              ; preds = %126
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %166, i32 0, i32 4
  %168 = load ptr, ptr %167, align 8, !tbaa !15
  %169 = load i64, ptr %22, align 8, !tbaa !9
  %170 = getelementptr inbounds double, ptr %168, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !19
  %172 = load i64, ptr %22, align 8, !tbaa !9
  %173 = load i64, ptr %12, align 8, !tbaa !9
  %174 = sub nsw i64 %173, 1
  %175 = load i64, ptr %17, align 8, !tbaa !9
  %176 = sub nsw i64 %175, 1
  %177 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl26applyreflectionfromtheleftEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %165, double noundef %171, ptr noundef %26, i64 noundef %172, i64 noundef %174, i64 noundef 0, i64 noundef %176, ptr noundef %27, ptr noundef %177)
  br label %178

178:                                              ; preds = %164, %150
  %179 = load i64, ptr %22, align 8, !tbaa !9
  %180 = load i64, ptr %25, align 8, !tbaa !9
  %181 = add nsw i64 %179, %180
  store i64 %181, ptr %22, align 8, !tbaa !9
  br label %182

182:                                              ; preds = %178
  %183 = load i64, ptr %22, align 8, !tbaa !9
  %184 = load i64, ptr %24, align 8, !tbaa !9
  %185 = load i64, ptr %25, align 8, !tbaa !9
  %186 = add nsw i64 %184, %185
  %187 = icmp ne i64 %183, %186
  br i1 %187, label %126, label %188, !llvm.loop !21

188:                                              ; preds = %182
  br label %281

189:                                              ; preds = %84
  %190 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %191 = trunc i8 %190 to i1
  br i1 %191, label %192, label %195

192:                                              ; preds = %189
  store i64 0, ptr %23, align 8, !tbaa !9
  %193 = load i64, ptr %12, align 8, !tbaa !9
  %194 = sub nsw i64 %193, 2
  store i64 %194, ptr %24, align 8, !tbaa !9
  store i64 1, ptr %25, align 8, !tbaa !9
  br label %198

195:                                              ; preds = %189
  %196 = load i64, ptr %12, align 8, !tbaa !9
  %197 = sub nsw i64 %196, 2
  store i64 %197, ptr %23, align 8, !tbaa !9
  store i64 0, ptr %24, align 8, !tbaa !9
  store i64 -1, ptr %25, align 8, !tbaa !9
  br label %198

198:                                              ; preds = %195, %192
  %199 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %200 = trunc i8 %199 to i1
  br i1 %200, label %201, label %207

201:                                              ; preds = %198
  %202 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %202, ptr %22, align 8, !tbaa !9
  %203 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %203, ptr %23, align 8, !tbaa !9
  %204 = load i64, ptr %22, align 8, !tbaa !9
  store i64 %204, ptr %24, align 8, !tbaa !9
  %205 = load i64, ptr %25, align 8, !tbaa !9
  %206 = sub nsw i64 0, %205
  store i64 %206, ptr %25, align 8, !tbaa !9
  br label %207

207:                                              ; preds = %201, %198
  %208 = load i64, ptr %12, align 8, !tbaa !9
  %209 = sub nsw i64 %208, 1
  %210 = icmp sgt i64 %209, 0
  br i1 %210, label %211, label %280

211:                                              ; preds = %207
  %212 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %212, ptr %22, align 8, !tbaa !9
  br label %213

213:                                              ; preds = %273, %211
  %214 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %215 = load ptr, ptr %214, align 8, !tbaa !15
  %216 = getelementptr inbounds double, ptr %215, i64 1
  %217 = load ptr, ptr %11, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %217, i32 0, i32 6
  %219 = load ptr, ptr %218, align 8, !tbaa !15
  %220 = load i64, ptr %22, align 8, !tbaa !9
  %221 = add nsw i64 %220, 1
  %222 = getelementptr inbounds ptr, ptr %219, i64 %221
  %223 = load ptr, ptr %222, align 8, !tbaa !5
  %224 = load i64, ptr %22, align 8, !tbaa !9
  %225 = getelementptr inbounds double, ptr %223, i64 %224
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %226, i32 0, i32 2
  %228 = load i64, ptr %227, align 8, !tbaa !16
  %229 = load i64, ptr %12, align 8, !tbaa !9
  %230 = load i64, ptr %22, align 8, !tbaa !9
  %231 = sub nsw i64 %229, %230
  %232 = sub nsw i64 %231, 1
  %233 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %232)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %216, i64 noundef 1, ptr noundef %225, i64 noundef %228, i64 noundef %233)
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %235 = load ptr, ptr %234, align 8, !tbaa !15
  %236 = getelementptr inbounds double, ptr %235, i64 1
  store double 1.000000e+00, ptr %236, align 8, !tbaa !19
  %237 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %238 = trunc i8 %237 to i1
  br i1 %238, label %239, label %254

239:                                              ; preds = %213
  %240 = load ptr, ptr %15, align 8, !tbaa !5
  %241 = load ptr, ptr %14, align 8, !tbaa !5
  %242 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %241, i32 0, i32 4
  %243 = load ptr, ptr %242, align 8, !tbaa !15
  %244 = load i64, ptr %22, align 8, !tbaa !9
  %245 = getelementptr inbounds double, ptr %243, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !19
  %247 = load i64, ptr %16, align 8, !tbaa !9
  %248 = sub nsw i64 %247, 1
  %249 = load i64, ptr %22, align 8, !tbaa !9
  %250 = add nsw i64 %249, 1
  %251 = load i64, ptr %12, align 8, !tbaa !9
  %252 = sub nsw i64 %251, 1
  %253 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl27applyreflectionfromtherightEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %240, double noundef %246, ptr noundef %26, i64 noundef 0, i64 noundef %248, i64 noundef %250, i64 noundef %252, ptr noundef %27, ptr noundef %253)
  br label %269

254:                                              ; preds = %213
  %255 = load ptr, ptr %15, align 8, !tbaa !5
  %256 = load ptr, ptr %14, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %256, i32 0, i32 4
  %258 = load ptr, ptr %257, align 8, !tbaa !15
  %259 = load i64, ptr %22, align 8, !tbaa !9
  %260 = getelementptr inbounds double, ptr %258, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !19
  %262 = load i64, ptr %22, align 8, !tbaa !9
  %263 = add nsw i64 %262, 1
  %264 = load i64, ptr %12, align 8, !tbaa !9
  %265 = sub nsw i64 %264, 1
  %266 = load i64, ptr %17, align 8, !tbaa !9
  %267 = sub nsw i64 %266, 1
  %268 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl26applyreflectionfromtheleftEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %255, double noundef %261, ptr noundef %26, i64 noundef %263, i64 noundef %265, i64 noundef 0, i64 noundef %267, ptr noundef %27, ptr noundef %268)
  br label %269

269:                                              ; preds = %254, %239
  %270 = load i64, ptr %22, align 8, !tbaa !9
  %271 = load i64, ptr %25, align 8, !tbaa !9
  %272 = add nsw i64 %270, %271
  store i64 %272, ptr %22, align 8, !tbaa !9
  br label %273

273:                                              ; preds = %269
  %274 = load i64, ptr %22, align 8, !tbaa !9
  %275 = load i64, ptr %24, align 8, !tbaa !9
  %276 = load i64, ptr %25, align 8, !tbaa !9
  %277 = add nsw i64 %275, %276
  %278 = icmp ne i64 %274, %277
  br i1 %278, label %213, label %279, !llvm.loop !23

279:                                              ; preds = %273
  br label %280

280:                                              ; preds = %279, %207
  br label %281

281:                                              ; preds = %280, %188
  %282 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %282)
  store i32 0, ptr %30, align 4
  br label %283

283:                                              ; preds = %281, %82, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #4
  %284 = load i32, ptr %30, align 4
  switch i32 %284, label %286 [
    i32 0, label %285
    i32 1, label %285
  ]

285:                                              ; preds = %283, %283
  ret void

286:                                              ; preds = %283
  unreachable
}

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

; 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 zeroext i1 @_ZN11alglib_impl22rmatrixbdmultiplybymklEPNS_9ae_matrixEllPNS_9ae_vectorES3_S1_llbbbPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, ptr noundef) #2

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

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

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


; 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 }

@.str.327 = external hidden unnamed_addr constant [40 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
define dso_local void @_ZN11alglib_impl20rmatrixbdmultiplybyqEPNS_9ae_matrixEllPNS_9ae_vectorES1_llbbPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5, i64 noundef %6, i1 noundef zeroext %7, i1 noundef zeroext %8, ptr noundef %9) local_unnamed_addr #3 {
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %9, ptr noundef nonnull %11)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 3, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 3, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 3, ptr noundef %9, i1 noundef zeroext true)
  %15 = icmp slt i64 %1, 1
  %16 = icmp slt i64 %2, 1
  %or.cond = or i1 %15, %16
  %17 = icmp slt i64 %5, 1
  %or.cond3 = or i1 %or.cond, %17
  %18 = icmp slt i64 %6, 1
  %or.cond5 = or i1 %or.cond3, %18
  br i1 %or.cond5, label %.loopexit, label %19

19:                                               ; preds = %10
  %20 = icmp eq i64 %6, %1
  %or.cond137 = and i1 %20, %7
  br i1 %or.cond137, label %24, label %21

21:                                               ; preds = %19
  %22 = icmp eq i64 %5, %1
  %not. = xor i1 %7, true
  %23 = and i1 %22, %not.
  br label %24

24:                                               ; preds = %19, %21
  %25 = phi i1 [ %23, %21 ], [ true, %19 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.327, ptr noundef %9)
  %26 = call noundef zeroext i1 @_ZN11alglib_impl22rmatrixbdmultiplybymklEPNS_9ae_matrixEllPNS_9ae_vectorES3_S1_llbbbPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef nonnull %14, ptr noundef %4, i64 noundef %5, i64 noundef %6, i1 noundef zeroext true, i1 noundef zeroext %7, i1 noundef zeroext %8, ptr noundef %9)
  br i1 %26, label %.loopexit, label %27

27:                                               ; preds = %24
  %28 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %2, ptr noundef %9)
  %29 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %28, i64 noundef %5, ptr noundef %9)
  %30 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %29, i64 noundef %6, ptr noundef %9)
  %31 = add nsw i64 %30, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %31, ptr noundef %9)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %31, ptr noundef %9)
  %.not = icmp ult i64 %1, %2
  %.2 = select i1 %7, i64 1, i64 -1
  %32 = sub nsw i64 0, %.2
  br i1 %.not, label %72, label %33

33:                                               ; preds = %27
  %34 = add nsw i64 %2, -1
  %.0124 = select i1 %7, i64 0, i64 %34
  %.0120 = select i1 %7, i64 %34, i64 0
  %.1125 = select i1 %8, i64 %.0120, i64 %.0124
  %.1121 = select i1 %8, i64 %.0124, i64 %.0120
  %.1119 = select i1 %8, i64 %32, i64 %.2
  %35 = getelementptr inbounds i8, ptr %12, i64 56
  %36 = getelementptr inbounds i8, ptr %0, i64 72
  %37 = getelementptr inbounds i8, ptr %0, i64 16
  %38 = getelementptr inbounds i8, ptr %3, i64 56
  %39 = add nsw i64 %1, -1
  %40 = add nsw i64 %6, -1
  %41 = add nsw i64 %5, -1
  br i1 %7, label %.split.us, label %.split

.split.us:                                        ; preds = %33, %.split.us
  %.0.us = phi i64 [ %56, %.split.us ], [ %.1125, %33 ]
  %42 = load ptr, ptr %35, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load ptr, ptr %36, align 8, !tbaa !5
  %45 = getelementptr inbounds ptr, ptr %44, i64 %.0.us
  %46 = load ptr, ptr %45, align 8, !tbaa !8
  %47 = getelementptr inbounds double, ptr %46, i64 %.0.us
  %48 = load i64, ptr %37, align 8, !tbaa !10
  %49 = sub nsw i64 %1, %.0.us
  %50 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %49)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %43, i64 noundef 1, ptr noundef %47, i64 noundef %48, i64 noundef %50)
  %51 = load ptr, ptr %35, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  store double 1.000000e+00, ptr %52, align 8, !tbaa !15
  %53 = load ptr, ptr %38, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 %.0.us
  %55 = load double, ptr %54, align 8, !tbaa !15
  call void @_ZN11alglib_impl27applyreflectionfromtherightEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %4, double noundef %55, ptr noundef nonnull %12, i64 noundef 0, i64 noundef %41, i64 noundef %.0.us, i64 noundef %39, ptr noundef nonnull %13, ptr noundef %9)
  %56 = add nsw i64 %.0.us, %.1119
  %.not136.us = icmp eq i64 %.0.us, %.1121
  br i1 %.not136.us, label %.loopexit, label %.split.us, !llvm.loop !17

.split:                                           ; preds = %33, %.split
  %.0 = phi i64 [ %71, %.split ], [ %.1125, %33 ]
  %57 = load ptr, ptr %35, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  %59 = load ptr, ptr %36, align 8, !tbaa !5
  %60 = getelementptr inbounds ptr, ptr %59, i64 %.0
  %61 = load ptr, ptr %60, align 8, !tbaa !8
  %62 = getelementptr inbounds double, ptr %61, i64 %.0
  %63 = load i64, ptr %37, align 8, !tbaa !10
  %64 = sub nsw i64 %1, %.0
  %65 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %64)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %58, i64 noundef 1, ptr noundef %62, i64 noundef %63, i64 noundef %65)
  %66 = load ptr, ptr %35, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i64 8
  store double 1.000000e+00, ptr %67, align 8, !tbaa !15
  %68 = load ptr, ptr %38, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %68, i64 %.0
  %70 = load double, ptr %69, align 8, !tbaa !15
  call void @_ZN11alglib_impl26applyreflectionfromtheleftEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %4, double noundef %70, ptr noundef nonnull %12, i64 noundef %.0, i64 noundef %39, i64 noundef 0, i64 noundef %40, ptr noundef nonnull %13, ptr noundef %9)
  %71 = add nsw i64 %.0, %.1119
  %.not136 = icmp eq i64 %.0, %.1121
  br i1 %.not136, label %.loopexit, label %.split, !llvm.loop !17

72:                                               ; preds = %27
  %73 = add nsw i64 %1, -2
  %.2126 = select i1 %7, i64 0, i64 %73
  %.2122 = select i1 %7, i64 %73, i64 0
  %.3123 = select i1 %8, i64 %.2126, i64 %.2122
  %.3 = select i1 %8, i64 %32, i64 %.2
  %74 = add nsw i64 %1, -1
  %75 = icmp ugt i64 %1, 1
  br i1 %75, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %72
  %.3127 = select i1 %8, i64 %.2122, i64 %.2126
  %76 = getelementptr inbounds i8, ptr %12, i64 56
  %77 = getelementptr inbounds i8, ptr %0, i64 72
  %78 = getelementptr inbounds i8, ptr %0, i64 16
  %79 = getelementptr inbounds i8, ptr %3, i64 56
  %80 = add nsw i64 %6, -1
  %81 = add nsw i64 %5, -1
  br i1 %7, label %.preheader.split.us, label %.preheader.split

.preheader.split.us:                              ; preds = %.preheader, %.preheader.split.us
  %.1.us = phi i64 [ %98, %.preheader.split.us ], [ %.3127, %.preheader ]
  %82 = load ptr, ptr %76, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  %84 = load ptr, ptr %77, align 8, !tbaa !5
  %85 = add nsw i64 %.1.us, 1
  %86 = getelementptr inbounds ptr, ptr %84, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !8
  %88 = getelementptr inbounds double, ptr %87, i64 %.1.us
  %89 = load i64, ptr %78, align 8, !tbaa !10
  %90 = xor i64 %.1.us, -1
  %91 = add i64 %90, %1
  %92 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %91)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %83, i64 noundef 1, ptr noundef %88, i64 noundef %89, i64 noundef %92)
  %93 = load ptr, ptr %76, align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %93, i64 8
  store double 1.000000e+00, ptr %94, align 8, !tbaa !15
  %95 = load ptr, ptr %79, align 8, !tbaa !5
  %96 = getelementptr inbounds double, ptr %95, i64 %.1.us
  %97 = load double, ptr %96, align 8, !tbaa !15
  call void @_ZN11alglib_impl27applyreflectionfromtherightEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %4, double noundef %97, ptr noundef nonnull %12, i64 noundef 0, i64 noundef %81, i64 noundef %85, i64 noundef %74, ptr noundef nonnull %13, ptr noundef %9)
  %98 = add nsw i64 %.1.us, %.3
  %.not135.us = icmp eq i64 %.1.us, %.3123
  br i1 %.not135.us, label %.loopexit, label %.preheader.split.us, !llvm.loop !19

.preheader.split:                                 ; preds = %.preheader, %.preheader.split
  %.1 = phi i64 [ %115, %.preheader.split ], [ %.3127, %.preheader ]
  %99 = load ptr, ptr %76, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 8
  %101 = load ptr, ptr %77, align 8, !tbaa !5
  %102 = add nsw i64 %.1, 1
  %103 = getelementptr inbounds ptr, ptr %101, i64 %102
  %104 = load ptr, ptr %103, align 8, !tbaa !8
  %105 = getelementptr inbounds double, ptr %104, i64 %.1
  %106 = load i64, ptr %78, align 8, !tbaa !10
  %107 = xor i64 %.1, -1
  %108 = add i64 %107, %1
  %109 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %108)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %100, i64 noundef 1, ptr noundef %105, i64 noundef %106, i64 noundef %109)
  %110 = load ptr, ptr %76, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 8
  store double 1.000000e+00, ptr %111, align 8, !tbaa !15
  %112 = load ptr, ptr %79, align 8, !tbaa !5
  %113 = getelementptr inbounds double, ptr %112, i64 %.1
  %114 = load double, ptr %113, align 8, !tbaa !15
  call void @_ZN11alglib_impl26applyreflectionfromtheleftEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %4, double noundef %114, ptr noundef nonnull %12, i64 noundef %102, i64 noundef %74, i64 noundef 0, i64 noundef %80, ptr noundef nonnull %13, ptr noundef %9)
  %115 = add nsw i64 %.1, %.3
  %.not135 = icmp eq i64 %.1, %.3123
  br i1 %.not135, label %.loopexit, label %.preheader.split, !llvm.loop !19

.loopexit:                                        ; preds = %.split, %.split.us, %.preheader.split, %.preheader.split.us, %72, %24, %10
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %9)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #4
  ret void
}

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

; 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 zeroext i1 @_ZN11alglib_impl22rmatrixbdmultiplybymklEPNS_9ae_matrixEllPNS_9ae_vectorES3_S1_llbbbPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, ptr noundef) local_unnamed_addr #2

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, !12, i64 16}
!11 = !{!"_ZTSN11alglib_impl9ae_matrixE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32, !14, i64 40, !6, i64 72}
!12 = !{!"long", !6, i64 0}
!13 = !{!"bool", !6, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !6, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass