; 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.246 = external hidden unnamed_addr constant [45 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_impl20ssaanalyzelastwindowEPNS_8ssamodelEPNS_9ae_vectorES3_PlPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, 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 i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store 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
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %15)
  %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
  store i64 0, ptr %17, align 8, !tbaa !9
  %18 = load ptr, ptr %6, 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
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 %20, ptr %21, align 8, !tbaa !9
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %23, i32 0, i32 4
  %25 = load i64, ptr %24, align 8, !tbaa !11
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %25, ptr noundef %26)
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %28, i32 0, i32 4
  %30 = load i64, ptr %29, align 8, !tbaa !11
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %27, i64 noundef %30, ptr noundef %31)
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %32, ptr noundef %33)
  br i1 %34, label %35, label %39

35:                                               ; preds = %5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = call noundef zeroext i1 @_ZN11alglib_implL23ssa_issequencebigenoughEPNS_8ssamodelElPNS_8ae_stateE(ptr noundef %36, i64 noundef -1, ptr noundef %37)
  br i1 %38, label %131, label %39

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

40:                                               ; preds = %57, %39
  %41 = load i64, ptr %11, align 8, !tbaa !9
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = load i64, ptr %42, align 8, !tbaa !9
  %44 = sub nsw i64 %43, 1
  %45 = icmp sle i64 %41, %44
  br i1 %45, label %46, label %60

46:                                               ; preds = %40
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %49 = load ptr, ptr %48, align 8, !tbaa !24
  %50 = load i64, ptr %11, align 8, !tbaa !9
  %51 = getelementptr inbounds double, ptr %49, i64 %50
  store double 0.000000e+00, ptr %51, align 8, !tbaa !25
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !24
  %55 = load i64, ptr %11, align 8, !tbaa !9
  %56 = getelementptr inbounds double, ptr %54, i64 %55
  store double 0.000000e+00, ptr %56, align 8, !tbaa !25
  br label %57

57:                                               ; preds = %46
  %58 = load i64, ptr %11, align 8, !tbaa !9
  %59 = add nsw i64 %58, 1
  store i64 %59, ptr %11, align 8, !tbaa !9
  br label %40, !llvm.loop !26

60:                                               ; preds = %40
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %61, i32 0, i32 0
  %63 = load i64, ptr %62, align 8, !tbaa !28
  %64 = icmp sge i64 %63, 1
  br i1 %64, label %65, label %130

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

101:                                              ; preds = %126, %65
  %102 = load i64, ptr %11, align 8, !tbaa !9
  %103 = load i64, ptr %13, align 8, !tbaa !9
  %104 = sub nsw i64 %103, 1
  %105 = icmp sle i64 %102, %104
  br i1 %105, label %106, label %129

106:                                              ; preds = %101
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %107, i32 0, i32 2
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %108, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !24
  %111 = load i64, ptr %12, align 8, !tbaa !9
  %112 = load i64, ptr %11, align 8, !tbaa !9
  %113 = add nsw i64 %111, %112
  %114 = getelementptr inbounds double, ptr %110, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !25
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !24
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = load i64, ptr %119, align 8, !tbaa !9
  %121 = load i64, ptr %13, align 8, !tbaa !9
  %122 = sub nsw i64 %120, %121
  %123 = load i64, ptr %11, align 8, !tbaa !9
  %124 = add nsw i64 %122, %123
  %125 = getelementptr inbounds double, ptr %118, i64 %124
  store double %115, ptr %125, align 8, !tbaa !25
  br label %126

126:                                              ; preds = %106
  %127 = load i64, ptr %11, align 8, !tbaa !9
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %11, align 8, !tbaa !9
  br label %101, !llvm.loop !29

129:                                              ; preds = %101
  br label %130

130:                                              ; preds = %129, %60
  store i32 1, ptr %14, align 4
  br label %240

131:                                              ; preds = %35
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef %132, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %133)
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %134, i32 0, i32 1
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !24
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %138, i32 0, i32 0
  %140 = load i64, ptr %139, align 8, !tbaa !28
  %141 = getelementptr inbounds i64, ptr %137, i64 %140
  %142 = load i64, ptr %141, align 8, !tbaa !9
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %143, i32 0, i32 4
  %145 = load i64, ptr %144, align 8, !tbaa !11
  %146 = sub nsw i64 %142, %145
  %147 = icmp sge i64 %146, 0
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %147, ptr noundef @.str.246, ptr noundef %148)
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %149, i32 0, i32 26
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %151, i32 0, i32 17
  %153 = load i64, ptr %152, align 8, !tbaa !30
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %150, i64 noundef %153, ptr noundef %154)
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %155, i32 0, i32 17
  %157 = load i64, ptr %156, align 8, !tbaa !30
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %158, i32 0, i32 4
  %160 = load i64, ptr %159, align 8, !tbaa !11
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %161, i32 0, i32 14
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %163, i32 0, i32 2
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %165, i32 0, i32 1
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %166, i32 0, i32 4
  %168 = load ptr, ptr %167, align 8, !tbaa !24
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %169, i32 0, i32 0
  %171 = load i64, ptr %170, align 8, !tbaa !28
  %172 = getelementptr inbounds i64, ptr %168, i64 %171
  %173 = load i64, ptr %172, align 8, !tbaa !9
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %174, i32 0, i32 4
  %176 = load i64, ptr %175, align 8, !tbaa !11
  %177 = sub nsw i64 %173, %176
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %178, i32 0, i32 26
  %180 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemvElldPNS_9ae_matrixElllPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %157, i64 noundef %160, double noundef 1.000000e+00, ptr noundef %162, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %164, i64 noundef %177, double noundef 0.000000e+00, ptr noundef %179, i64 noundef 0, ptr noundef %180)
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %181, i32 0, i32 4
  %183 = load i64, ptr %182, align 8, !tbaa !11
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %184, i32 0, i32 17
  %186 = load i64, ptr %185, align 8, !tbaa !30
  %187 = load ptr, ptr %6, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %187, i32 0, i32 13
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %189, i32 0, i32 26
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixgemvElldPNS_9ae_matrixElllPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %183, i64 noundef %186, double noundef 1.000000e+00, ptr noundef %188, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %190, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %191, i64 noundef 0, ptr noundef %192)
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %193, i32 0, i32 1
  %195 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %194, i32 0, i32 4
  %196 = load ptr, ptr %195, align 8, !tbaa !24
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %197, i32 0, i32 0
  %199 = load i64, ptr %198, align 8, !tbaa !28
  %200 = getelementptr inbounds i64, ptr %196, i64 %199
  %201 = load i64, ptr %200, align 8, !tbaa !9
  %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 !11
  %205 = sub nsw i64 %201, %204
  store i64 %205, ptr %12, align 8, !tbaa !9
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %206, i32 0, i32 4
  %208 = load i64, ptr %207, align 8, !tbaa !11
  store i64 %208, ptr %13, align 8, !tbaa !9
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %209

209:                                              ; preds = %236, %131
  %210 = load i64, ptr %11, align 8, !tbaa !9
  %211 = load i64, ptr %13, align 8, !tbaa !9
  %212 = sub nsw i64 %211, 1
  %213 = icmp sle i64 %210, %212
  br i1 %213, label %214, label %239

214:                                              ; preds = %209
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.alglib_impl::ssamodel", ptr %215, i32 0, i32 2
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %216, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !24
  %219 = load i64, ptr %12, align 8, !tbaa !9
  %220 = load i64, ptr %11, align 8, !tbaa !9
  %221 = add nsw i64 %219, %220
  %222 = getelementptr inbounds double, ptr %218, i64 %221
  %223 = load double, ptr %222, align 8, !tbaa !25
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %224, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !24
  %227 = load i64, ptr %11, align 8, !tbaa !9
  %228 = getelementptr inbounds double, ptr %226, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !25
  %230 = fsub double %223, %229
  %231 = load ptr, ptr %8, align 8, !tbaa !5
  %232 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %231, i32 0, i32 4
  %233 = load ptr, ptr %232, align 8, !tbaa !24
  %234 = load i64, ptr %11, align 8, !tbaa !9
  %235 = getelementptr inbounds double, ptr %233, i64 %234
  store double %230, ptr %235, align 8, !tbaa !25
  br label %236

236:                                              ; preds = %214
  %237 = load i64, ptr %11, align 8, !tbaa !9
  %238 = add nsw i64 %237, 1
  store i64 %238, ptr %11, align 8, !tbaa !9
  br label %209, !llvm.loop !31

239:                                              ; preds = %209
  store i32 0, ptr %14, align 4
  br label %240

240:                                              ; preds = %239, %130
  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
  %241 = load i32, ptr %14, align 4
  switch i32 %241, label %243 [
    i32 0, label %242
    i32 1, label %242
  ]

242:                                              ; preds = %240, %240
  ret void

243:                                              ; preds = %240
  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_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #1

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) #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

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 = { 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 = !{!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 = !{!12, !10, i64 576}
!31 = distinct !{!31, !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.246 = external hidden unnamed_addr constant [45 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_impl20ssaanalyzelastwindowEPNS_8ssamodelEPNS_9ae_vectorES3_PlPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %1)
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %2)
  store i64 0, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 144
  %7 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %7, ptr %3, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %1, i64 noundef %7, ptr noundef %4)
  %8 = load i64, ptr %6, align 8, !tbaa !9
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %8, ptr noundef %4)
  %9 = tail call noundef zeroext i1 @_ZN11alglib_implL25ssa_hassomethingtoanalyzeEPNS_8ssamodelEPNS_8ae_stateE(ptr noundef %0, ptr noundef %4)
  br i1 %9, label %10, label %12

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

12:                                               ; preds = %10, %5
  %13 = load i64, ptr %3, align 8, !tbaa !5
  %.not.not83 = icmp sgt i64 %13, 0
  br i1 %.not.not83, label %.lr.ph, label %._crit_edge

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

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

17:                                               ; preds = %17, %.lr.ph.new
  %.084 = phi i64 [ 0, %.lr.ph.new ], [ %27, %17 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %17 ]
  %18 = load ptr, ptr %14, align 8, !tbaa !23
  %19 = getelementptr inbounds double, ptr %18, i64 %.084
  store double 0.000000e+00, ptr %19, align 8, !tbaa !24
  %20 = load ptr, ptr %15, align 8, !tbaa !23
  %21 = getelementptr inbounds double, ptr %20, i64 %.084
  store double 0.000000e+00, ptr %21, align 8, !tbaa !24
  %22 = or disjoint i64 %.084, 1
  %23 = load ptr, ptr %14, align 8, !tbaa !23
  %24 = getelementptr inbounds double, ptr %23, i64 %22
  store double 0.000000e+00, ptr %24, align 8, !tbaa !24
  %25 = load ptr, ptr %15, align 8, !tbaa !23
  %26 = getelementptr inbounds double, ptr %25, i64 %22
  store double 0.000000e+00, ptr %26, align 8, !tbaa !24
  %27 = add nuw nsw i64 %.084, 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 %17, !llvm.loop !25

._crit_edge.loopexit.unr-lcssa:                   ; preds = %17, %.lr.ph
  %.084.unr = phi i64 [ 0, %.lr.ph ], [ %27, %17 ]
  %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
  %28 = load ptr, ptr %14, align 8, !tbaa !23
  %29 = getelementptr inbounds double, ptr %28, i64 %.084.unr
  store double 0.000000e+00, ptr %29, align 8, !tbaa !24
  %30 = load ptr, ptr %15, align 8, !tbaa !23
  %31 = getelementptr inbounds double, ptr %30, i64 %.084.unr
  store double 0.000000e+00, ptr %31, align 8, !tbaa !24
  br label %._crit_edge

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

34:                                               ; preds = %._crit_edge
  %35 = getelementptr inbounds i8, ptr %0, i64 64
  %36 = load ptr, ptr %35, align 8, !tbaa !23
  %37 = getelementptr inbounds i64, ptr %36, i64 %32
  %38 = load i64, ptr %37, align 8, !tbaa !5
  %39 = getelementptr i8, ptr %37, i64 -8
  %40 = load i64, ptr %39, align 8, !tbaa !5
  %41 = sub nsw i64 %38, %40
  %42 = tail call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %41, i64 noundef %13, ptr noundef %4)
  %43 = load ptr, ptr %35, align 8, !tbaa !23
  %44 = load i64, ptr %0, align 8, !tbaa !27
  %45 = getelementptr inbounds i64, ptr %43, i64 %44
  %46 = load i64, ptr %45, align 8, !tbaa !5
  %47 = sub nsw i64 %46, %42
  %.not.not8085 = icmp sgt i64 %42, 0
  br i1 %.not.not8085, label %.lr.ph88, label %.loopexit

.lr.ph88:                                         ; preds = %34
  %48 = getelementptr inbounds i8, ptr %0, i64 128
  %49 = getelementptr inbounds i8, ptr %2, i64 56
  %50 = load i64, ptr %3, align 8, !tbaa !5
  %51 = sub nsw i64 %50, %42
  %xtraiter100 = and i64 %42, 3
  %52 = icmp ult i64 %42, 4
  br i1 %52, label %.loopexit.loopexit98.unr-lcssa, label %.lr.ph88.new

.lr.ph88.new:                                     ; preds = %.lr.ph88
  %unroll_iter102 = and i64 %42, 9223372036854775804
  br label %53

53:                                               ; preds = %53, %.lr.ph88.new
  %.186 = phi i64 [ 0, %.lr.ph88.new ], [ %85, %53 ]
  %niter103 = phi i64 [ 0, %.lr.ph88.new ], [ %niter103.next.3, %53 ]
  %54 = load ptr, ptr %48, align 8, !tbaa !23
  %55 = getelementptr double, ptr %54, i64 %47
  %56 = getelementptr double, ptr %55, i64 %.186
  %57 = load double, ptr %56, align 8, !tbaa !24
  %58 = load ptr, ptr %49, align 8, !tbaa !23
  %59 = getelementptr double, ptr %58, i64 %51
  %60 = getelementptr double, ptr %59, i64 %.186
  store double %57, ptr %60, align 8, !tbaa !24
  %61 = or disjoint i64 %.186, 1
  %62 = load ptr, ptr %48, align 8, !tbaa !23
  %63 = getelementptr double, ptr %62, i64 %47
  %64 = getelementptr double, ptr %63, i64 %61
  %65 = load double, ptr %64, align 8, !tbaa !24
  %66 = load ptr, ptr %49, align 8, !tbaa !23
  %67 = getelementptr double, ptr %66, i64 %51
  %68 = getelementptr double, ptr %67, i64 %61
  store double %65, ptr %68, align 8, !tbaa !24
  %69 = or disjoint i64 %.186, 2
  %70 = load ptr, ptr %48, align 8, !tbaa !23
  %71 = getelementptr double, ptr %70, i64 %47
  %72 = getelementptr double, ptr %71, i64 %69
  %73 = load double, ptr %72, align 8, !tbaa !24
  %74 = load ptr, ptr %49, align 8, !tbaa !23
  %75 = getelementptr double, ptr %74, i64 %51
  %76 = getelementptr double, ptr %75, i64 %69
  store double %73, ptr %76, align 8, !tbaa !24
  %77 = or disjoint i64 %.186, 3
  %78 = load ptr, ptr %48, align 8, !tbaa !23
  %79 = getelementptr double, ptr %78, i64 %47
  %80 = getelementptr double, ptr %79, i64 %77
  %81 = load double, ptr %80, align 8, !tbaa !24
  %82 = load ptr, ptr %49, align 8, !tbaa !23
  %83 = getelementptr double, ptr %82, i64 %51
  %84 = getelementptr double, ptr %83, i64 %77
  store double %81, ptr %84, align 8, !tbaa !24
  %85 = add nuw nsw i64 %.186, 4
  %niter103.next.3 = add i64 %niter103, 4
  %niter103.ncmp.3 = icmp eq i64 %niter103.next.3, %unroll_iter102
  br i1 %niter103.ncmp.3, label %.loopexit.loopexit98.unr-lcssa, label %53, !llvm.loop !28

86:                                               ; preds = %10
  tail call void @_ZN11alglib_implL15ssa_updatebasisEPNS_8ssamodelEldPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %4)
  %87 = getelementptr inbounds i8, ptr %0, i64 64
  %88 = load ptr, ptr %87, align 8, !tbaa !23
  %89 = load i64, ptr %0, align 8, !tbaa !27
  %90 = getelementptr inbounds i64, ptr %88, i64 %89
  %91 = load i64, ptr %90, align 8, !tbaa !5
  %92 = load i64, ptr %6, align 8, !tbaa !9
  %93 = icmp sge i64 %91, %92
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %93, ptr noundef nonnull @.str.246, ptr noundef %4)
  %94 = getelementptr inbounds i8, ptr %0, i64 3168
  %95 = getelementptr inbounds i8, ptr %0, i64 576
  %96 = load i64, ptr %95, align 8, !tbaa !29
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %94, i64 noundef %96, ptr noundef %4)
  %97 = load i64, ptr %95, align 8, !tbaa !29
  %98 = load i64, ptr %6, align 8, !tbaa !9
  %99 = getelementptr inbounds i8, ptr %0, i64 368
  %100 = getelementptr inbounds i8, ptr %0, i64 72
  %101 = load ptr, ptr %87, align 8, !tbaa !23
  %102 = load i64, ptr %0, align 8, !tbaa !27
  %103 = getelementptr inbounds i64, ptr %101, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !5
  %105 = sub nsw i64 %104, %98
  tail call void @_ZN11alglib_impl11rmatrixgemvElldPNS_9ae_matrixElllPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %97, i64 noundef %98, double noundef 1.000000e+00, ptr noundef nonnull %99, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %100, i64 noundef %105, double noundef 0.000000e+00, ptr noundef nonnull %94, i64 noundef 0, ptr noundef %4)
  %106 = load i64, ptr %6, align 8, !tbaa !9
  %107 = load i64, ptr %95, align 8, !tbaa !29
  %108 = getelementptr inbounds i8, ptr %0, i64 288
  tail call void @_ZN11alglib_impl11rmatrixgemvElldPNS_9ae_matrixElllPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %106, i64 noundef %107, double noundef 1.000000e+00, ptr noundef nonnull %108, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %94, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %1, i64 noundef 0, ptr noundef %4)
  %109 = load ptr, ptr %87, align 8, !tbaa !23
  %110 = load i64, ptr %0, align 8, !tbaa !27
  %111 = getelementptr inbounds i64, ptr %109, i64 %110
  %112 = load i64, ptr %111, align 8, !tbaa !5
  %113 = load i64, ptr %6, align 8, !tbaa !9
  %114 = sub nsw i64 %112, %113
  %.not.not8189 = icmp sgt i64 %113, 0
  br i1 %.not.not8189, label %.lr.ph92, label %.loopexit

.lr.ph92:                                         ; preds = %86
  %115 = getelementptr inbounds i8, ptr %0, i64 128
  %116 = getelementptr inbounds i8, ptr %1, i64 56
  %117 = getelementptr inbounds i8, ptr %2, i64 56
  %xtraiter105 = and i64 %113, 1
  %118 = icmp eq i64 %113, 1
  br i1 %118, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph92.new

.lr.ph92.new:                                     ; preds = %.lr.ph92
  %unroll_iter108 = and i64 %113, 9223372036854775806
  br label %119

119:                                              ; preds = %119, %.lr.ph92.new
  %.290 = phi i64 [ 0, %.lr.ph92.new ], [ %141, %119 ]
  %niter109 = phi i64 [ 0, %.lr.ph92.new ], [ %niter109.next.1, %119 ]
  %120 = load ptr, ptr %115, align 8, !tbaa !23
  %121 = getelementptr double, ptr %120, i64 %114
  %122 = getelementptr double, ptr %121, i64 %.290
  %123 = load double, ptr %122, align 8, !tbaa !24
  %124 = load ptr, ptr %116, align 8, !tbaa !23
  %125 = getelementptr inbounds double, ptr %124, i64 %.290
  %126 = load double, ptr %125, align 8, !tbaa !24
  %127 = fsub double %123, %126
  %128 = load ptr, ptr %117, align 8, !tbaa !23
  %129 = getelementptr inbounds double, ptr %128, i64 %.290
  store double %127, ptr %129, align 8, !tbaa !24
  %130 = or disjoint i64 %.290, 1
  %131 = load ptr, ptr %115, align 8, !tbaa !23
  %132 = getelementptr double, ptr %131, i64 %114
  %133 = getelementptr double, ptr %132, i64 %130
  %134 = load double, ptr %133, align 8, !tbaa !24
  %135 = load ptr, ptr %116, align 8, !tbaa !23
  %136 = getelementptr inbounds double, ptr %135, i64 %130
  %137 = load double, ptr %136, align 8, !tbaa !24
  %138 = fsub double %134, %137
  %139 = load ptr, ptr %117, align 8, !tbaa !23
  %140 = getelementptr inbounds double, ptr %139, i64 %130
  store double %138, ptr %140, align 8, !tbaa !24
  %141 = add nuw nsw i64 %.290, 2
  %niter109.next.1 = add i64 %niter109, 2
  %niter109.ncmp.1 = icmp eq i64 %niter109.next.1, %unroll_iter108
  br i1 %niter109.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %119, !llvm.loop !30

.loopexit.loopexit.unr-lcssa:                     ; preds = %119, %.lr.ph92
  %.290.unr = phi i64 [ 0, %.lr.ph92 ], [ %141, %119 ]
  %lcmp.mod107.not = icmp eq i64 %xtraiter105, 0
  br i1 %lcmp.mod107.not, label %.loopexit, label %.loopexit.loopexit.epilog-lcssa

.loopexit.loopexit.epilog-lcssa:                  ; preds = %.loopexit.loopexit.unr-lcssa
  %142 = load ptr, ptr %115, align 8, !tbaa !23
  %143 = getelementptr double, ptr %142, i64 %114
  %144 = getelementptr double, ptr %143, i64 %.290.unr
  %145 = load double, ptr %144, align 8, !tbaa !24
  %146 = load ptr, ptr %116, align 8, !tbaa !23
  %147 = getelementptr inbounds double, ptr %146, i64 %.290.unr
  %148 = load double, ptr %147, align 8, !tbaa !24
  %149 = fsub double %145, %148
  %150 = load ptr, ptr %117, align 8, !tbaa !23
  %151 = getelementptr inbounds double, ptr %150, i64 %.290.unr
  store double %149, ptr %151, align 8, !tbaa !24
  br label %.loopexit

.loopexit.loopexit98.unr-lcssa:                   ; preds = %53, %.lr.ph88
  %.186.unr = phi i64 [ 0, %.lr.ph88 ], [ %85, %53 ]
  %lcmp.mod101.not = icmp eq i64 %xtraiter100, 0
  br i1 %lcmp.mod101.not, label %.loopexit, label %.epil.preheader99

.epil.preheader99:                                ; preds = %.loopexit.loopexit98.unr-lcssa, %.epil.preheader99
  %.186.epil = phi i64 [ %159, %.epil.preheader99 ], [ %.186.unr, %.loopexit.loopexit98.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader99 ], [ 0, %.loopexit.loopexit98.unr-lcssa ]
  %152 = load ptr, ptr %48, align 8, !tbaa !23
  %153 = getelementptr double, ptr %152, i64 %47
  %154 = getelementptr double, ptr %153, i64 %.186.epil
  %155 = load double, ptr %154, align 8, !tbaa !24
  %156 = load ptr, ptr %49, align 8, !tbaa !23
  %157 = getelementptr double, ptr %156, i64 %51
  %158 = getelementptr double, ptr %157, i64 %.186.epil
  store double %155, ptr %158, align 8, !tbaa !24
  %159 = add nuw nsw i64 %.186.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter100
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.epil.preheader99, !llvm.loop !31

.loopexit:                                        ; preds = %.loopexit.loopexit98.unr-lcssa, %.epil.preheader99, %.loopexit.loopexit.epilog-lcssa, %.loopexit.loopexit.unr-lcssa, %34, %86, %._crit_edge
  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

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

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

; 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

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


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