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

@.str.205 = external hidden unnamed_addr constant [41 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %10, ptr noundef %11) #2 {
  %13 = alloca i64, align 8
  %14 = alloca i64, 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 i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca ptr, 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 i64 %0, ptr %13, align 8, !tbaa !5
  store i64 %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !9
  store i64 %3, ptr %16, align 8, !tbaa !5
  store i64 %4, ptr %17, align 8, !tbaa !5
  %31 = zext i1 %5 to i8
  store i8 %31, ptr %18, align 1, !tbaa !11
  %32 = zext i1 %6 to i8
  store i8 %32, ptr %19, align 1, !tbaa !11
  store i64 %7, ptr %20, align 8, !tbaa !5
  store ptr %8, ptr %21, align 8, !tbaa !9
  store i64 %9, ptr %22, align 8, !tbaa !5
  store i64 %10, ptr %23, align 8, !tbaa !5
  store ptr %11, ptr %24, align 8, !tbaa !9
  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
  %33 = load ptr, ptr %24, align 8, !tbaa !9
  %34 = call noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef %33)
  store i64 %34, ptr %27, align 8, !tbaa !5
  %35 = load ptr, ptr %24, align 8, !tbaa !9
  %36 = call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %35)
  store i64 %36, ptr %28, align 8, !tbaa !5
  %37 = load i64, ptr %28, align 8, !tbaa !5
  store i64 %37, ptr %29, align 8, !tbaa !5
  %38 = load i64, ptr %13, align 8, !tbaa !5
  %39 = load i64, ptr %14, align 8, !tbaa !5
  %40 = load ptr, ptr %24, align 8, !tbaa !9
  %41 = call noundef i64 @_ZN11alglib_impl5imax2EllPNS_8ae_stateE(i64 noundef %38, i64 noundef %39, ptr noundef %40)
  %42 = load i64, ptr %28, align 8, !tbaa !5
  %43 = icmp sle i64 %41, %42
  br i1 %43, label %44, label %46

44:                                               ; preds = %12
  %45 = load i64, ptr %27, align 8, !tbaa !5
  store i64 %45, ptr %29, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %44, %12
  %47 = load i64, ptr %29, align 8, !tbaa !5
  %48 = icmp sge i64 %47, 1
  %49 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.205, ptr noundef %49)
  %50 = load i64, ptr %13, align 8, !tbaa !5
  %51 = load i64, ptr %28, align 8, !tbaa !5
  %52 = mul nsw i64 2, %51
  %53 = icmp sge i64 %50, %52
  br i1 %53, label %54, label %84

54:                                               ; preds = %46
  %55 = load i64, ptr %13, align 8, !tbaa !5
  %56 = sitofp i64 %55 to double
  %57 = load i64, ptr %14, align 8, !tbaa !5
  %58 = sitofp i64 %57 to double
  %59 = load i64, ptr %14, align 8, !tbaa !5
  %60 = sitofp i64 %59 to double
  %61 = load ptr, ptr %24, align 8, !tbaa !9
  %62 = call noundef double @_ZN11alglib_impl5rmul3EdddPNS_8ae_stateE(double noundef %56, double noundef %58, double noundef %60, ptr noundef %61)
  %63 = load ptr, ptr %24, align 8, !tbaa !9
  %64 = call noundef double @_ZN11alglib_impl18smpactivationlevelEPNS_8ae_stateE(ptr noundef %63)
  %65 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %62, double noundef %64)
  br i1 %65, label %66, label %84

66:                                               ; preds = %54
  %67 = load i64, ptr %13, align 8, !tbaa !5
  %68 = load i64, ptr %14, align 8, !tbaa !5
  %69 = load ptr, ptr %15, align 8, !tbaa !9
  %70 = load i64, ptr %16, align 8, !tbaa !5
  %71 = load i64, ptr %17, align 8, !tbaa !5
  %72 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %73 = trunc i8 %72 to i1
  %74 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %75 = trunc i8 %74 to i1
  %76 = load i64, ptr %20, align 8, !tbaa !5
  %77 = load ptr, ptr %21, align 8, !tbaa !9
  %78 = load i64, ptr %22, align 8, !tbaa !5
  %79 = load i64, ptr %23, align 8, !tbaa !5
  %80 = load ptr, ptr %24, align 8, !tbaa !9
  %81 = call noundef zeroext i1 @_ZN11alglib_impl26_trypexec_rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %67, i64 noundef %68, ptr noundef %69, i64 noundef %70, i64 noundef %71, i1 noundef zeroext %73, i1 noundef zeroext %75, i64 noundef %76, ptr noundef %77, i64 noundef %78, i64 noundef %79, ptr noundef %80)
  br i1 %81, label %82, label %83

82:                                               ; preds = %66
  store i32 1, ptr %30, align 4
  br label %447

83:                                               ; preds = %66
  br label %84

84:                                               ; preds = %83, %54, %46
  %85 = load i64, ptr %13, align 8, !tbaa !5
  %86 = load i64, ptr %28, align 8, !tbaa !5
  %87 = mul nsw i64 2, %86
  %88 = icmp sge i64 %85, %87
  br i1 %88, label %89, label %123

89:                                               ; preds = %84
  %90 = load i64, ptr %13, align 8, !tbaa !5
  %91 = load i64, ptr %28, align 8, !tbaa !5
  %92 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl10tiledsplitEllPlS0_PNS_8ae_stateE(i64 noundef %90, i64 noundef %91, ptr noundef %25, ptr noundef %26, ptr noundef %92)
  %93 = load i64, ptr %25, align 8, !tbaa !5
  %94 = load i64, ptr %14, align 8, !tbaa !5
  %95 = load ptr, ptr %15, align 8, !tbaa !9
  %96 = load i64, ptr %16, align 8, !tbaa !5
  %97 = load i64, ptr %17, align 8, !tbaa !5
  %98 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %99 = trunc i8 %98 to i1
  %100 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %101 = trunc i8 %100 to i1
  %102 = load i64, ptr %20, align 8, !tbaa !5
  %103 = load ptr, ptr %21, align 8, !tbaa !9
  %104 = load i64, ptr %22, align 8, !tbaa !5
  %105 = load i64, ptr %23, align 8, !tbaa !5
  %106 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %93, i64 noundef %94, ptr noundef %95, i64 noundef %96, i64 noundef %97, i1 noundef zeroext %99, i1 noundef zeroext %101, i64 noundef %102, ptr noundef %103, i64 noundef %104, i64 noundef %105, ptr noundef %106)
  %107 = load i64, ptr %26, align 8, !tbaa !5
  %108 = load i64, ptr %14, align 8, !tbaa !5
  %109 = load ptr, ptr %15, align 8, !tbaa !9
  %110 = load i64, ptr %16, align 8, !tbaa !5
  %111 = load i64, ptr %17, align 8, !tbaa !5
  %112 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %113 = trunc i8 %112 to i1
  %114 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %115 = trunc i8 %114 to i1
  %116 = load i64, ptr %20, align 8, !tbaa !5
  %117 = load ptr, ptr %21, align 8, !tbaa !9
  %118 = load i64, ptr %22, align 8, !tbaa !5
  %119 = load i64, ptr %25, align 8, !tbaa !5
  %120 = add nsw i64 %118, %119
  %121 = load i64, ptr %23, align 8, !tbaa !5
  %122 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %107, i64 noundef %108, ptr noundef %109, i64 noundef %110, i64 noundef %111, i1 noundef zeroext %113, i1 noundef zeroext %115, i64 noundef %116, ptr noundef %117, i64 noundef %120, i64 noundef %121, ptr noundef %122)
  store i32 1, ptr %30, align 4
  br label %447

123:                                              ; preds = %84
  %124 = load i64, ptr %13, align 8, !tbaa !5
  %125 = load i64, ptr %14, align 8, !tbaa !5
  %126 = load ptr, ptr %24, align 8, !tbaa !9
  %127 = call noundef i64 @_ZN11alglib_impl5imax2EllPNS_8ae_stateE(i64 noundef %124, i64 noundef %125, ptr noundef %126)
  %128 = load i64, ptr %28, align 8, !tbaa !5
  %129 = icmp sle i64 %127, %128
  br i1 %129, label %130, label %148

130:                                              ; preds = %123
  %131 = load i64, ptr %13, align 8, !tbaa !5
  %132 = load i64, ptr %14, align 8, !tbaa !5
  %133 = load ptr, ptr %15, align 8, !tbaa !9
  %134 = load i64, ptr %16, align 8, !tbaa !5
  %135 = load i64, ptr %17, align 8, !tbaa !5
  %136 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %137 = trunc i8 %136 to i1
  %138 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %139 = trunc i8 %138 to i1
  %140 = load i64, ptr %20, align 8, !tbaa !5
  %141 = load ptr, ptr %21, align 8, !tbaa !9
  %142 = load i64, ptr %22, align 8, !tbaa !5
  %143 = load i64, ptr %23, align 8, !tbaa !5
  %144 = load ptr, ptr %24, align 8, !tbaa !9
  %145 = call noundef zeroext i1 @_ZN11alglib_impl19rmatrixrighttrsmmklEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %131, i64 noundef %132, ptr noundef %133, i64 noundef %134, i64 noundef %135, i1 noundef zeroext %137, i1 noundef zeroext %139, i64 noundef %140, ptr noundef %141, i64 noundef %142, i64 noundef %143, ptr noundef %144)
  br i1 %145, label %146, label %147

146:                                              ; preds = %130
  store i32 1, ptr %30, align 4
  br label %447

147:                                              ; preds = %130
  br label %148

148:                                              ; preds = %147, %123
  %149 = load i64, ptr %13, align 8, !tbaa !5
  %150 = load i64, ptr %14, align 8, !tbaa !5
  %151 = load ptr, ptr %24, align 8, !tbaa !9
  %152 = call noundef i64 @_ZN11alglib_impl5imax2EllPNS_8ae_stateE(i64 noundef %149, i64 noundef %150, ptr noundef %151)
  %153 = load i64, ptr %27, align 8, !tbaa !5
  %154 = icmp sle i64 %152, %153
  br i1 %154, label %155, label %170

155:                                              ; preds = %148
  %156 = load i64, ptr %13, align 8, !tbaa !5
  %157 = load i64, ptr %14, align 8, !tbaa !5
  %158 = load ptr, ptr %15, align 8, !tbaa !9
  %159 = load i64, ptr %16, align 8, !tbaa !5
  %160 = load i64, ptr %17, align 8, !tbaa !5
  %161 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %162 = trunc i8 %161 to i1
  %163 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %164 = trunc i8 %163 to i1
  %165 = load i64, ptr %20, align 8, !tbaa !5
  %166 = load ptr, ptr %21, align 8, !tbaa !9
  %167 = load i64, ptr %22, align 8, !tbaa !5
  %168 = load i64, ptr %23, align 8, !tbaa !5
  %169 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_implL23ablas_rmatrixrighttrsm2EllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %156, i64 noundef %157, ptr noundef %158, i64 noundef %159, i64 noundef %160, i1 noundef zeroext %162, i1 noundef zeroext %164, i64 noundef %165, ptr noundef %166, i64 noundef %167, i64 noundef %168, ptr noundef %169)
  store i32 1, ptr %30, align 4
  br label %447

170:                                              ; preds = %148
  %171 = load i64, ptr %13, align 8, !tbaa !5
  %172 = load i64, ptr %14, align 8, !tbaa !5
  %173 = icmp sge i64 %171, %172
  br i1 %173, label %174, label %208

174:                                              ; preds = %170
  %175 = load i64, ptr %13, align 8, !tbaa !5
  %176 = load i64, ptr %29, align 8, !tbaa !5
  %177 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl10tiledsplitEllPlS0_PNS_8ae_stateE(i64 noundef %175, i64 noundef %176, ptr noundef %25, ptr noundef %26, ptr noundef %177)
  %178 = load i64, ptr %25, align 8, !tbaa !5
  %179 = load i64, ptr %14, align 8, !tbaa !5
  %180 = load ptr, ptr %15, align 8, !tbaa !9
  %181 = load i64, ptr %16, align 8, !tbaa !5
  %182 = load i64, ptr %17, align 8, !tbaa !5
  %183 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %184 = trunc i8 %183 to i1
  %185 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %186 = trunc i8 %185 to i1
  %187 = load i64, ptr %20, align 8, !tbaa !5
  %188 = load ptr, ptr %21, align 8, !tbaa !9
  %189 = load i64, ptr %22, align 8, !tbaa !5
  %190 = load i64, ptr %23, align 8, !tbaa !5
  %191 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %178, i64 noundef %179, ptr noundef %180, i64 noundef %181, i64 noundef %182, i1 noundef zeroext %184, i1 noundef zeroext %186, i64 noundef %187, ptr noundef %188, i64 noundef %189, i64 noundef %190, ptr noundef %191)
  %192 = load i64, ptr %26, align 8, !tbaa !5
  %193 = load i64, ptr %14, align 8, !tbaa !5
  %194 = load ptr, ptr %15, align 8, !tbaa !9
  %195 = load i64, ptr %16, align 8, !tbaa !5
  %196 = load i64, ptr %17, align 8, !tbaa !5
  %197 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %198 = trunc i8 %197 to i1
  %199 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %200 = trunc i8 %199 to i1
  %201 = load i64, ptr %20, align 8, !tbaa !5
  %202 = load ptr, ptr %21, align 8, !tbaa !9
  %203 = load i64, ptr %22, align 8, !tbaa !5
  %204 = load i64, ptr %25, align 8, !tbaa !5
  %205 = add nsw i64 %203, %204
  %206 = load i64, ptr %23, align 8, !tbaa !5
  %207 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %192, i64 noundef %193, ptr noundef %194, i64 noundef %195, i64 noundef %196, i1 noundef zeroext %198, i1 noundef zeroext %200, i64 noundef %201, ptr noundef %202, i64 noundef %205, i64 noundef %206, ptr noundef %207)
  br label %446

208:                                              ; preds = %170
  %209 = load i64, ptr %14, align 8, !tbaa !5
  %210 = load i64, ptr %29, align 8, !tbaa !5
  %211 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl10tiledsplitEllPlS0_PNS_8ae_stateE(i64 noundef %209, i64 noundef %210, ptr noundef %25, ptr noundef %26, ptr noundef %211)
  %212 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %213 = trunc i8 %212 to i1
  br i1 %213, label %214, label %269

214:                                              ; preds = %208
  %215 = load i64, ptr %20, align 8, !tbaa !5
  %216 = icmp eq i64 %215, 0
  br i1 %216, label %217, label %269

217:                                              ; preds = %214
  %218 = load i64, ptr %13, align 8, !tbaa !5
  %219 = load i64, ptr %25, align 8, !tbaa !5
  %220 = load ptr, ptr %15, align 8, !tbaa !9
  %221 = load i64, ptr %16, align 8, !tbaa !5
  %222 = load i64, ptr %17, align 8, !tbaa !5
  %223 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %224 = trunc i8 %223 to i1
  %225 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %226 = trunc i8 %225 to i1
  %227 = load i64, ptr %20, align 8, !tbaa !5
  %228 = load ptr, ptr %21, align 8, !tbaa !9
  %229 = load i64, ptr %22, align 8, !tbaa !5
  %230 = load i64, ptr %23, align 8, !tbaa !5
  %231 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %218, i64 noundef %219, ptr noundef %220, i64 noundef %221, i64 noundef %222, i1 noundef zeroext %224, i1 noundef zeroext %226, i64 noundef %227, ptr noundef %228, i64 noundef %229, i64 noundef %230, ptr noundef %231)
  %232 = load i64, ptr %13, align 8, !tbaa !5
  %233 = load i64, ptr %26, align 8, !tbaa !5
  %234 = load i64, ptr %25, align 8, !tbaa !5
  %235 = load ptr, ptr %21, align 8, !tbaa !9
  %236 = load i64, ptr %22, align 8, !tbaa !5
  %237 = load i64, ptr %23, align 8, !tbaa !5
  %238 = load ptr, ptr %15, align 8, !tbaa !9
  %239 = load i64, ptr %16, align 8, !tbaa !5
  %240 = load i64, ptr %17, align 8, !tbaa !5
  %241 = load i64, ptr %25, align 8, !tbaa !5
  %242 = add nsw i64 %240, %241
  %243 = load ptr, ptr %21, align 8, !tbaa !9
  %244 = load i64, ptr %22, align 8, !tbaa !5
  %245 = load i64, ptr %23, align 8, !tbaa !5
  %246 = load i64, ptr %25, align 8, !tbaa !5
  %247 = add nsw i64 %245, %246
  %248 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %232, i64 noundef %233, i64 noundef %234, double noundef -1.000000e+00, ptr noundef %235, i64 noundef %236, i64 noundef %237, i64 noundef 0, ptr noundef %238, i64 noundef %239, i64 noundef %242, i64 noundef 0, double noundef 1.000000e+00, ptr noundef %243, i64 noundef %244, i64 noundef %247, ptr noundef %248)
  %249 = load i64, ptr %13, align 8, !tbaa !5
  %250 = load i64, ptr %26, align 8, !tbaa !5
  %251 = load ptr, ptr %15, align 8, !tbaa !9
  %252 = load i64, ptr %16, align 8, !tbaa !5
  %253 = load i64, ptr %25, align 8, !tbaa !5
  %254 = add nsw i64 %252, %253
  %255 = load i64, ptr %17, align 8, !tbaa !5
  %256 = load i64, ptr %25, align 8, !tbaa !5
  %257 = add nsw i64 %255, %256
  %258 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %259 = trunc i8 %258 to i1
  %260 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %261 = trunc i8 %260 to i1
  %262 = load i64, ptr %20, align 8, !tbaa !5
  %263 = load ptr, ptr %21, align 8, !tbaa !9
  %264 = load i64, ptr %22, align 8, !tbaa !5
  %265 = load i64, ptr %23, align 8, !tbaa !5
  %266 = load i64, ptr %25, align 8, !tbaa !5
  %267 = add nsw i64 %265, %266
  %268 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %249, i64 noundef %250, ptr noundef %251, i64 noundef %254, i64 noundef %257, i1 noundef zeroext %259, i1 noundef zeroext %261, i64 noundef %262, ptr noundef %263, i64 noundef %264, i64 noundef %267, ptr noundef %268)
  br label %269

269:                                              ; preds = %217, %214, %208
  %270 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %271 = trunc i8 %270 to i1
  br i1 %271, label %272, label %328

272:                                              ; preds = %269
  %273 = load i64, ptr %20, align 8, !tbaa !5
  %274 = icmp ne i64 %273, 0
  br i1 %274, label %275, label %328

275:                                              ; preds = %272
  %276 = load i64, ptr %13, align 8, !tbaa !5
  %277 = load i64, ptr %26, align 8, !tbaa !5
  %278 = load ptr, ptr %15, align 8, !tbaa !9
  %279 = load i64, ptr %16, align 8, !tbaa !5
  %280 = load i64, ptr %25, align 8, !tbaa !5
  %281 = add nsw i64 %279, %280
  %282 = load i64, ptr %17, align 8, !tbaa !5
  %283 = load i64, ptr %25, align 8, !tbaa !5
  %284 = add nsw i64 %282, %283
  %285 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %286 = trunc i8 %285 to i1
  %287 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %288 = trunc i8 %287 to i1
  %289 = load i64, ptr %20, align 8, !tbaa !5
  %290 = load ptr, ptr %21, align 8, !tbaa !9
  %291 = load i64, ptr %22, align 8, !tbaa !5
  %292 = load i64, ptr %23, align 8, !tbaa !5
  %293 = load i64, ptr %25, align 8, !tbaa !5
  %294 = add nsw i64 %292, %293
  %295 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %276, i64 noundef %277, ptr noundef %278, i64 noundef %281, i64 noundef %284, i1 noundef zeroext %286, i1 noundef zeroext %288, i64 noundef %289, ptr noundef %290, i64 noundef %291, i64 noundef %294, ptr noundef %295)
  %296 = load i64, ptr %13, align 8, !tbaa !5
  %297 = load i64, ptr %25, align 8, !tbaa !5
  %298 = load i64, ptr %26, align 8, !tbaa !5
  %299 = load ptr, ptr %21, align 8, !tbaa !9
  %300 = load i64, ptr %22, align 8, !tbaa !5
  %301 = load i64, ptr %23, align 8, !tbaa !5
  %302 = load i64, ptr %25, align 8, !tbaa !5
  %303 = add nsw i64 %301, %302
  %304 = load ptr, ptr %15, align 8, !tbaa !9
  %305 = load i64, ptr %16, align 8, !tbaa !5
  %306 = load i64, ptr %17, align 8, !tbaa !5
  %307 = load i64, ptr %25, align 8, !tbaa !5
  %308 = add nsw i64 %306, %307
  %309 = load i64, ptr %20, align 8, !tbaa !5
  %310 = load ptr, ptr %21, align 8, !tbaa !9
  %311 = load i64, ptr %22, align 8, !tbaa !5
  %312 = load i64, ptr %23, align 8, !tbaa !5
  %313 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %296, i64 noundef %297, i64 noundef %298, double noundef -1.000000e+00, ptr noundef %299, i64 noundef %300, i64 noundef %303, i64 noundef 0, ptr noundef %304, i64 noundef %305, i64 noundef %308, i64 noundef %309, double noundef 1.000000e+00, ptr noundef %310, i64 noundef %311, i64 noundef %312, ptr noundef %313)
  %314 = load i64, ptr %13, align 8, !tbaa !5
  %315 = load i64, ptr %25, align 8, !tbaa !5
  %316 = load ptr, ptr %15, align 8, !tbaa !9
  %317 = load i64, ptr %16, align 8, !tbaa !5
  %318 = load i64, ptr %17, align 8, !tbaa !5
  %319 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %320 = trunc i8 %319 to i1
  %321 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %322 = trunc i8 %321 to i1
  %323 = load i64, ptr %20, align 8, !tbaa !5
  %324 = load ptr, ptr %21, align 8, !tbaa !9
  %325 = load i64, ptr %22, align 8, !tbaa !5
  %326 = load i64, ptr %23, align 8, !tbaa !5
  %327 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %314, i64 noundef %315, ptr noundef %316, i64 noundef %317, i64 noundef %318, i1 noundef zeroext %320, i1 noundef zeroext %322, i64 noundef %323, ptr noundef %324, i64 noundef %325, i64 noundef %326, ptr noundef %327)
  br label %328

328:                                              ; preds = %275, %272, %269
  %329 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %330 = trunc i8 %329 to i1
  br i1 %330, label %386, label %331

331:                                              ; preds = %328
  %332 = load i64, ptr %20, align 8, !tbaa !5
  %333 = icmp eq i64 %332, 0
  br i1 %333, label %334, label %386

334:                                              ; preds = %331
  %335 = load i64, ptr %13, align 8, !tbaa !5
  %336 = load i64, ptr %26, align 8, !tbaa !5
  %337 = load ptr, ptr %15, align 8, !tbaa !9
  %338 = load i64, ptr %16, align 8, !tbaa !5
  %339 = load i64, ptr %25, align 8, !tbaa !5
  %340 = add nsw i64 %338, %339
  %341 = load i64, ptr %17, align 8, !tbaa !5
  %342 = load i64, ptr %25, align 8, !tbaa !5
  %343 = add nsw i64 %341, %342
  %344 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %345 = trunc i8 %344 to i1
  %346 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %347 = trunc i8 %346 to i1
  %348 = load i64, ptr %20, align 8, !tbaa !5
  %349 = load ptr, ptr %21, align 8, !tbaa !9
  %350 = load i64, ptr %22, align 8, !tbaa !5
  %351 = load i64, ptr %23, align 8, !tbaa !5
  %352 = load i64, ptr %25, align 8, !tbaa !5
  %353 = add nsw i64 %351, %352
  %354 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %335, i64 noundef %336, ptr noundef %337, i64 noundef %340, i64 noundef %343, i1 noundef zeroext %345, i1 noundef zeroext %347, i64 noundef %348, ptr noundef %349, i64 noundef %350, i64 noundef %353, ptr noundef %354)
  %355 = load i64, ptr %13, align 8, !tbaa !5
  %356 = load i64, ptr %25, align 8, !tbaa !5
  %357 = load i64, ptr %26, align 8, !tbaa !5
  %358 = load ptr, ptr %21, align 8, !tbaa !9
  %359 = load i64, ptr %22, align 8, !tbaa !5
  %360 = load i64, ptr %23, align 8, !tbaa !5
  %361 = load i64, ptr %25, align 8, !tbaa !5
  %362 = add nsw i64 %360, %361
  %363 = load ptr, ptr %15, align 8, !tbaa !9
  %364 = load i64, ptr %16, align 8, !tbaa !5
  %365 = load i64, ptr %25, align 8, !tbaa !5
  %366 = add nsw i64 %364, %365
  %367 = load i64, ptr %17, align 8, !tbaa !5
  %368 = load ptr, ptr %21, align 8, !tbaa !9
  %369 = load i64, ptr %22, align 8, !tbaa !5
  %370 = load i64, ptr %23, align 8, !tbaa !5
  %371 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %355, i64 noundef %356, i64 noundef %357, double noundef -1.000000e+00, ptr noundef %358, i64 noundef %359, i64 noundef %362, i64 noundef 0, ptr noundef %363, i64 noundef %366, i64 noundef %367, i64 noundef 0, double noundef 1.000000e+00, ptr noundef %368, i64 noundef %369, i64 noundef %370, ptr noundef %371)
  %372 = load i64, ptr %13, align 8, !tbaa !5
  %373 = load i64, ptr %25, align 8, !tbaa !5
  %374 = load ptr, ptr %15, align 8, !tbaa !9
  %375 = load i64, ptr %16, align 8, !tbaa !5
  %376 = load i64, ptr %17, align 8, !tbaa !5
  %377 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %378 = trunc i8 %377 to i1
  %379 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %380 = trunc i8 %379 to i1
  %381 = load i64, ptr %20, align 8, !tbaa !5
  %382 = load ptr, ptr %21, align 8, !tbaa !9
  %383 = load i64, ptr %22, align 8, !tbaa !5
  %384 = load i64, ptr %23, align 8, !tbaa !5
  %385 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %372, i64 noundef %373, ptr noundef %374, i64 noundef %375, i64 noundef %376, i1 noundef zeroext %378, i1 noundef zeroext %380, i64 noundef %381, ptr noundef %382, i64 noundef %383, i64 noundef %384, ptr noundef %385)
  br label %386

386:                                              ; preds = %334, %331, %328
  %387 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %388 = trunc i8 %387 to i1
  br i1 %388, label %445, label %389

389:                                              ; preds = %386
  %390 = load i64, ptr %20, align 8, !tbaa !5
  %391 = icmp ne i64 %390, 0
  br i1 %391, label %392, label %445

392:                                              ; preds = %389
  %393 = load i64, ptr %13, align 8, !tbaa !5
  %394 = load i64, ptr %25, align 8, !tbaa !5
  %395 = load ptr, ptr %15, align 8, !tbaa !9
  %396 = load i64, ptr %16, align 8, !tbaa !5
  %397 = load i64, ptr %17, align 8, !tbaa !5
  %398 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %399 = trunc i8 %398 to i1
  %400 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %401 = trunc i8 %400 to i1
  %402 = load i64, ptr %20, align 8, !tbaa !5
  %403 = load ptr, ptr %21, align 8, !tbaa !9
  %404 = load i64, ptr %22, align 8, !tbaa !5
  %405 = load i64, ptr %23, align 8, !tbaa !5
  %406 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %393, i64 noundef %394, ptr noundef %395, i64 noundef %396, i64 noundef %397, i1 noundef zeroext %399, i1 noundef zeroext %401, i64 noundef %402, ptr noundef %403, i64 noundef %404, i64 noundef %405, ptr noundef %406)
  %407 = load i64, ptr %13, align 8, !tbaa !5
  %408 = load i64, ptr %26, align 8, !tbaa !5
  %409 = load i64, ptr %25, align 8, !tbaa !5
  %410 = load ptr, ptr %21, align 8, !tbaa !9
  %411 = load i64, ptr %22, align 8, !tbaa !5
  %412 = load i64, ptr %23, align 8, !tbaa !5
  %413 = load ptr, ptr %15, align 8, !tbaa !9
  %414 = load i64, ptr %16, align 8, !tbaa !5
  %415 = load i64, ptr %25, align 8, !tbaa !5
  %416 = add nsw i64 %414, %415
  %417 = load i64, ptr %17, align 8, !tbaa !5
  %418 = load i64, ptr %20, align 8, !tbaa !5
  %419 = load ptr, ptr %21, align 8, !tbaa !9
  %420 = load i64, ptr %22, align 8, !tbaa !5
  %421 = load i64, ptr %23, align 8, !tbaa !5
  %422 = load i64, ptr %25, align 8, !tbaa !5
  %423 = add nsw i64 %421, %422
  %424 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %407, i64 noundef %408, i64 noundef %409, double noundef -1.000000e+00, ptr noundef %410, i64 noundef %411, i64 noundef %412, i64 noundef 0, ptr noundef %413, i64 noundef %416, i64 noundef %417, i64 noundef %418, double noundef 1.000000e+00, ptr noundef %419, i64 noundef %420, i64 noundef %423, ptr noundef %424)
  %425 = load i64, ptr %13, align 8, !tbaa !5
  %426 = load i64, ptr %26, align 8, !tbaa !5
  %427 = load ptr, ptr %15, align 8, !tbaa !9
  %428 = load i64, ptr %16, align 8, !tbaa !5
  %429 = load i64, ptr %25, align 8, !tbaa !5
  %430 = add nsw i64 %428, %429
  %431 = load i64, ptr %17, align 8, !tbaa !5
  %432 = load i64, ptr %25, align 8, !tbaa !5
  %433 = add nsw i64 %431, %432
  %434 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %435 = trunc i8 %434 to i1
  %436 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %437 = trunc i8 %436 to i1
  %438 = load i64, ptr %20, align 8, !tbaa !5
  %439 = load ptr, ptr %21, align 8, !tbaa !9
  %440 = load i64, ptr %22, align 8, !tbaa !5
  %441 = load i64, ptr %23, align 8, !tbaa !5
  %442 = load i64, ptr %25, align 8, !tbaa !5
  %443 = add nsw i64 %441, %442
  %444 = load ptr, ptr %24, align 8, !tbaa !9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %425, i64 noundef %426, ptr noundef %427, i64 noundef %430, i64 noundef %433, i1 noundef zeroext %435, i1 noundef zeroext %437, i64 noundef %438, ptr noundef %439, i64 noundef %440, i64 noundef %443, ptr noundef %444)
  br label %445

445:                                              ; preds = %392, %389, %386
  br label %446

446:                                              ; preds = %445, %174
  store i32 0, ptr %30, align 4
  br label %447

447:                                              ; preds = %446, %155, %146, %89, %82
  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
  %448 = load i32, ptr %30, align 4
  switch i32 %448, label %450 [
    i32 0, label %449
    i32 1, label %449
  ]

449:                                              ; preds = %447, %447
  ret void

450:                                              ; preds = %447
  unreachable
}

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

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) #1

declare noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl5imax2EllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl5rmul3EdddPNS_8ae_stateE(double noundef, double noundef, double noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl18smpactivationlevelEPNS_8ae_stateE(ptr noundef) #1

declare void @_ZN11alglib_impl10tiledsplitEllPlS0_PNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl26_trypexec_rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

declare noundef zeroext i1 @_ZN11alglib_impl19rmatrixrighttrsmmklEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL23ablas_rmatrixrighttrsm2EllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

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

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

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


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

@.str.205 = external hidden unnamed_addr constant [41 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %10, ptr noundef %11) local_unnamed_addr #2 {
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  %15 = tail call noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef %11)
  %16 = tail call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %11)
  %17 = tail call noundef i64 @_ZN11alglib_impl5imax2EllPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %11)
  %.not276 = icmp sgt i64 %17, %16
  %spec.select = select i1 %.not276, i64 %16, i64 %15
  %18 = icmp sgt i64 %spec.select, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.205, ptr noundef %11)
  %19 = shl nsw i64 %16, 1
  %.not277 = icmp sgt i64 %19, %0
  br i1 %.not277, label %.critedge, label %20

20:                                               ; preds = %12
  %21 = sitofp i64 %0 to double
  %22 = sitofp i64 %1 to double
  %23 = tail call noundef double @_ZN11alglib_impl5rmul3EdddPNS_8ae_stateE(double noundef %21, double noundef %22, double noundef %22, ptr noundef %11)
  %24 = tail call noundef double @_ZN11alglib_impl18smpactivationlevelEPNS_8ae_stateE(ptr noundef %11)
  %25 = tail call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %23, double noundef %24)
  br i1 %25, label %26, label %28

26:                                               ; preds = %20
  %27 = tail call noundef zeroext i1 @_ZN11alglib_impl26_trypexec_rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %10, ptr noundef %11)
  br i1 %27, label %94, label %28

28:                                               ; preds = %20, %26
  call void @_ZN11alglib_impl10tiledsplitEllPlS0_PNS_8ae_stateE(i64 noundef %0, i64 noundef %16, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef %11)
  %29 = load i64, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %29, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %10, ptr noundef %11)
  %30 = load i64, ptr %14, align 8, !tbaa !5
  %31 = load i64, ptr %13, align 8, !tbaa !5
  %32 = add nsw i64 %31, %9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %30, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i64 noundef %7, ptr noundef %8, i64 noundef %32, i64 noundef %10, ptr noundef %11)
  br label %94

.critedge:                                        ; preds = %12
  %33 = tail call noundef i64 @_ZN11alglib_impl5imax2EllPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %11)
  %.not278 = icmp sgt i64 %33, %16
  br i1 %.not278, label %36, label %34

34:                                               ; preds = %.critedge
  %35 = tail call noundef zeroext i1 @_ZN11alglib_impl19rmatrixrighttrsmmklEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %10, ptr noundef %11)
  br i1 %35, label %94, label %36

36:                                               ; preds = %34, %.critedge
  %37 = tail call noundef i64 @_ZN11alglib_impl5imax2EllPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %11)
  %.not279 = icmp sgt i64 %37, %15
  br i1 %.not279, label %39, label %38

38:                                               ; preds = %36
  tail call void @_ZN11alglib_implL23ablas_rmatrixrighttrsm2EllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %10, ptr noundef %11)
  br label %94

39:                                               ; preds = %36
  %.not280 = icmp slt i64 %0, %1
  br i1 %.not280, label %45, label %40

40:                                               ; preds = %39
  call void @_ZN11alglib_impl10tiledsplitEllPlS0_PNS_8ae_stateE(i64 noundef %0, i64 noundef %spec.select, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef %11)
  %41 = load i64, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %41, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %10, ptr noundef %11)
  %42 = load i64, ptr %14, align 8, !tbaa !5
  %43 = load i64, ptr %13, align 8, !tbaa !5
  %44 = add nsw i64 %43, %9
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %42, i64 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i64 noundef %7, ptr noundef %8, i64 noundef %44, i64 noundef %10, ptr noundef %11)
  br label %94

45:                                               ; preds = %39
  call void @_ZN11alglib_impl10tiledsplitEllPlS0_PNS_8ae_stateE(i64 noundef %1, i64 noundef %spec.select, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef %11)
  %46 = icmp eq i64 %7, 0
  %or.cond = and i1 %46, %5
  br i1 %or.cond, label %.thread, label %57

.thread:                                          ; preds = %45
  %47 = load i64, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %47, ptr noundef %2, i64 noundef %3, i64 noundef %4, i1 noundef zeroext true, i1 noundef zeroext %6, i64 noundef 0, ptr noundef %8, i64 noundef %9, i64 noundef %10, ptr noundef %11)
  %48 = load i64, ptr %14, align 8, !tbaa !5
  %49 = load i64, ptr %13, align 8, !tbaa !5
  %50 = add nsw i64 %49, %4
  %51 = add nsw i64 %49, %10
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %48, i64 noundef %49, double noundef -1.000000e+00, ptr noundef %8, i64 noundef %9, i64 noundef %10, i64 noundef 0, ptr noundef %2, i64 noundef %3, i64 noundef %50, i64 noundef 0, double noundef 1.000000e+00, ptr noundef %8, i64 noundef %9, i64 noundef %51, ptr noundef %11)
  %52 = load i64, ptr %14, align 8, !tbaa !5
  %53 = load i64, ptr %13, align 8, !tbaa !5
  %54 = add nsw i64 %53, %3
  %55 = add nsw i64 %53, %4
  %56 = add nsw i64 %53, %10
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %52, ptr noundef %2, i64 noundef %54, i64 noundef %55, i1 noundef zeroext true, i1 noundef zeroext %6, i64 noundef 0, ptr noundef %8, i64 noundef %9, i64 noundef %56, ptr noundef %11)
  br label %69

57:                                               ; preds = %45
  %58 = icmp ne i64 %7, 0
  %or.cond3 = and i1 %58, %5
  br i1 %or.cond3, label %.thread286, label %69

.thread286:                                       ; preds = %57
  %59 = load i64, ptr %14, align 8, !tbaa !5
  %60 = load i64, ptr %13, align 8, !tbaa !5
  %61 = add nsw i64 %60, %3
  %62 = add nsw i64 %60, %4
  %63 = add nsw i64 %60, %10
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %59, ptr noundef %2, i64 noundef %61, i64 noundef %62, i1 noundef zeroext true, i1 noundef zeroext %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %63, ptr noundef %11)
  %64 = load i64, ptr %13, align 8, !tbaa !5
  %65 = load i64, ptr %14, align 8, !tbaa !5
  %66 = add nsw i64 %64, %10
  %67 = add nsw i64 %64, %4
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %64, i64 noundef %65, double noundef -1.000000e+00, ptr noundef %8, i64 noundef %9, i64 noundef %66, i64 noundef 0, ptr noundef %2, i64 noundef %3, i64 noundef %67, i64 noundef %7, double noundef 1.000000e+00, ptr noundef %8, i64 noundef %9, i64 noundef %10, ptr noundef %11)
  %68 = load i64, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %68, ptr noundef %2, i64 noundef %3, i64 noundef %4, i1 noundef zeroext true, i1 noundef zeroext %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %10, ptr noundef %11)
  br label %94

69:                                               ; preds = %.thread, %57
  %70 = phi i1 [ false, %.thread ], [ %58, %57 ]
  %.not = xor i1 %5, true
  %or.cond5 = and i1 %46, %.not
  br i1 %or.cond5, label %71, label %82

71:                                               ; preds = %69
  %72 = load i64, ptr %14, align 8, !tbaa !5
  %73 = load i64, ptr %13, align 8, !tbaa !5
  %74 = add nsw i64 %73, %3
  %75 = add nsw i64 %73, %4
  %76 = add nsw i64 %73, %10
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %72, ptr noundef %2, i64 noundef %74, i64 noundef %75, i1 noundef zeroext %5, i1 noundef zeroext %6, i64 noundef 0, ptr noundef %8, i64 noundef %9, i64 noundef %76, ptr noundef %11)
  %77 = load i64, ptr %13, align 8, !tbaa !5
  %78 = load i64, ptr %14, align 8, !tbaa !5
  %79 = add nsw i64 %77, %10
  %80 = add nsw i64 %77, %3
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %77, i64 noundef %78, double noundef -1.000000e+00, ptr noundef %8, i64 noundef %9, i64 noundef %79, i64 noundef 0, ptr noundef %2, i64 noundef %80, i64 noundef %4, i64 noundef 0, double noundef 1.000000e+00, ptr noundef %8, i64 noundef %9, i64 noundef %10, ptr noundef %11)
  %81 = load i64, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %81, ptr noundef %2, i64 noundef %3, i64 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i64 noundef 0, ptr noundef %8, i64 noundef %9, i64 noundef %10, ptr noundef %11)
  br label %82

82:                                               ; preds = %71, %69
  %.not285 = phi i1 [ true, %71 ], [ %.not, %69 ]
  %or.cond8 = and i1 %.not285, %70
  br i1 %or.cond8, label %83, label %94

83:                                               ; preds = %82
  %84 = load i64, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %84, ptr noundef %2, i64 noundef %3, i64 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %10, ptr noundef %11)
  %85 = load i64, ptr %14, align 8, !tbaa !5
  %86 = load i64, ptr %13, align 8, !tbaa !5
  %87 = add nsw i64 %86, %3
  %88 = add nsw i64 %86, %10
  call void @_ZN11alglib_impl11rmatrixgemmEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %85, i64 noundef %86, double noundef -1.000000e+00, ptr noundef %8, i64 noundef %9, i64 noundef %10, i64 noundef 0, ptr noundef %2, i64 noundef %87, i64 noundef %4, i64 noundef %7, double noundef 1.000000e+00, ptr noundef %8, i64 noundef %9, i64 noundef %88, ptr noundef %11)
  %89 = load i64, ptr %14, align 8, !tbaa !5
  %90 = load i64, ptr %13, align 8, !tbaa !5
  %91 = add nsw i64 %90, %3
  %92 = add nsw i64 %90, %4
  %93 = add nsw i64 %90, %10
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %89, ptr noundef %2, i64 noundef %91, i64 noundef %92, i1 noundef zeroext %5, i1 noundef zeroext %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %93, ptr noundef %11)
  br label %94

94:                                               ; preds = %.thread286, %40, %83, %82, %34, %26, %38, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  ret void
}

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

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) local_unnamed_addr #1

declare noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

declare noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

declare noundef i64 @_ZN11alglib_impl5imax2EllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl5rmul3EdddPNS_8ae_stateE(double noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl18smpactivationlevelEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl10tiledsplitEllPlS0_PNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl26_trypexec_rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN11alglib_impl19rmatrixrighttrsmmklEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL23ablas_rmatrixrighttrsm2EllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

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


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass