; 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_vector" = type { 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::ssamodel" = type { i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", i64, i64, i8, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::eigsubspacestate", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::hqrndstate", i64, %"struct.alglib_impl::ae_vector", i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::eigsubspacereport", %"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_matrix", i64, i64, i64 }
%"struct.alglib_impl::eigsubspacestate" = type { i64, i64, i64, i64, double, i64, i64, i8, i8, %"struct.alglib_impl::hqrndstate", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"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::apbuffers", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i64, i64, i64, %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::apbuffers" = type { %"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::ae_matrix" }
%"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::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::eigsubspacereport" = type { i64 }
%"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.256 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.260 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.261 = external hidden unnamed_addr constant [44 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_impl19ssaforecastsequenceEPNS_8ssamodelEPNS_9ae_vectorEllbS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i1 noundef zeroext %4, ptr noundef %5, ptr noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  store i64 %3, ptr %11, align 8, !tbaa !9
  %20 = zext i1 %4 to i8
  store i8 %20, ptr %12, align 1, !tbaa !11
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %21 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %21)
  %22 = load i64, ptr %10, align 8, !tbaa !9
  %23 = icmp sge i64 %22, 1
  %24 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef @.str.257, ptr noundef %24)
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 0
  %27 = load i64, ptr %26, align 8, !tbaa !13
  %28 = load i64, ptr %10, align 8, !tbaa !9
  %29 = icmp sge i64 %27, %28
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.258, ptr noundef %30)
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = load i64, ptr %10, align 8, !tbaa !9
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  %34 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %32, ptr noundef %33)
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef @.str.259, ptr noundef %35)
  %36 = load i64, ptr %11, align 8, !tbaa !9
  %37 = icmp sge i64 %36, 1
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %37, ptr noundef @.str.260, ptr noundef %38)
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %39, i32 0, i32 4
  %41 = load i64, ptr %40, align 8, !tbaa !16
  store i64 %41, ptr %18, align 8, !tbaa !9
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  %43 = load i64, ptr %11, align 8, !tbaa !9
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %42, i64 noundef %43, ptr noundef %44)
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %45, ptr noundef %46)
  br i1 %47, label %48, label %52

48:                                               ; preds = %7
  %49 = load i64, ptr %10, align 8, !tbaa !9
  %50 = load i64, ptr %18, align 8, !tbaa !9
  %51 = icmp slt i64 %49, %50
  br i1 %51, label %52, label %68

52:                                               ; preds = %48, %7
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %53

53:                                               ; preds = %64, %52
  %54 = load i64, ptr %15, align 8, !tbaa !9
  %55 = load i64, ptr %11, align 8, !tbaa !9
  %56 = sub nsw i64 %55, 1
  %57 = icmp sle i64 %54, %56
  br i1 %57, label %58, label %67

58:                                               ; preds = %53
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %59, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !26
  %62 = load i64, ptr %15, align 8, !tbaa !9
  %63 = getelementptr inbounds double, ptr %61, i64 %62
  store double 0.000000e+00, ptr %63, align 8, !tbaa !27
  br label %64

64:                                               ; preds = %58
  %65 = load i64, ptr %15, align 8, !tbaa !9
  %66 = add nsw i64 %65, 1
  store i64 %66, ptr %15, align 8, !tbaa !9
  br label %53, !llvm.loop !28

67:                                               ; preds = %53
  store i32 1, ptr %19, align 4
  br label %316

68:                                               ; preds = %48
  %69 = load i64, ptr %18, align 8, !tbaa !9
  %70 = icmp eq i64 %69, 1
  br i1 %70, label %71, label %94

71:                                               ; preds = %68
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %72

72:                                               ; preds = %90, %71
  %73 = load i64, ptr %15, align 8, !tbaa !9
  %74 = load i64, ptr %11, align 8, !tbaa !9
  %75 = sub nsw i64 %74, 1
  %76 = icmp sle i64 %73, %75
  br i1 %76, label %77, label %93

77:                                               ; preds = %72
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !26
  %81 = load i64, ptr %10, align 8, !tbaa !9
  %82 = sub nsw i64 %81, 1
  %83 = getelementptr inbounds double, ptr %80, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !27
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %85, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !26
  %88 = load i64, ptr %15, align 8, !tbaa !9
  %89 = getelementptr inbounds double, ptr %87, i64 %88
  store double %84, ptr %89, align 8, !tbaa !27
  br label %90

90:                                               ; preds = %77
  %91 = load i64, ptr %15, align 8, !tbaa !9
  %92 = add nsw i64 %91, 1
  store i64 %92, ptr %15, align 8, !tbaa !9
  br label %72, !llvm.loop !30

93:                                               ; preds = %72
  store i32 1, ptr %19, align 4
  br label %316

94:                                               ; preds = %68
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef %95, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %96)
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %97, i32 0, i32 17
  %99 = load i64, ptr %98, align 8, !tbaa !31
  %100 = load i64, ptr %18, align 8, !tbaa !9
  %101 = icmp sle i64 %99, %100
  br i1 %101, label %102, label %107

102:                                              ; preds = %94
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %103, i32 0, i32 17
  %105 = load i64, ptr %104, align 8, !tbaa !31
  %106 = icmp sgt i64 %105, 0
  br label %107

107:                                              ; preds = %102, %94
  %108 = phi i1 [ false, %94 ], [ %106, %102 ]
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %108, ptr noundef @.str.256, ptr noundef %109)
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %110, i32 0, i32 17
  %112 = load i64, ptr %111, align 8, !tbaa !31
  %113 = load i64, ptr %18, align 8, !tbaa !9
  %114 = icmp eq i64 %112, %113
  br i1 %114, label %115, label %138

115:                                              ; preds = %107
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %116

116:                                              ; preds = %134, %115
  %117 = load i64, ptr %15, align 8, !tbaa !9
  %118 = load i64, ptr %11, align 8, !tbaa !9
  %119 = sub nsw i64 %118, 1
  %120 = icmp sle i64 %117, %119
  br i1 %120, label %121, label %137

121:                                              ; preds = %116
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !26
  %125 = load i64, ptr %10, align 8, !tbaa !9
  %126 = sub nsw i64 %125, 1
  %127 = getelementptr inbounds double, ptr %124, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !27
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %129, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !26
  %132 = load i64, ptr %15, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %131, i64 %132
  store double %128, ptr %133, align 8, !tbaa !27
  br label %134

134:                                              ; preds = %121
  %135 = load i64, ptr %15, align 8, !tbaa !9
  %136 = add nsw i64 %135, 1
  store i64 %136, ptr %15, align 8, !tbaa !9
  br label %116, !llvm.loop !32

137:                                              ; preds = %116
  store i32 1, ptr %19, align 4
  br label %316

138:                                              ; preds = %107
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %139, i32 0, i32 34
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %141, i32 0, i32 4
  %143 = load i64, ptr %142, align 8, !tbaa !16
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %140, i64 noundef %143, ptr noundef %144)
  %145 = load i8, ptr %12, align 1, !tbaa !11, !range !33, !noundef !34
  %146 = trunc i8 %145 to i1
  br i1 %146, label %147, label %182

147:                                              ; preds = %138
  %148 = load i64, ptr %10, align 8, !tbaa !9
  %149 = load i64, ptr %18, align 8, !tbaa !9
  %150 = icmp sge i64 %148, %149
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %150, ptr noundef @.str.261, ptr noundef %151)
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %152, i32 0, i32 26
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %154, i32 0, i32 17
  %156 = load i64, ptr %155, align 8, !tbaa !31
  %157 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %153, i64 noundef %156, ptr noundef %157)
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %158, i32 0, i32 17
  %160 = load i64, ptr %159, align 8, !tbaa !31
  %161 = load i64, ptr %18, align 8, !tbaa !9
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %162, i32 0, i32 14
  %164 = load ptr, ptr %9, align 8, !tbaa !5
  %165 = load i64, ptr %10, align 8, !tbaa !9
  %166 = load i64, ptr %18, align 8, !tbaa !9
  %167 = sub nsw i64 %165, %166
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %168, i32 0, i32 26
  %170 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemvElldPNS_9ae_matrixElllPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %160, i64 noundef %161, double noundef 1.000000e+00, ptr noundef %163, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %164, i64 noundef %167, double noundef 0.000000e+00, ptr noundef %169, i64 noundef 0, ptr noundef %170)
  %171 = load i64, ptr %18, align 8, !tbaa !9
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %172, i32 0, i32 17
  %174 = load i64, ptr %173, align 8, !tbaa !31
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %175, i32 0, i32 13
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %177, i32 0, i32 26
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %179, i32 0, i32 34
  %181 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemvElldPNS_9ae_matrixElllPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %171, i64 noundef %174, double noundef 1.000000e+00, ptr noundef %176, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %178, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %180, i64 noundef 0, ptr noundef %181)
  br label %209

182:                                              ; preds = %138
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %183

183:                                              ; preds = %205, %182
  %184 = load i64, ptr %15, align 8, !tbaa !9
  %185 = load i64, ptr %18, align 8, !tbaa !9
  %186 = sub nsw i64 %185, 1
  %187 = icmp sle i64 %184, %186
  br i1 %187, label %188, label %208

188:                                              ; preds = %183
  %189 = load ptr, ptr %9, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %189, i32 0, i32 4
  %191 = load ptr, ptr %190, align 8, !tbaa !26
  %192 = load i64, ptr %10, align 8, !tbaa !9
  %193 = load i64, ptr %15, align 8, !tbaa !9
  %194 = add nsw i64 %192, %193
  %195 = load i64, ptr %18, align 8, !tbaa !9
  %196 = sub nsw i64 %194, %195
  %197 = getelementptr inbounds double, ptr %191, i64 %196
  %198 = load double, ptr %197, align 8, !tbaa !27
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %199, i32 0, i32 34
  %201 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %200, i32 0, i32 4
  %202 = load ptr, ptr %201, align 8, !tbaa !26
  %203 = load i64, ptr %15, align 8, !tbaa !9
  %204 = getelementptr inbounds double, ptr %202, i64 %203
  store double %198, ptr %204, align 8, !tbaa !27
  br label %205

205:                                              ; preds = %188
  %206 = load i64, ptr %15, align 8, !tbaa !9
  %207 = add nsw i64 %206, 1
  store i64 %207, ptr %15, align 8, !tbaa !9
  br label %183, !llvm.loop !35

208:                                              ; preds = %183
  br label %209

209:                                              ; preds = %208, %147
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %210, i32 0, i32 27
  %212 = load i64, ptr %18, align 8, !tbaa !9
  %213 = sub nsw i64 %212, 1
  %214 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %211, i64 noundef %213, ptr noundef %214)
  store i64 1, ptr %15, align 8, !tbaa !9
  br label %215

215:                                              ; preds = %235, %209
  %216 = load i64, ptr %15, align 8, !tbaa !9
  %217 = load i64, ptr %18, align 8, !tbaa !9
  %218 = sub nsw i64 %217, 1
  %219 = icmp sle i64 %216, %218
  br i1 %219, label %220, label %238

220:                                              ; preds = %215
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %221, i32 0, i32 34
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %222, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !26
  %225 = load i64, ptr %15, align 8, !tbaa !9
  %226 = getelementptr inbounds double, ptr %224, i64 %225
  %227 = load double, ptr %226, align 8, !tbaa !27
  %228 = load ptr, ptr %8, align 8, !tbaa !5
  %229 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %228, i32 0, i32 27
  %230 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %229, i32 0, i32 4
  %231 = load ptr, ptr %230, align 8, !tbaa !26
  %232 = load i64, ptr %15, align 8, !tbaa !9
  %233 = sub nsw i64 %232, 1
  %234 = getelementptr inbounds double, ptr %231, i64 %233
  store double %227, ptr %234, align 8, !tbaa !27
  br label %235

235:                                              ; preds = %220
  %236 = load i64, ptr %15, align 8, !tbaa !9
  %237 = add nsw i64 %236, 1
  store i64 %237, ptr %15, align 8, !tbaa !9
  br label %215, !llvm.loop !36

238:                                              ; preds = %215
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %239

239:                                              ; preds = %312, %238
  %240 = load i64, ptr %15, align 8, !tbaa !9
  %241 = load i64, ptr %11, align 8, !tbaa !9
  %242 = sub nsw i64 %241, 1
  %243 = icmp sle i64 %240, %242
  br i1 %243, label %244, label %315

244:                                              ; preds = %239
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  %246 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %245, i32 0, i32 16
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %246, i32 0, i32 4
  %248 = load ptr, ptr %247, align 8, !tbaa !26
  %249 = getelementptr inbounds double, ptr %248, i64 0
  %250 = load double, ptr %249, align 8, !tbaa !27
  %251 = load ptr, ptr %8, align 8, !tbaa !5
  %252 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %251, i32 0, i32 27
  %253 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %252, i32 0, i32 4
  %254 = load ptr, ptr %253, align 8, !tbaa !26
  %255 = getelementptr inbounds double, ptr %254, i64 0
  %256 = load double, ptr %255, align 8, !tbaa !27
  %257 = fmul double %250, %256
  store double %257, ptr %17, align 8, !tbaa !27
  store i64 1, ptr %16, align 8, !tbaa !9
  br label %258

258:                                              ; preds = %294, %244
  %259 = load i64, ptr %16, align 8, !tbaa !9
  %260 = load i64, ptr %18, align 8, !tbaa !9
  %261 = sub nsw i64 %260, 2
  %262 = icmp sle i64 %259, %261
  br i1 %262, label %263, label %297

263:                                              ; preds = %258
  %264 = load double, ptr %17, align 8, !tbaa !27
  %265 = load ptr, ptr %8, align 8, !tbaa !5
  %266 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %265, i32 0, i32 16
  %267 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %266, i32 0, i32 4
  %268 = load ptr, ptr %267, align 8, !tbaa !26
  %269 = load i64, ptr %16, align 8, !tbaa !9
  %270 = getelementptr inbounds double, ptr %268, i64 %269
  %271 = load double, ptr %270, align 8, !tbaa !27
  %272 = load ptr, ptr %8, align 8, !tbaa !5
  %273 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %272, i32 0, i32 27
  %274 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %273, i32 0, i32 4
  %275 = load ptr, ptr %274, align 8, !tbaa !26
  %276 = load i64, ptr %16, align 8, !tbaa !9
  %277 = getelementptr inbounds double, ptr %275, i64 %276
  %278 = load double, ptr %277, align 8, !tbaa !27
  %279 = call double @llvm.fmuladd.f64(double %271, double %278, double %264)
  store double %279, ptr %17, align 8, !tbaa !27
  %280 = load ptr, ptr %8, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %280, i32 0, i32 27
  %282 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %281, i32 0, i32 4
  %283 = load ptr, ptr %282, align 8, !tbaa !26
  %284 = load i64, ptr %16, align 8, !tbaa !9
  %285 = getelementptr inbounds double, ptr %283, i64 %284
  %286 = load double, ptr %285, align 8, !tbaa !27
  %287 = load ptr, ptr %8, align 8, !tbaa !5
  %288 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %287, i32 0, i32 27
  %289 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %288, i32 0, i32 4
  %290 = load ptr, ptr %289, align 8, !tbaa !26
  %291 = load i64, ptr %16, align 8, !tbaa !9
  %292 = sub nsw i64 %291, 1
  %293 = getelementptr inbounds double, ptr %290, i64 %292
  store double %286, ptr %293, align 8, !tbaa !27
  br label %294

294:                                              ; preds = %263
  %295 = load i64, ptr %16, align 8, !tbaa !9
  %296 = add nsw i64 %295, 1
  store i64 %296, ptr %16, align 8, !tbaa !9
  br label %258, !llvm.loop !37

297:                                              ; preds = %258
  %298 = load double, ptr %17, align 8, !tbaa !27
  %299 = load ptr, ptr %13, align 8, !tbaa !5
  %300 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %299, i32 0, i32 4
  %301 = load ptr, ptr %300, align 8, !tbaa !26
  %302 = load i64, ptr %15, align 8, !tbaa !9
  %303 = getelementptr inbounds double, ptr %301, i64 %302
  store double %298, ptr %303, align 8, !tbaa !27
  %304 = load double, ptr %17, align 8, !tbaa !27
  %305 = load ptr, ptr %8, align 8, !tbaa !5
  %306 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %305, i32 0, i32 27
  %307 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %306, i32 0, i32 4
  %308 = load ptr, ptr %307, align 8, !tbaa !26
  %309 = load i64, ptr %18, align 8, !tbaa !9
  %310 = sub nsw i64 %309, 2
  %311 = getelementptr inbounds double, ptr %308, i64 %310
  store double %304, ptr %311, align 8, !tbaa !27
  br label %312

312:                                              ; preds = %297
  %313 = load i64, ptr %15, align 8, !tbaa !9
  %314 = add nsw i64 %313, 1
  store i64 %314, ptr %15, align 8, !tbaa !9
  br label %239, !llvm.loop !38

315:                                              ; preds = %239
  store i32 0, ptr %19, align 4
  br label %316

316:                                              ; preds = %315, %137, %93, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %317 = load i32, ptr %19, align 4
  switch i32 %317, label %319 [
    i32 0, label %318
    i32 1, label %318
  ]

318:                                              ; preds = %316, %316
  ret void

319:                                              ; preds = %316
  unreachable
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef) #2

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !12, i64 16, !15, i64 24, !7, i64 56}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!17, !10, i64 144}
!17 = !{!"_ZTSN11alglib_impl8ssamodelE", !10, i64 0, !14, i64 8, !14, i64 72, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !18, i64 184, !10, i64 264, !10, i64 272, !12, i64 280, !18, i64 288, !18, i64 368, !14, i64 448, !14, i64 512, !10, i64 576, !19, i64 584, !18, i64 2968, !21, i64 3048, !10, i64 3072, !14, i64 3080, !10, i64 3144, !10, i64 3152, !10, i64 3160, !14, i64 3168, !14, i64 3232, !25, i64 3296, !14, i64 3304, !14, i64 3368, !18, i64 3432, !18, i64 3512, !14, i64 3592, !14, i64 3656, !14, i64 3720, !18, i64 3784, !18, i64 3864, !10, i64 3944, !10, i64 3952, !10, i64 3960}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !15, i64 40, !7, i64 72}
!19 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !20, i64 32, !10, i64 40, !10, i64 48, !12, i64 56, !12, i64 57, !21, i64 64, !12, i64 88, !14, i64 96, !18, i64 160, !18, i64 240, !18, i64 320, !18, i64 400, !18, i64 480, !18, i64 560, !18, i64 640, !18, i64 720, !18, i64 800, !14, i64 880, !14, i64 944, !14, i64 1008, !14, i64 1072, !14, i64 1136, !22, i64 1200, !18, i64 1936, !18, i64 2016, !10, i64 2096, !10, i64 2104, !10, i64 2112, !23, i64 2120}
!20 = !{!"double", !7, i64 0}
!21 = !{!"_ZTSN11alglib_impl10hqrndstateE", !10, i64 0, !10, i64 8, !10, i64 16}
!22 = !{!"_ZTSN11alglib_impl9apbuffersE", !14, i64 0, !14, i64 64, !14, i64 128, !14, i64 192, !14, i64 256, !14, i64 320, !14, i64 384, !14, i64 448, !14, i64 512, !18, i64 576, !18, i64 656}
!23 = !{!"_ZTSN11alglib_impl10rcommstateE", !24, i64 0, !14, i64 8, !14, i64 72, !14, i64 136, !14, i64 200}
!24 = !{!"int", !7, i64 0}
!25 = !{!"_ZTSN11alglib_impl17eigsubspacereportE", !10, i64 0}
!26 = !{!7, !7, i64 0}
!27 = !{!20, !20, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = !{!17, !10, i64 576}
!32 = distinct !{!32, !29}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = distinct !{!35, !29}
!36 = distinct !{!36, !29}
!37 = distinct !{!37, !29}
!38 = distinct !{!38, !29}


; 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.256 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.260 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.261 = external hidden unnamed_addr constant [44 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_impl19ssaforecastsequenceEPNS_8ssamodelEPNS_9ae_vectorEllbS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i1 noundef zeroext %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %5)
  %8 = icmp sgt i64 %2, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.257, ptr noundef %6)
  %9 = load i64, ptr %1, align 8, !tbaa !5
  %10 = icmp sge i64 %9, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.258, ptr noundef %6)
  %11 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, ptr noundef %6)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.259, ptr noundef %6)
  %12 = icmp sgt i64 %3, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef nonnull @.str.260, ptr noundef %6)
  %13 = getelementptr inbounds i8, ptr %0, i64 144
  %14 = load i64, ptr %13, align 8, !tbaa !13
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %5, i64 noundef %3, ptr noundef %6)
  %15 = tail call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %0, ptr noundef %6)
  %16 = icmp sle i64 %14, %2
  %or.cond.not = select i1 %15, i1 %16, i1 false
  br i1 %or.cond.not, label %32, label %.preheader134

.preheader134:                                    ; preds = %7
  br i1 %12, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader134
  %17 = getelementptr inbounds i8, ptr %5, i64 56
  %xtraiter = and i64 %3, 3
  %18 = icmp ult i64 %3, 4
  br i1 %18, label %.loopexit.loopexit181.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %3, 9223372036854775804
  br label %19

19:                                               ; preds = %19, %.lr.ph.new
  %.0137 = phi i64 [ 0, %.lr.ph.new ], [ %31, %19 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %19 ]
  %20 = load ptr, ptr %17, align 8, !tbaa !23
  %21 = getelementptr inbounds double, ptr %20, i64 %.0137
  store double 0.000000e+00, ptr %21, align 8, !tbaa !24
  %22 = or disjoint i64 %.0137, 1
  %23 = load ptr, ptr %17, align 8, !tbaa !23
  %24 = getelementptr inbounds double, ptr %23, i64 %22
  store double 0.000000e+00, ptr %24, align 8, !tbaa !24
  %25 = or disjoint i64 %.0137, 2
  %26 = load ptr, ptr %17, align 8, !tbaa !23
  %27 = getelementptr inbounds double, ptr %26, i64 %25
  store double 0.000000e+00, ptr %27, align 8, !tbaa !24
  %28 = or disjoint i64 %.0137, 3
  %29 = load ptr, ptr %17, align 8, !tbaa !23
  %30 = getelementptr inbounds double, ptr %29, i64 %28
  store double 0.000000e+00, ptr %30, align 8, !tbaa !24
  %31 = add nuw nsw i64 %.0137, 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 %.loopexit.loopexit181.unr-lcssa, label %19, !llvm.loop !25

32:                                               ; preds = %7
  %33 = icmp eq i64 %14, 1
  br i1 %33, label %.preheader, label %66

.preheader:                                       ; preds = %32
  br i1 %12, label %.lr.ph157, label %.loopexit

.lr.ph157:                                        ; preds = %.preheader
  %34 = getelementptr inbounds i8, ptr %1, i64 56
  %35 = getelementptr inbounds i8, ptr %5, i64 56
  %xtraiter213 = and i64 %3, 3
  %36 = icmp ult i64 %3, 4
  br i1 %36, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph157.new

.lr.ph157.new:                                    ; preds = %.lr.ph157
  %unroll_iter216 = and i64 %3, 9223372036854775804
  br label %37

37:                                               ; preds = %37, %.lr.ph157.new
  %.1156 = phi i64 [ 0, %.lr.ph157.new ], [ %65, %37 ]
  %niter217 = phi i64 [ 0, %.lr.ph157.new ], [ %niter217.next.3, %37 ]
  %38 = load ptr, ptr %34, align 8, !tbaa !23
  %39 = getelementptr double, ptr %38, i64 %2
  %40 = getelementptr i8, ptr %39, i64 -8
  %41 = load double, ptr %40, align 8, !tbaa !24
  %42 = load ptr, ptr %35, align 8, !tbaa !23
  %43 = getelementptr inbounds double, ptr %42, i64 %.1156
  store double %41, ptr %43, align 8, !tbaa !24
  %44 = or disjoint i64 %.1156, 1
  %45 = load ptr, ptr %34, align 8, !tbaa !23
  %46 = getelementptr double, ptr %45, i64 %2
  %47 = getelementptr i8, ptr %46, i64 -8
  %48 = load double, ptr %47, align 8, !tbaa !24
  %49 = load ptr, ptr %35, align 8, !tbaa !23
  %50 = getelementptr inbounds double, ptr %49, i64 %44
  store double %48, ptr %50, align 8, !tbaa !24
  %51 = or disjoint i64 %.1156, 2
  %52 = load ptr, ptr %34, align 8, !tbaa !23
  %53 = getelementptr double, ptr %52, i64 %2
  %54 = getelementptr i8, ptr %53, i64 -8
  %55 = load double, ptr %54, align 8, !tbaa !24
  %56 = load ptr, ptr %35, align 8, !tbaa !23
  %57 = getelementptr inbounds double, ptr %56, i64 %51
  store double %55, ptr %57, align 8, !tbaa !24
  %58 = or disjoint i64 %.1156, 3
  %59 = load ptr, ptr %34, align 8, !tbaa !23
  %60 = getelementptr double, ptr %59, i64 %2
  %61 = getelementptr i8, ptr %60, i64 -8
  %62 = load double, ptr %61, align 8, !tbaa !24
  %63 = load ptr, ptr %35, align 8, !tbaa !23
  %64 = getelementptr inbounds double, ptr %63, i64 %58
  store double %62, ptr %64, align 8, !tbaa !24
  %65 = add nuw nsw i64 %.1156, 4
  %niter217.next.3 = add i64 %niter217, 4
  %niter217.ncmp.3 = icmp eq i64 %niter217.next.3, %unroll_iter216
  br i1 %niter217.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %37, !llvm.loop !27

66:                                               ; preds = %32
  tail call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %6)
  %67 = getelementptr inbounds i8, ptr %0, i64 576
  %68 = load i64, ptr %67, align 8, !tbaa !28
  %.not = icmp sle i64 %68, %14
  %69 = icmp sgt i64 %68, 0
  %spec.select = and i1 %.not, %69
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.256, ptr noundef %6)
  %70 = load i64, ptr %67, align 8, !tbaa !28
  %71 = icmp eq i64 %70, %14
  br i1 %71, label %.preheader128, label %104

.preheader128:                                    ; preds = %66
  br i1 %12, label %.lr.ph154, label %.loopexit

.lr.ph154:                                        ; preds = %.preheader128
  %72 = getelementptr inbounds i8, ptr %1, i64 56
  %73 = getelementptr inbounds i8, ptr %5, i64 56
  %xtraiter207 = and i64 %3, 3
  %74 = icmp ult i64 %3, 4
  br i1 %74, label %.loopexit.loopexit178.unr-lcssa, label %.lr.ph154.new

.lr.ph154.new:                                    ; preds = %.lr.ph154
  %unroll_iter210 = and i64 %3, 9223372036854775804
  br label %75

75:                                               ; preds = %75, %.lr.ph154.new
  %.2153 = phi i64 [ 0, %.lr.ph154.new ], [ %103, %75 ]
  %niter211 = phi i64 [ 0, %.lr.ph154.new ], [ %niter211.next.3, %75 ]
  %76 = load ptr, ptr %72, align 8, !tbaa !23
  %77 = getelementptr double, ptr %76, i64 %2
  %78 = getelementptr i8, ptr %77, i64 -8
  %79 = load double, ptr %78, align 8, !tbaa !24
  %80 = load ptr, ptr %73, align 8, !tbaa !23
  %81 = getelementptr inbounds double, ptr %80, i64 %.2153
  store double %79, ptr %81, align 8, !tbaa !24
  %82 = or disjoint i64 %.2153, 1
  %83 = load ptr, ptr %72, align 8, !tbaa !23
  %84 = getelementptr double, ptr %83, i64 %2
  %85 = getelementptr i8, ptr %84, i64 -8
  %86 = load double, ptr %85, align 8, !tbaa !24
  %87 = load ptr, ptr %73, align 8, !tbaa !23
  %88 = getelementptr inbounds double, ptr %87, i64 %82
  store double %86, ptr %88, align 8, !tbaa !24
  %89 = or disjoint i64 %.2153, 2
  %90 = load ptr, ptr %72, align 8, !tbaa !23
  %91 = getelementptr double, ptr %90, i64 %2
  %92 = getelementptr i8, ptr %91, i64 -8
  %93 = load double, ptr %92, align 8, !tbaa !24
  %94 = load ptr, ptr %73, align 8, !tbaa !23
  %95 = getelementptr inbounds double, ptr %94, i64 %89
  store double %93, ptr %95, align 8, !tbaa !24
  %96 = or disjoint i64 %.2153, 3
  %97 = load ptr, ptr %72, align 8, !tbaa !23
  %98 = getelementptr double, ptr %97, i64 %2
  %99 = getelementptr i8, ptr %98, i64 -8
  %100 = load double, ptr %99, align 8, !tbaa !24
  %101 = load ptr, ptr %73, align 8, !tbaa !23
  %102 = getelementptr inbounds double, ptr %101, i64 %96
  store double %100, ptr %102, align 8, !tbaa !24
  %103 = add nuw nsw i64 %.2153, 4
  %niter211.next.3 = add i64 %niter211, 4
  %niter211.ncmp.3 = icmp eq i64 %niter211.next.3, %unroll_iter210
  br i1 %niter211.ncmp.3, label %.loopexit.loopexit178.unr-lcssa, label %75, !llvm.loop !29

104:                                              ; preds = %66
  %105 = getelementptr inbounds i8, ptr %0, i64 3656
  %106 = load i64, ptr %13, align 8, !tbaa !13
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %105, i64 noundef %106, ptr noundef %6)
  br i1 %4, label %113, label %.preheader132

.preheader132:                                    ; preds = %104
  %.not119.not138 = icmp sgt i64 %14, 0
  br i1 %.not119.not138, label %.lr.ph140, label %.loopexit133.thread

.loopexit133.thread:                              ; preds = %.preheader132
  %107 = getelementptr inbounds i8, ptr %0, i64 3232
  %108 = add i64 %14, -1
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %107, i64 noundef %108, ptr noundef %6)
  br label %.preheader130

.lr.ph140:                                        ; preds = %.preheader132
  %109 = getelementptr inbounds i8, ptr %1, i64 56
  %110 = sub i64 %2, %14
  %111 = getelementptr inbounds i8, ptr %0, i64 3712
  %xtraiter183 = and i64 %14, 3
  %112 = icmp ult i64 %14, 4
  br i1 %112, label %.loopexit133.loopexit.unr-lcssa, label %.lr.ph140.new

.lr.ph140.new:                                    ; preds = %.lr.ph140
  %unroll_iter186 = and i64 %14, 9223372036854775804
  br label %121

113:                                              ; preds = %104
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext true, ptr noundef nonnull @.str.261, ptr noundef %6)
  %114 = getelementptr inbounds i8, ptr %0, i64 3168
  %115 = load i64, ptr %67, align 8, !tbaa !28
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %114, i64 noundef %115, ptr noundef %6)
  %116 = load i64, ptr %67, align 8, !tbaa !28
  %117 = getelementptr inbounds i8, ptr %0, i64 368
  %118 = sub nsw i64 %2, %14
  tail call void @_ZN11alglib_impl11rmatrixgemvElldPNS_9ae_matrixElllPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %116, i64 noundef %14, double noundef 1.000000e+00, ptr noundef nonnull %117, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %1, i64 noundef %118, double noundef 0.000000e+00, ptr noundef nonnull %114, i64 noundef 0, ptr noundef %6)
  %119 = load i64, ptr %67, align 8, !tbaa !28
  %120 = getelementptr inbounds i8, ptr %0, i64 288
  tail call void @_ZN11alglib_impl11rmatrixgemvElldPNS_9ae_matrixElllPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %14, i64 noundef %119, double noundef 1.000000e+00, ptr noundef nonnull %120, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %114, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %105, i64 noundef 0, ptr noundef %6)
  br label %.loopexit133

121:                                              ; preds = %121, %.lr.ph140.new
  %.3139 = phi i64 [ 0, %.lr.ph140.new ], [ %149, %121 ]
  %niter187 = phi i64 [ 0, %.lr.ph140.new ], [ %niter187.next.3, %121 ]
  %122 = load ptr, ptr %109, align 8, !tbaa !23
  %123 = getelementptr double, ptr %122, i64 %110
  %124 = getelementptr double, ptr %123, i64 %.3139
  %125 = load double, ptr %124, align 8, !tbaa !24
  %126 = load ptr, ptr %111, align 8, !tbaa !23
  %127 = getelementptr inbounds double, ptr %126, i64 %.3139
  store double %125, ptr %127, align 8, !tbaa !24
  %128 = or disjoint i64 %.3139, 1
  %129 = load ptr, ptr %109, align 8, !tbaa !23
  %130 = getelementptr double, ptr %129, i64 %110
  %131 = getelementptr double, ptr %130, i64 %128
  %132 = load double, ptr %131, align 8, !tbaa !24
  %133 = load ptr, ptr %111, align 8, !tbaa !23
  %134 = getelementptr inbounds double, ptr %133, i64 %128
  store double %132, ptr %134, align 8, !tbaa !24
  %135 = or disjoint i64 %.3139, 2
  %136 = load ptr, ptr %109, align 8, !tbaa !23
  %137 = getelementptr double, ptr %136, i64 %110
  %138 = getelementptr double, ptr %137, i64 %135
  %139 = load double, ptr %138, align 8, !tbaa !24
  %140 = load ptr, ptr %111, align 8, !tbaa !23
  %141 = getelementptr inbounds double, ptr %140, i64 %135
  store double %139, ptr %141, align 8, !tbaa !24
  %142 = or disjoint i64 %.3139, 3
  %143 = load ptr, ptr %109, align 8, !tbaa !23
  %144 = getelementptr double, ptr %143, i64 %110
  %145 = getelementptr double, ptr %144, i64 %142
  %146 = load double, ptr %145, align 8, !tbaa !24
  %147 = load ptr, ptr %111, align 8, !tbaa !23
  %148 = getelementptr inbounds double, ptr %147, i64 %142
  store double %146, ptr %148, align 8, !tbaa !24
  %149 = add nuw nsw i64 %.3139, 4
  %niter187.next.3 = add i64 %niter187, 4
  %niter187.ncmp.3 = icmp eq i64 %niter187.next.3, %unroll_iter186
  br i1 %niter187.ncmp.3, label %.loopexit133.loopexit.unr-lcssa, label %121, !llvm.loop !30

.loopexit133.loopexit.unr-lcssa:                  ; preds = %121, %.lr.ph140
  %.3139.unr = phi i64 [ 0, %.lr.ph140 ], [ %149, %121 ]
  %lcmp.mod185.not = icmp eq i64 %xtraiter183, 0
  br i1 %lcmp.mod185.not, label %.loopexit133, label %.epil.preheader182

.epil.preheader182:                               ; preds = %.loopexit133.loopexit.unr-lcssa, %.epil.preheader182
  %.3139.epil = phi i64 [ %156, %.epil.preheader182 ], [ %.3139.unr, %.loopexit133.loopexit.unr-lcssa ]
  %epil.iter184 = phi i64 [ %epil.iter184.next, %.epil.preheader182 ], [ 0, %.loopexit133.loopexit.unr-lcssa ]
  %150 = load ptr, ptr %109, align 8, !tbaa !23
  %151 = getelementptr double, ptr %150, i64 %110
  %152 = getelementptr double, ptr %151, i64 %.3139.epil
  %153 = load double, ptr %152, align 8, !tbaa !24
  %154 = load ptr, ptr %111, align 8, !tbaa !23
  %155 = getelementptr inbounds double, ptr %154, i64 %.3139.epil
  store double %153, ptr %155, align 8, !tbaa !24
  %156 = add nuw nsw i64 %.3139.epil, 1
  %epil.iter184.next = add i64 %epil.iter184, 1
  %epil.iter184.cmp.not = icmp eq i64 %epil.iter184.next, %xtraiter183
  br i1 %epil.iter184.cmp.not, label %.loopexit133, label %.epil.preheader182, !llvm.loop !31

.loopexit133:                                     ; preds = %.loopexit133.loopexit.unr-lcssa, %.epil.preheader182, %113
  %157 = getelementptr inbounds i8, ptr %0, i64 3232
  %158 = add i64 %14, -1
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %157, i64 noundef %158, ptr noundef %6)
  %.not120.not141 = icmp sgt i64 %14, 1
  br i1 %.not120.not141, label %.lr.ph143, label %.preheader130

.lr.ph143:                                        ; preds = %.loopexit133
  %159 = getelementptr inbounds i8, ptr %0, i64 3712
  %160 = getelementptr inbounds i8, ptr %0, i64 3288
  %161 = add nsw i64 %14, -1
  %162 = add nsw i64 %14, -2
  %xtraiter189 = and i64 %161, 3
  %163 = icmp ult i64 %162, 3
  br i1 %163, label %.preheader130.loopexit.unr-lcssa, label %.lr.ph143.new

.lr.ph143.new:                                    ; preds = %.lr.ph143
  %unroll_iter192 = and i64 %161, -4
  br label %199

.preheader130.loopexit.unr-lcssa:                 ; preds = %199, %.lr.ph143
  %.4142.unr = phi i64 [ 1, %.lr.ph143 ], [ %227, %199 ]
  %lcmp.mod191.not = icmp eq i64 %xtraiter189, 0
  br i1 %lcmp.mod191.not, label %.preheader130, label %.epil.preheader188

.epil.preheader188:                               ; preds = %.preheader130.loopexit.unr-lcssa, %.epil.preheader188
  %.4142.epil = phi i64 [ %170, %.epil.preheader188 ], [ %.4142.unr, %.preheader130.loopexit.unr-lcssa ]
  %epil.iter190 = phi i64 [ %epil.iter190.next, %.epil.preheader188 ], [ 0, %.preheader130.loopexit.unr-lcssa ]
  %164 = load ptr, ptr %159, align 8, !tbaa !23
  %165 = getelementptr inbounds double, ptr %164, i64 %.4142.epil
  %166 = load double, ptr %165, align 8, !tbaa !24
  %167 = load ptr, ptr %160, align 8, !tbaa !23
  %168 = getelementptr double, ptr %167, i64 %.4142.epil
  %169 = getelementptr i8, ptr %168, i64 -8
  store double %166, ptr %169, align 8, !tbaa !24
  %170 = add nuw nsw i64 %.4142.epil, 1
  %epil.iter190.next = add i64 %epil.iter190, 1
  %epil.iter190.cmp.not = icmp eq i64 %epil.iter190.next, %xtraiter189
  br i1 %epil.iter190.cmp.not, label %.preheader130, label %.epil.preheader188, !llvm.loop !33

.preheader130:                                    ; preds = %.preheader130.loopexit.unr-lcssa, %.epil.preheader188, %.loopexit133.thread, %.loopexit133
  %171 = phi i64 [ %108, %.loopexit133.thread ], [ %158, %.loopexit133 ], [ %158, %.epil.preheader188 ], [ %158, %.preheader130.loopexit.unr-lcssa ]
  br i1 %12, label %.lr.ph151, label %.loopexit

.lr.ph151:                                        ; preds = %.preheader130
  %172 = getelementptr inbounds i8, ptr %0, i64 568
  %173 = getelementptr inbounds i8, ptr %0, i64 3288
  %174 = add nsw i64 %14, -2
  %.not122144 = icmp slt i64 %14, 3
  %175 = getelementptr inbounds i8, ptr %5, i64 56
  br i1 %.not122144, label %.lr.ph151.split.us.preheader, label %.lr.ph147.preheader

.lr.ph147.preheader:                              ; preds = %.lr.ph151
  %176 = add i64 %171, -1
  %xtraiter195 = and i64 %176, 1
  %177 = icmp eq i64 %171, 2
  %unroll_iter199 = and i64 %176, -2
  %lcmp.mod197.not = icmp eq i64 %xtraiter195, 0
  br label %.lr.ph147

.lr.ph151.split.us.preheader:                     ; preds = %.lr.ph151
  %xtraiter201 = and i64 %3, 1
  %178 = icmp eq i64 %3, 1
  br i1 %178, label %.loopexit.loopexit179.unr-lcssa, label %.lr.ph151.split.us.preheader.new

.lr.ph151.split.us.preheader.new:                 ; preds = %.lr.ph151.split.us.preheader
  %unroll_iter204 = and i64 %3, 9223372036854775806
  br label %.lr.ph151.split.us

.lr.ph151.split.us:                               ; preds = %.lr.ph151.split.us, %.lr.ph151.split.us.preheader.new
  %.5150.us = phi i64 [ 0, %.lr.ph151.split.us.preheader.new ], [ %198, %.lr.ph151.split.us ]
  %niter205 = phi i64 [ 0, %.lr.ph151.split.us.preheader.new ], [ %niter205.next.1, %.lr.ph151.split.us ]
  %179 = load ptr, ptr %172, align 8, !tbaa !23
  %180 = load double, ptr %179, align 8, !tbaa !24
  %181 = load ptr, ptr %173, align 8, !tbaa !23
  %182 = load double, ptr %181, align 8, !tbaa !24
  %183 = fmul double %180, %182
  %184 = load ptr, ptr %175, align 8, !tbaa !23
  %185 = getelementptr inbounds double, ptr %184, i64 %.5150.us
  store double %183, ptr %185, align 8, !tbaa !24
  %186 = load ptr, ptr %173, align 8, !tbaa !23
  %187 = getelementptr inbounds double, ptr %186, i64 %174
  store double %183, ptr %187, align 8, !tbaa !24
  %188 = or disjoint i64 %.5150.us, 1
  %189 = load ptr, ptr %172, align 8, !tbaa !23
  %190 = load double, ptr %189, align 8, !tbaa !24
  %191 = load ptr, ptr %173, align 8, !tbaa !23
  %192 = load double, ptr %191, align 8, !tbaa !24
  %193 = fmul double %190, %192
  %194 = load ptr, ptr %175, align 8, !tbaa !23
  %195 = getelementptr inbounds double, ptr %194, i64 %188
  store double %193, ptr %195, align 8, !tbaa !24
  %196 = load ptr, ptr %173, align 8, !tbaa !23
  %197 = getelementptr inbounds double, ptr %196, i64 %174
  store double %193, ptr %197, align 8, !tbaa !24
  %198 = add nuw nsw i64 %.5150.us, 2
  %niter205.next.1 = add i64 %niter205, 2
  %niter205.ncmp.1 = icmp eq i64 %niter205.next.1, %unroll_iter204
  br i1 %niter205.ncmp.1, label %.loopexit.loopexit179.unr-lcssa, label %.lr.ph151.split.us, !llvm.loop !34

199:                                              ; preds = %199, %.lr.ph143.new
  %.4142 = phi i64 [ 1, %.lr.ph143.new ], [ %227, %199 ]
  %niter193 = phi i64 [ 0, %.lr.ph143.new ], [ %niter193.next.3, %199 ]
  %200 = load ptr, ptr %159, align 8, !tbaa !23
  %201 = getelementptr inbounds double, ptr %200, i64 %.4142
  %202 = load double, ptr %201, align 8, !tbaa !24
  %203 = load ptr, ptr %160, align 8, !tbaa !23
  %204 = getelementptr double, ptr %203, i64 %.4142
  %205 = getelementptr i8, ptr %204, i64 -8
  store double %202, ptr %205, align 8, !tbaa !24
  %206 = add nuw nsw i64 %.4142, 1
  %207 = load ptr, ptr %159, align 8, !tbaa !23
  %208 = getelementptr inbounds double, ptr %207, i64 %206
  %209 = load double, ptr %208, align 8, !tbaa !24
  %210 = load ptr, ptr %160, align 8, !tbaa !23
  %211 = getelementptr double, ptr %210, i64 %206
  %212 = getelementptr i8, ptr %211, i64 -8
  store double %209, ptr %212, align 8, !tbaa !24
  %213 = add nuw nsw i64 %.4142, 2
  %214 = load ptr, ptr %159, align 8, !tbaa !23
  %215 = getelementptr inbounds double, ptr %214, i64 %213
  %216 = load double, ptr %215, align 8, !tbaa !24
  %217 = load ptr, ptr %160, align 8, !tbaa !23
  %218 = getelementptr double, ptr %217, i64 %213
  %219 = getelementptr i8, ptr %218, i64 -8
  store double %216, ptr %219, align 8, !tbaa !24
  %220 = add nuw nsw i64 %.4142, 3
  %221 = load ptr, ptr %159, align 8, !tbaa !23
  %222 = getelementptr inbounds double, ptr %221, i64 %220
  %223 = load double, ptr %222, align 8, !tbaa !24
  %224 = load ptr, ptr %160, align 8, !tbaa !23
  %225 = getelementptr double, ptr %224, i64 %220
  %226 = getelementptr i8, ptr %225, i64 -8
  store double %223, ptr %226, align 8, !tbaa !24
  %227 = add nuw nsw i64 %.4142, 4
  %niter193.next.3 = add i64 %niter193, 4
  %niter193.ncmp.3 = icmp eq i64 %niter193.next.3, %unroll_iter192
  br i1 %niter193.ncmp.3, label %.preheader130.loopexit.unr-lcssa, label %199, !llvm.loop !35

.lr.ph147:                                        ; preds = %.lr.ph147.preheader, %._crit_edge
  %.5150 = phi i64 [ %263, %._crit_edge ], [ 0, %.lr.ph147.preheader ]
  %228 = load ptr, ptr %172, align 8, !tbaa !23
  %229 = load double, ptr %228, align 8, !tbaa !24
  %230 = load ptr, ptr %173, align 8, !tbaa !23
  %231 = load double, ptr %230, align 8, !tbaa !24
  %232 = fmul double %229, %231
  br i1 %177, label %._crit_edge.unr-lcssa, label %.lr.ph147.new

.lr.ph147.new:                                    ; preds = %.lr.ph147, %.lr.ph147.new
  %.0113146 = phi double [ %248, %.lr.ph147.new ], [ %232, %.lr.ph147 ]
  %.0114145 = phi i64 [ %250, %.lr.ph147.new ], [ 1, %.lr.ph147 ]
  %niter200 = phi i64 [ %niter200.next.1, %.lr.ph147.new ], [ 0, %.lr.ph147 ]
  %233 = load ptr, ptr %172, align 8, !tbaa !23
  %234 = getelementptr inbounds double, ptr %233, i64 %.0114145
  %235 = load double, ptr %234, align 8, !tbaa !24
  %236 = load ptr, ptr %173, align 8, !tbaa !23
  %237 = getelementptr inbounds double, ptr %236, i64 %.0114145
  %238 = load double, ptr %237, align 8, !tbaa !24
  %239 = tail call double @llvm.fmuladd.f64(double %235, double %238, double %.0113146)
  %240 = getelementptr i8, ptr %237, i64 -8
  store double %238, ptr %240, align 8, !tbaa !24
  %241 = add nuw i64 %.0114145, 1
  %242 = load ptr, ptr %172, align 8, !tbaa !23
  %243 = getelementptr inbounds double, ptr %242, i64 %241
  %244 = load double, ptr %243, align 8, !tbaa !24
  %245 = load ptr, ptr %173, align 8, !tbaa !23
  %246 = getelementptr inbounds double, ptr %245, i64 %241
  %247 = load double, ptr %246, align 8, !tbaa !24
  %248 = tail call double @llvm.fmuladd.f64(double %244, double %247, double %239)
  %249 = getelementptr i8, ptr %246, i64 -8
  store double %247, ptr %249, align 8, !tbaa !24
  %250 = add nuw i64 %.0114145, 2
  %niter200.next.1 = add i64 %niter200, 2
  %niter200.ncmp.1 = icmp eq i64 %niter200.next.1, %unroll_iter199
  br i1 %niter200.ncmp.1, label %._crit_edge.unr-lcssa, label %.lr.ph147.new, !llvm.loop !36

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph147.new, %.lr.ph147
  %.lcssa.ph = phi double [ poison, %.lr.ph147 ], [ %248, %.lr.ph147.new ]
  %.0113146.unr = phi double [ %232, %.lr.ph147 ], [ %248, %.lr.ph147.new ]
  %.0114145.unr = phi i64 [ 1, %.lr.ph147 ], [ %250, %.lr.ph147.new ]
  br i1 %lcmp.mod197.not, label %._crit_edge, label %._crit_edge.epilog-lcssa

._crit_edge.epilog-lcssa:                         ; preds = %._crit_edge.unr-lcssa
  %251 = load ptr, ptr %172, align 8, !tbaa !23
  %252 = getelementptr inbounds double, ptr %251, i64 %.0114145.unr
  %253 = load double, ptr %252, align 8, !tbaa !24
  %254 = load ptr, ptr %173, align 8, !tbaa !23
  %255 = getelementptr inbounds double, ptr %254, i64 %.0114145.unr
  %256 = load double, ptr %255, align 8, !tbaa !24
  %257 = tail call double @llvm.fmuladd.f64(double %253, double %256, double %.0113146.unr)
  %258 = getelementptr i8, ptr %255, i64 -8
  store double %256, ptr %258, align 8, !tbaa !24
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge.unr-lcssa ], [ %257, %._crit_edge.epilog-lcssa ]
  %259 = load ptr, ptr %175, align 8, !tbaa !23
  %260 = getelementptr inbounds double, ptr %259, i64 %.5150
  store double %.lcssa, ptr %260, align 8, !tbaa !24
  %261 = load ptr, ptr %173, align 8, !tbaa !23
  %262 = getelementptr inbounds double, ptr %261, i64 %174
  store double %.lcssa, ptr %262, align 8, !tbaa !24
  %263 = add nuw nsw i64 %.5150, 1
  %exitcond165.not = icmp eq i64 %263, %3
  br i1 %exitcond165.not, label %.loopexit, label %.lr.ph147, !llvm.loop !34

.loopexit.loopexit.unr-lcssa:                     ; preds = %37, %.lr.ph157
  %.1156.unr = phi i64 [ 0, %.lr.ph157 ], [ %65, %37 ]
  %lcmp.mod215.not = icmp eq i64 %xtraiter213, 0
  br i1 %lcmp.mod215.not, label %.loopexit, label %.epil.preheader212

.epil.preheader212:                               ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader212
  %.1156.epil = phi i64 [ %270, %.epil.preheader212 ], [ %.1156.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter214 = phi i64 [ %epil.iter214.next, %.epil.preheader212 ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %264 = load ptr, ptr %34, align 8, !tbaa !23
  %265 = getelementptr double, ptr %264, i64 %2
  %266 = getelementptr i8, ptr %265, i64 -8
  %267 = load double, ptr %266, align 8, !tbaa !24
  %268 = load ptr, ptr %35, align 8, !tbaa !23
  %269 = getelementptr inbounds double, ptr %268, i64 %.1156.epil
  store double %267, ptr %269, align 8, !tbaa !24
  %270 = add nuw nsw i64 %.1156.epil, 1
  %epil.iter214.next = add i64 %epil.iter214, 1
  %epil.iter214.cmp.not = icmp eq i64 %epil.iter214.next, %xtraiter213
  br i1 %epil.iter214.cmp.not, label %.loopexit, label %.epil.preheader212, !llvm.loop !37

.loopexit.loopexit178.unr-lcssa:                  ; preds = %75, %.lr.ph154
  %.2153.unr = phi i64 [ 0, %.lr.ph154 ], [ %103, %75 ]
  %lcmp.mod209.not = icmp eq i64 %xtraiter207, 0
  br i1 %lcmp.mod209.not, label %.loopexit, label %.epil.preheader206

.epil.preheader206:                               ; preds = %.loopexit.loopexit178.unr-lcssa, %.epil.preheader206
  %.2153.epil = phi i64 [ %277, %.epil.preheader206 ], [ %.2153.unr, %.loopexit.loopexit178.unr-lcssa ]
  %epil.iter208 = phi i64 [ %epil.iter208.next, %.epil.preheader206 ], [ 0, %.loopexit.loopexit178.unr-lcssa ]
  %271 = load ptr, ptr %72, align 8, !tbaa !23
  %272 = getelementptr double, ptr %271, i64 %2
  %273 = getelementptr i8, ptr %272, i64 -8
  %274 = load double, ptr %273, align 8, !tbaa !24
  %275 = load ptr, ptr %73, align 8, !tbaa !23
  %276 = getelementptr inbounds double, ptr %275, i64 %.2153.epil
  store double %274, ptr %276, align 8, !tbaa !24
  %277 = add nuw nsw i64 %.2153.epil, 1
  %epil.iter208.next = add i64 %epil.iter208, 1
  %epil.iter208.cmp.not = icmp eq i64 %epil.iter208.next, %xtraiter207
  br i1 %epil.iter208.cmp.not, label %.loopexit, label %.epil.preheader206, !llvm.loop !38

.loopexit.loopexit179.unr-lcssa:                  ; preds = %.lr.ph151.split.us, %.lr.ph151.split.us.preheader
  %.5150.us.unr = phi i64 [ 0, %.lr.ph151.split.us.preheader ], [ %198, %.lr.ph151.split.us ]
  %lcmp.mod203.not = icmp eq i64 %xtraiter201, 0
  br i1 %lcmp.mod203.not, label %.loopexit, label %.lr.ph151.split.us.epil

.lr.ph151.split.us.epil:                          ; preds = %.loopexit.loopexit179.unr-lcssa
  %278 = load ptr, ptr %172, align 8, !tbaa !23
  %279 = load double, ptr %278, align 8, !tbaa !24
  %280 = load ptr, ptr %173, align 8, !tbaa !23
  %281 = load double, ptr %280, align 8, !tbaa !24
  %282 = fmul double %279, %281
  %283 = load ptr, ptr %175, align 8, !tbaa !23
  %284 = getelementptr inbounds double, ptr %283, i64 %.5150.us.unr
  store double %282, ptr %284, align 8, !tbaa !24
  %285 = load ptr, ptr %173, align 8, !tbaa !23
  %286 = getelementptr inbounds double, ptr %285, i64 %174
  store double %282, ptr %286, align 8, !tbaa !24
  br label %.loopexit

.loopexit.loopexit181.unr-lcssa:                  ; preds = %19, %.lr.ph
  %.0137.unr = phi i64 [ 0, %.lr.ph ], [ %31, %19 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit181.unr-lcssa, %.epil.preheader
  %.0137.epil = phi i64 [ %289, %.epil.preheader ], [ %.0137.unr, %.loopexit.loopexit181.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit.loopexit181.unr-lcssa ]
  %287 = load ptr, ptr %17, align 8, !tbaa !23
  %288 = getelementptr inbounds double, ptr %287, i64 %.0137.epil
  store double 0.000000e+00, ptr %288, align 8, !tbaa !24
  %289 = add nuw nsw i64 %.0137.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 %.loopexit, label %.epil.preheader, !llvm.loop !39

.loopexit:                                        ; preds = %.loopexit.loopexit181.unr-lcssa, %.epil.preheader, %._crit_edge, %.lr.ph151.split.us.epil, %.loopexit.loopexit179.unr-lcssa, %.loopexit.loopexit178.unr-lcssa, %.epil.preheader206, %.loopexit.loopexit.unr-lcssa, %.epil.preheader212, %.preheader134, %.preheader130, %.preheader128, %.preheader
  ret void
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #1

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

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

!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_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 144}
!14 = !{!"_ZTSN11alglib_impl8ssamodelE", !7, i64 0, !6, i64 8, !6, i64 72, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !15, i64 184, !7, i64 264, !7, i64 272, !10, i64 280, !15, i64 288, !15, i64 368, !6, i64 448, !6, i64 512, !7, i64 576, !16, i64 584, !15, i64 2968, !18, i64 3048, !7, i64 3072, !6, i64 3080, !7, i64 3144, !7, i64 3152, !7, i64 3160, !6, i64 3168, !6, i64 3232, !22, i64 3296, !6, i64 3304, !6, i64 3368, !15, i64 3432, !15, i64 3512, !6, i64 3592, !6, i64 3656, !6, i64 3720, !15, i64 3784, !15, i64 3864, !7, i64 3944, !7, i64 3952, !7, i64 3960}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!16 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !17, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !10, i64 57, !18, i64 64, !10, i64 88, !6, i64 96, !15, i64 160, !15, i64 240, !15, i64 320, !15, i64 400, !15, i64 480, !15, i64 560, !15, i64 640, !15, i64 720, !15, i64 800, !6, i64 880, !6, i64 944, !6, i64 1008, !6, i64 1072, !6, i64 1136, !19, i64 1200, !15, i64 1936, !15, i64 2016, !7, i64 2096, !7, i64 2104, !7, i64 2112, !20, i64 2120}
!17 = !{!"double", !8, i64 0}
!18 = !{!"_ZTSN11alglib_impl10hqrndstateE", !7, i64 0, !7, i64 8, !7, i64 16}
!19 = !{!"_ZTSN11alglib_impl9apbuffersE", !6, i64 0, !6, i64 64, !6, i64 128, !6, i64 192, !6, i64 256, !6, i64 320, !6, i64 384, !6, i64 448, !6, i64 512, !15, i64 576, !15, i64 656}
!20 = !{!"_ZTSN11alglib_impl10rcommstateE", !21, i64 0, !6, i64 8, !6, i64 72, !6, i64 136, !6, i64 200}
!21 = !{!"int", !8, i64 0}
!22 = !{!"_ZTSN11alglib_impl17eigsubspacereportE", !7, i64 0}
!23 = !{!8, !8, i64 0}
!24 = !{!17, !17, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!14, !7, i64 576}
!29 = distinct !{!29, !26}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.unroll.disable"}
!33 = distinct !{!33, !32}
!34 = distinct !{!34, !26}
!35 = distinct !{!35, !26}
!36 = distinct !{!36, !26}
!37 = distinct !{!37, !32}
!38 = distinct !{!38, !32}
!39 = distinct !{!39, !32}


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