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

; 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::minbleicstate" = type { i64, i64, double, double, double, i64, i8, i8, double, double, %"struct.alglib_impl::sactiveset", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, i8, i8, i8, %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, i64, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, double, double, double, double, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::snnlssolver", double, double, double, double, double, double, double, double, double, i64, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::linminstate", double, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sactiveset" = type { i64, i64, %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::ae_vector", i64, i64, i8, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::snnlssolver", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::snnlssolver" = type { i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::linminstate" = type { i8, i8, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, i8, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.261 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.262 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.263 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [50 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_impl13minbleicsetlcEPNS_13minbleicstateEPNS_9ae_matrixEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i64 %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %16, i32 0, i32 0
  %18 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %18, ptr %11, align 8, !tbaa !9
  %19 = load i64, ptr %9, align 8, !tbaa !9
  %20 = icmp sge i64 %19, 0
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef @.str.261, ptr noundef %21)
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 1
  %24 = load i64, ptr %23, align 8, !tbaa !27
  %25 = load i64, ptr %11, align 8, !tbaa !9
  %26 = add nsw i64 %25, 1
  %27 = icmp sge i64 %24, %26
  br i1 %27, label %31, label %28

28:                                               ; preds = %5
  %29 = load i64, ptr %9, align 8, !tbaa !9
  %30 = icmp eq i64 %29, 0
  br label %31

31:                                               ; preds = %28, %5
  %32 = phi i1 [ true, %5 ], [ %30, %28 ]
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef @.str.262, ptr noundef %33)
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %34, i32 0, i32 0
  %36 = load i64, ptr %35, align 8, !tbaa !28
  %37 = load i64, ptr %9, align 8, !tbaa !9
  %38 = icmp sge i64 %36, %37
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef @.str.263, ptr noundef %39)
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %42 = load i64, ptr %41, align 8, !tbaa !29
  %43 = load i64, ptr %9, align 8, !tbaa !9
  %44 = icmp sge i64 %42, %43
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.264, ptr noundef %45)
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load i64, ptr %9, align 8, !tbaa !9
  %48 = load i64, ptr %11, align 8, !tbaa !9
  %49 = add nsw i64 %48, 1
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %46, i64 noundef %47, i64 noundef %49, ptr noundef %50)
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %51, ptr noundef @.str.265, ptr noundef %52)
  %53 = load i64, ptr %9, align 8, !tbaa !9
  %54 = icmp eq i64 %53, 0
  br i1 %54, label %55, label %65

55:                                               ; preds = %31
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %56, i32 0, i32 36
  store i64 0, ptr %57, align 8, !tbaa !30
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %58, i32 0, i32 37
  store i64 0, ptr %59, align 8, !tbaa !31
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %60, i32 0, i32 10
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl8sassetlcEPNS_10sactivesetEPNS_9ae_matrixEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %61, ptr noundef %62, ptr noundef %63, i64 noundef 0, ptr noundef %64)
  store i32 1, ptr %15, align 4
  br label %260

65:                                               ; preds = %31
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %66, i32 0, i32 35
  %68 = load i64, ptr %9, align 8, !tbaa !9
  %69 = load i64, ptr %11, align 8, !tbaa !9
  %70 = add nsw i64 %69, 1
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %67, i64 noundef %68, i64 noundef %70, ptr noundef %71)
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %72, i32 0, i32 36
  store i64 0, ptr %73, align 8, !tbaa !30
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %74, i32 0, i32 37
  store i64 0, ptr %75, align 8, !tbaa !31
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %76

76:                                               ; preds = %116, %65
  %77 = load i64, ptr %12, align 8, !tbaa !9
  %78 = load i64, ptr %9, align 8, !tbaa !9
  %79 = sub nsw i64 %78, 1
  %80 = icmp sle i64 %77, %79
  br i1 %80, label %81, label %119

81:                                               ; preds = %76
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !32
  %85 = load i64, ptr %12, align 8, !tbaa !9
  %86 = getelementptr inbounds i64, ptr %84, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = icmp eq i64 %87, 0
  br i1 %88, label %89, label %115

89:                                               ; preds = %81
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %90, i32 0, i32 35
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %91, i32 0, i32 6
  %93 = load ptr, ptr %92, align 8, !tbaa !32
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %94, i32 0, i32 36
  %96 = load i64, ptr %95, align 8, !tbaa !30
  %97 = getelementptr inbounds ptr, ptr %93, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = getelementptr inbounds double, ptr %98, i64 0
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %100, i32 0, i32 6
  %102 = load ptr, ptr %101, align 8, !tbaa !32
  %103 = load i64, ptr %12, align 8, !tbaa !9
  %104 = getelementptr inbounds ptr, ptr %102, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = getelementptr inbounds double, ptr %105, i64 0
  %107 = load i64, ptr %11, align 8, !tbaa !9
  %108 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %107)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %99, i64 noundef 1, ptr noundef %106, i64 noundef 1, i64 noundef %108)
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %109, i32 0, i32 36
  %111 = load i64, ptr %110, align 8, !tbaa !30
  %112 = add nsw i64 %111, 1
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %113, i32 0, i32 36
  store i64 %112, ptr %114, align 8, !tbaa !30
  br label %115

115:                                              ; preds = %89, %81
  br label %116

116:                                              ; preds = %115
  %117 = load i64, ptr %12, align 8, !tbaa !9
  %118 = add nsw i64 %117, 1
  store i64 %118, ptr %12, align 8, !tbaa !9
  br label %76, !llvm.loop !33

119:                                              ; preds = %76
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %197, %119
  %121 = load i64, ptr %12, align 8, !tbaa !9
  %122 = load i64, ptr %9, align 8, !tbaa !9
  %123 = sub nsw i64 %122, 1
  %124 = icmp sle i64 %121, %123
  br i1 %124, label %125, label %200

125:                                              ; preds = %120
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %126, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !32
  %129 = load i64, ptr %12, align 8, !tbaa !9
  %130 = getelementptr inbounds i64, ptr %128, i64 %129
  %131 = load i64, ptr %130, align 8, !tbaa !9
  %132 = icmp ne i64 %131, 0
  br i1 %132, label %133, label %196

133:                                              ; preds = %125
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %134, i32 0, i32 4
  %136 = load ptr, ptr %135, align 8, !tbaa !32
  %137 = load i64, ptr %12, align 8, !tbaa !9
  %138 = getelementptr inbounds i64, ptr %136, i64 %137
  %139 = load i64, ptr %138, align 8, !tbaa !9
  %140 = icmp sgt i64 %139, 0
  br i1 %140, label %141, label %165

141:                                              ; preds = %133
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %142, i32 0, i32 35
  %144 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %143, i32 0, i32 6
  %145 = load ptr, ptr %144, align 8, !tbaa !32
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %146, i32 0, i32 36
  %148 = load i64, ptr %147, align 8, !tbaa !30
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %149, i32 0, i32 37
  %151 = load i64, ptr %150, align 8, !tbaa !31
  %152 = add nsw i64 %148, %151
  %153 = getelementptr inbounds ptr, ptr %145, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = getelementptr inbounds double, ptr %154, i64 0
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %156, i32 0, i32 6
  %158 = load ptr, ptr %157, align 8, !tbaa !32
  %159 = load i64, ptr %12, align 8, !tbaa !9
  %160 = getelementptr inbounds ptr, ptr %158, i64 %159
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  %162 = getelementptr inbounds double, ptr %161, i64 0
  %163 = load i64, ptr %11, align 8, !tbaa !9
  %164 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %163)
  call void @_ZN11alglib_impl12ae_v_movenegEPdlPKdll(ptr noundef %155, i64 noundef 1, ptr noundef %162, i64 noundef 1, i64 noundef %164)
  br label %189

165:                                              ; preds = %133
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %166, i32 0, i32 35
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %167, i32 0, i32 6
  %169 = load ptr, ptr %168, align 8, !tbaa !32
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %170, i32 0, i32 36
  %172 = load i64, ptr %171, align 8, !tbaa !30
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %173, i32 0, i32 37
  %175 = load i64, ptr %174, align 8, !tbaa !31
  %176 = add nsw i64 %172, %175
  %177 = getelementptr inbounds ptr, ptr %169, i64 %176
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = getelementptr inbounds double, ptr %178, i64 0
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %180, i32 0, i32 6
  %182 = load ptr, ptr %181, align 8, !tbaa !32
  %183 = load i64, ptr %12, align 8, !tbaa !9
  %184 = getelementptr inbounds ptr, ptr %182, i64 %183
  %185 = load ptr, ptr %184, align 8, !tbaa !5
  %186 = getelementptr inbounds double, ptr %185, i64 0
  %187 = load i64, ptr %11, align 8, !tbaa !9
  %188 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %187)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %179, i64 noundef 1, ptr noundef %186, i64 noundef 1, i64 noundef %188)
  br label %189

189:                                              ; preds = %165, %141
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %190, i32 0, i32 37
  %192 = load i64, ptr %191, align 8, !tbaa !31
  %193 = add nsw i64 %192, 1
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %194, i32 0, i32 37
  store i64 %193, ptr %195, align 8, !tbaa !31
  br label %196

196:                                              ; preds = %189, %125
  br label %197

197:                                              ; preds = %196
  %198 = load i64, ptr %12, align 8, !tbaa !9
  %199 = add nsw i64 %198, 1
  store i64 %199, ptr %12, align 8, !tbaa !9
  br label %120, !llvm.loop !35

200:                                              ; preds = %120
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %201

201:                                              ; preds = %250, %200
  %202 = load i64, ptr %12, align 8, !tbaa !9
  %203 = load i64, ptr %9, align 8, !tbaa !9
  %204 = sub nsw i64 %203, 1
  %205 = icmp sle i64 %202, %204
  br i1 %205, label %206, label %253

206:                                              ; preds = %201
  store double 0.000000e+00, ptr %14, align 8, !tbaa !36
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %207

207:                                              ; preds = %227, %206
  %208 = load i64, ptr %13, align 8, !tbaa !9
  %209 = load i64, ptr %11, align 8, !tbaa !9
  %210 = sub nsw i64 %209, 1
  %211 = icmp sle i64 %208, %210
  br i1 %211, label %212, label %230

212:                                              ; preds = %207
  %213 = load double, ptr %14, align 8, !tbaa !36
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %214, i32 0, i32 35
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %215, i32 0, i32 6
  %217 = load ptr, ptr %216, align 8, !tbaa !32
  %218 = load i64, ptr %12, align 8, !tbaa !9
  %219 = getelementptr inbounds ptr, ptr %217, i64 %218
  %220 = load ptr, ptr %219, align 8, !tbaa !5
  %221 = load i64, ptr %13, align 8, !tbaa !9
  %222 = getelementptr inbounds double, ptr %220, i64 %221
  %223 = load double, ptr %222, align 8, !tbaa !36
  %224 = load ptr, ptr %10, align 8, !tbaa !5
  %225 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %223, ptr noundef %224)
  %226 = fadd double %213, %225
  store double %226, ptr %14, align 8, !tbaa !36
  br label %227

227:                                              ; preds = %212
  %228 = load i64, ptr %13, align 8, !tbaa !9
  %229 = add nsw i64 %228, 1
  store i64 %229, ptr %13, align 8, !tbaa !9
  br label %207, !llvm.loop !37

230:                                              ; preds = %207
  %231 = load double, ptr %14, align 8, !tbaa !36
  %232 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %231, double noundef 0.000000e+00)
  br i1 %232, label %233, label %234

233:                                              ; preds = %230
  br label %250

234:                                              ; preds = %230
  %235 = load double, ptr %14, align 8, !tbaa !36
  %236 = load ptr, ptr %10, align 8, !tbaa !5
  %237 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %235, ptr noundef %236)
  %238 = fdiv double 1.000000e+00, %237
  store double %238, ptr %14, align 8, !tbaa !36
  %239 = load ptr, ptr %6, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %239, i32 0, i32 35
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %240, i32 0, i32 6
  %242 = load ptr, ptr %241, align 8, !tbaa !32
  %243 = load i64, ptr %12, align 8, !tbaa !9
  %244 = getelementptr inbounds ptr, ptr %242, i64 %243
  %245 = load ptr, ptr %244, align 8, !tbaa !5
  %246 = getelementptr inbounds double, ptr %245, i64 0
  %247 = load i64, ptr %11, align 8, !tbaa !9
  %248 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %247)
  %249 = load double, ptr %14, align 8, !tbaa !36
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %246, i64 noundef 1, i64 noundef %248, double noundef %249)
  br label %250

250:                                              ; preds = %234, %233
  %251 = load i64, ptr %12, align 8, !tbaa !9
  %252 = add nsw i64 %251, 1
  store i64 %252, ptr %12, align 8, !tbaa !9
  br label %201, !llvm.loop !38

253:                                              ; preds = %201
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = getelementptr inbounds %"struct.alglib_impl::minbleicstate", ptr %254, i32 0, i32 10
  %256 = load ptr, ptr %7, align 8, !tbaa !5
  %257 = load ptr, ptr %8, align 8, !tbaa !5
  %258 = load i64, ptr %9, align 8, !tbaa !9
  %259 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl8sassetlcEPNS_10sactivesetEPNS_9ae_matrixEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %255, ptr noundef %256, ptr noundef %257, i64 noundef %258, ptr noundef %259)
  store i32 0, ptr %15, align 4
  br label %260

260:                                              ; preds = %253, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  %261 = load i32, ptr %15, align 4
  switch i32 %261, label %263 [
    i32 0, label %262
    i32 1, label %262
  ]

262:                                              ; preds = %260, %260
  ret void

263:                                              ; preds = %260
  unreachable
}

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 noundef, double noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl8sassetlcEPNS_10sactivesetEPNS_9ae_matrixEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, ptr noundef, ptr 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 = { 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, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl13minbleicstateE", !10, i64 0, !10, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !10, i64 40, !14, i64 48, !14, i64 49, !13, i64 56, !13, i64 64, !15, i64 72, !16, i64 4416, !10, i64 4480, !16, i64 4488, !16, i64 4552, !13, i64 4616, !16, i64 4624, !14, i64 4688, !14, i64 4689, !14, i64 4690, !14, i64 4691, !14, i64 4692, !14, i64 4693, !14, i64 4694, !20, i64 4696, !16, i64 4960, !16, i64 5024, !16, i64 5088, !16, i64 5152, !16, i64 5216, !16, i64 5280, !13, i64 5344, !13, i64 5352, !13, i64 5360, !16, i64 5368, !18, i64 5432, !10, i64 5512, !10, i64 5520, !13, i64 5528, !13, i64 5536, !13, i64 5544, !16, i64 5552, !16, i64 5616, !16, i64 5680, !16, i64 5744, !10, i64 5808, !10, i64 5816, !10, i64 5824, !10, i64 5832, !10, i64 5840, !13, i64 5848, !13, i64 5856, !13, i64 5864, !13, i64 5872, !10, i64 5880, !10, i64 5888, !16, i64 5896, !19, i64 5960, !13, i64 7600, !13, i64 7608, !13, i64 7616, !13, i64 7624, !13, i64 7632, !13, i64 7640, !13, i64 7648, !13, i64 7656, !13, i64 7664, !10, i64 7672, !13, i64 7680, !16, i64 7688, !16, i64 7752, !10, i64 7816, !10, i64 7824, !13, i64 7832, !13, i64 7840, !13, i64 7848, !16, i64 7856, !22, i64 7920, !13, i64 8112, !10, i64 8120, !18, i64 8128, !18, i64 8208, !16, i64 8288, !16, i64 8352, !10, i64 8416, !13, i64 8424, !10, i64 8432, !23, i64 8440, !16, i64 12408, !16, i64 12472}
!13 = !{!"double", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl10sactivesetE", !10, i64 0, !10, i64 8, !16, i64 16, !14, i64 80, !16, i64 88, !16, i64 152, !16, i64 216, !14, i64 280, !18, i64 288, !18, i64 368, !18, i64 448, !10, i64 528, !16, i64 536, !10, i64 600, !10, i64 608, !14, i64 616, !14, i64 617, !16, i64 624, !16, i64 688, !16, i64 752, !16, i64 816, !18, i64 880, !10, i64 960, !10, i64 968, !16, i64 976, !16, i64 1040, !16, i64 1104, !16, i64 1168, !16, i64 1232, !16, i64 1296, !19, i64 1360, !16, i64 3000, !16, i64 3064, !16, i64 3128, !18, i64 3192, !16, i64 3272, !16, i64 3336, !16, i64 3400, !18, i64 3464, !18, i64 3544, !16, i64 3624, !16, i64 3688, !16, i64 3752, !18, i64 3816, !16, i64 3896, !16, i64 3960, !16, i64 4024, !16, i64 4088, !16, i64 4152, !16, i64 4216, !16, i64 4280}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !14, i64 16, !17, i64 24, !7, i64 56}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !17, i64 40, !7, i64 72}
!19 = !{!"_ZTSN11alglib_impl11snnlssolverE", !10, i64 0, !10, i64 8, !10, i64 16, !18, i64 24, !16, i64 104, !16, i64 168, !13, i64 232, !10, i64 240, !16, i64 248, !16, i64 312, !18, i64 376, !18, i64 456, !18, i64 536, !16, i64 616, !16, i64 680, !16, i64 744, !16, i64 808, !16, i64 872, !16, i64 936, !16, i64 1000, !16, i64 1064, !16, i64 1128, !16, i64 1192, !16, i64 1256, !16, i64 1320, !16, i64 1384, !16, i64 1448, !16, i64 1512, !16, i64 1576}
!20 = !{!"_ZTSN11alglib_impl10rcommstateE", !21, i64 0, !16, i64 8, !16, i64 72, !16, i64 136, !16, i64 200}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSN11alglib_impl11linminstateE", !14, i64 0, !14, i64 1, !10, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184}
!23 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !10, i64 0, !10, i64 8, !14, i64 16, !16, i64 24, !10, i64 88, !16, i64 96, !16, i64 160, !16, i64 224, !18, i64 288, !16, i64 368, !16, i64 432, !10, i64 496, !14, i64 504, !14, i64 505, !13, i64 512, !13, i64 520, !14, i64 528, !24, i64 536, !13, i64 832, !13, i64 840, !25, i64 848, !25, i64 1152, !13, i64 1456, !13, i64 1464, !26, i64 1472, !26, i64 1784, !14, i64 2096, !16, i64 2104, !16, i64 2168, !18, i64 2232, !20, i64 2312, !16, i64 2576, !16, i64 2640, !16, i64 2704, !16, i64 2768, !16, i64 2832, !16, i64 2896, !16, i64 2960, !16, i64 3024, !18, i64 3088, !18, i64 3168, !16, i64 3248, !16, i64 3312, !16, i64 3376, !16, i64 3440, !16, i64 3504, !16, i64 3568, !16, i64 3632, !16, i64 3696, !16, i64 3760, !16, i64 3824, !18, i64 3888}
!24 = !{!"_ZTSN11alglib_impl14optguardreportE", !14, i64 0, !14, i64 1, !10, i64 8, !13, i64 16, !14, i64 24, !14, i64 25, !14, i64 26, !10, i64 32, !13, i64 40, !14, i64 48, !10, i64 56, !10, i64 64, !16, i64 72, !18, i64 136, !18, i64 216}
!25 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !14, i64 0, !10, i64 8, !16, i64 16, !16, i64 80, !10, i64 144, !16, i64 152, !16, i64 216, !10, i64 280, !10, i64 288, !10, i64 296}
!26 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !14, i64 0, !10, i64 8, !10, i64 16, !16, i64 24, !16, i64 88, !10, i64 152, !16, i64 160, !16, i64 224, !10, i64 288, !10, i64 296, !10, i64 304}
!27 = !{!18, !10, i64 8}
!28 = !{!18, !10, i64 0}
!29 = !{!16, !10, i64 0}
!30 = !{!12, !10, i64 5512}
!31 = !{!12, !10, i64 5520}
!32 = !{!7, !7, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}
!36 = !{!13, !13, i64 0}
!37 = distinct !{!37, !34}
!38 = distinct !{!38, !34}


; 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.261 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.262 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.263 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [50 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13minbleicsetlcEPNS_13minbleicstateEPNS_9ae_matrixEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = load i64, ptr %0, align 8, !tbaa !5
  %7 = icmp sgt i64 %3, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.261, ptr noundef %4)
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = load i64, ptr %8, align 8, !tbaa !25
  %10 = add nsw i64 %6, 1
  %11 = icmp sgt i64 %9, %6
  %12 = icmp eq i64 %3, 0
  %13 = or i1 %12, %11
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.262, ptr noundef %4)
  %14 = load i64, ptr %1, align 8, !tbaa !26
  %15 = icmp sge i64 %14, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.263, ptr noundef %4)
  %16 = load i64, ptr %2, align 8, !tbaa !27
  %17 = icmp sge i64 %16, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.264, ptr noundef %4)
  %18 = tail call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %3, i64 noundef %10, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.265, ptr noundef %4)
  br i1 %12, label %19, label %22

19:                                               ; preds = %5
  %20 = getelementptr inbounds i8, ptr %0, i64 5512
  %21 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %20, i8 0, i64 16, i1 false)
  tail call void @_ZN11alglib_impl8sassetlcEPNS_10sactivesetEPNS_9ae_matrixEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %21, ptr noundef nonnull %1, ptr noundef nonnull %2, i64 noundef 0, ptr noundef %4)
  br label %105

22:                                               ; preds = %5
  %23 = getelementptr inbounds i8, ptr %0, i64 5432
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %23, i64 noundef %3, i64 noundef %10, ptr noundef %4)
  %24 = getelementptr inbounds i8, ptr %0, i64 5512
  %25 = getelementptr inbounds i8, ptr %0, i64 5520
  %.not.not96 = icmp sgt i64 %3, 0
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %24, i8 0, i64 16, i1 false)
  br i1 %.not.not96, label %.lr.ph, label %._crit_edge108

.lr.ph:                                           ; preds = %22
  %26 = getelementptr inbounds i8, ptr %2, i64 56
  %27 = getelementptr inbounds i8, ptr %0, i64 5504
  %28 = getelementptr inbounds i8, ptr %1, i64 72
  br label %32

.preheader95:                                     ; preds = %48
  br i1 %.not.not96, label %.lr.ph101, label %._crit_edge108

.lr.ph101:                                        ; preds = %.preheader95
  %29 = getelementptr inbounds i8, ptr %2, i64 56
  %30 = getelementptr inbounds i8, ptr %0, i64 5504
  %31 = getelementptr inbounds i8, ptr %1, i64 72
  br label %71

32:                                               ; preds = %.lr.ph, %48
  %33 = phi i64 [ 0, %.lr.ph ], [ %49, %48 ]
  %.08797 = phi i64 [ 0, %.lr.ph ], [ %50, %48 ]
  %34 = load ptr, ptr %26, align 8, !tbaa !28
  %35 = getelementptr inbounds i64, ptr %34, i64 %.08797
  %36 = load i64, ptr %35, align 8, !tbaa !29
  %37 = icmp eq i64 %36, 0
  br i1 %37, label %38, label %48

38:                                               ; preds = %32
  %39 = load ptr, ptr %27, align 8, !tbaa !28
  %40 = getelementptr inbounds ptr, ptr %39, i64 %33
  %41 = load ptr, ptr %40, align 8, !tbaa !30
  %42 = load ptr, ptr %28, align 8, !tbaa !28
  %43 = getelementptr inbounds ptr, ptr %42, i64 %.08797
  %44 = load ptr, ptr %43, align 8, !tbaa !30
  %45 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %6)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %41, i64 noundef 1, ptr noundef %44, i64 noundef 1, i64 noundef %45)
  %46 = load i64, ptr %24, align 8, !tbaa !31
  %47 = add nsw i64 %46, 1
  store i64 %47, ptr %24, align 8, !tbaa !31
  br label %48

48:                                               ; preds = %32, %38
  %49 = phi i64 [ %33, %32 ], [ %47, %38 ]
  %50 = add nuw nsw i64 %.08797, 1
  %exitcond.not = icmp eq i64 %50, %3
  br i1 %exitcond.not, label %.preheader95, label %32, !llvm.loop !32

.preheader94:                                     ; preds = %92
  br i1 %.not.not96, label %.preheader.lr.ph, label %._crit_edge108

.preheader.lr.ph:                                 ; preds = %.preheader94
  %.not.not93102 = icmp sgt i64 %6, 0
  %51 = getelementptr inbounds i8, ptr %0, i64 5504
  br i1 %.not.not93102, label %.preheader.us, label %.preheader

.preheader.us:                                    ; preds = %.preheader.lr.ph, %59
  %.2107.us = phi i64 [ %60, %59 ], [ 0, %.preheader.lr.ph ]
  br label %61

52:                                               ; preds = %._crit_edge.us
  %53 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %68, ptr noundef %4)
  %54 = fdiv double 1.000000e+00, %53
  %55 = load ptr, ptr %51, align 8, !tbaa !28
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.2107.us
  %57 = load ptr, ptr %56, align 8, !tbaa !30
  %58 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %6)
  tail call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %57, i64 noundef 1, i64 noundef %58, double noundef %54)
  br label %59

59:                                               ; preds = %52, %._crit_edge.us
  %60 = add nuw nsw i64 %.2107.us, 1
  %exitcond113.not = icmp eq i64 %60, %3
  br i1 %exitcond113.not, label %._crit_edge108, label %.preheader.us, !llvm.loop !34

61:                                               ; preds = %.preheader.us, %61
  %.0104.us = phi double [ 0.000000e+00, %.preheader.us ], [ %68, %61 ]
  %.086103.us = phi i64 [ 0, %.preheader.us ], [ %69, %61 ]
  %62 = load ptr, ptr %51, align 8, !tbaa !28
  %63 = getelementptr inbounds ptr, ptr %62, i64 %.2107.us
  %64 = load ptr, ptr %63, align 8, !tbaa !30
  %65 = getelementptr inbounds double, ptr %64, i64 %.086103.us
  %66 = load double, ptr %65, align 8, !tbaa !35
  %67 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %66, ptr noundef %4)
  %68 = fadd double %.0104.us, %67
  %69 = add nuw nsw i64 %.086103.us, 1
  %exitcond112.not = icmp eq i64 %69, %6
  br i1 %exitcond112.not, label %._crit_edge.us, label %61, !llvm.loop !36

._crit_edge.us:                                   ; preds = %61
  %70 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %68, double noundef 0.000000e+00)
  br i1 %70, label %59, label %52

71:                                               ; preds = %.lr.ph101, %92
  %.199 = phi i64 [ 0, %.lr.ph101 ], [ %93, %92 ]
  %72 = load ptr, ptr %29, align 8, !tbaa !28
  %73 = getelementptr inbounds i64, ptr %72, i64 %.199
  %74 = load i64, ptr %73, align 8, !tbaa !29
  %.not = icmp eq i64 %74, 0
  br i1 %.not, label %92, label %75

75:                                               ; preds = %71
  %76 = icmp sgt i64 %74, 0
  %77 = load ptr, ptr %30, align 8, !tbaa !28
  %78 = load i64, ptr %24, align 8, !tbaa !31
  %79 = load i64, ptr %25, align 8, !tbaa !37
  %80 = getelementptr ptr, ptr %77, i64 %78
  %81 = getelementptr ptr, ptr %80, i64 %79
  %82 = load ptr, ptr %81, align 8, !tbaa !30
  %83 = load ptr, ptr %31, align 8, !tbaa !28
  %84 = getelementptr inbounds ptr, ptr %83, i64 %.199
  %85 = load ptr, ptr %84, align 8, !tbaa !30
  %86 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %6)
  br i1 %76, label %87, label %88

87:                                               ; preds = %75
  tail call void @_ZN11alglib_impl12ae_v_movenegEPdlPKdll(ptr noundef %82, i64 noundef 1, ptr noundef %85, i64 noundef 1, i64 noundef %86)
  br label %89

88:                                               ; preds = %75
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %82, i64 noundef 1, ptr noundef %85, i64 noundef 1, i64 noundef %86)
  br label %89

89:                                               ; preds = %88, %87
  %90 = load i64, ptr %25, align 8, !tbaa !37
  %91 = add nsw i64 %90, 1
  store i64 %91, ptr %25, align 8, !tbaa !37
  br label %92

92:                                               ; preds = %71, %89
  %93 = add nuw nsw i64 %.199, 1
  %exitcond110.not = icmp eq i64 %93, %3
  br i1 %exitcond110.not, label %.preheader94, label %71, !llvm.loop !38

.preheader:                                       ; preds = %.preheader.lr.ph, %102
  %.2107 = phi i64 [ %103, %102 ], [ 0, %.preheader.lr.ph ]
  %94 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef 0.000000e+00, double noundef 0.000000e+00)
  br i1 %94, label %102, label %95

95:                                               ; preds = %.preheader
  %96 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 0.000000e+00, ptr noundef %4)
  %97 = fdiv double 1.000000e+00, %96
  %98 = load ptr, ptr %51, align 8, !tbaa !28
  %99 = getelementptr inbounds ptr, ptr %98, i64 %.2107
  %100 = load ptr, ptr %99, align 8, !tbaa !30
  %101 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %6)
  tail call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %100, i64 noundef 1, i64 noundef %101, double noundef %97)
  br label %102

102:                                              ; preds = %.preheader, %95
  %103 = add nuw nsw i64 %.2107, 1
  %exitcond111.not = icmp eq i64 %103, %3
  br i1 %exitcond111.not, label %._crit_edge108, label %.preheader, !llvm.loop !34

._crit_edge108:                                   ; preds = %102, %59, %22, %.preheader95, %.preheader94
  %104 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZN11alglib_impl8sassetlcEPNS_10sactivesetEPNS_9ae_matrixEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %104, ptr noundef nonnull %1, ptr noundef nonnull %2, i64 noundef %3, ptr noundef %4)
  br label %105

105:                                              ; preds = %._crit_edge108, %19
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

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

declare void @_ZN11alglib_impl12ae_v_movenegEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 noundef, double noundef) local_unnamed_addr #0

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

attributes #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 #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl13minbleicstateE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !11, i64 48, !11, i64 49, !10, i64 56, !10, i64 64, !12, i64 72, !13, i64 4416, !7, i64 4480, !13, i64 4488, !13, i64 4552, !10, i64 4616, !13, i64 4624, !11, i64 4688, !11, i64 4689, !11, i64 4690, !11, i64 4691, !11, i64 4692, !11, i64 4693, !11, i64 4694, !18, i64 4696, !13, i64 4960, !13, i64 5024, !13, i64 5088, !13, i64 5152, !13, i64 5216, !13, i64 5280, !10, i64 5344, !10, i64 5352, !10, i64 5360, !13, i64 5368, !16, i64 5432, !7, i64 5512, !7, i64 5520, !10, i64 5528, !10, i64 5536, !10, i64 5544, !13, i64 5552, !13, i64 5616, !13, i64 5680, !13, i64 5744, !7, i64 5808, !7, i64 5816, !7, i64 5824, !7, i64 5832, !7, i64 5840, !10, i64 5848, !10, i64 5856, !10, i64 5864, !10, i64 5872, !7, i64 5880, !7, i64 5888, !13, i64 5896, !17, i64 5960, !10, i64 7600, !10, i64 7608, !10, i64 7616, !10, i64 7624, !10, i64 7632, !10, i64 7640, !10, i64 7648, !10, i64 7656, !10, i64 7664, !7, i64 7672, !10, i64 7680, !13, i64 7688, !13, i64 7752, !7, i64 7816, !7, i64 7824, !10, i64 7832, !10, i64 7840, !10, i64 7848, !13, i64 7856, !20, i64 7920, !10, i64 8112, !7, i64 8120, !16, i64 8128, !16, i64 8208, !13, i64 8288, !13, i64 8352, !7, i64 8416, !10, i64 8424, !7, i64 8432, !21, i64 8440, !13, i64 12408, !13, i64 12472}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl10sactivesetE", !7, i64 0, !7, i64 8, !13, i64 16, !11, i64 80, !13, i64 88, !13, i64 152, !13, i64 216, !11, i64 280, !16, i64 288, !16, i64 368, !16, i64 448, !7, i64 528, !13, i64 536, !7, i64 600, !7, i64 608, !11, i64 616, !11, i64 617, !13, i64 624, !13, i64 688, !13, i64 752, !13, i64 816, !16, i64 880, !7, i64 960, !7, i64 968, !13, i64 976, !13, i64 1040, !13, i64 1104, !13, i64 1168, !13, i64 1232, !13, i64 1296, !17, i64 1360, !13, i64 3000, !13, i64 3064, !13, i64 3128, !16, i64 3192, !13, i64 3272, !13, i64 3336, !13, i64 3400, !16, i64 3464, !16, i64 3544, !13, i64 3624, !13, i64 3688, !13, i64 3752, !16, i64 3816, !13, i64 3896, !13, i64 3960, !13, i64 4024, !13, i64 4088, !13, i64 4152, !13, i64 4216, !13, i64 4280}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !14, i64 24, !8, i64 56}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !14, i64 40, !8, i64 72}
!17 = !{!"_ZTSN11alglib_impl11snnlssolverE", !7, i64 0, !7, i64 8, !7, i64 16, !16, i64 24, !13, i64 104, !13, i64 168, !10, i64 232, !7, i64 240, !13, i64 248, !13, i64 312, !16, i64 376, !16, i64 456, !16, i64 536, !13, i64 616, !13, i64 680, !13, i64 744, !13, i64 808, !13, i64 872, !13, i64 936, !13, i64 1000, !13, i64 1064, !13, i64 1128, !13, i64 1192, !13, i64 1256, !13, i64 1320, !13, i64 1384, !13, i64 1448, !13, i64 1512, !13, i64 1576}
!18 = !{!"_ZTSN11alglib_impl10rcommstateE", !19, i64 0, !13, i64 8, !13, i64 72, !13, i64 136, !13, i64 200}
!19 = !{!"int", !8, i64 0}
!20 = !{!"_ZTSN11alglib_impl11linminstateE", !11, i64 0, !11, i64 1, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184}
!21 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !7, i64 0, !7, i64 8, !11, i64 16, !13, i64 24, !7, i64 88, !13, i64 96, !13, i64 160, !13, i64 224, !16, i64 288, !13, i64 368, !13, i64 432, !7, i64 496, !11, i64 504, !11, i64 505, !10, i64 512, !10, i64 520, !11, i64 528, !22, i64 536, !10, i64 832, !10, i64 840, !23, i64 848, !23, i64 1152, !10, i64 1456, !10, i64 1464, !24, i64 1472, !24, i64 1784, !11, i64 2096, !13, i64 2104, !13, i64 2168, !16, i64 2232, !18, i64 2312, !13, i64 2576, !13, i64 2640, !13, i64 2704, !13, i64 2768, !13, i64 2832, !13, i64 2896, !13, i64 2960, !13, i64 3024, !16, i64 3088, !16, i64 3168, !13, i64 3248, !13, i64 3312, !13, i64 3376, !13, i64 3440, !13, i64 3504, !13, i64 3568, !13, i64 3632, !13, i64 3696, !13, i64 3760, !13, i64 3824, !16, i64 3888}
!22 = !{!"_ZTSN11alglib_impl14optguardreportE", !11, i64 0, !11, i64 1, !7, i64 8, !10, i64 16, !11, i64 24, !11, i64 25, !11, i64 26, !7, i64 32, !10, i64 40, !11, i64 48, !7, i64 56, !7, i64 64, !13, i64 72, !16, i64 136, !16, i64 216}
!23 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !11, i64 0, !7, i64 8, !13, i64 16, !13, i64 80, !7, i64 144, !13, i64 152, !13, i64 216, !7, i64 280, !7, i64 288, !7, i64 296}
!24 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !11, i64 0, !7, i64 8, !7, i64 16, !13, i64 24, !13, i64 88, !7, i64 152, !13, i64 160, !13, i64 224, !7, i64 288, !7, i64 296, !7, i64 304}
!25 = !{!16, !7, i64 8}
!26 = !{!16, !7, i64 0}
!27 = !{!13, !7, i64 0}
!28 = !{!8, !8, i64 0}
!29 = !{!7, !7, i64 0}
!30 = !{!15, !15, i64 0}
!31 = !{!6, !7, i64 5512}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}
!35 = !{!10, !10, i64 0}
!36 = distinct !{!36, !33}
!37 = !{!6, !7, i64 5520}
!38 = distinct !{!38, !33}


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