; 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::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_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::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.252 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.253 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.254 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.255 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.256 = 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_impl15ssaforecastlastEPNS_8ssamodelElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca double, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %14)
  %15 = load i64, ptr %6, align 8, !tbaa !9
  %16 = icmp sge i64 %15, 1
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef @.str.252, ptr noundef %17)
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %18, i32 0, i32 4
  %20 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %20, ptr %12, align 8, !tbaa !9
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = load i64, ptr %6, align 8, !tbaa !9
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %22, ptr noundef %23)
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %24, ptr noundef %25)
  br i1 %26, label %43, label %27

27:                                               ; preds = %4
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %39, %27
  %29 = load i64, ptr %9, align 8, !tbaa !9
  %30 = load i64, ptr %6, align 8, !tbaa !9
  %31 = sub nsw i64 %30, 1
  %32 = icmp sle i64 %29, %31
  br i1 %32, label %33, label %42

33:                                               ; preds = %28
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %36 = load ptr, ptr %35, align 8, !tbaa !24
  %37 = load i64, ptr %9, align 8, !tbaa !9
  %38 = getelementptr inbounds double, ptr %36, i64 %37
  store double 0.000000e+00, ptr %38, align 8, !tbaa !25
  br label %39

39:                                               ; preds = %33
  %40 = load i64, ptr %9, align 8, !tbaa !9
  %41 = add nsw i64 %40, 1
  store i64 %41, ptr %9, align 8, !tbaa !9
  br label %28, !llvm.loop !26

42:                                               ; preds = %28
  store i32 1, ptr %13, align 4
  br label %417

43:                                               ; preds = %4
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %44, i32 0, i32 0
  %46 = load i64, ptr %45, align 8, !tbaa !28
  %47 = icmp sgt i64 %46, 0
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef @.str.253, ptr noundef %48)
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %49, i32 0, i32 1
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %50, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !24
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %53, i32 0, i32 0
  %55 = load i64, ptr %54, align 8, !tbaa !28
  %56 = getelementptr inbounds i64, ptr %52, i64 %55
  %57 = load i64, ptr %56, align 8, !tbaa !9
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %58, i32 0, i32 1
  %60 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %59, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !24
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %62, i32 0, i32 0
  %64 = load i64, ptr %63, align 8, !tbaa !28
  %65 = sub nsw i64 %64, 1
  %66 = getelementptr inbounds i64, ptr %61, i64 %65
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = sub nsw i64 %57, %67
  %69 = load i64, ptr %12, align 8, !tbaa !9
  %70 = icmp slt i64 %68, %69
  br i1 %70, label %71, label %87

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

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

77:                                               ; preds = %72
  %78 = load ptr, ptr %7, 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 !24
  %81 = load i64, ptr %9, align 8, !tbaa !9
  %82 = getelementptr inbounds double, ptr %80, i64 %81
  store double 0.000000e+00, ptr %82, align 8, !tbaa !25
  br label %83

83:                                               ; preds = %77
  %84 = load i64, ptr %9, align 8, !tbaa !9
  %85 = add nsw i64 %84, 1
  store i64 %85, ptr %9, align 8, !tbaa !9
  br label %72, !llvm.loop !29

86:                                               ; preds = %72
  store i32 1, ptr %13, align 4
  br label %417

87:                                               ; preds = %43
  %88 = load i64, ptr %12, align 8, !tbaa !9
  %89 = icmp eq i64 %88, 1
  br i1 %89, label %90, label %149

90:                                               ; preds = %87
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %91, i32 0, i32 0
  %93 = load i64, ptr %92, align 8, !tbaa !28
  %94 = icmp sgt i64 %93, 0
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %94, ptr noundef @.str.254, ptr noundef %95)
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %96, i32 0, i32 1
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %97, i32 0, i32 4
  %99 = load ptr, ptr %98, align 8, !tbaa !24
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %100, i32 0, i32 0
  %102 = load i64, ptr %101, align 8, !tbaa !28
  %103 = getelementptr inbounds i64, ptr %99, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !9
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %105, i32 0, i32 1
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !24
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %109, i32 0, i32 0
  %111 = load i64, ptr %110, align 8, !tbaa !28
  %112 = sub nsw i64 %111, 1
  %113 = getelementptr inbounds i64, ptr %108, i64 %112
  %114 = load i64, ptr %113, align 8, !tbaa !9
  %115 = sub nsw i64 %104, %114
  %116 = icmp sgt i64 %115, 0
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %116, ptr noundef @.str.255, ptr noundef %117)
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %118

118:                                              ; preds = %145, %90
  %119 = load i64, ptr %9, align 8, !tbaa !9
  %120 = load i64, ptr %6, align 8, !tbaa !9
  %121 = sub nsw i64 %120, 1
  %122 = icmp sle i64 %119, %121
  br i1 %122, label %123, label %148

123:                                              ; preds = %118
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %124, i32 0, i32 2
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %125, i32 0, i32 4
  %127 = load ptr, ptr %126, align 8, !tbaa !24
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %128, i32 0, i32 1
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %129, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !24
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %132, i32 0, i32 0
  %134 = load i64, ptr %133, align 8, !tbaa !28
  %135 = getelementptr inbounds i64, ptr %131, i64 %134
  %136 = load i64, ptr %135, align 8, !tbaa !9
  %137 = sub nsw i64 %136, 1
  %138 = getelementptr inbounds double, ptr %127, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !25
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %140, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !24
  %143 = load i64, ptr %9, align 8, !tbaa !9
  %144 = getelementptr inbounds double, ptr %142, i64 %143
  store double %139, ptr %144, align 8, !tbaa !25
  br label %145

145:                                              ; preds = %123
  %146 = load i64, ptr %9, align 8, !tbaa !9
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr %9, align 8, !tbaa !9
  br label %118, !llvm.loop !30

148:                                              ; preds = %118
  store i32 1, ptr %13, align 4
  br label %417

149:                                              ; preds = %87
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef %150, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %151)
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %152, i32 0, i32 17
  %154 = load i64, ptr %153, align 8, !tbaa !31
  %155 = load i64, ptr %12, align 8, !tbaa !9
  %156 = icmp sle i64 %154, %155
  br i1 %156, label %157, label %162

157:                                              ; preds = %149
  %158 = load ptr, ptr %5, 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 = icmp sgt i64 %160, 0
  br label %162

162:                                              ; preds = %157, %149
  %163 = phi i1 [ false, %149 ], [ %161, %157 ]
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %163, ptr noundef @.str.256, ptr noundef %164)
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %165, i32 0, i32 17
  %167 = load i64, ptr %166, align 8, !tbaa !31
  %168 = load i64, ptr %12, align 8, !tbaa !9
  %169 = icmp eq i64 %167, %168
  br i1 %169, label %170, label %229

170:                                              ; preds = %162
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %171, i32 0, i32 0
  %173 = load i64, ptr %172, align 8, !tbaa !28
  %174 = icmp sgt i64 %173, 0
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %174, ptr noundef @.str.254, ptr noundef %175)
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %176, i32 0, i32 1
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %177, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !24
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %180, i32 0, i32 0
  %182 = load i64, ptr %181, align 8, !tbaa !28
  %183 = getelementptr inbounds i64, ptr %179, i64 %182
  %184 = load i64, ptr %183, align 8, !tbaa !9
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %185, i32 0, i32 1
  %187 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %186, i32 0, i32 4
  %188 = load ptr, ptr %187, align 8, !tbaa !24
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %189, i32 0, i32 0
  %191 = load i64, ptr %190, align 8, !tbaa !28
  %192 = sub nsw i64 %191, 1
  %193 = getelementptr inbounds i64, ptr %188, i64 %192
  %194 = load i64, ptr %193, align 8, !tbaa !9
  %195 = sub nsw i64 %184, %194
  %196 = icmp sgt i64 %195, 0
  %197 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %196, ptr noundef @.str.255, ptr noundef %197)
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %198

198:                                              ; preds = %225, %170
  %199 = load i64, ptr %9, align 8, !tbaa !9
  %200 = load i64, ptr %6, align 8, !tbaa !9
  %201 = sub nsw i64 %200, 1
  %202 = icmp sle i64 %199, %201
  br i1 %202, label %203, label %228

203:                                              ; preds = %198
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %204, i32 0, i32 2
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %205, i32 0, i32 4
  %207 = load ptr, ptr %206, align 8, !tbaa !24
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %208, i32 0, i32 1
  %210 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %209, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !24
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %212, i32 0, i32 0
  %214 = load i64, ptr %213, align 8, !tbaa !28
  %215 = getelementptr inbounds i64, ptr %211, i64 %214
  %216 = load i64, ptr %215, align 8, !tbaa !9
  %217 = sub nsw i64 %216, 1
  %218 = getelementptr inbounds double, ptr %207, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !25
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %220, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !24
  %223 = load i64, ptr %9, align 8, !tbaa !9
  %224 = getelementptr inbounds double, ptr %222, i64 %223
  store double %219, ptr %224, align 8, !tbaa !25
  br label %225

225:                                              ; preds = %203
  %226 = load i64, ptr %9, align 8, !tbaa !9
  %227 = add nsw i64 %226, 1
  store i64 %227, ptr %9, align 8, !tbaa !9
  br label %198, !llvm.loop !32

228:                                              ; preds = %198
  store i32 1, ptr %13, align 4
  br label %417

229:                                              ; preds = %162
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %230, i32 0, i32 0
  %232 = load i64, ptr %231, align 8, !tbaa !28
  %233 = icmp sgt i64 %232, 0
  %234 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %233, ptr noundef @.str.253, ptr noundef %234)
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %235, i32 0, i32 1
  %237 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %236, i32 0, i32 4
  %238 = load ptr, ptr %237, align 8, !tbaa !24
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %239, i32 0, i32 0
  %241 = load i64, ptr %240, align 8, !tbaa !28
  %242 = getelementptr inbounds i64, ptr %238, i64 %241
  %243 = load i64, ptr %242, align 8, !tbaa !9
  %244 = load ptr, ptr %5, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %244, i32 0, i32 1
  %246 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %245, i32 0, i32 4
  %247 = load ptr, ptr %246, align 8, !tbaa !24
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %248, i32 0, i32 0
  %250 = load i64, ptr %249, align 8, !tbaa !28
  %251 = sub nsw i64 %250, 1
  %252 = getelementptr inbounds i64, ptr %247, i64 %251
  %253 = load i64, ptr %252, align 8, !tbaa !9
  %254 = sub nsw i64 %243, %253
  %255 = load ptr, ptr %5, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %255, i32 0, i32 4
  %257 = load i64, ptr %256, align 8, !tbaa !11
  %258 = icmp sge i64 %254, %257
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %258, ptr noundef @.str.253, ptr noundef %259)
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %260, i32 0, i32 26
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %262, i32 0, i32 17
  %264 = load i64, ptr %263, align 8, !tbaa !31
  %265 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %261, i64 noundef %264, ptr noundef %265)
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  %267 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %266, i32 0, i32 34
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %268, i32 0, i32 4
  %270 = load i64, ptr %269, align 8, !tbaa !11
  %271 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %267, i64 noundef %270, ptr noundef %271)
  %272 = load ptr, ptr %5, align 8, !tbaa !5
  %273 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %272, i32 0, i32 17
  %274 = load i64, ptr %273, align 8, !tbaa !31
  %275 = load ptr, ptr %5, align 8, !tbaa !5
  %276 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %275, i32 0, i32 4
  %277 = load i64, ptr %276, align 8, !tbaa !11
  %278 = load ptr, ptr %5, align 8, !tbaa !5
  %279 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %278, i32 0, i32 14
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %280, i32 0, i32 2
  %282 = load ptr, ptr %5, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %282, i32 0, i32 1
  %284 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %283, i32 0, i32 4
  %285 = load ptr, ptr %284, align 8, !tbaa !24
  %286 = load ptr, ptr %5, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %286, i32 0, i32 0
  %288 = load i64, ptr %287, align 8, !tbaa !28
  %289 = getelementptr inbounds i64, ptr %285, i64 %288
  %290 = load i64, ptr %289, align 8, !tbaa !9
  %291 = load ptr, ptr %5, align 8, !tbaa !5
  %292 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %291, i32 0, i32 4
  %293 = load i64, ptr %292, align 8, !tbaa !11
  %294 = sub nsw i64 %290, %293
  %295 = load ptr, ptr %5, align 8, !tbaa !5
  %296 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %295, i32 0, i32 26
  %297 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemvElldPNS_9ae_matrixElllPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %274, i64 noundef %277, double noundef 1.000000e+00, ptr noundef %279, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %281, i64 noundef %294, double noundef 0.000000e+00, ptr noundef %296, i64 noundef 0, ptr noundef %297)
  %298 = load ptr, ptr %5, align 8, !tbaa !5
  %299 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %298, i32 0, i32 4
  %300 = load i64, ptr %299, align 8, !tbaa !11
  %301 = load ptr, ptr %5, align 8, !tbaa !5
  %302 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %301, i32 0, i32 17
  %303 = load i64, ptr %302, align 8, !tbaa !31
  %304 = load ptr, ptr %5, align 8, !tbaa !5
  %305 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %304, i32 0, i32 13
  %306 = load ptr, ptr %5, align 8, !tbaa !5
  %307 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %306, i32 0, i32 26
  %308 = load ptr, ptr %5, align 8, !tbaa !5
  %309 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %308, i32 0, i32 34
  %310 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemvElldPNS_9ae_matrixElllPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %300, i64 noundef %303, double noundef 1.000000e+00, ptr noundef %305, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %307, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %309, i64 noundef 0, ptr noundef %310)
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %311, i32 0, i32 27
  %313 = load i64, ptr %12, align 8, !tbaa !9
  %314 = sub nsw i64 %313, 1
  %315 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %312, i64 noundef %314, ptr noundef %315)
  store i64 1, ptr %9, align 8, !tbaa !9
  br label %316

316:                                              ; preds = %336, %229
  %317 = load i64, ptr %9, align 8, !tbaa !9
  %318 = load i64, ptr %12, align 8, !tbaa !9
  %319 = sub nsw i64 %318, 1
  %320 = icmp sle i64 %317, %319
  br i1 %320, label %321, label %339

321:                                              ; preds = %316
  %322 = load ptr, ptr %5, align 8, !tbaa !5
  %323 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %322, i32 0, i32 34
  %324 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %323, i32 0, i32 4
  %325 = load ptr, ptr %324, align 8, !tbaa !24
  %326 = load i64, ptr %9, align 8, !tbaa !9
  %327 = getelementptr inbounds double, ptr %325, i64 %326
  %328 = load double, ptr %327, align 8, !tbaa !25
  %329 = load ptr, ptr %5, align 8, !tbaa !5
  %330 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %329, i32 0, i32 27
  %331 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %330, i32 0, i32 4
  %332 = load ptr, ptr %331, align 8, !tbaa !24
  %333 = load i64, ptr %9, align 8, !tbaa !9
  %334 = sub nsw i64 %333, 1
  %335 = getelementptr inbounds double, ptr %332, i64 %334
  store double %328, ptr %335, align 8, !tbaa !25
  br label %336

336:                                              ; preds = %321
  %337 = load i64, ptr %9, align 8, !tbaa !9
  %338 = add nsw i64 %337, 1
  store i64 %338, ptr %9, align 8, !tbaa !9
  br label %316, !llvm.loop !33

339:                                              ; preds = %316
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %340

340:                                              ; preds = %413, %339
  %341 = load i64, ptr %9, align 8, !tbaa !9
  %342 = load i64, ptr %6, align 8, !tbaa !9
  %343 = sub nsw i64 %342, 1
  %344 = icmp sle i64 %341, %343
  br i1 %344, label %345, label %416

345:                                              ; preds = %340
  %346 = load ptr, ptr %5, align 8, !tbaa !5
  %347 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %346, i32 0, i32 16
  %348 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %347, i32 0, i32 4
  %349 = load ptr, ptr %348, align 8, !tbaa !24
  %350 = getelementptr inbounds double, ptr %349, i64 0
  %351 = load double, ptr %350, align 8, !tbaa !25
  %352 = load ptr, ptr %5, align 8, !tbaa !5
  %353 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %352, i32 0, i32 27
  %354 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %353, i32 0, i32 4
  %355 = load ptr, ptr %354, align 8, !tbaa !24
  %356 = getelementptr inbounds double, ptr %355, i64 0
  %357 = load double, ptr %356, align 8, !tbaa !25
  %358 = fmul double %351, %357
  store double %358, ptr %11, align 8, !tbaa !25
  store i64 1, ptr %10, align 8, !tbaa !9
  br label %359

359:                                              ; preds = %395, %345
  %360 = load i64, ptr %10, align 8, !tbaa !9
  %361 = load i64, ptr %12, align 8, !tbaa !9
  %362 = sub nsw i64 %361, 2
  %363 = icmp sle i64 %360, %362
  br i1 %363, label %364, label %398

364:                                              ; preds = %359
  %365 = load double, ptr %11, align 8, !tbaa !25
  %366 = load ptr, ptr %5, align 8, !tbaa !5
  %367 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %366, i32 0, i32 16
  %368 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %367, i32 0, i32 4
  %369 = load ptr, ptr %368, align 8, !tbaa !24
  %370 = load i64, ptr %10, align 8, !tbaa !9
  %371 = getelementptr inbounds double, ptr %369, i64 %370
  %372 = load double, ptr %371, align 8, !tbaa !25
  %373 = load ptr, ptr %5, align 8, !tbaa !5
  %374 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %373, i32 0, i32 27
  %375 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %374, i32 0, i32 4
  %376 = load ptr, ptr %375, align 8, !tbaa !24
  %377 = load i64, ptr %10, align 8, !tbaa !9
  %378 = getelementptr inbounds double, ptr %376, i64 %377
  %379 = load double, ptr %378, align 8, !tbaa !25
  %380 = call double @llvm.fmuladd.f64(double %372, double %379, double %365)
  store double %380, ptr %11, align 8, !tbaa !25
  %381 = load ptr, ptr %5, align 8, !tbaa !5
  %382 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %381, i32 0, i32 27
  %383 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %382, i32 0, i32 4
  %384 = load ptr, ptr %383, align 8, !tbaa !24
  %385 = load i64, ptr %10, align 8, !tbaa !9
  %386 = getelementptr inbounds double, ptr %384, i64 %385
  %387 = load double, ptr %386, align 8, !tbaa !25
  %388 = load ptr, ptr %5, align 8, !tbaa !5
  %389 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %388, i32 0, i32 27
  %390 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %389, i32 0, i32 4
  %391 = load ptr, ptr %390, align 8, !tbaa !24
  %392 = load i64, ptr %10, align 8, !tbaa !9
  %393 = sub nsw i64 %392, 1
  %394 = getelementptr inbounds double, ptr %391, i64 %393
  store double %387, ptr %394, align 8, !tbaa !25
  br label %395

395:                                              ; preds = %364
  %396 = load i64, ptr %10, align 8, !tbaa !9
  %397 = add nsw i64 %396, 1
  store i64 %397, ptr %10, align 8, !tbaa !9
  br label %359, !llvm.loop !34

398:                                              ; preds = %359
  %399 = load double, ptr %11, align 8, !tbaa !25
  %400 = load ptr, ptr %7, align 8, !tbaa !5
  %401 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %400, i32 0, i32 4
  %402 = load ptr, ptr %401, align 8, !tbaa !24
  %403 = load i64, ptr %9, align 8, !tbaa !9
  %404 = getelementptr inbounds double, ptr %402, i64 %403
  store double %399, ptr %404, align 8, !tbaa !25
  %405 = load double, ptr %11, align 8, !tbaa !25
  %406 = load ptr, ptr %5, align 8, !tbaa !5
  %407 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %406, i32 0, i32 27
  %408 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %407, i32 0, i32 4
  %409 = load ptr, ptr %408, align 8, !tbaa !24
  %410 = load i64, ptr %12, align 8, !tbaa !9
  %411 = sub nsw i64 %410, 2
  %412 = getelementptr inbounds double, ptr %409, i64 %411
  store double %405, ptr %412, align 8, !tbaa !25
  br label %413

413:                                              ; preds = %398
  %414 = load i64, ptr %9, align 8, !tbaa !9
  %415 = add nsw i64 %414, 1
  store i64 %415, ptr %9, align 8, !tbaa !9
  br label %340, !llvm.loop !35

416:                                              ; preds = %340
  store i32 0, ptr %13, align 4
  br label %417

417:                                              ; preds = %416, %228, %148, %86, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %418 = load i32, ptr %13, align 4
  switch i32 %418, label %420 [
    i32 0, label %419
    i32 1, label %419
  ]

419:                                              ; preds = %417, %417
  ret void

420:                                              ; preds = %417
  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

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


; 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.252 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.253 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.254 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.255 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.256 = 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_impl15ssaforecastlastEPNS_8ssamodelElPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %2)
  %5 = icmp sgt i64 %1, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %5, ptr noundef nonnull @.str.252, ptr noundef %3)
  %6 = getelementptr inbounds i8, ptr %0, i64 144
  %7 = load i64, ptr %6, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %1, ptr noundef %3)
  %8 = tail call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %0, ptr noundef %3)
  br i1 %8, label %24, label %.preheader141

.preheader141:                                    ; preds = %4
  br i1 %5, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader141
  %9 = getelementptr inbounds i8, ptr %2, i64 56
  %xtraiter = and i64 %1, 3
  %10 = icmp ult i64 %1, 4
  br i1 %10, label %.loopexit.loopexit193.unr-lcssa, label %.lr.ph.new

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

11:                                               ; preds = %11, %.lr.ph.new
  %.0144 = phi i64 [ 0, %.lr.ph.new ], [ %23, %11 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %11 ]
  %12 = load ptr, ptr %9, align 8, !tbaa !22
  %13 = getelementptr inbounds double, ptr %12, i64 %.0144
  store double 0.000000e+00, ptr %13, align 8, !tbaa !23
  %14 = or disjoint i64 %.0144, 1
  %15 = load ptr, ptr %9, align 8, !tbaa !22
  %16 = getelementptr inbounds double, ptr %15, i64 %14
  store double 0.000000e+00, ptr %16, align 8, !tbaa !23
  %17 = or disjoint i64 %.0144, 2
  %18 = load ptr, ptr %9, align 8, !tbaa !22
  %19 = getelementptr inbounds double, ptr %18, i64 %17
  store double 0.000000e+00, ptr %19, align 8, !tbaa !23
  %20 = or disjoint i64 %.0144, 3
  %21 = load ptr, ptr %9, align 8, !tbaa !22
  %22 = getelementptr inbounds double, ptr %21, i64 %20
  store double 0.000000e+00, ptr %22, align 8, !tbaa !23
  %23 = add nuw nsw i64 %.0144, 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.loopexit193.unr-lcssa, label %11, !llvm.loop !24

24:                                               ; preds = %4
  %25 = load i64, ptr %0, align 8, !tbaa !26
  %26 = icmp sgt i64 %25, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef nonnull @.str.253, ptr noundef %3)
  %27 = getelementptr inbounds i8, ptr %0, i64 64
  %28 = load ptr, ptr %27, align 8, !tbaa !22
  %29 = load i64, ptr %0, align 8, !tbaa !26
  %30 = getelementptr inbounds i64, ptr %28, i64 %29
  %31 = load i64, ptr %30, align 8, !tbaa !27
  %32 = getelementptr i8, ptr %30, i64 -8
  %33 = load i64, ptr %32, align 8, !tbaa !27
  %34 = sub nsw i64 %31, %33
  %35 = icmp slt i64 %34, %7
  br i1 %35, label %.preheader, label %51

.preheader:                                       ; preds = %24
  br i1 %5, label %.lr.ph166, label %.loopexit

.lr.ph166:                                        ; preds = %.preheader
  %36 = getelementptr inbounds i8, ptr %2, i64 56
  %xtraiter225 = and i64 %1, 3
  %37 = icmp ult i64 %1, 4
  br i1 %37, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph166.new

.lr.ph166.new:                                    ; preds = %.lr.ph166
  %unroll_iter228 = and i64 %1, 9223372036854775804
  br label %38

38:                                               ; preds = %38, %.lr.ph166.new
  %.1165 = phi i64 [ 0, %.lr.ph166.new ], [ %50, %38 ]
  %niter229 = phi i64 [ 0, %.lr.ph166.new ], [ %niter229.next.3, %38 ]
  %39 = load ptr, ptr %36, align 8, !tbaa !22
  %40 = getelementptr inbounds double, ptr %39, i64 %.1165
  store double 0.000000e+00, ptr %40, align 8, !tbaa !23
  %41 = or disjoint i64 %.1165, 1
  %42 = load ptr, ptr %36, align 8, !tbaa !22
  %43 = getelementptr inbounds double, ptr %42, i64 %41
  store double 0.000000e+00, ptr %43, align 8, !tbaa !23
  %44 = or disjoint i64 %.1165, 2
  %45 = load ptr, ptr %36, align 8, !tbaa !22
  %46 = getelementptr inbounds double, ptr %45, i64 %44
  store double 0.000000e+00, ptr %46, align 8, !tbaa !23
  %47 = or disjoint i64 %.1165, 3
  %48 = load ptr, ptr %36, align 8, !tbaa !22
  %49 = getelementptr inbounds double, ptr %48, i64 %47
  store double 0.000000e+00, ptr %49, align 8, !tbaa !23
  %50 = add nuw nsw i64 %.1165, 4
  %niter229.next.3 = add i64 %niter229, 4
  %niter229.ncmp.3 = icmp eq i64 %niter229.next.3, %unroll_iter228
  br i1 %niter229.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %38, !llvm.loop !28

51:                                               ; preds = %24
  %52 = icmp eq i64 %7, 1
  br i1 %52, label %53, label %87

53:                                               ; preds = %51
  %54 = icmp sgt i64 %29, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %54, ptr noundef nonnull @.str.254, ptr noundef %3)
  %55 = load ptr, ptr %27, align 8, !tbaa !22
  %56 = load i64, ptr %0, align 8, !tbaa !26
  %57 = getelementptr inbounds i64, ptr %55, i64 %56
  %58 = load i64, ptr %57, align 8, !tbaa !27
  %59 = getelementptr i8, ptr %57, i64 -8
  %60 = load i64, ptr %59, align 8, !tbaa !27
  %61 = icmp sgt i64 %58, %60
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %61, ptr noundef nonnull @.str.255, ptr noundef %3)
  br i1 %5, label %.lr.ph163, label %.loopexit

.lr.ph163:                                        ; preds = %53
  %62 = getelementptr inbounds i8, ptr %0, i64 128
  %63 = load i64, ptr %0, align 8, !tbaa !26
  %64 = getelementptr inbounds i8, ptr %2, i64 56
  %xtraiter219 = and i64 %1, 1
  %65 = icmp eq i64 %1, 1
  br i1 %65, label %.loopexit.loopexit189.unr-lcssa, label %.lr.ph163.new

.lr.ph163.new:                                    ; preds = %.lr.ph163
  %unroll_iter222 = and i64 %1, 9223372036854775806
  br label %66

66:                                               ; preds = %66, %.lr.ph163.new
  %.2161 = phi i64 [ 0, %.lr.ph163.new ], [ %86, %66 ]
  %niter223 = phi i64 [ 0, %.lr.ph163.new ], [ %niter223.next.1, %66 ]
  %67 = load ptr, ptr %62, align 8, !tbaa !22
  %68 = load ptr, ptr %27, align 8, !tbaa !22
  %69 = getelementptr inbounds i64, ptr %68, i64 %63
  %70 = load i64, ptr %69, align 8, !tbaa !27
  %71 = getelementptr double, ptr %67, i64 %70
  %72 = getelementptr i8, ptr %71, i64 -8
  %73 = load double, ptr %72, align 8, !tbaa !23
  %74 = load ptr, ptr %64, align 8, !tbaa !22
  %75 = getelementptr inbounds double, ptr %74, i64 %.2161
  store double %73, ptr %75, align 8, !tbaa !23
  %76 = or disjoint i64 %.2161, 1
  %77 = load ptr, ptr %62, align 8, !tbaa !22
  %78 = load ptr, ptr %27, align 8, !tbaa !22
  %79 = getelementptr inbounds i64, ptr %78, i64 %63
  %80 = load i64, ptr %79, align 8, !tbaa !27
  %81 = getelementptr double, ptr %77, i64 %80
  %82 = getelementptr i8, ptr %81, i64 -8
  %83 = load double, ptr %82, align 8, !tbaa !23
  %84 = load ptr, ptr %64, align 8, !tbaa !22
  %85 = getelementptr inbounds double, ptr %84, i64 %76
  store double %83, ptr %85, align 8, !tbaa !23
  %86 = add nuw nsw i64 %.2161, 2
  %niter223.next.1 = add i64 %niter223, 2
  %niter223.ncmp.1 = icmp eq i64 %niter223.next.1, %unroll_iter222
  br i1 %niter223.ncmp.1, label %.loopexit.loopexit189.unr-lcssa, label %66, !llvm.loop !29

87:                                               ; preds = %51
  tail call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %3)
  %88 = getelementptr inbounds i8, ptr %0, i64 576
  %89 = load i64, ptr %88, align 8, !tbaa !30
  %.not = icmp sle i64 %89, %7
  %90 = icmp sgt i64 %89, 0
  %spec.select = and i1 %.not, %90
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.256, ptr noundef %3)
  %91 = load i64, ptr %88, align 8, !tbaa !30
  %92 = icmp eq i64 %91, %7
  %93 = load i64, ptr %0, align 8, !tbaa !26
  %94 = icmp sgt i64 %93, 0
  br i1 %92, label %95, label %128

95:                                               ; preds = %87
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %94, ptr noundef nonnull @.str.254, ptr noundef %3)
  %96 = load ptr, ptr %27, align 8, !tbaa !22
  %97 = load i64, ptr %0, align 8, !tbaa !26
  %98 = getelementptr inbounds i64, ptr %96, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !27
  %100 = getelementptr i8, ptr %98, i64 -8
  %101 = load i64, ptr %100, align 8, !tbaa !27
  %102 = icmp sgt i64 %99, %101
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %102, ptr noundef nonnull @.str.255, ptr noundef %3)
  br i1 %5, label %.lr.ph159, label %.loopexit

.lr.ph159:                                        ; preds = %95
  %103 = getelementptr inbounds i8, ptr %0, i64 128
  %104 = load i64, ptr %0, align 8, !tbaa !26
  %105 = getelementptr inbounds i8, ptr %2, i64 56
  %xtraiter213 = and i64 %1, 1
  %106 = icmp eq i64 %1, 1
  br i1 %106, label %.loopexit.loopexit190.unr-lcssa, label %.lr.ph159.new

.lr.ph159.new:                                    ; preds = %.lr.ph159
  %unroll_iter216 = and i64 %1, 9223372036854775806
  br label %107

107:                                              ; preds = %107, %.lr.ph159.new
  %.3157 = phi i64 [ 0, %.lr.ph159.new ], [ %127, %107 ]
  %niter217 = phi i64 [ 0, %.lr.ph159.new ], [ %niter217.next.1, %107 ]
  %108 = load ptr, ptr %103, align 8, !tbaa !22
  %109 = load ptr, ptr %27, align 8, !tbaa !22
  %110 = getelementptr inbounds i64, ptr %109, i64 %104
  %111 = load i64, ptr %110, align 8, !tbaa !27
  %112 = getelementptr double, ptr %108, i64 %111
  %113 = getelementptr i8, ptr %112, i64 -8
  %114 = load double, ptr %113, align 8, !tbaa !23
  %115 = load ptr, ptr %105, align 8, !tbaa !22
  %116 = getelementptr inbounds double, ptr %115, i64 %.3157
  store double %114, ptr %116, align 8, !tbaa !23
  %117 = or disjoint i64 %.3157, 1
  %118 = load ptr, ptr %103, align 8, !tbaa !22
  %119 = load ptr, ptr %27, align 8, !tbaa !22
  %120 = getelementptr inbounds i64, ptr %119, i64 %104
  %121 = load i64, ptr %120, align 8, !tbaa !27
  %122 = getelementptr double, ptr %118, i64 %121
  %123 = getelementptr i8, ptr %122, i64 -8
  %124 = load double, ptr %123, align 8, !tbaa !23
  %125 = load ptr, ptr %105, align 8, !tbaa !22
  %126 = getelementptr inbounds double, ptr %125, i64 %117
  store double %124, ptr %126, align 8, !tbaa !23
  %127 = add nuw nsw i64 %.3157, 2
  %niter217.next.1 = add i64 %niter217, 2
  %niter217.ncmp.1 = icmp eq i64 %niter217.next.1, %unroll_iter216
  br i1 %niter217.ncmp.1, label %.loopexit.loopexit190.unr-lcssa, label %107, !llvm.loop !31

128:                                              ; preds = %87
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %94, ptr noundef nonnull @.str.253, ptr noundef %3)
  %129 = load ptr, ptr %27, align 8, !tbaa !22
  %130 = load i64, ptr %0, align 8, !tbaa !26
  %131 = getelementptr inbounds i64, ptr %129, i64 %130
  %132 = load i64, ptr %131, align 8, !tbaa !27
  %133 = getelementptr i8, ptr %131, i64 -8
  %134 = load i64, ptr %133, align 8, !tbaa !27
  %135 = sub nsw i64 %132, %134
  %136 = load i64, ptr %6, align 8, !tbaa !5
  %137 = icmp sge i64 %135, %136
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %137, ptr noundef nonnull @.str.253, ptr noundef %3)
  %138 = getelementptr inbounds i8, ptr %0, i64 3168
  %139 = load i64, ptr %88, align 8, !tbaa !30
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %138, i64 noundef %139, ptr noundef %3)
  %140 = getelementptr inbounds i8, ptr %0, i64 3656
  %141 = load i64, ptr %6, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %140, i64 noundef %141, ptr noundef %3)
  %142 = load i64, ptr %88, align 8, !tbaa !30
  %143 = load i64, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds i8, ptr %0, i64 368
  %145 = getelementptr inbounds i8, ptr %0, i64 72
  %146 = load ptr, ptr %27, align 8, !tbaa !22
  %147 = load i64, ptr %0, align 8, !tbaa !26
  %148 = getelementptr inbounds i64, ptr %146, i64 %147
  %149 = load i64, ptr %148, align 8, !tbaa !27
  %150 = sub nsw i64 %149, %143
  tail call void @_ZN11alglib_impl11rmatrixgemvElldPNS_9ae_matrixElllPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %142, i64 noundef %143, double noundef 1.000000e+00, ptr noundef nonnull %144, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %145, i64 noundef %150, double noundef 0.000000e+00, ptr noundef nonnull %138, i64 noundef 0, ptr noundef %3)
  %151 = load i64, ptr %6, align 8, !tbaa !5
  %152 = load i64, ptr %88, align 8, !tbaa !30
  %153 = getelementptr inbounds i8, ptr %0, i64 288
  tail call void @_ZN11alglib_impl11rmatrixgemvElldPNS_9ae_matrixElllPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %151, i64 noundef %152, double noundef 1.000000e+00, ptr noundef nonnull %153, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %138, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %140, i64 noundef 0, ptr noundef %3)
  %154 = getelementptr inbounds i8, ptr %0, i64 3232
  %155 = add i64 %7, -1
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %154, i64 noundef %155, ptr noundef %3)
  %.not131.not145 = icmp sgt i64 %7, 1
  br i1 %.not131.not145, label %.lr.ph147, label %.preheader139

.lr.ph147:                                        ; preds = %128
  %156 = getelementptr inbounds i8, ptr %0, i64 3712
  %157 = getelementptr inbounds i8, ptr %0, i64 3288
  %158 = add nsw i64 %7, -1
  %159 = add nsw i64 %7, -2
  %xtraiter195 = and i64 %158, 3
  %160 = icmp ult i64 %159, 3
  br i1 %160, label %.preheader139.loopexit.unr-lcssa, label %.lr.ph147.new

.lr.ph147.new:                                    ; preds = %.lr.ph147
  %unroll_iter198 = and i64 %158, -4
  br label %196

.preheader139.loopexit.unr-lcssa:                 ; preds = %196, %.lr.ph147
  %.4146.unr = phi i64 [ 1, %.lr.ph147 ], [ %224, %196 ]
  %lcmp.mod197.not = icmp eq i64 %xtraiter195, 0
  br i1 %lcmp.mod197.not, label %.preheader139, label %.epil.preheader194

.epil.preheader194:                               ; preds = %.preheader139.loopexit.unr-lcssa, %.epil.preheader194
  %.4146.epil = phi i64 [ %167, %.epil.preheader194 ], [ %.4146.unr, %.preheader139.loopexit.unr-lcssa ]
  %epil.iter196 = phi i64 [ %epil.iter196.next, %.epil.preheader194 ], [ 0, %.preheader139.loopexit.unr-lcssa ]
  %161 = load ptr, ptr %156, align 8, !tbaa !22
  %162 = getelementptr inbounds double, ptr %161, i64 %.4146.epil
  %163 = load double, ptr %162, align 8, !tbaa !23
  %164 = load ptr, ptr %157, align 8, !tbaa !22
  %165 = getelementptr double, ptr %164, i64 %.4146.epil
  %166 = getelementptr i8, ptr %165, i64 -8
  store double %163, ptr %166, align 8, !tbaa !23
  %167 = add nuw nsw i64 %.4146.epil, 1
  %epil.iter196.next = add i64 %epil.iter196, 1
  %epil.iter196.cmp.not = icmp eq i64 %epil.iter196.next, %xtraiter195
  br i1 %epil.iter196.cmp.not, label %.preheader139, label %.epil.preheader194, !llvm.loop !32

.preheader139:                                    ; preds = %.preheader139.loopexit.unr-lcssa, %.epil.preheader194, %128
  br i1 %5, label %.lr.ph155, label %.loopexit

.lr.ph155:                                        ; preds = %.preheader139
  %168 = getelementptr inbounds i8, ptr %0, i64 568
  %169 = getelementptr inbounds i8, ptr %0, i64 3288
  %170 = add nsw i64 %7, -2
  %.not133148 = icmp slt i64 %7, 3
  %171 = getelementptr inbounds i8, ptr %2, i64 56
  br i1 %.not133148, label %.lr.ph155.split.us.preheader, label %.lr.ph151.preheader

.lr.ph151.preheader:                              ; preds = %.lr.ph155
  %xtraiter201 = and i64 %7, 1
  %172 = icmp eq i64 %7, 3
  %173 = and i64 %7, 9223372036854775806
  %174 = add nsw i64 %173, -4
  %lcmp.mod203.not = icmp eq i64 %xtraiter201, 0
  br label %.lr.ph151

.lr.ph155.split.us.preheader:                     ; preds = %.lr.ph155
  %xtraiter207 = and i64 %1, 1
  %175 = icmp eq i64 %1, 1
  br i1 %175, label %.loopexit.loopexit191.unr-lcssa, label %.lr.ph155.split.us.preheader.new

.lr.ph155.split.us.preheader.new:                 ; preds = %.lr.ph155.split.us.preheader
  %unroll_iter210 = and i64 %1, 9223372036854775806
  br label %.lr.ph155.split.us

.lr.ph155.split.us:                               ; preds = %.lr.ph155.split.us, %.lr.ph155.split.us.preheader.new
  %.5154.us = phi i64 [ 0, %.lr.ph155.split.us.preheader.new ], [ %195, %.lr.ph155.split.us ]
  %niter211 = phi i64 [ 0, %.lr.ph155.split.us.preheader.new ], [ %niter211.next.1, %.lr.ph155.split.us ]
  %176 = load ptr, ptr %168, align 8, !tbaa !22
  %177 = load double, ptr %176, align 8, !tbaa !23
  %178 = load ptr, ptr %169, align 8, !tbaa !22
  %179 = load double, ptr %178, align 8, !tbaa !23
  %180 = fmul double %177, %179
  %181 = load ptr, ptr %171, align 8, !tbaa !22
  %182 = getelementptr inbounds double, ptr %181, i64 %.5154.us
  store double %180, ptr %182, align 8, !tbaa !23
  %183 = load ptr, ptr %169, align 8, !tbaa !22
  %184 = getelementptr inbounds double, ptr %183, i64 %170
  store double %180, ptr %184, align 8, !tbaa !23
  %185 = or disjoint i64 %.5154.us, 1
  %186 = load ptr, ptr %168, align 8, !tbaa !22
  %187 = load double, ptr %186, align 8, !tbaa !23
  %188 = load ptr, ptr %169, align 8, !tbaa !22
  %189 = load double, ptr %188, align 8, !tbaa !23
  %190 = fmul double %187, %189
  %191 = load ptr, ptr %171, align 8, !tbaa !22
  %192 = getelementptr inbounds double, ptr %191, i64 %185
  store double %190, ptr %192, align 8, !tbaa !23
  %193 = load ptr, ptr %169, align 8, !tbaa !22
  %194 = getelementptr inbounds double, ptr %193, i64 %170
  store double %190, ptr %194, align 8, !tbaa !23
  %195 = add nuw nsw i64 %.5154.us, 2
  %niter211.next.1 = add i64 %niter211, 2
  %niter211.ncmp.1 = icmp eq i64 %niter211.next.1, %unroll_iter210
  br i1 %niter211.ncmp.1, label %.loopexit.loopexit191.unr-lcssa, label %.lr.ph155.split.us, !llvm.loop !34

196:                                              ; preds = %196, %.lr.ph147.new
  %.4146 = phi i64 [ 1, %.lr.ph147.new ], [ %224, %196 ]
  %niter199 = phi i64 [ 0, %.lr.ph147.new ], [ %niter199.next.3, %196 ]
  %197 = load ptr, ptr %156, align 8, !tbaa !22
  %198 = getelementptr inbounds double, ptr %197, i64 %.4146
  %199 = load double, ptr %198, align 8, !tbaa !23
  %200 = load ptr, ptr %157, align 8, !tbaa !22
  %201 = getelementptr double, ptr %200, i64 %.4146
  %202 = getelementptr i8, ptr %201, i64 -8
  store double %199, ptr %202, align 8, !tbaa !23
  %203 = add nuw nsw i64 %.4146, 1
  %204 = load ptr, ptr %156, align 8, !tbaa !22
  %205 = getelementptr inbounds double, ptr %204, i64 %203
  %206 = load double, ptr %205, align 8, !tbaa !23
  %207 = load ptr, ptr %157, align 8, !tbaa !22
  %208 = getelementptr double, ptr %207, i64 %203
  %209 = getelementptr i8, ptr %208, i64 -8
  store double %206, ptr %209, align 8, !tbaa !23
  %210 = add nuw nsw i64 %.4146, 2
  %211 = load ptr, ptr %156, align 8, !tbaa !22
  %212 = getelementptr inbounds double, ptr %211, i64 %210
  %213 = load double, ptr %212, align 8, !tbaa !23
  %214 = load ptr, ptr %157, align 8, !tbaa !22
  %215 = getelementptr double, ptr %214, i64 %210
  %216 = getelementptr i8, ptr %215, i64 -8
  store double %213, ptr %216, align 8, !tbaa !23
  %217 = add nuw nsw i64 %.4146, 3
  %218 = load ptr, ptr %156, align 8, !tbaa !22
  %219 = getelementptr inbounds double, ptr %218, i64 %217
  %220 = load double, ptr %219, align 8, !tbaa !23
  %221 = load ptr, ptr %157, align 8, !tbaa !22
  %222 = getelementptr double, ptr %221, i64 %217
  %223 = getelementptr i8, ptr %222, i64 -8
  store double %220, ptr %223, align 8, !tbaa !23
  %224 = add nuw nsw i64 %.4146, 4
  %niter199.next.3 = add i64 %niter199, 4
  %niter199.ncmp.3 = icmp eq i64 %niter199.next.3, %unroll_iter198
  br i1 %niter199.ncmp.3, label %.preheader139.loopexit.unr-lcssa, label %196, !llvm.loop !35

.lr.ph151:                                        ; preds = %.lr.ph151.preheader, %._crit_edge
  %.5154 = phi i64 [ %260, %._crit_edge ], [ 0, %.lr.ph151.preheader ]
  %225 = load ptr, ptr %168, align 8, !tbaa !22
  %226 = load double, ptr %225, align 8, !tbaa !23
  %227 = load ptr, ptr %169, align 8, !tbaa !22
  %228 = load double, ptr %227, align 8, !tbaa !23
  %229 = fmul double %226, %228
  br i1 %172, label %._crit_edge.unr-lcssa, label %.lr.ph151.new

.lr.ph151.new:                                    ; preds = %.lr.ph151, %.lr.ph151.new
  %.0126150 = phi double [ %245, %.lr.ph151.new ], [ %229, %.lr.ph151 ]
  %.0127149 = phi i64 [ %247, %.lr.ph151.new ], [ 1, %.lr.ph151 ]
  %niter206 = phi i64 [ %niter206.next.1, %.lr.ph151.new ], [ 0, %.lr.ph151 ]
  %230 = load ptr, ptr %168, align 8, !tbaa !22
  %231 = getelementptr inbounds double, ptr %230, i64 %.0127149
  %232 = load double, ptr %231, align 8, !tbaa !23
  %233 = load ptr, ptr %169, align 8, !tbaa !22
  %234 = getelementptr inbounds double, ptr %233, i64 %.0127149
  %235 = load double, ptr %234, align 8, !tbaa !23
  %236 = tail call double @llvm.fmuladd.f64(double %232, double %235, double %.0126150)
  %237 = getelementptr i8, ptr %234, i64 -8
  store double %235, ptr %237, align 8, !tbaa !23
  %238 = add nuw i64 %.0127149, 1
  %239 = load ptr, ptr %168, align 8, !tbaa !22
  %240 = getelementptr inbounds double, ptr %239, i64 %238
  %241 = load double, ptr %240, align 8, !tbaa !23
  %242 = load ptr, ptr %169, align 8, !tbaa !22
  %243 = getelementptr inbounds double, ptr %242, i64 %238
  %244 = load double, ptr %243, align 8, !tbaa !23
  %245 = tail call double @llvm.fmuladd.f64(double %241, double %244, double %236)
  %246 = getelementptr i8, ptr %243, i64 -8
  store double %244, ptr %246, align 8, !tbaa !23
  %247 = add nuw i64 %.0127149, 2
  %niter206.next.1 = add i64 %niter206, 2
  %niter206.ncmp.1 = icmp eq i64 %niter206, %174
  br i1 %niter206.ncmp.1, label %._crit_edge.unr-lcssa, label %.lr.ph151.new, !llvm.loop !36

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph151.new, %.lr.ph151
  %.lcssa.ph = phi double [ poison, %.lr.ph151 ], [ %245, %.lr.ph151.new ]
  %.0126150.unr = phi double [ %229, %.lr.ph151 ], [ %245, %.lr.ph151.new ]
  %.0127149.unr = phi i64 [ 1, %.lr.ph151 ], [ %247, %.lr.ph151.new ]
  br i1 %lcmp.mod203.not, label %._crit_edge, label %._crit_edge.epilog-lcssa

._crit_edge.epilog-lcssa:                         ; preds = %._crit_edge.unr-lcssa
  %248 = load ptr, ptr %168, align 8, !tbaa !22
  %249 = getelementptr inbounds double, ptr %248, i64 %.0127149.unr
  %250 = load double, ptr %249, align 8, !tbaa !23
  %251 = load ptr, ptr %169, align 8, !tbaa !22
  %252 = getelementptr inbounds double, ptr %251, i64 %.0127149.unr
  %253 = load double, ptr %252, align 8, !tbaa !23
  %254 = tail call double @llvm.fmuladd.f64(double %250, double %253, double %.0126150.unr)
  %255 = getelementptr i8, ptr %252, i64 -8
  store double %253, ptr %255, align 8, !tbaa !23
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge.unr-lcssa ], [ %254, %._crit_edge.epilog-lcssa ]
  %256 = load ptr, ptr %171, align 8, !tbaa !22
  %257 = getelementptr inbounds double, ptr %256, i64 %.5154
  store double %.lcssa, ptr %257, align 8, !tbaa !23
  %258 = load ptr, ptr %169, align 8, !tbaa !22
  %259 = getelementptr inbounds double, ptr %258, i64 %170
  store double %.lcssa, ptr %259, align 8, !tbaa !23
  %260 = add nuw nsw i64 %.5154, 1
  %exitcond174.not = icmp eq i64 %260, %1
  br i1 %exitcond174.not, label %.loopexit, label %.lr.ph151, !llvm.loop !34

.loopexit.loopexit.unr-lcssa:                     ; preds = %38, %.lr.ph166
  %.1165.unr = phi i64 [ 0, %.lr.ph166 ], [ %50, %38 ]
  %lcmp.mod227.not = icmp eq i64 %xtraiter225, 0
  br i1 %lcmp.mod227.not, label %.loopexit, label %.epil.preheader224

.epil.preheader224:                               ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader224
  %.1165.epil = phi i64 [ %263, %.epil.preheader224 ], [ %.1165.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter226 = phi i64 [ %epil.iter226.next, %.epil.preheader224 ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %261 = load ptr, ptr %36, align 8, !tbaa !22
  %262 = getelementptr inbounds double, ptr %261, i64 %.1165.epil
  store double 0.000000e+00, ptr %262, align 8, !tbaa !23
  %263 = add nuw nsw i64 %.1165.epil, 1
  %epil.iter226.next = add i64 %epil.iter226, 1
  %epil.iter226.cmp.not = icmp eq i64 %epil.iter226.next, %xtraiter225
  br i1 %epil.iter226.cmp.not, label %.loopexit, label %.epil.preheader224, !llvm.loop !37

.loopexit.loopexit189.unr-lcssa:                  ; preds = %66, %.lr.ph163
  %.2161.unr = phi i64 [ 0, %.lr.ph163 ], [ %86, %66 ]
  %lcmp.mod221.not = icmp eq i64 %xtraiter219, 0
  br i1 %lcmp.mod221.not, label %.loopexit, label %.loopexit.loopexit189.epilog-lcssa

.loopexit.loopexit189.epilog-lcssa:               ; preds = %.loopexit.loopexit189.unr-lcssa
  %264 = load ptr, ptr %62, align 8, !tbaa !22
  %265 = load ptr, ptr %27, align 8, !tbaa !22
  %266 = getelementptr inbounds i64, ptr %265, i64 %63
  %267 = load i64, ptr %266, align 8, !tbaa !27
  %268 = getelementptr double, ptr %264, i64 %267
  %269 = getelementptr i8, ptr %268, i64 -8
  %270 = load double, ptr %269, align 8, !tbaa !23
  %271 = load ptr, ptr %64, align 8, !tbaa !22
  %272 = getelementptr inbounds double, ptr %271, i64 %.2161.unr
  store double %270, ptr %272, align 8, !tbaa !23
  br label %.loopexit

.loopexit.loopexit190.unr-lcssa:                  ; preds = %107, %.lr.ph159
  %.3157.unr = phi i64 [ 0, %.lr.ph159 ], [ %127, %107 ]
  %lcmp.mod215.not = icmp eq i64 %xtraiter213, 0
  br i1 %lcmp.mod215.not, label %.loopexit, label %.loopexit.loopexit190.epilog-lcssa

.loopexit.loopexit190.epilog-lcssa:               ; preds = %.loopexit.loopexit190.unr-lcssa
  %273 = load ptr, ptr %103, align 8, !tbaa !22
  %274 = load ptr, ptr %27, align 8, !tbaa !22
  %275 = getelementptr inbounds i64, ptr %274, i64 %104
  %276 = load i64, ptr %275, align 8, !tbaa !27
  %277 = getelementptr double, ptr %273, i64 %276
  %278 = getelementptr i8, ptr %277, i64 -8
  %279 = load double, ptr %278, align 8, !tbaa !23
  %280 = load ptr, ptr %105, align 8, !tbaa !22
  %281 = getelementptr inbounds double, ptr %280, i64 %.3157.unr
  store double %279, ptr %281, align 8, !tbaa !23
  br label %.loopexit

.loopexit.loopexit191.unr-lcssa:                  ; preds = %.lr.ph155.split.us, %.lr.ph155.split.us.preheader
  %.5154.us.unr = phi i64 [ 0, %.lr.ph155.split.us.preheader ], [ %195, %.lr.ph155.split.us ]
  %lcmp.mod209.not = icmp eq i64 %xtraiter207, 0
  br i1 %lcmp.mod209.not, label %.loopexit, label %.lr.ph155.split.us.epil

.lr.ph155.split.us.epil:                          ; preds = %.loopexit.loopexit191.unr-lcssa
  %282 = load ptr, ptr %168, align 8, !tbaa !22
  %283 = load double, ptr %282, align 8, !tbaa !23
  %284 = load ptr, ptr %169, align 8, !tbaa !22
  %285 = load double, ptr %284, align 8, !tbaa !23
  %286 = fmul double %283, %285
  %287 = load ptr, ptr %171, align 8, !tbaa !22
  %288 = getelementptr inbounds double, ptr %287, i64 %.5154.us.unr
  store double %286, ptr %288, align 8, !tbaa !23
  %289 = load ptr, ptr %169, align 8, !tbaa !22
  %290 = getelementptr inbounds double, ptr %289, i64 %170
  store double %286, ptr %290, align 8, !tbaa !23
  br label %.loopexit

.loopexit.loopexit193.unr-lcssa:                  ; preds = %11, %.lr.ph
  %.0144.unr = phi i64 [ 0, %.lr.ph ], [ %23, %11 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit193.unr-lcssa, %.epil.preheader
  %.0144.epil = phi i64 [ %293, %.epil.preheader ], [ %.0144.unr, %.loopexit.loopexit193.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit.loopexit193.unr-lcssa ]
  %291 = load ptr, ptr %9, align 8, !tbaa !22
  %292 = getelementptr inbounds double, ptr %291, i64 %.0144.epil
  store double 0.000000e+00, ptr %292, align 8, !tbaa !23
  %293 = add nuw nsw i64 %.0144.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 !38

.loopexit:                                        ; preds = %.loopexit.loopexit193.unr-lcssa, %.epil.preheader, %._crit_edge, %.lr.ph155.split.us.epil, %.loopexit.loopexit191.unr-lcssa, %.loopexit.loopexit190.epilog-lcssa, %.loopexit.loopexit190.unr-lcssa, %.loopexit.loopexit189.epilog-lcssa, %.loopexit.loopexit189.unr-lcssa, %.loopexit.loopexit.unr-lcssa, %.epil.preheader224, %.preheader141, %.preheader139, %95, %53, %.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

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


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