; 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.247 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.248 = external hidden unnamed_addr constant [47 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
declare dso_local void @_ZN11alglib_impl20ssaanalyzelastwindowEPNS_8ssamodelEPNS_9ae_vectorES3_PlPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14ssaanalyzelastEPNS_8ssamodelElPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %16)
  %17 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %17)
  %18 = load i64, ptr %7, align 8, !tbaa !9
  %19 = icmp sge i64 %18, 1
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef @.str.247, ptr noundef %20)
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = load i64, ptr %7, align 8, !tbaa !9
  %23 = load ptr, ptr %10, 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 %9, align 8, !tbaa !5
  %25 = load i64, ptr %7, align 8, !tbaa !9
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef %25, ptr noundef %26)
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %27, ptr noundef %28)
  br i1 %29, label %30, label %34

30:                                               ; preds = %5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = call noundef zeroext i1 @_ZN11alglib_implL23ssa_issequencebigenoughEPNS_8ssamodelElPNS_8ae_stateE(ptr noundef %31, i64 noundef -1, ptr noundef %32)
  br i1 %33, label %123, label %34

34:                                               ; preds = %30, %5
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %35

35:                                               ; preds = %51, %34
  %36 = load i64, ptr %11, align 8, !tbaa !9
  %37 = load i64, ptr %7, align 8, !tbaa !9
  %38 = sub nsw i64 %37, 1
  %39 = icmp sle i64 %36, %38
  br i1 %39, label %40, label %54

40:                                               ; preds = %35
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %44 = load i64, ptr %11, align 8, !tbaa !9
  %45 = getelementptr inbounds double, ptr %43, i64 %44
  store double 0.000000e+00, ptr %45, align 8, !tbaa !12
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = load i64, ptr %11, align 8, !tbaa !9
  %50 = getelementptr inbounds double, ptr %48, i64 %49
  store double 0.000000e+00, ptr %50, align 8, !tbaa !12
  br label %51

51:                                               ; preds = %40
  %52 = load i64, ptr %11, align 8, !tbaa !9
  %53 = add nsw i64 %52, 1
  store i64 %53, ptr %11, align 8, !tbaa !9
  br label %35, !llvm.loop !14

54:                                               ; preds = %35
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %55, i32 0, i32 0
  %57 = load i64, ptr %56, align 8, !tbaa !16
  %58 = icmp sge i64 %57, 1
  br i1 %58, label %59, label %122

59:                                               ; preds = %54
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %60, i32 0, i32 1
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %61, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !11
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %64, i32 0, i32 0
  %66 = load i64, ptr %65, align 8, !tbaa !16
  %67 = getelementptr inbounds i64, ptr %63, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %69, i32 0, i32 1
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %70, i32 0, i32 4
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %73, i32 0, i32 0
  %75 = load i64, ptr %74, align 8, !tbaa !16
  %76 = sub nsw i64 %75, 1
  %77 = getelementptr inbounds i64, ptr %72, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = sub nsw i64 %68, %78
  %80 = load i64, ptr %7, align 8, !tbaa !9
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %79, i64 noundef %80, ptr noundef %81)
  store i64 %82, ptr %13, align 8, !tbaa !9
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %83, i32 0, i32 1
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !11
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %87, i32 0, i32 0
  %89 = load i64, ptr %88, align 8, !tbaa !16
  %90 = getelementptr inbounds i64, ptr %86, i64 %89
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = load i64, ptr %13, align 8, !tbaa !9
  %93 = sub nsw i64 %91, %92
  store i64 %93, ptr %12, align 8, !tbaa !9
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %94

94:                                               ; preds = %118, %59
  %95 = load i64, ptr %11, align 8, !tbaa !9
  %96 = load i64, ptr %13, align 8, !tbaa !9
  %97 = sub nsw i64 %96, 1
  %98 = icmp sle i64 %95, %97
  br i1 %98, label %99, label %121

99:                                               ; preds = %94
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %100, i32 0, i32 2
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %101, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !11
  %104 = load i64, ptr %12, align 8, !tbaa !9
  %105 = load i64, ptr %11, align 8, !tbaa !9
  %106 = add nsw i64 %104, %105
  %107 = getelementptr inbounds double, ptr %103, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !12
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %109, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !11
  %112 = load i64, ptr %7, align 8, !tbaa !9
  %113 = load i64, ptr %13, align 8, !tbaa !9
  %114 = sub nsw i64 %112, %113
  %115 = load i64, ptr %11, align 8, !tbaa !9
  %116 = add nsw i64 %114, %115
  %117 = getelementptr inbounds double, ptr %111, i64 %116
  store double %108, ptr %117, align 8, !tbaa !12
  br label %118

118:                                              ; preds = %99
  %119 = load i64, ptr %11, align 8, !tbaa !9
  %120 = add nsw i64 %119, 1
  store i64 %120, ptr %11, align 8, !tbaa !9
  br label %94, !llvm.loop !28

121:                                              ; preds = %94
  br label %122

122:                                              ; preds = %121, %54
  store i32 1, ptr %15, align 4
  br label %301

123:                                              ; preds = %30
  %124 = load i64, ptr %7, align 8, !tbaa !9
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %125, i32 0, i32 4
  %127 = load i64, ptr %126, align 8, !tbaa !29
  %128 = icmp sle i64 %124, %127
  br i1 %128, label %129, label %179

129:                                              ; preds = %123
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %131, i32 0, i32 29
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %133, i32 0, i32 30
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ssaanalyzelastwindowEPNS_8ssamodelEPNS_9ae_vectorES3_PlPNS_8ae_stateE(ptr noundef %130, ptr noundef %132, ptr noundef %134, ptr noundef %13, ptr noundef %135)
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %136, i32 0, i32 4
  %138 = load i64, ptr %137, align 8, !tbaa !29
  %139 = load i64, ptr %7, align 8, !tbaa !9
  %140 = sub nsw i64 %138, %139
  store i64 %140, ptr %12, align 8, !tbaa !9
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %141

141:                                              ; preds = %175, %129
  %142 = load i64, ptr %11, align 8, !tbaa !9
  %143 = load i64, ptr %7, align 8, !tbaa !9
  %144 = sub nsw i64 %143, 1
  %145 = icmp sle i64 %142, %144
  br i1 %145, label %146, label %178

146:                                              ; preds = %141
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %147, i32 0, i32 29
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %148, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !11
  %151 = load i64, ptr %12, align 8, !tbaa !9
  %152 = load i64, ptr %11, align 8, !tbaa !9
  %153 = add nsw i64 %151, %152
  %154 = getelementptr inbounds double, ptr %150, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !12
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %156, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !11
  %159 = load i64, ptr %11, align 8, !tbaa !9
  %160 = getelementptr inbounds double, ptr %158, i64 %159
  store double %155, ptr %160, align 8, !tbaa !12
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %161, i32 0, i32 30
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %162, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !11
  %165 = load i64, ptr %12, align 8, !tbaa !9
  %166 = load i64, ptr %11, align 8, !tbaa !9
  %167 = add nsw i64 %165, %166
  %168 = getelementptr inbounds double, ptr %164, i64 %167
  %169 = load double, ptr %168, align 8, !tbaa !12
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %170, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !11
  %173 = load i64, ptr %11, align 8, !tbaa !9
  %174 = getelementptr inbounds double, ptr %172, i64 %173
  store double %169, ptr %174, align 8, !tbaa !12
  br label %175

175:                                              ; preds = %146
  %176 = load i64, ptr %11, align 8, !tbaa !9
  %177 = add nsw i64 %176, 1
  store i64 %177, ptr %11, align 8, !tbaa !9
  br label %141, !llvm.loop !30

178:                                              ; preds = %141
  store i32 1, ptr %15, align 4
  br label %301

179:                                              ; preds = %123
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef %180, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %181)
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %182, i32 0, i32 1
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %183, i32 0, i32 4
  %185 = load ptr, ptr %184, align 8, !tbaa !11
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %186, i32 0, i32 0
  %188 = load i64, ptr %187, align 8, !tbaa !16
  %189 = getelementptr inbounds i64, ptr %185, i64 %188
  %190 = load i64, ptr %189, align 8, !tbaa !9
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %191, i32 0, i32 1
  %193 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %192, i32 0, i32 4
  %194 = load ptr, ptr %193, align 8, !tbaa !11
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %195, i32 0, i32 0
  %197 = load i64, ptr %196, align 8, !tbaa !16
  %198 = sub nsw i64 %197, 1
  %199 = getelementptr inbounds i64, ptr %194, i64 %198
  %200 = load i64, ptr %199, align 8, !tbaa !9
  %201 = sub nsw i64 %190, %200
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %202, i32 0, i32 4
  %204 = load i64, ptr %203, align 8, !tbaa !29
  %205 = icmp sge i64 %201, %204
  %206 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %205, ptr noundef @.str.248, ptr noundef %206)
  %207 = load i64, ptr %7, align 8, !tbaa !9
  %208 = load ptr, ptr %6, 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 !11
  %212 = load ptr, ptr %6, 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 !16
  %215 = getelementptr inbounds i64, ptr %211, i64 %214
  %216 = load i64, ptr %215, align 8, !tbaa !9
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %217, i32 0, i32 1
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %218, i32 0, i32 4
  %220 = load ptr, ptr %219, align 8, !tbaa !11
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %221, i32 0, i32 0
  %223 = load i64, ptr %222, align 8, !tbaa !16
  %224 = sub nsw i64 %223, 1
  %225 = getelementptr inbounds i64, ptr %220, i64 %224
  %226 = load i64, ptr %225, align 8, !tbaa !9
  %227 = sub nsw i64 %216, %226
  %228 = sub nsw i64 %207, %227
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  %230 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %228, i64 noundef 0, ptr noundef %229)
  store i64 %230, ptr %14, align 8, !tbaa !9
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %231

231:                                              ; preds = %247, %179
  %232 = load i64, ptr %11, align 8, !tbaa !9
  %233 = load i64, ptr %14, align 8, !tbaa !9
  %234 = sub nsw i64 %233, 1
  %235 = icmp sle i64 %232, %234
  br i1 %235, label %236, label %250

236:                                              ; preds = %231
  %237 = load ptr, ptr %8, align 8, !tbaa !5
  %238 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %237, i32 0, i32 4
  %239 = load ptr, ptr %238, align 8, !tbaa !11
  %240 = load i64, ptr %11, align 8, !tbaa !9
  %241 = getelementptr inbounds double, ptr %239, i64 %240
  store double 0.000000e+00, ptr %241, align 8, !tbaa !12
  %242 = load ptr, ptr %9, align 8, !tbaa !5
  %243 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %242, i32 0, i32 4
  %244 = load ptr, ptr %243, align 8, !tbaa !11
  %245 = load i64, ptr %11, align 8, !tbaa !9
  %246 = getelementptr inbounds double, ptr %244, i64 %245
  store double 0.000000e+00, ptr %246, align 8, !tbaa !12
  br label %247

247:                                              ; preds = %236
  %248 = load i64, ptr %11, align 8, !tbaa !9
  %249 = add nsw i64 %248, 1
  store i64 %249, ptr %11, align 8, !tbaa !9
  br label %231, !llvm.loop !31

250:                                              ; preds = %231
  %251 = load i64, ptr %7, align 8, !tbaa !9
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  %253 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %252, i32 0, i32 1
  %254 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %253, i32 0, i32 4
  %255 = load ptr, ptr %254, align 8, !tbaa !11
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %256, i32 0, i32 0
  %258 = load i64, ptr %257, align 8, !tbaa !16
  %259 = getelementptr inbounds i64, ptr %255, i64 %258
  %260 = load i64, ptr %259, align 8, !tbaa !9
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  %262 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %261, i32 0, i32 1
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %262, i32 0, i32 4
  %264 = load ptr, ptr %263, align 8, !tbaa !11
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  %266 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %265, i32 0, i32 0
  %267 = load i64, ptr %266, align 8, !tbaa !16
  %268 = sub nsw i64 %267, 1
  %269 = getelementptr inbounds i64, ptr %264, i64 %268
  %270 = load i64, ptr %269, align 8, !tbaa !9
  %271 = sub nsw i64 %260, %270
  %272 = load ptr, ptr %10, align 8, !tbaa !5
  %273 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %251, i64 noundef %271, ptr noundef %272)
  store i64 %273, ptr %13, align 8, !tbaa !9
  %274 = load ptr, ptr %6, align 8, !tbaa !5
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %275, i32 0, i32 2
  %277 = load ptr, ptr %6, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %277, i32 0, i32 1
  %279 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %278, i32 0, i32 4
  %280 = load ptr, ptr %279, align 8, !tbaa !11
  %281 = load ptr, ptr %6, align 8, !tbaa !5
  %282 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %281, i32 0, i32 0
  %283 = load i64, ptr %282, align 8, !tbaa !16
  %284 = getelementptr inbounds i64, ptr %280, i64 %283
  %285 = load i64, ptr %284, align 8, !tbaa !9
  %286 = load i64, ptr %13, align 8, !tbaa !9
  %287 = sub nsw i64 %285, %286
  %288 = load ptr, ptr %6, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %288, i32 0, i32 1
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %289, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !11
  %292 = load ptr, ptr %6, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %292, i32 0, i32 0
  %294 = load i64, ptr %293, align 8, !tbaa !16
  %295 = getelementptr inbounds i64, ptr %291, i64 %294
  %296 = load i64, ptr %295, align 8, !tbaa !9
  %297 = load ptr, ptr %8, align 8, !tbaa !5
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  %299 = load i64, ptr %14, align 8, !tbaa !9
  %300 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL19ssa_analyzesequenceEPNS_8ssamodelEPNS_9ae_vectorEllS3_S3_lPNS_8ae_stateE(ptr noundef %274, ptr noundef %276, i64 noundef %287, i64 noundef %296, ptr noundef %297, ptr noundef %298, i64 noundef %299, ptr noundef %300)
  store i32 0, ptr %15, align 4
  br label %301

301:                                              ; preds = %250, %178, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %302 = load i32, ptr %15, align 4
  switch i32 %302, label %304 [
    i32 0, label %303
    i32 1, label %303
  ]

303:                                              ; preds = %301, %301
  ret void

304:                                              ; preds = %301
  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

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

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 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) #3

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTSN11alglib_impl8ssamodelE", !10, i64 0, !18, i64 8, !18, i64 72, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !21, i64 184, !10, i64 264, !10, i64 272, !19, i64 280, !21, i64 288, !21, i64 368, !18, i64 448, !18, i64 512, !10, i64 576, !22, i64 584, !21, i64 2968, !23, i64 3048, !10, i64 3072, !18, i64 3080, !10, i64 3144, !10, i64 3152, !10, i64 3160, !18, i64 3168, !18, i64 3232, !27, i64 3296, !18, i64 3304, !18, i64 3368, !21, i64 3432, !21, i64 3512, !18, i64 3592, !18, i64 3656, !18, i64 3720, !21, i64 3784, !21, i64 3864, !10, i64 3944, !10, i64 3952, !10, i64 3960}
!18 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !19, i64 16, !20, i64 24, !7, i64 56}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !19, i64 32, !20, i64 40, !7, i64 72}
!22 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !10, i64 40, !10, i64 48, !19, i64 56, !19, i64 57, !23, i64 64, !19, i64 88, !18, i64 96, !21, i64 160, !21, i64 240, !21, i64 320, !21, i64 400, !21, i64 480, !21, i64 560, !21, i64 640, !21, i64 720, !21, i64 800, !18, i64 880, !18, i64 944, !18, i64 1008, !18, i64 1072, !18, i64 1136, !24, i64 1200, !21, i64 1936, !21, i64 2016, !10, i64 2096, !10, i64 2104, !10, i64 2112, !25, i64 2120}
!23 = !{!"_ZTSN11alglib_impl10hqrndstateE", !10, i64 0, !10, i64 8, !10, i64 16}
!24 = !{!"_ZTSN11alglib_impl9apbuffersE", !18, i64 0, !18, i64 64, !18, i64 128, !18, i64 192, !18, i64 256, !18, i64 320, !18, i64 384, !18, i64 448, !18, i64 512, !21, i64 576, !21, i64 656}
!25 = !{!"_ZTSN11alglib_impl10rcommstateE", !26, i64 0, !18, i64 8, !18, i64 72, !18, i64 136, !18, i64 200}
!26 = !{!"int", !7, i64 0}
!27 = !{!"_ZTSN11alglib_impl17eigsubspacereportE", !10, i64 0}
!28 = distinct !{!28, !15}
!29 = !{!17, !10, i64 144}
!30 = distinct !{!30, !15}
!31 = distinct !{!31, !15}


; 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.247 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.248 = external hidden unnamed_addr constant [47 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl20ssaanalyzelastwindowEPNS_8ssamodelEPNS_9ae_vectorES3_PlPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14ssaanalyzelastEPNS_8ssamodelElPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #2 {
  %6 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %2)
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %3)
  %7 = icmp sgt i64 %1, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.247, ptr noundef %4)
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %1, ptr noundef %4)
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %3, i64 noundef %1, ptr noundef %4)
  %8 = tail call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %0, ptr noundef %4)
  br i1 %8, label %9, label %11

9:                                                ; preds = %5
  %10 = tail call noundef zeroext i1 @_ZN11alglib_implL23ssa_issequencebigenoughEPNS_8ssamodelElPNS_8ae_stateE(ptr noundef %0, i64 noundef -1, ptr noundef %4)
  br i1 %10, label %83, label %11

11:                                               ; preds = %9, %5
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %11
  %12 = getelementptr inbounds i8, ptr %2, i64 56
  %13 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter = and i64 %1, 1
  %14 = icmp eq i64 %1, 1
  br i1 %14, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

15:                                               ; preds = %15, %.lr.ph.new
  %.0104 = phi i64 [ 0, %.lr.ph.new ], [ %25, %15 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %15 ]
  %16 = load ptr, ptr %12, align 8, !tbaa !5
  %17 = getelementptr inbounds double, ptr %16, i64 %.0104
  store double 0.000000e+00, ptr %17, align 8, !tbaa !8
  %18 = load ptr, ptr %13, align 8, !tbaa !5
  %19 = getelementptr inbounds double, ptr %18, i64 %.0104
  store double 0.000000e+00, ptr %19, align 8, !tbaa !8
  %20 = or disjoint i64 %.0104, 1
  %21 = load ptr, ptr %12, align 8, !tbaa !5
  %22 = getelementptr inbounds double, ptr %21, i64 %20
  store double 0.000000e+00, ptr %22, align 8, !tbaa !8
  %23 = load ptr, ptr %13, align 8, !tbaa !5
  %24 = getelementptr inbounds double, ptr %23, i64 %20
  store double 0.000000e+00, ptr %24, align 8, !tbaa !8
  %25 = add nuw nsw i64 %.0104, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %15, !llvm.loop !10

._crit_edge.loopexit.unr-lcssa:                   ; preds = %15, %.lr.ph
  %.0104.unr = phi i64 [ 0, %.lr.ph ], [ %25, %15 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  %27 = getelementptr inbounds double, ptr %26, i64 %.0104.unr
  store double 0.000000e+00, ptr %27, align 8, !tbaa !8
  %28 = load ptr, ptr %13, align 8, !tbaa !5
  %29 = getelementptr inbounds double, ptr %28, i64 %.0104.unr
  store double 0.000000e+00, ptr %29, align 8, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %11
  %30 = load i64, ptr %0, align 8, !tbaa !12
  %31 = icmp sgt i64 %30, 0
  br i1 %31, label %32, label %.loopexit

32:                                               ; preds = %._crit_edge
  %33 = getelementptr inbounds i8, ptr %0, i64 64
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = getelementptr inbounds i64, ptr %34, i64 %30
  %36 = load i64, ptr %35, align 8, !tbaa !26
  %37 = getelementptr i8, ptr %35, i64 -8
  %38 = load i64, ptr %37, align 8, !tbaa !26
  %39 = sub nsw i64 %36, %38
  %40 = tail call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %39, i64 noundef %1, ptr noundef %4)
  %41 = load ptr, ptr %33, align 8, !tbaa !5
  %42 = load i64, ptr %0, align 8, !tbaa !12
  %43 = getelementptr inbounds i64, ptr %41, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !26
  %45 = sub nsw i64 %44, %40
  %.not.not98105 = icmp sgt i64 %40, 0
  br i1 %.not.not98105, label %.lr.ph108, label %.loopexit

.lr.ph108:                                        ; preds = %32
  %46 = getelementptr inbounds i8, ptr %0, i64 128
  %47 = getelementptr inbounds i8, ptr %3, i64 56
  %48 = sub nsw i64 %1, %40
  %xtraiter126 = and i64 %40, 3
  %49 = icmp ult i64 %40, 4
  br i1 %49, label %.loopexit.loopexit124.unr-lcssa, label %.lr.ph108.new

.lr.ph108.new:                                    ; preds = %.lr.ph108
  %unroll_iter128 = and i64 %40, 9223372036854775804
  br label %50

50:                                               ; preds = %50, %.lr.ph108.new
  %.1106 = phi i64 [ 0, %.lr.ph108.new ], [ %82, %50 ]
  %niter129 = phi i64 [ 0, %.lr.ph108.new ], [ %niter129.next.3, %50 ]
  %51 = load ptr, ptr %46, align 8, !tbaa !5
  %52 = getelementptr double, ptr %51, i64 %45
  %53 = getelementptr double, ptr %52, i64 %.1106
  %54 = load double, ptr %53, align 8, !tbaa !8
  %55 = load ptr, ptr %47, align 8, !tbaa !5
  %56 = getelementptr double, ptr %55, i64 %48
  %57 = getelementptr double, ptr %56, i64 %.1106
  store double %54, ptr %57, align 8, !tbaa !8
  %58 = or disjoint i64 %.1106, 1
  %59 = load ptr, ptr %46, align 8, !tbaa !5
  %60 = getelementptr double, ptr %59, i64 %45
  %61 = getelementptr double, ptr %60, i64 %58
  %62 = load double, ptr %61, align 8, !tbaa !8
  %63 = load ptr, ptr %47, align 8, !tbaa !5
  %64 = getelementptr double, ptr %63, i64 %48
  %65 = getelementptr double, ptr %64, i64 %58
  store double %62, ptr %65, align 8, !tbaa !8
  %66 = or disjoint i64 %.1106, 2
  %67 = load ptr, ptr %46, align 8, !tbaa !5
  %68 = getelementptr double, ptr %67, i64 %45
  %69 = getelementptr double, ptr %68, i64 %66
  %70 = load double, ptr %69, align 8, !tbaa !8
  %71 = load ptr, ptr %47, align 8, !tbaa !5
  %72 = getelementptr double, ptr %71, i64 %48
  %73 = getelementptr double, ptr %72, i64 %66
  store double %70, ptr %73, align 8, !tbaa !8
  %74 = or disjoint i64 %.1106, 3
  %75 = load ptr, ptr %46, align 8, !tbaa !5
  %76 = getelementptr double, ptr %75, i64 %45
  %77 = getelementptr double, ptr %76, i64 %74
  %78 = load double, ptr %77, align 8, !tbaa !8
  %79 = load ptr, ptr %47, align 8, !tbaa !5
  %80 = getelementptr double, ptr %79, i64 %48
  %81 = getelementptr double, ptr %80, i64 %74
  store double %78, ptr %81, align 8, !tbaa !8
  %82 = add nuw nsw i64 %.1106, 4
  %niter129.next.3 = add i64 %niter129, 4
  %niter129.ncmp.3 = icmp eq i64 %niter129.next.3, %unroll_iter128
  br i1 %niter129.ncmp.3, label %.loopexit.loopexit124.unr-lcssa, label %50, !llvm.loop !27

83:                                               ; preds = %9
  %84 = getelementptr inbounds i8, ptr %0, i64 144
  %85 = load i64, ptr %84, align 8, !tbaa !28
  %.not = icmp slt i64 %85, %1
  br i1 %.not, label %121, label %86

86:                                               ; preds = %83
  %87 = getelementptr inbounds i8, ptr %0, i64 3304
  %88 = getelementptr inbounds i8, ptr %0, i64 3368
  call void @_ZN11alglib_impl20ssaanalyzelastwindowEPNS_8ssamodelEPNS_9ae_vectorES3_PlPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %87, ptr noundef nonnull %88, ptr noundef nonnull %6, ptr noundef %4)
  %89 = load i64, ptr %84, align 8, !tbaa !28
  %90 = sub nsw i64 %89, %1
  br i1 %7, label %.lr.ph112, label %.loopexit

.lr.ph112:                                        ; preds = %86
  %91 = getelementptr inbounds i8, ptr %0, i64 3360
  %92 = getelementptr inbounds i8, ptr %2, i64 56
  %93 = getelementptr inbounds i8, ptr %0, i64 3424
  %94 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter131 = and i64 %1, 1
  %95 = icmp eq i64 %1, 1
  br i1 %95, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph112.new

.lr.ph112.new:                                    ; preds = %.lr.ph112
  %unroll_iter134 = and i64 %1, 9223372036854775806
  br label %96

96:                                               ; preds = %96, %.lr.ph112.new
  %.2110 = phi i64 [ 0, %.lr.ph112.new ], [ %120, %96 ]
  %niter135 = phi i64 [ 0, %.lr.ph112.new ], [ %niter135.next.1, %96 ]
  %97 = load ptr, ptr %91, align 8, !tbaa !5
  %98 = add nsw i64 %.2110, %90
  %99 = getelementptr inbounds double, ptr %97, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !8
  %101 = load ptr, ptr %92, align 8, !tbaa !5
  %102 = getelementptr inbounds double, ptr %101, i64 %.2110
  store double %100, ptr %102, align 8, !tbaa !8
  %103 = load ptr, ptr %93, align 8, !tbaa !5
  %104 = getelementptr inbounds double, ptr %103, i64 %98
  %105 = load double, ptr %104, align 8, !tbaa !8
  %106 = load ptr, ptr %94, align 8, !tbaa !5
  %107 = getelementptr inbounds double, ptr %106, i64 %.2110
  store double %105, ptr %107, align 8, !tbaa !8
  %108 = or disjoint i64 %.2110, 1
  %109 = load ptr, ptr %91, align 8, !tbaa !5
  %110 = add nsw i64 %108, %90
  %111 = getelementptr inbounds double, ptr %109, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !8
  %113 = load ptr, ptr %92, align 8, !tbaa !5
  %114 = getelementptr inbounds double, ptr %113, i64 %108
  store double %112, ptr %114, align 8, !tbaa !8
  %115 = load ptr, ptr %93, align 8, !tbaa !5
  %116 = getelementptr inbounds double, ptr %115, i64 %110
  %117 = load double, ptr %116, align 8, !tbaa !8
  %118 = load ptr, ptr %94, align 8, !tbaa !5
  %119 = getelementptr inbounds double, ptr %118, i64 %108
  store double %117, ptr %119, align 8, !tbaa !8
  %120 = add nuw nsw i64 %.2110, 2
  %niter135.next.1 = add i64 %niter135, 2
  %niter135.ncmp.1 = icmp eq i64 %niter135.next.1, %unroll_iter134
  br i1 %niter135.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %96, !llvm.loop !29

121:                                              ; preds = %83
  tail call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %4)
  %122 = getelementptr inbounds i8, ptr %0, i64 64
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = load i64, ptr %0, align 8, !tbaa !12
  %125 = getelementptr inbounds i64, ptr %123, i64 %124
  %126 = load i64, ptr %125, align 8, !tbaa !26
  %127 = getelementptr i8, ptr %125, i64 -8
  %128 = load i64, ptr %127, align 8, !tbaa !26
  %129 = sub nsw i64 %126, %128
  %130 = load i64, ptr %84, align 8, !tbaa !28
  %131 = icmp sge i64 %129, %130
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %131, ptr noundef nonnull @.str.248, ptr noundef %4)
  %132 = load ptr, ptr %122, align 8, !tbaa !5
  %133 = load i64, ptr %0, align 8, !tbaa !12
  %134 = getelementptr inbounds i64, ptr %132, i64 %133
  %135 = load i64, ptr %134, align 8, !tbaa !26
  %136 = getelementptr i8, ptr %134, i64 -8
  %137 = load i64, ptr %136, align 8, !tbaa !26
  %.neg = sub i64 %1, %135
  %138 = add i64 %.neg, %137
  %139 = tail call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %138, i64 noundef 0, ptr noundef %4)
  %.not99.not113 = icmp sgt i64 %139, 0
  br i1 %.not99.not113, label %.lr.ph116, label %._crit_edge117

.lr.ph116:                                        ; preds = %121
  %140 = getelementptr inbounds i8, ptr %2, i64 56
  %141 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter137 = and i64 %139, 1
  %142 = icmp eq i64 %139, 1
  br i1 %142, label %._crit_edge117.loopexit.unr-lcssa, label %.lr.ph116.new

.lr.ph116.new:                                    ; preds = %.lr.ph116
  %unroll_iter140 = and i64 %139, 9223372036854775806
  br label %143

143:                                              ; preds = %143, %.lr.ph116.new
  %.3114 = phi i64 [ 0, %.lr.ph116.new ], [ %153, %143 ]
  %niter141 = phi i64 [ 0, %.lr.ph116.new ], [ %niter141.next.1, %143 ]
  %144 = load ptr, ptr %140, align 8, !tbaa !5
  %145 = getelementptr inbounds double, ptr %144, i64 %.3114
  store double 0.000000e+00, ptr %145, align 8, !tbaa !8
  %146 = load ptr, ptr %141, align 8, !tbaa !5
  %147 = getelementptr inbounds double, ptr %146, i64 %.3114
  store double 0.000000e+00, ptr %147, align 8, !tbaa !8
  %148 = or disjoint i64 %.3114, 1
  %149 = load ptr, ptr %140, align 8, !tbaa !5
  %150 = getelementptr inbounds double, ptr %149, i64 %148
  store double 0.000000e+00, ptr %150, align 8, !tbaa !8
  %151 = load ptr, ptr %141, align 8, !tbaa !5
  %152 = getelementptr inbounds double, ptr %151, i64 %148
  store double 0.000000e+00, ptr %152, align 8, !tbaa !8
  %153 = add nuw nsw i64 %.3114, 2
  %niter141.next.1 = add i64 %niter141, 2
  %niter141.ncmp.1 = icmp eq i64 %niter141.next.1, %unroll_iter140
  br i1 %niter141.ncmp.1, label %._crit_edge117.loopexit.unr-lcssa, label %143, !llvm.loop !30

._crit_edge117.loopexit.unr-lcssa:                ; preds = %143, %.lr.ph116
  %.3114.unr = phi i64 [ 0, %.lr.ph116 ], [ %153, %143 ]
  %lcmp.mod139.not = icmp eq i64 %xtraiter137, 0
  br i1 %lcmp.mod139.not, label %._crit_edge117, label %._crit_edge117.loopexit.epilog-lcssa

._crit_edge117.loopexit.epilog-lcssa:             ; preds = %._crit_edge117.loopexit.unr-lcssa
  %154 = load ptr, ptr %140, align 8, !tbaa !5
  %155 = getelementptr inbounds double, ptr %154, i64 %.3114.unr
  store double 0.000000e+00, ptr %155, align 8, !tbaa !8
  %156 = load ptr, ptr %141, align 8, !tbaa !5
  %157 = getelementptr inbounds double, ptr %156, i64 %.3114.unr
  store double 0.000000e+00, ptr %157, align 8, !tbaa !8
  br label %._crit_edge117

._crit_edge117:                                   ; preds = %._crit_edge117.loopexit.epilog-lcssa, %._crit_edge117.loopexit.unr-lcssa, %121
  %158 = load ptr, ptr %122, align 8, !tbaa !5
  %159 = load i64, ptr %0, align 8, !tbaa !12
  %160 = getelementptr inbounds i64, ptr %158, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !26
  %162 = getelementptr i8, ptr %160, i64 -8
  %163 = load i64, ptr %162, align 8, !tbaa !26
  %164 = sub nsw i64 %161, %163
  %165 = tail call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef %164, ptr noundef %4)
  %166 = getelementptr inbounds i8, ptr %0, i64 72
  %167 = load ptr, ptr %122, align 8, !tbaa !5
  %168 = load i64, ptr %0, align 8, !tbaa !12
  %169 = getelementptr inbounds i64, ptr %167, i64 %168
  %170 = load i64, ptr %169, align 8, !tbaa !26
  %171 = sub nsw i64 %170, %165
  tail call void @_ZN11alglib_implL19ssa_analyzesequenceEPNS_8ssamodelEPNS_9ae_vectorEllS3_S3_lPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %166, i64 noundef %171, i64 noundef %170, ptr noundef %2, ptr noundef %3, i64 noundef %139, ptr noundef %4)
  br label %.loopexit

.loopexit.loopexit.unr-lcssa:                     ; preds = %96, %.lr.ph112
  %.2110.unr = phi i64 [ 0, %.lr.ph112 ], [ %120, %96 ]
  %lcmp.mod133.not = icmp eq i64 %xtraiter131, 0
  br i1 %lcmp.mod133.not, label %.loopexit, label %.loopexit.loopexit.epilog-lcssa

.loopexit.loopexit.epilog-lcssa:                  ; preds = %.loopexit.loopexit.unr-lcssa
  %172 = load ptr, ptr %91, align 8, !tbaa !5
  %173 = add nsw i64 %.2110.unr, %90
  %174 = getelementptr inbounds double, ptr %172, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !8
  %176 = load ptr, ptr %92, align 8, !tbaa !5
  %177 = getelementptr inbounds double, ptr %176, i64 %.2110.unr
  store double %175, ptr %177, align 8, !tbaa !8
  %178 = load ptr, ptr %93, align 8, !tbaa !5
  %179 = getelementptr inbounds double, ptr %178, i64 %173
  %180 = load double, ptr %179, align 8, !tbaa !8
  %181 = load ptr, ptr %94, align 8, !tbaa !5
  %182 = getelementptr inbounds double, ptr %181, i64 %.2110.unr
  store double %180, ptr %182, align 8, !tbaa !8
  br label %.loopexit

.loopexit.loopexit124.unr-lcssa:                  ; preds = %50, %.lr.ph108
  %.1106.unr = phi i64 [ 0, %.lr.ph108 ], [ %82, %50 ]
  %lcmp.mod127.not = icmp eq i64 %xtraiter126, 0
  br i1 %lcmp.mod127.not, label %.loopexit, label %.epil.preheader125

.epil.preheader125:                               ; preds = %.loopexit.loopexit124.unr-lcssa, %.epil.preheader125
  %.1106.epil = phi i64 [ %190, %.epil.preheader125 ], [ %.1106.unr, %.loopexit.loopexit124.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader125 ], [ 0, %.loopexit.loopexit124.unr-lcssa ]
  %183 = load ptr, ptr %46, align 8, !tbaa !5
  %184 = getelementptr double, ptr %183, i64 %45
  %185 = getelementptr double, ptr %184, i64 %.1106.epil
  %186 = load double, ptr %185, align 8, !tbaa !8
  %187 = load ptr, ptr %47, align 8, !tbaa !5
  %188 = getelementptr double, ptr %187, i64 %48
  %189 = getelementptr double, ptr %188, i64 %.1106.epil
  store double %186, ptr %189, align 8, !tbaa !8
  %190 = add nuw nsw i64 %.1106.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter126
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.epil.preheader125, !llvm.loop !31

.loopexit:                                        ; preds = %.loopexit.loopexit124.unr-lcssa, %.epil.preheader125, %.loopexit.loopexit.epilog-lcssa, %.loopexit.loopexit.unr-lcssa, %32, %86, %._crit_edge, %._crit_edge117
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  ret void
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSN11alglib_impl8ssamodelE", !14, i64 0, !15, i64 8, !15, i64 72, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !19, i64 184, !14, i64 264, !14, i64 272, !16, i64 280, !19, i64 288, !19, i64 368, !15, i64 448, !15, i64 512, !14, i64 576, !20, i64 584, !19, i64 2968, !21, i64 3048, !14, i64 3072, !15, i64 3080, !14, i64 3144, !14, i64 3152, !14, i64 3160, !15, i64 3168, !15, i64 3232, !25, i64 3296, !15, i64 3304, !15, i64 3368, !19, i64 3432, !19, i64 3512, !15, i64 3592, !15, i64 3656, !15, i64 3720, !19, i64 3784, !19, i64 3864, !14, i64 3944, !14, i64 3952, !14, i64 3960}
!14 = !{!"long", !6, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !14, i64 0, !14, i64 8, !16, i64 16, !17, i64 24, !6, i64 56}
!16 = !{!"bool", !6, i64 0}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!18 = !{!"any pointer", !6, i64 0}
!19 = !{!"_ZTSN11alglib_impl9ae_matrixE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !16, i64 32, !17, i64 40, !6, i64 72}
!20 = !{!"_ZTSN11alglib_impl16eigsubspacestateE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !9, i64 32, !14, i64 40, !14, i64 48, !16, i64 56, !16, i64 57, !21, i64 64, !16, i64 88, !15, i64 96, !19, i64 160, !19, i64 240, !19, i64 320, !19, i64 400, !19, i64 480, !19, i64 560, !19, i64 640, !19, i64 720, !19, i64 800, !15, i64 880, !15, i64 944, !15, i64 1008, !15, i64 1072, !15, i64 1136, !22, i64 1200, !19, i64 1936, !19, i64 2016, !14, i64 2096, !14, i64 2104, !14, i64 2112, !23, i64 2120}
!21 = !{!"_ZTSN11alglib_impl10hqrndstateE", !14, i64 0, !14, i64 8, !14, i64 16}
!22 = !{!"_ZTSN11alglib_impl9apbuffersE", !15, i64 0, !15, i64 64, !15, i64 128, !15, i64 192, !15, i64 256, !15, i64 320, !15, i64 384, !15, i64 448, !15, i64 512, !19, i64 576, !19, i64 656}
!23 = !{!"_ZTSN11alglib_impl10rcommstateE", !24, i64 0, !15, i64 8, !15, i64 72, !15, i64 136, !15, i64 200}
!24 = !{!"int", !6, i64 0}
!25 = !{!"_ZTSN11alglib_impl17eigsubspacereportE", !14, i64 0}
!26 = !{!14, !14, i64 0}
!27 = distinct !{!27, !11}
!28 = !{!13, !14, i64 144}
!29 = distinct !{!29, !11}
!30 = distinct !{!30, !11}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.unroll.disable"}


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