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

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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ahcreport" = type { i64, i64, %"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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.424 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.425 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.426 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.427 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.428 = external hidden unnamed_addr constant [40 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl23clusterizergetkclustersEPNS_9ahcreportElPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %23, ptr noundef %11)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %24)
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %25)
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 1, ptr noundef %26, i1 noundef zeroext true)
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 2, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 2, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 2, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %30, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !11
  store i64 %32, ptr %21, align 8, !tbaa !9
  %33 = load i64, ptr %21, align 8, !tbaa !9
  %34 = icmp sge i64 %33, 0
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef @.str.424, ptr noundef %35)
  %36 = load i64, ptr %7, align 8, !tbaa !9
  %37 = icmp sge i64 %36, 0
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %37, ptr noundef @.str.425, ptr noundef %38)
  %39 = load i64, ptr %7, align 8, !tbaa !9
  %40 = load i64, ptr %21, align 8, !tbaa !9
  %41 = icmp sle i64 %39, %40
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef @.str.426, ptr noundef %42)
  %43 = load i64, ptr %7, align 8, !tbaa !9
  %44 = icmp sgt i64 %43, 0
  br i1 %44, label %48, label %45

45:                                               ; preds = %5
  %46 = load i64, ptr %21, align 8, !tbaa !9
  %47 = icmp eq i64 %46, 0
  br label %48

48:                                               ; preds = %45, %5
  %49 = phi i1 [ true, %5 ], [ %47, %45 ]
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.425, ptr noundef %50)
  %51 = load i64, ptr %21, align 8, !tbaa !9
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %52, i32 0, i32 1
  %54 = load i64, ptr %53, align 8, !tbaa !11
  %55 = icmp eq i64 %51, %54
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %55, ptr noundef @.str.427, ptr noundef %56)
  %57 = load i64, ptr %21, align 8, !tbaa !9
  %58 = icmp eq i64 %57, 0
  br i1 %58, label %59, label %61

59:                                               ; preds = %48
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %60)
  store i32 1, ptr %22, align 4
  br label %327

61:                                               ; preds = %48
  %62 = load i64, ptr %21, align 8, !tbaa !9
  %63 = icmp eq i64 %62, 1
  br i1 %63, label %64, label %78

64:                                               ; preds = %61
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %65, i64 noundef 1, ptr noundef %66)
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %67, i64 noundef 1, ptr noundef %68)
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !17
  %72 = getelementptr inbounds i64, ptr %71, i64 0
  store i64 0, ptr %72, align 8, !tbaa !9
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !17
  %76 = getelementptr inbounds i64, ptr %75, i64 0
  store i64 0, ptr %76, align 8, !tbaa !9
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %77)
  store i32 1, ptr %22, align 4
  br label %327

78:                                               ; preds = %61
  %79 = load i64, ptr %21, align 8, !tbaa !9
  %80 = mul nsw i64 2, %79
  %81 = sub nsw i64 %80, 1
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %81, ptr noundef %82)
  %83 = load i64, ptr %21, align 8, !tbaa !9
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %83, ptr noundef %84)
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %96, %78
  %86 = load i64, ptr %12, align 8, !tbaa !9
  %87 = load i64, ptr %21, align 8, !tbaa !9
  %88 = mul nsw i64 2, %87
  %89 = sub nsw i64 %88, 3
  %90 = icmp sle i64 %86, %89
  br i1 %90, label %91, label %99

91:                                               ; preds = %85
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !17
  %94 = load i64, ptr %12, align 8, !tbaa !9
  %95 = getelementptr inbounds i8, ptr %93, i64 %94
  store i8 0, ptr %95, align 1, !tbaa !18
  br label %96

96:                                               ; preds = %91
  %97 = load i64, ptr %12, align 8, !tbaa !9
  %98 = add nsw i64 %97, 1
  store i64 %98, ptr %12, align 8, !tbaa !9
  br label %85, !llvm.loop !19

99:                                               ; preds = %85
  %100 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !17
  %102 = load i64, ptr %21, align 8, !tbaa !9
  %103 = mul nsw i64 2, %102
  %104 = sub nsw i64 %103, 2
  %105 = getelementptr inbounds i8, ptr %101, i64 %104
  store i8 1, ptr %105, align 1, !tbaa !18
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %106

106:                                              ; preds = %119, %99
  %107 = load i64, ptr %12, align 8, !tbaa !9
  %108 = load i64, ptr %21, align 8, !tbaa !9
  %109 = sub nsw i64 %108, 1
  %110 = icmp sle i64 %107, %109
  br i1 %110, label %111, label %122

111:                                              ; preds = %106
  %112 = load i64, ptr %21, align 8, !tbaa !9
  %113 = mul nsw i64 2, %112
  %114 = sub nsw i64 %113, 2
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !17
  %117 = load i64, ptr %12, align 8, !tbaa !9
  %118 = getelementptr inbounds i64, ptr %116, i64 %117
  store i64 %114, ptr %118, align 8, !tbaa !9
  br label %119

119:                                              ; preds = %111
  %120 = load i64, ptr %12, align 8, !tbaa !9
  %121 = add nsw i64 %120, 1
  store i64 %121, ptr %12, align 8, !tbaa !9
  br label %106, !llvm.loop !21

122:                                              ; preds = %106
  %123 = load i64, ptr %21, align 8, !tbaa !9
  %124 = sub nsw i64 %123, 2
  store i64 %124, ptr %13, align 8, !tbaa !9
  br label %125

125:                                              ; preds = %246, %122
  %126 = load i64, ptr %13, align 8, !tbaa !9
  %127 = load i64, ptr %21, align 8, !tbaa !9
  %128 = load i64, ptr %7, align 8, !tbaa !9
  %129 = sub nsw i64 %127, %128
  %130 = icmp sge i64 %126, %129
  br i1 %130, label %131, label %249

131:                                              ; preds = %125
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !17
  %134 = load i64, ptr %21, align 8, !tbaa !9
  %135 = load i64, ptr %13, align 8, !tbaa !9
  %136 = add nsw i64 %134, %135
  %137 = getelementptr inbounds i8, ptr %133, i64 %136
  store i8 0, ptr %137, align 1, !tbaa !18
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %139 = load ptr, ptr %138, align 8, !tbaa !17
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %140, i32 0, i32 3
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %141, i32 0, i32 6
  %143 = load ptr, ptr %142, align 8, !tbaa !17
  %144 = load i64, ptr %13, align 8, !tbaa !9
  %145 = getelementptr inbounds ptr, ptr %143, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = getelementptr inbounds i64, ptr %146, i64 0
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = getelementptr inbounds i8, ptr %139, i64 %148
  store i8 1, ptr %149, align 1, !tbaa !18
  %150 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %151 = load ptr, ptr %150, align 8, !tbaa !17
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %152, i32 0, i32 3
  %154 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %153, i32 0, i32 6
  %155 = load ptr, ptr %154, align 8, !tbaa !17
  %156 = load i64, ptr %13, align 8, !tbaa !9
  %157 = getelementptr inbounds ptr, ptr %155, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = getelementptr inbounds i64, ptr %158, i64 1
  %160 = load i64, ptr %159, align 8, !tbaa !9
  %161 = getelementptr inbounds i8, ptr %151, i64 %160
  store i8 1, ptr %161, align 1, !tbaa !18
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %162, i32 0, i32 5
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %163, i32 0, i32 6
  %165 = load ptr, ptr %164, align 8, !tbaa !17
  %166 = load i64, ptr %13, align 8, !tbaa !9
  %167 = getelementptr inbounds ptr, ptr %165, i64 %166
  %168 = load ptr, ptr %167, align 8, !tbaa !5
  %169 = getelementptr inbounds i64, ptr %168, i64 0
  %170 = load i64, ptr %169, align 8, !tbaa !9
  store i64 %170, ptr %14, align 8, !tbaa !9
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %171, i32 0, i32 5
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %172, i32 0, i32 6
  %174 = load ptr, ptr %173, align 8, !tbaa !17
  %175 = load i64, ptr %13, align 8, !tbaa !9
  %176 = getelementptr inbounds ptr, ptr %174, i64 %175
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  %178 = getelementptr inbounds i64, ptr %177, i64 1
  %179 = load i64, ptr %178, align 8, !tbaa !9
  store i64 %179, ptr %15, align 8, !tbaa !9
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %180, i32 0, i32 3
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %181, i32 0, i32 6
  %183 = load ptr, ptr %182, align 8, !tbaa !17
  %184 = load i64, ptr %13, align 8, !tbaa !9
  %185 = getelementptr inbounds ptr, ptr %183, i64 %184
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  %187 = getelementptr inbounds i64, ptr %186, i64 0
  %188 = load i64, ptr %187, align 8, !tbaa !9
  store i64 %188, ptr %16, align 8, !tbaa !9
  %189 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %189, ptr %12, align 8, !tbaa !9
  br label %190

190:                                              ; preds = %200, %131
  %191 = load i64, ptr %12, align 8, !tbaa !9
  %192 = load i64, ptr %15, align 8, !tbaa !9
  %193 = icmp sle i64 %191, %192
  br i1 %193, label %194, label %203

194:                                              ; preds = %190
  %195 = load i64, ptr %16, align 8, !tbaa !9
  %196 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %197 = load ptr, ptr %196, align 8, !tbaa !17
  %198 = load i64, ptr %12, align 8, !tbaa !9
  %199 = getelementptr inbounds i64, ptr %197, i64 %198
  store i64 %195, ptr %199, align 8, !tbaa !9
  br label %200

200:                                              ; preds = %194
  %201 = load i64, ptr %12, align 8, !tbaa !9
  %202 = add nsw i64 %201, 1
  store i64 %202, ptr %12, align 8, !tbaa !9
  br label %190, !llvm.loop !22

203:                                              ; preds = %190
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %204, i32 0, i32 5
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %205, i32 0, i32 6
  %207 = load ptr, ptr %206, align 8, !tbaa !17
  %208 = load i64, ptr %13, align 8, !tbaa !9
  %209 = getelementptr inbounds ptr, ptr %207, i64 %208
  %210 = load ptr, ptr %209, align 8, !tbaa !5
  %211 = getelementptr inbounds i64, ptr %210, i64 2
  %212 = load i64, ptr %211, align 8, !tbaa !9
  store i64 %212, ptr %14, align 8, !tbaa !9
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %213, i32 0, i32 5
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %214, i32 0, i32 6
  %216 = load ptr, ptr %215, align 8, !tbaa !17
  %217 = load i64, ptr %13, align 8, !tbaa !9
  %218 = getelementptr inbounds ptr, ptr %216, i64 %217
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  %220 = getelementptr inbounds i64, ptr %219, i64 3
  %221 = load i64, ptr %220, align 8, !tbaa !9
  store i64 %221, ptr %15, align 8, !tbaa !9
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %222, i32 0, i32 3
  %224 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %223, i32 0, i32 6
  %225 = load ptr, ptr %224, align 8, !tbaa !17
  %226 = load i64, ptr %13, align 8, !tbaa !9
  %227 = getelementptr inbounds ptr, ptr %225, i64 %226
  %228 = load ptr, ptr %227, align 8, !tbaa !5
  %229 = getelementptr inbounds i64, ptr %228, i64 1
  %230 = load i64, ptr %229, align 8, !tbaa !9
  store i64 %230, ptr %16, align 8, !tbaa !9
  %231 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %231, ptr %12, align 8, !tbaa !9
  br label %232

232:                                              ; preds = %242, %203
  %233 = load i64, ptr %12, align 8, !tbaa !9
  %234 = load i64, ptr %15, align 8, !tbaa !9
  %235 = icmp sle i64 %233, %234
  br i1 %235, label %236, label %245

236:                                              ; preds = %232
  %237 = load i64, ptr %16, align 8, !tbaa !9
  %238 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %239 = load ptr, ptr %238, align 8, !tbaa !17
  %240 = load i64, ptr %12, align 8, !tbaa !9
  %241 = getelementptr inbounds i64, ptr %239, i64 %240
  store i64 %237, ptr %241, align 8, !tbaa !9
  br label %242

242:                                              ; preds = %236
  %243 = load i64, ptr %12, align 8, !tbaa !9
  %244 = add nsw i64 %243, 1
  store i64 %244, ptr %12, align 8, !tbaa !9
  br label %232, !llvm.loop !23

245:                                              ; preds = %232
  br label %246

246:                                              ; preds = %245
  %247 = load i64, ptr %13, align 8, !tbaa !9
  %248 = add nsw i64 %247, -1
  store i64 %248, ptr %13, align 8, !tbaa !9
  br label %125, !llvm.loop !24

249:                                              ; preds = %125
  %250 = load ptr, ptr %9, align 8, !tbaa !5
  %251 = load i64, ptr %7, align 8, !tbaa !9
  %252 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %250, i64 noundef %251, ptr noundef %252)
  %253 = load i64, ptr %21, align 8, !tbaa !9
  %254 = mul nsw i64 2, %253
  %255 = sub nsw i64 %254, 1
  %256 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %255, ptr noundef %256)
  store i64 0, ptr %16, align 8, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %257

257:                                              ; preds = %285, %249
  %258 = load i64, ptr %12, align 8, !tbaa !9
  %259 = load i64, ptr %21, align 8, !tbaa !9
  %260 = mul nsw i64 2, %259
  %261 = sub nsw i64 %260, 2
  %262 = icmp sle i64 %258, %261
  br i1 %262, label %263, label %288

263:                                              ; preds = %257
  %264 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %265 = load ptr, ptr %264, align 8, !tbaa !17
  %266 = load i64, ptr %12, align 8, !tbaa !9
  %267 = getelementptr inbounds i8, ptr %265, i64 %266
  %268 = load i8, ptr %267, align 1, !tbaa !18, !range !25, !noundef !26
  %269 = trunc i8 %268 to i1
  br i1 %269, label %270, label %284

270:                                              ; preds = %263
  %271 = load i64, ptr %12, align 8, !tbaa !9
  %272 = load ptr, ptr %9, align 8, !tbaa !5
  %273 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %272, i32 0, i32 4
  %274 = load ptr, ptr %273, align 8, !tbaa !17
  %275 = load i64, ptr %16, align 8, !tbaa !9
  %276 = getelementptr inbounds i64, ptr %274, i64 %275
  store i64 %271, ptr %276, align 8, !tbaa !9
  %277 = load i64, ptr %16, align 8, !tbaa !9
  %278 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %279 = load ptr, ptr %278, align 8, !tbaa !17
  %280 = load i64, ptr %12, align 8, !tbaa !9
  %281 = getelementptr inbounds i64, ptr %279, i64 %280
  store i64 %277, ptr %281, align 8, !tbaa !9
  %282 = load i64, ptr %16, align 8, !tbaa !9
  %283 = add nsw i64 %282, 1
  store i64 %283, ptr %16, align 8, !tbaa !9
  br label %284

284:                                              ; preds = %270, %263
  br label %285

285:                                              ; preds = %284
  %286 = load i64, ptr %12, align 8, !tbaa !9
  %287 = add nsw i64 %286, 1
  store i64 %287, ptr %12, align 8, !tbaa !9
  br label %257, !llvm.loop !27

288:                                              ; preds = %257
  %289 = load i64, ptr %16, align 8, !tbaa !9
  %290 = load i64, ptr %7, align 8, !tbaa !9
  %291 = icmp eq i64 %289, %290
  %292 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %291, ptr noundef @.str.428, ptr noundef %292)
  %293 = load ptr, ptr %8, align 8, !tbaa !5
  %294 = load i64, ptr %21, align 8, !tbaa !9
  %295 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %293, i64 noundef %294, ptr noundef %295)
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %296

296:                                              ; preds = %322, %288
  %297 = load i64, ptr %12, align 8, !tbaa !9
  %298 = load i64, ptr %21, align 8, !tbaa !9
  %299 = sub nsw i64 %298, 1
  %300 = icmp sle i64 %297, %299
  br i1 %300, label %301, label %325

301:                                              ; preds = %296
  %302 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %303 = load ptr, ptr %302, align 8, !tbaa !17
  %304 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %305 = load ptr, ptr %304, align 8, !tbaa !17
  %306 = load ptr, ptr %6, align 8, !tbaa !5
  %307 = getelementptr inbounds %"struct.alglib_impl::ahcreport", ptr %306, i32 0, i32 2
  %308 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %307, i32 0, i32 4
  %309 = load ptr, ptr %308, align 8, !tbaa !17
  %310 = load i64, ptr %12, align 8, !tbaa !9
  %311 = getelementptr inbounds i64, ptr %309, i64 %310
  %312 = load i64, ptr %311, align 8, !tbaa !9
  %313 = getelementptr inbounds i64, ptr %305, i64 %312
  %314 = load i64, ptr %313, align 8, !tbaa !9
  %315 = getelementptr inbounds i64, ptr %303, i64 %314
  %316 = load i64, ptr %315, align 8, !tbaa !9
  %317 = load ptr, ptr %8, align 8, !tbaa !5
  %318 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %317, i32 0, i32 4
  %319 = load ptr, ptr %318, align 8, !tbaa !17
  %320 = load i64, ptr %12, align 8, !tbaa !9
  %321 = getelementptr inbounds i64, ptr %319, i64 %320
  store i64 %316, ptr %321, align 8, !tbaa !9
  br label %322

322:                                              ; preds = %301
  %323 = load i64, ptr %12, align 8, !tbaa !9
  %324 = add nsw i64 %323, 1
  store i64 %324, ptr %12, align 8, !tbaa !9
  br label %296, !llvm.loop !28

325:                                              ; preds = %296
  %326 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %326)
  store i32 0, ptr %22, align 4
  br label %327

327:                                              ; preds = %325, %64, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  %328 = load i32, ptr %22, align 4
  switch i32 %328, label %330 [
    i32 0, label %329
    i32 1, label %329
  ]

329:                                              ; preds = %327, %327
  ret void

330:                                              ; preds = %327
  unreachable
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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


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

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

@.str.424 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.425 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.426 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.427 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.428 = external hidden unnamed_addr constant [40 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl23clusterizergetkclustersEPNS_9ahcreportElPNS_9ae_vectorES3_PNS_8ae_stateE(ptr nocapture noundef readonly %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #3 {
  %6 = alloca %"struct.alglib_impl::ae_frame", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %4, ptr noundef nonnull %6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %2)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %3)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 1, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 2, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 2, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 2, ptr noundef %4, i1 noundef zeroext true)
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = icmp sgt i64 %12, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.424, ptr noundef %4)
  %14 = icmp sgt i64 %1, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.425, ptr noundef %4)
  %15 = icmp sge i64 %12, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.426, ptr noundef %4)
  %16 = icmp sgt i64 %1, 0
  %17 = icmp eq i64 %12, 0
  %18 = or i1 %16, %17
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.425, ptr noundef %4)
  %19 = load i64, ptr %11, align 8, !tbaa !5
  %20 = icmp eq i64 %12, %19
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.427, ptr noundef %4)
  br i1 %17, label %._crit_edge151, label %21

21:                                               ; preds = %5
  %22 = icmp eq i64 %12, 1
  br i1 %22, label %23, label %28

23:                                               ; preds = %21
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %3, i64 noundef 1, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef 1, ptr noundef %4)
  %24 = getelementptr inbounds i8, ptr %3, i64 56
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  store i64 0, ptr %25, align 8, !tbaa !16
  %26 = getelementptr inbounds i8, ptr %2, i64 56
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  store i64 0, ptr %27, align 8, !tbaa !16
  br label %._crit_edge151

28:                                               ; preds = %21
  %29 = shl nsw i64 %12, 1
  %30 = add nsw i64 %29, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %30, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %12, ptr noundef %4)
  %.not119 = icmp sgt i64 %12, 1
  %31 = getelementptr inbounds i8, ptr %7, i64 56
  br i1 %.not119, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %28
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = add nsw i64 %29, -2
  %34 = getelementptr inbounds i8, ptr %32, i64 %33
  store i8 1, ptr %34, align 1, !tbaa !17
  br label %._crit_edge125

.lr.ph:                                           ; preds = %28
  %35 = call i64 @llvm.smax.i64(i64 %29, i64 3)
  %smax = add nsw i64 %35, -3
  %36 = add nsw i64 %35, -2
  %xtraiter = and i64 %36, 3
  %37 = icmp ult i64 %smax, 3
  br i1 %37, label %._crit_edge.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %36, -4
  br label %38

38:                                               ; preds = %38, %.lr.ph.new
  %.0120 = phi i64 [ 0, %.lr.ph.new ], [ %50, %38 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %38 ]
  %39 = load ptr, ptr %31, align 8, !tbaa !15
  %40 = getelementptr inbounds i8, ptr %39, i64 %.0120
  store i8 0, ptr %40, align 1, !tbaa !17
  %41 = or disjoint i64 %.0120, 1
  %42 = load ptr, ptr %31, align 8, !tbaa !15
  %43 = getelementptr inbounds i8, ptr %42, i64 %41
  store i8 0, ptr %43, align 1, !tbaa !17
  %44 = or disjoint i64 %.0120, 2
  %45 = load ptr, ptr %31, align 8, !tbaa !15
  %46 = getelementptr inbounds i8, ptr %45, i64 %44
  store i8 0, ptr %46, align 1, !tbaa !17
  %47 = or disjoint i64 %.0120, 3
  %48 = load ptr, ptr %31, align 8, !tbaa !15
  %49 = getelementptr inbounds i8, ptr %48, i64 %47
  store i8 0, ptr %49, align 1, !tbaa !17
  %50 = add nuw i64 %.0120, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %38, !llvm.loop !18

._crit_edge.unr-lcssa:                            ; preds = %38, %.lr.ph
  %.0120.unr = phi i64 [ 0, %.lr.ph ], [ %50, %38 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.unr-lcssa, %.epil.preheader
  %.0120.epil = phi i64 [ %53, %.epil.preheader ], [ %.0120.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.unr-lcssa ]
  %51 = load ptr, ptr %31, align 8, !tbaa !15
  %52 = getelementptr inbounds i8, ptr %51, i64 %.0120.epil
  store i8 0, ptr %52, align 1, !tbaa !17
  %53 = add nuw i64 %.0120.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !20

._crit_edge:                                      ; preds = %.epil.preheader, %._crit_edge.unr-lcssa
  %54 = getelementptr inbounds i8, ptr %7, i64 56
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  %56 = add nsw i64 %29, -2
  %57 = getelementptr inbounds i8, ptr %55, i64 %56
  store i8 1, ptr %57, align 1, !tbaa !17
  %58 = getelementptr inbounds i8, ptr %10, i64 56
  %xtraiter165 = and i64 %12, 3
  %59 = icmp ult i64 %12, 4
  br i1 %59, label %._crit_edge125.loopexit.unr-lcssa, label %._crit_edge.new

._crit_edge.new:                                  ; preds = %._crit_edge
  %unroll_iter168 = and i64 %12, 9223372036854775804
  br label %60

60:                                               ; preds = %60, %._crit_edge.new
  %.1122 = phi i64 [ 0, %._crit_edge.new ], [ %72, %60 ]
  %niter169 = phi i64 [ 0, %._crit_edge.new ], [ %niter169.next.3, %60 ]
  %61 = load ptr, ptr %58, align 8, !tbaa !15
  %62 = getelementptr inbounds i64, ptr %61, i64 %.1122
  store i64 %56, ptr %62, align 8, !tbaa !16
  %63 = or disjoint i64 %.1122, 1
  %64 = load ptr, ptr %58, align 8, !tbaa !15
  %65 = getelementptr inbounds i64, ptr %64, i64 %63
  store i64 %56, ptr %65, align 8, !tbaa !16
  %66 = or disjoint i64 %.1122, 2
  %67 = load ptr, ptr %58, align 8, !tbaa !15
  %68 = getelementptr inbounds i64, ptr %67, i64 %66
  store i64 %56, ptr %68, align 8, !tbaa !16
  %69 = or disjoint i64 %.1122, 3
  %70 = load ptr, ptr %58, align 8, !tbaa !15
  %71 = getelementptr inbounds i64, ptr %70, i64 %69
  store i64 %56, ptr %71, align 8, !tbaa !16
  %72 = add nuw nsw i64 %.1122, 4
  %niter169.next.3 = add i64 %niter169, 4
  %niter169.ncmp.3 = icmp eq i64 %niter169.next.3, %unroll_iter168
  br i1 %niter169.ncmp.3, label %._crit_edge125.loopexit.unr-lcssa, label %60, !llvm.loop !22

._crit_edge125.loopexit.unr-lcssa:                ; preds = %60, %._crit_edge
  %.1122.unr = phi i64 [ 0, %._crit_edge ], [ %72, %60 ]
  %lcmp.mod167.not = icmp eq i64 %xtraiter165, 0
  br i1 %lcmp.mod167.not, label %._crit_edge125, label %.epil.preheader164

.epil.preheader164:                               ; preds = %._crit_edge125.loopexit.unr-lcssa, %.epil.preheader164
  %.1122.epil = phi i64 [ %75, %.epil.preheader164 ], [ %.1122.unr, %._crit_edge125.loopexit.unr-lcssa ]
  %epil.iter166 = phi i64 [ %epil.iter166.next, %.epil.preheader164 ], [ 0, %._crit_edge125.loopexit.unr-lcssa ]
  %73 = load ptr, ptr %58, align 8, !tbaa !15
  %74 = getelementptr inbounds i64, ptr %73, i64 %.1122.epil
  store i64 %56, ptr %74, align 8, !tbaa !16
  %75 = add nuw nsw i64 %.1122.epil, 1
  %epil.iter166.next = add i64 %epil.iter166, 1
  %epil.iter166.cmp.not = icmp eq i64 %epil.iter166.next, %xtraiter165
  br i1 %epil.iter166.cmp.not, label %._crit_edge125, label %.epil.preheader164, !llvm.loop !23

._crit_edge125:                                   ; preds = %._crit_edge125.loopexit.unr-lcssa, %.epil.preheader164, %._crit_edge.thread
  %76 = phi i64 [ %33, %._crit_edge.thread ], [ %56, %.epil.preheader164 ], [ %56, %._crit_edge125.loopexit.unr-lcssa ]
  %77 = phi ptr [ %31, %._crit_edge.thread ], [ %54, %.epil.preheader164 ], [ %54, %._crit_edge125.loopexit.unr-lcssa ]
  %78 = add nsw i64 %12, -2
  %79 = sub nsw i64 %12, %1
  %.not114136 = icmp slt i64 %78, %79
  br i1 %.not114136, label %._crit_edge140, label %.lr.ph139

.lr.ph139:                                        ; preds = %._crit_edge125
  %80 = getelementptr inbounds i8, ptr %0, i64 152
  %81 = getelementptr inbounds i8, ptr %0, i64 312
  %82 = getelementptr inbounds i8, ptr %10, i64 56
  br label %83

83:                                               ; preds = %.lr.ph139, %._crit_edge135
  %.0110137 = phi i64 [ %78, %.lr.ph139 ], [ %156, %._crit_edge135 ]
  %84 = load ptr, ptr %77, align 8, !tbaa !15
  %85 = getelementptr i8, ptr %84, i64 %12
  %86 = getelementptr i8, ptr %85, i64 %.0110137
  store i8 0, ptr %86, align 1, !tbaa !17
  %87 = load ptr, ptr %77, align 8, !tbaa !15
  %88 = load ptr, ptr %80, align 8, !tbaa !15
  %89 = getelementptr inbounds ptr, ptr %88, i64 %.0110137
  %90 = load ptr, ptr %89, align 8, !tbaa !24
  %91 = load i64, ptr %90, align 8, !tbaa !16
  %92 = getelementptr inbounds i8, ptr %87, i64 %91
  store i8 1, ptr %92, align 1, !tbaa !17
  %93 = load ptr, ptr %77, align 8, !tbaa !15
  %94 = load ptr, ptr %80, align 8, !tbaa !15
  %95 = getelementptr inbounds ptr, ptr %94, i64 %.0110137
  %96 = load ptr, ptr %95, align 8, !tbaa !24
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = load i64, ptr %97, align 8, !tbaa !16
  %99 = getelementptr inbounds i8, ptr %93, i64 %98
  store i8 1, ptr %99, align 1, !tbaa !17
  %100 = load ptr, ptr %81, align 8, !tbaa !15
  %101 = getelementptr inbounds ptr, ptr %100, i64 %.0110137
  %102 = load ptr, ptr %101, align 8, !tbaa !24
  %103 = load i64, ptr %102, align 8, !tbaa !16
  %104 = getelementptr inbounds i8, ptr %102, i64 8
  %105 = load i64, ptr %104, align 8, !tbaa !16
  %106 = load ptr, ptr %80, align 8, !tbaa !15
  %107 = getelementptr inbounds ptr, ptr %106, i64 %.0110137
  %108 = load ptr, ptr %107, align 8, !tbaa !24
  %109 = load i64, ptr %108, align 8, !tbaa !16
  %.not117126 = icmp sgt i64 %103, %105
  br i1 %.not117126, label %._crit_edge130, label %.lr.ph129.preheader

.lr.ph129.preheader:                              ; preds = %83
  %110 = add i64 %105, 1
  %111 = sub i64 %110, %103
  %112 = sub i64 %105, %103
  %xtraiter170 = and i64 %111, 3
  %lcmp.mod171.not = icmp eq i64 %xtraiter170, 0
  br i1 %lcmp.mod171.not, label %.lr.ph129.prol.loopexit, label %.lr.ph129.prol

.lr.ph129.prol:                                   ; preds = %.lr.ph129.preheader, %.lr.ph129.prol
  %.2127.prol = phi i64 [ %115, %.lr.ph129.prol ], [ %103, %.lr.ph129.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph129.prol ], [ 0, %.lr.ph129.preheader ]
  %113 = load ptr, ptr %82, align 8, !tbaa !15
  %114 = getelementptr inbounds i64, ptr %113, i64 %.2127.prol
  store i64 %109, ptr %114, align 8, !tbaa !16
  %115 = add i64 %.2127.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter170
  br i1 %prol.iter.cmp.not, label %.lr.ph129.prol.loopexit, label %.lr.ph129.prol, !llvm.loop !25

.lr.ph129.prol.loopexit:                          ; preds = %.lr.ph129.prol, %.lr.ph129.preheader
  %.2127.unr = phi i64 [ %103, %.lr.ph129.preheader ], [ %115, %.lr.ph129.prol ]
  %116 = icmp ult i64 %112, 3
  br i1 %116, label %._crit_edge130.loopexit, label %.lr.ph129

.lr.ph129:                                        ; preds = %.lr.ph129.prol.loopexit, %.lr.ph129
  %.2127 = phi i64 [ %128, %.lr.ph129 ], [ %.2127.unr, %.lr.ph129.prol.loopexit ]
  %117 = load ptr, ptr %82, align 8, !tbaa !15
  %118 = getelementptr inbounds i64, ptr %117, i64 %.2127
  store i64 %109, ptr %118, align 8, !tbaa !16
  %119 = load ptr, ptr %82, align 8, !tbaa !15
  %120 = getelementptr i64, ptr %119, i64 %.2127
  %121 = getelementptr i8, ptr %120, i64 8
  store i64 %109, ptr %121, align 8, !tbaa !16
  %122 = load ptr, ptr %82, align 8, !tbaa !15
  %123 = getelementptr i64, ptr %122, i64 %.2127
  %124 = getelementptr i8, ptr %123, i64 16
  store i64 %109, ptr %124, align 8, !tbaa !16
  %125 = add i64 %.2127, 3
  %126 = load ptr, ptr %82, align 8, !tbaa !15
  %127 = getelementptr inbounds i64, ptr %126, i64 %125
  store i64 %109, ptr %127, align 8, !tbaa !16
  %128 = add i64 %.2127, 4
  %exitcond153.not.3 = icmp eq i64 %125, %105
  br i1 %exitcond153.not.3, label %._crit_edge130.loopexit, label %.lr.ph129, !llvm.loop !26

._crit_edge130.loopexit:                          ; preds = %.lr.ph129, %.lr.ph129.prol.loopexit
  %.pre = load ptr, ptr %81, align 8, !tbaa !15
  %.phi.trans.insert = getelementptr inbounds ptr, ptr %.pre, i64 %.0110137
  %.pre158 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !24
  %.pre159 = load ptr, ptr %80, align 8, !tbaa !15
  %.phi.trans.insert160 = getelementptr inbounds ptr, ptr %.pre159, i64 %.0110137
  %.pre161 = load ptr, ptr %.phi.trans.insert160, align 8, !tbaa !24
  br label %._crit_edge130

._crit_edge130:                                   ; preds = %._crit_edge130.loopexit, %83
  %129 = phi ptr [ %.pre161, %._crit_edge130.loopexit ], [ %108, %83 ]
  %130 = phi ptr [ %.pre158, %._crit_edge130.loopexit ], [ %102, %83 ]
  %131 = getelementptr inbounds i8, ptr %130, i64 16
  %132 = load i64, ptr %131, align 8, !tbaa !16
  %133 = getelementptr inbounds i8, ptr %130, i64 24
  %134 = load i64, ptr %133, align 8, !tbaa !16
  %135 = getelementptr inbounds i8, ptr %129, i64 8
  %136 = load i64, ptr %135, align 8, !tbaa !16
  %.not118131 = icmp sgt i64 %132, %134
  br i1 %.not118131, label %._crit_edge135, label %.lr.ph134.preheader

.lr.ph134.preheader:                              ; preds = %._crit_edge130
  %137 = add i64 %134, 1
  %138 = sub i64 %137, %132
  %139 = sub i64 %134, %132
  %xtraiter172 = and i64 %138, 3
  %lcmp.mod173.not = icmp eq i64 %xtraiter172, 0
  br i1 %lcmp.mod173.not, label %.lr.ph134.prol.loopexit, label %.lr.ph134.prol

.lr.ph134.prol:                                   ; preds = %.lr.ph134.preheader, %.lr.ph134.prol
  %.3132.prol = phi i64 [ %142, %.lr.ph134.prol ], [ %132, %.lr.ph134.preheader ]
  %prol.iter174 = phi i64 [ %prol.iter174.next, %.lr.ph134.prol ], [ 0, %.lr.ph134.preheader ]
  %140 = load ptr, ptr %82, align 8, !tbaa !15
  %141 = getelementptr inbounds i64, ptr %140, i64 %.3132.prol
  store i64 %136, ptr %141, align 8, !tbaa !16
  %142 = add i64 %.3132.prol, 1
  %prol.iter174.next = add i64 %prol.iter174, 1
  %prol.iter174.cmp.not = icmp eq i64 %prol.iter174.next, %xtraiter172
  br i1 %prol.iter174.cmp.not, label %.lr.ph134.prol.loopexit, label %.lr.ph134.prol, !llvm.loop !27

.lr.ph134.prol.loopexit:                          ; preds = %.lr.ph134.prol, %.lr.ph134.preheader
  %.3132.unr = phi i64 [ %132, %.lr.ph134.preheader ], [ %142, %.lr.ph134.prol ]
  %143 = icmp ult i64 %139, 3
  br i1 %143, label %._crit_edge135, label %.lr.ph134

.lr.ph134:                                        ; preds = %.lr.ph134.prol.loopexit, %.lr.ph134
  %.3132 = phi i64 [ %155, %.lr.ph134 ], [ %.3132.unr, %.lr.ph134.prol.loopexit ]
  %144 = load ptr, ptr %82, align 8, !tbaa !15
  %145 = getelementptr inbounds i64, ptr %144, i64 %.3132
  store i64 %136, ptr %145, align 8, !tbaa !16
  %146 = load ptr, ptr %82, align 8, !tbaa !15
  %147 = getelementptr i64, ptr %146, i64 %.3132
  %148 = getelementptr i8, ptr %147, i64 8
  store i64 %136, ptr %148, align 8, !tbaa !16
  %149 = load ptr, ptr %82, align 8, !tbaa !15
  %150 = getelementptr i64, ptr %149, i64 %.3132
  %151 = getelementptr i8, ptr %150, i64 16
  store i64 %136, ptr %151, align 8, !tbaa !16
  %152 = add i64 %.3132, 3
  %153 = load ptr, ptr %82, align 8, !tbaa !15
  %154 = getelementptr inbounds i64, ptr %153, i64 %152
  store i64 %136, ptr %154, align 8, !tbaa !16
  %155 = add i64 %.3132, 4
  %exitcond154.not.3 = icmp eq i64 %152, %134
  br i1 %exitcond154.not.3, label %._crit_edge135, label %.lr.ph134, !llvm.loop !28

._crit_edge135:                                   ; preds = %.lr.ph134.prol.loopexit, %.lr.ph134, %._crit_edge130
  %156 = add nsw i64 %.0110137, -1
  %.not114.not = icmp sgt i64 %.0110137, %79
  br i1 %.not114.not, label %83, label %._crit_edge140, !llvm.loop !29

._crit_edge140:                                   ; preds = %._crit_edge135, %._crit_edge125
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %3, i64 noundef %1, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %30, ptr noundef %4)
  %.not115141 = icmp slt i64 %12, 1
  br i1 %.not115141, label %._crit_edge146, label %.lr.ph145

.lr.ph145:                                        ; preds = %._crit_edge140
  %157 = getelementptr inbounds i8, ptr %3, i64 56
  %158 = getelementptr inbounds i8, ptr %8, i64 56
  %smax155 = call i64 @llvm.smax.i64(i64 %76, i64 0)
  %159 = icmp slt i64 %76, 1
  br i1 %159, label %._crit_edge146.loopexit.unr-lcssa, label %.lr.ph145.new

.lr.ph145.new:                                    ; preds = %.lr.ph145
  %160 = add nuw nsw i64 %smax155, 1
  %unroll_iter180 = and i64 %160, 9223372036854775806
  br label %161

161:                                              ; preds = %184, %.lr.ph145.new
  %.4143 = phi i64 [ 0, %.lr.ph145.new ], [ %185, %184 ]
  %.0108142 = phi i64 [ 0, %.lr.ph145.new ], [ %.1109.1, %184 ]
  %niter181 = phi i64 [ 0, %.lr.ph145.new ], [ %niter181.next.1, %184 ]
  %162 = load ptr, ptr %77, align 8, !tbaa !15
  %163 = getelementptr inbounds i8, ptr %162, i64 %.4143
  %164 = load i8, ptr %163, align 1, !tbaa !17, !range !30, !noundef !31
  %165 = trunc nuw i8 %164 to i1
  br i1 %165, label %166, label %172

166:                                              ; preds = %161
  %167 = load ptr, ptr %157, align 8, !tbaa !15
  %168 = getelementptr inbounds i64, ptr %167, i64 %.0108142
  store i64 %.4143, ptr %168, align 8, !tbaa !16
  %169 = load ptr, ptr %158, align 8, !tbaa !15
  %170 = getelementptr inbounds i64, ptr %169, i64 %.4143
  store i64 %.0108142, ptr %170, align 8, !tbaa !16
  %171 = add nsw i64 %.0108142, 1
  br label %172

172:                                              ; preds = %161, %166
  %.1109 = phi i64 [ %171, %166 ], [ %.0108142, %161 ]
  %173 = or disjoint i64 %.4143, 1
  %174 = load ptr, ptr %77, align 8, !tbaa !15
  %175 = getelementptr inbounds i8, ptr %174, i64 %173
  %176 = load i8, ptr %175, align 1, !tbaa !17, !range !30, !noundef !31
  %177 = trunc nuw i8 %176 to i1
  br i1 %177, label %178, label %184

178:                                              ; preds = %172
  %179 = load ptr, ptr %157, align 8, !tbaa !15
  %180 = getelementptr inbounds i64, ptr %179, i64 %.1109
  store i64 %173, ptr %180, align 8, !tbaa !16
  %181 = load ptr, ptr %158, align 8, !tbaa !15
  %182 = getelementptr inbounds i64, ptr %181, i64 %173
  store i64 %.1109, ptr %182, align 8, !tbaa !16
  %183 = add nsw i64 %.1109, 1
  br label %184

184:                                              ; preds = %178, %172
  %.1109.1 = phi i64 [ %183, %178 ], [ %.1109, %172 ]
  %185 = add nuw nsw i64 %.4143, 2
  %niter181.next.1 = add i64 %niter181, 2
  %niter181.ncmp.1 = icmp eq i64 %niter181.next.1, %unroll_iter180
  br i1 %niter181.ncmp.1, label %._crit_edge146.loopexit.unr-lcssa, label %161, !llvm.loop !32

._crit_edge146.loopexit.unr-lcssa:                ; preds = %184, %.lr.ph145
  %.1109.lcssa.ph = phi i64 [ poison, %.lr.ph145 ], [ %.1109.1, %184 ]
  %.4143.unr = phi i64 [ 0, %.lr.ph145 ], [ %185, %184 ]
  %.0108142.unr = phi i64 [ 0, %.lr.ph145 ], [ %.1109.1, %184 ]
  %186 = and i64 %smax155, 1
  %lcmp.mod178.not.not = icmp eq i64 %186, 0
  br i1 %lcmp.mod178.not.not, label %.epil.preheader175, label %._crit_edge146

.epil.preheader175:                               ; preds = %._crit_edge146.loopexit.unr-lcssa
  %187 = load ptr, ptr %77, align 8, !tbaa !15
  %188 = getelementptr inbounds i8, ptr %187, i64 %.4143.unr
  %189 = load i8, ptr %188, align 1, !tbaa !17, !range !30, !noundef !31
  %190 = trunc nuw i8 %189 to i1
  br i1 %190, label %191, label %._crit_edge146

191:                                              ; preds = %.epil.preheader175
  %192 = load ptr, ptr %157, align 8, !tbaa !15
  %193 = getelementptr inbounds i64, ptr %192, i64 %.0108142.unr
  store i64 %.4143.unr, ptr %193, align 8, !tbaa !16
  %194 = load ptr, ptr %158, align 8, !tbaa !15
  %195 = getelementptr inbounds i64, ptr %194, i64 %.4143.unr
  store i64 %.0108142.unr, ptr %195, align 8, !tbaa !16
  %196 = add nsw i64 %.0108142.unr, 1
  br label %._crit_edge146

._crit_edge146:                                   ; preds = %._crit_edge146.loopexit.unr-lcssa, %191, %.epil.preheader175, %._crit_edge140
  %.0108.lcssa = phi i64 [ 0, %._crit_edge140 ], [ %.1109.lcssa.ph, %._crit_edge146.loopexit.unr-lcssa ], [ %196, %191 ], [ %.0108142.unr, %.epil.preheader175 ]
  %197 = icmp eq i64 %.0108.lcssa, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %197, ptr noundef nonnull @.str.428, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %12, ptr noundef %4)
  br i1 %.not119, label %.lr.ph150, label %._crit_edge151

.lr.ph150:                                        ; preds = %._crit_edge146
  %198 = getelementptr inbounds i8, ptr %8, i64 56
  %199 = getelementptr inbounds i8, ptr %10, i64 56
  %200 = getelementptr inbounds i8, ptr %0, i64 72
  %201 = getelementptr inbounds i8, ptr %2, i64 56
  %xtraiter183 = and i64 %12, 1
  %unroll_iter186 = and i64 %12, 9223372036854775806
  br label %202

202:                                              ; preds = %202, %.lr.ph150
  %.5148 = phi i64 [ 0, %.lr.ph150 ], [ %226, %202 ]
  %niter187 = phi i64 [ 0, %.lr.ph150 ], [ %niter187.next.1, %202 ]
  %203 = load ptr, ptr %198, align 8, !tbaa !15
  %204 = load ptr, ptr %199, align 8, !tbaa !15
  %205 = load ptr, ptr %200, align 8, !tbaa !15
  %206 = getelementptr inbounds i64, ptr %205, i64 %.5148
  %207 = load i64, ptr %206, align 8, !tbaa !16
  %208 = getelementptr inbounds i64, ptr %204, i64 %207
  %209 = load i64, ptr %208, align 8, !tbaa !16
  %210 = getelementptr inbounds i64, ptr %203, i64 %209
  %211 = load i64, ptr %210, align 8, !tbaa !16
  %212 = load ptr, ptr %201, align 8, !tbaa !15
  %213 = getelementptr inbounds i64, ptr %212, i64 %.5148
  store i64 %211, ptr %213, align 8, !tbaa !16
  %214 = or disjoint i64 %.5148, 1
  %215 = load ptr, ptr %198, align 8, !tbaa !15
  %216 = load ptr, ptr %199, align 8, !tbaa !15
  %217 = load ptr, ptr %200, align 8, !tbaa !15
  %218 = getelementptr inbounds i64, ptr %217, i64 %214
  %219 = load i64, ptr %218, align 8, !tbaa !16
  %220 = getelementptr inbounds i64, ptr %216, i64 %219
  %221 = load i64, ptr %220, align 8, !tbaa !16
  %222 = getelementptr inbounds i64, ptr %215, i64 %221
  %223 = load i64, ptr %222, align 8, !tbaa !16
  %224 = load ptr, ptr %201, align 8, !tbaa !15
  %225 = getelementptr inbounds i64, ptr %224, i64 %214
  store i64 %223, ptr %225, align 8, !tbaa !16
  %226 = add nuw nsw i64 %.5148, 2
  %niter187.next.1 = add nuw nsw i64 %niter187, 2
  %niter187.ncmp.1 = icmp eq i64 %niter187.next.1, %unroll_iter186
  br i1 %niter187.ncmp.1, label %._crit_edge151.loopexit.unr-lcssa, label %202, !llvm.loop !33

._crit_edge151.loopexit.unr-lcssa:                ; preds = %202
  %lcmp.mod185.not = icmp eq i64 %xtraiter183, 0
  br i1 %lcmp.mod185.not, label %._crit_edge151, label %._crit_edge151.loopexit.epilog-lcssa

._crit_edge151.loopexit.epilog-lcssa:             ; preds = %._crit_edge151.loopexit.unr-lcssa
  %227 = load ptr, ptr %198, align 8, !tbaa !15
  %228 = load ptr, ptr %199, align 8, !tbaa !15
  %229 = load ptr, ptr %200, align 8, !tbaa !15
  %230 = getelementptr inbounds i64, ptr %229, i64 %226
  %231 = load i64, ptr %230, align 8, !tbaa !16
  %232 = getelementptr inbounds i64, ptr %228, i64 %231
  %233 = load i64, ptr %232, align 8, !tbaa !16
  %234 = getelementptr inbounds i64, ptr %227, i64 %233
  %235 = load i64, ptr %234, align 8, !tbaa !16
  %236 = load ptr, ptr %201, align 8, !tbaa !15
  %237 = getelementptr inbounds i64, ptr %236, i64 %226
  store i64 %235, ptr %237, align 8, !tbaa !16
  br label %._crit_edge151

._crit_edge151:                                   ; preds = %._crit_edge151.loopexit.epilog-lcssa, %._crit_edge151.loopexit.unr-lcssa, %._crit_edge146, %5, %23
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  ret void
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !7, i64 8}
!6 = !{!"_ZTSN11alglib_impl9ahcreportE", !7, i64 0, !7, i64 8, !10, i64 16, !14, i64 80, !14, i64 160, !14, i64 240, !10, i64 320}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 56}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !12, i64 40, !8, i64 72}
!15 = !{!8, !8, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !21}
!24 = !{!13, !13, i64 0}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !19}
!29 = distinct !{!29, !19}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = distinct !{!32, !19}
!33 = distinct !{!33, !19}


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