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

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

@.str.187 = external hidden unnamed_addr constant [43 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

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

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) #1

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

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15sasrebuildbasisEPNS_10sactivesetEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13sascorrectionEPNS_10sactivesetEPNS_9ae_vectorEPdPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %13 = load ptr, ptr %7, align 8, !tbaa !5
  store double 0.000000e+00, ptr %13, align 8, !tbaa !9
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %14, i32 0, i32 1
  %16 = load i64, ptr %15, align 8, !tbaa !11
  %17 = icmp eq i64 %16, 1
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef @.str.187, ptr noundef %18)
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sasrebuildbasisEPNS_10sactivesetEPNS_8ae_stateE(ptr noundef %19, ptr noundef %20)
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %21, i32 0, i32 0
  %23 = load i64, ptr %22, align 8, !tbaa !19
  store i64 %23, ptr %11, align 8, !tbaa !20
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %24, i32 0, i32 28
  %26 = load i64, ptr %11, align 8, !tbaa !20
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %26, ptr noundef %27)
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = call noundef double @_ZN11alglib_impl19sasactivelcpenalty1EPNS_10sactivesetEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %28, ptr noundef %29, ptr noundef %30)
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  store double %31, ptr %32, align 8, !tbaa !9
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %33, i32 0, i32 28
  %35 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %36 = load ptr, ptr %35, align 8, !tbaa !21
  %37 = getelementptr inbounds double, ptr %36, i64 0
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %38, i32 0, i32 4
  %40 = load ptr, ptr %39, align 8, !tbaa !21
  %41 = getelementptr inbounds double, ptr %40, i64 0
  %42 = load i64, ptr %11, align 8, !tbaa !20
  %43 = sub nsw i64 %42, 1
  %44 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %43)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %37, i64 noundef 1, ptr noundef %41, i64 noundef 1, i64 noundef %44)
  store i64 0, ptr %9, align 8, !tbaa !20
  br label %45

45:                                               ; preds = %139, %4
  %46 = load i64, ptr %9, align 8, !tbaa !20
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %47, i32 0, i32 11
  %49 = load i64, ptr %48, align 8, !tbaa !22
  %50 = sub nsw i64 %49, 1
  %51 = icmp sle i64 %46, %50
  br i1 %51, label %52, label %142

52:                                               ; preds = %45
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %53, i32 0, i32 8
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %54, i32 0, i32 6
  %56 = load ptr, ptr %55, align 8, !tbaa !21
  %57 = load i64, ptr %9, align 8, !tbaa !20
  %58 = getelementptr inbounds ptr, ptr %56, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = load i64, ptr %11, align 8, !tbaa !20
  %61 = getelementptr inbounds double, ptr %59, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !9
  %63 = fneg double %62
  store double %63, ptr %12, align 8, !tbaa !9
  store i64 0, ptr %10, align 8, !tbaa !20
  br label %64

64:                                               ; preds = %89, %52
  %65 = load i64, ptr %10, align 8, !tbaa !20
  %66 = load i64, ptr %11, align 8, !tbaa !20
  %67 = sub nsw i64 %66, 1
  %68 = icmp sle i64 %65, %67
  br i1 %68, label %69, label %92

69:                                               ; preds = %64
  %70 = load double, ptr %12, align 8, !tbaa !9
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %71, i32 0, i32 8
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %72, i32 0, i32 6
  %74 = load ptr, ptr %73, align 8, !tbaa !21
  %75 = load i64, ptr %9, align 8, !tbaa !20
  %76 = getelementptr inbounds ptr, ptr %74, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = load i64, ptr %10, align 8, !tbaa !20
  %79 = getelementptr inbounds double, ptr %77, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %81, i32 0, i32 28
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !21
  %85 = load i64, ptr %10, align 8, !tbaa !20
  %86 = getelementptr inbounds double, ptr %84, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !9
  %88 = call double @llvm.fmuladd.f64(double %80, double %87, double %70)
  store double %88, ptr %12, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %69
  %90 = load i64, ptr %10, align 8, !tbaa !20
  %91 = add nsw i64 %90, 1
  store i64 %91, ptr %10, align 8, !tbaa !20
  br label %64, !llvm.loop !23

92:                                               ; preds = %64
  store i64 0, ptr %10, align 8, !tbaa !20
  br label %93

93:                                               ; preds = %135, %92
  %94 = load i64, ptr %10, align 8, !tbaa !20
  %95 = load i64, ptr %11, align 8, !tbaa !20
  %96 = sub nsw i64 %95, 1
  %97 = icmp sle i64 %94, %96
  br i1 %97, label %98, label %138

98:                                               ; preds = %93
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %99, i32 0, i32 28
  %101 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %100, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !21
  %103 = load i64, ptr %10, align 8, !tbaa !20
  %104 = getelementptr inbounds double, ptr %102, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !9
  %106 = load double, ptr %12, align 8, !tbaa !9
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %107, i32 0, i32 8
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %108, i32 0, i32 6
  %110 = load ptr, ptr %109, align 8, !tbaa !21
  %111 = load i64, ptr %9, align 8, !tbaa !20
  %112 = getelementptr inbounds ptr, ptr %110, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = load i64, ptr %10, align 8, !tbaa !20
  %115 = getelementptr inbounds double, ptr %113, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !9
  %117 = fmul double %106, %116
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %118, i32 0, i32 4
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %119, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !21
  %122 = load i64, ptr %10, align 8, !tbaa !20
  %123 = getelementptr inbounds double, ptr %121, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !9
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %124, ptr noundef %125)
  %127 = fneg double %117
  %128 = call double @llvm.fmuladd.f64(double %127, double %126, double %105)
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %129, i32 0, i32 28
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %130, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !21
  %133 = load i64, ptr %10, align 8, !tbaa !20
  %134 = getelementptr inbounds double, ptr %132, i64 %133
  store double %128, ptr %134, align 8, !tbaa !9
  br label %135

135:                                              ; preds = %98
  %136 = load i64, ptr %10, align 8, !tbaa !20
  %137 = add nsw i64 %136, 1
  store i64 %137, ptr %10, align 8, !tbaa !20
  br label %93, !llvm.loop !25

138:                                              ; preds = %93
  br label %139

139:                                              ; preds = %138
  %140 = load i64, ptr %9, align 8, !tbaa !20
  %141 = add nsw i64 %140, 1
  store i64 %141, ptr %9, align 8, !tbaa !20
  br label %45, !llvm.loop !26

142:                                              ; preds = %45
  store i64 0, ptr %9, align 8, !tbaa !20
  br label %143

143:                                              ; preds = %172, %142
  %144 = load i64, ptr %9, align 8, !tbaa !20
  %145 = load i64, ptr %11, align 8, !tbaa !20
  %146 = sub nsw i64 %145, 1
  %147 = icmp sle i64 %144, %146
  br i1 %147, label %148, label %175

148:                                              ; preds = %143
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %149, i32 0, i32 6
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %150, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !21
  %153 = load i64, ptr %9, align 8, !tbaa !20
  %154 = getelementptr inbounds i64, ptr %152, i64 %153
  %155 = load i64, ptr %154, align 8, !tbaa !20
  %156 = icmp sgt i64 %155, 0
  br i1 %156, label %157, label %171

157:                                              ; preds = %148
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %158, i32 0, i32 2
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %159, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !21
  %162 = load i64, ptr %9, align 8, !tbaa !20
  %163 = getelementptr inbounds double, ptr %161, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !9
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %165, i32 0, i32 28
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %166, i32 0, i32 4
  %168 = load ptr, ptr %167, align 8, !tbaa !21
  %169 = load i64, ptr %9, align 8, !tbaa !20
  %170 = getelementptr inbounds double, ptr %168, i64 %169
  store double %164, ptr %170, align 8, !tbaa !9
  br label %171

171:                                              ; preds = %157, %148
  br label %172

172:                                              ; preds = %171
  %173 = load i64, ptr %9, align 8, !tbaa !20
  %174 = add nsw i64 %173, 1
  store i64 %174, ptr %9, align 8, !tbaa !20
  br label %143, !llvm.loop !27

175:                                              ; preds = %143
  store i64 0, ptr %9, align 8, !tbaa !20
  br label %176

176:                                              ; preds = %268, %175
  %177 = load i64, ptr %9, align 8, !tbaa !20
  %178 = load i64, ptr %11, align 8, !tbaa !20
  %179 = sub nsw i64 %178, 1
  %180 = icmp sle i64 %177, %179
  br i1 %180, label %181, label %271

181:                                              ; preds = %176
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %182, i32 0, i32 28
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %183, i32 0, i32 4
  %185 = load ptr, ptr %184, align 8, !tbaa !21
  %186 = load i64, ptr %9, align 8, !tbaa !20
  %187 = getelementptr inbounds double, ptr %185, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !9
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %189, i32 0, i32 4
  %191 = load ptr, ptr %190, align 8, !tbaa !21
  %192 = load i64, ptr %9, align 8, !tbaa !20
  %193 = getelementptr inbounds double, ptr %191, i64 %192
  store double %188, ptr %193, align 8, !tbaa !9
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %194, i32 0, i32 17
  %196 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %195, i32 0, i32 4
  %197 = load ptr, ptr %196, align 8, !tbaa !21
  %198 = load i64, ptr %9, align 8, !tbaa !20
  %199 = getelementptr inbounds i8, ptr %197, i64 %198
  %200 = load i8, ptr %199, align 1, !tbaa !28, !range !29, !noundef !30
  %201 = trunc i8 %200 to i1
  br i1 %201, label %202, label %230

202:                                              ; preds = %181
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %203, i32 0, i32 4
  %205 = load ptr, ptr %204, align 8, !tbaa !21
  %206 = load i64, ptr %9, align 8, !tbaa !20
  %207 = getelementptr inbounds double, ptr %205, i64 %206
  %208 = load double, ptr %207, align 8, !tbaa !9
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %209, i32 0, i32 19
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %210, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !21
  %213 = load i64, ptr %9, align 8, !tbaa !20
  %214 = getelementptr inbounds double, ptr %212, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !9
  %216 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %208, double noundef %215)
  br i1 %216, label %217, label %230

217:                                              ; preds = %202
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %218, i32 0, i32 19
  %220 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %219, i32 0, i32 4
  %221 = load ptr, ptr %220, align 8, !tbaa !21
  %222 = load i64, ptr %9, align 8, !tbaa !20
  %223 = getelementptr inbounds double, ptr %221, i64 %222
  %224 = load double, ptr %223, align 8, !tbaa !9
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %225, i32 0, i32 4
  %227 = load ptr, ptr %226, align 8, !tbaa !21
  %228 = load i64, ptr %9, align 8, !tbaa !20
  %229 = getelementptr inbounds double, ptr %227, i64 %228
  store double %224, ptr %229, align 8, !tbaa !9
  br label %230

230:                                              ; preds = %217, %202, %181
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  %232 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %231, i32 0, i32 18
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %232, i32 0, i32 4
  %234 = load ptr, ptr %233, align 8, !tbaa !21
  %235 = load i64, ptr %9, align 8, !tbaa !20
  %236 = getelementptr inbounds i8, ptr %234, i64 %235
  %237 = load i8, ptr %236, align 1, !tbaa !28, !range !29, !noundef !30
  %238 = trunc i8 %237 to i1
  br i1 %238, label %239, label %267

239:                                              ; preds = %230
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %240, i32 0, i32 4
  %242 = load ptr, ptr %241, align 8, !tbaa !21
  %243 = load i64, ptr %9, align 8, !tbaa !20
  %244 = getelementptr inbounds double, ptr %242, i64 %243
  %245 = load double, ptr %244, align 8, !tbaa !9
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %246, i32 0, i32 20
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %247, i32 0, i32 4
  %249 = load ptr, ptr %248, align 8, !tbaa !21
  %250 = load i64, ptr %9, align 8, !tbaa !20
  %251 = getelementptr inbounds double, ptr %249, i64 %250
  %252 = load double, ptr %251, align 8, !tbaa !9
  %253 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %245, double noundef %252)
  br i1 %253, label %254, label %267

254:                                              ; preds = %239
  %255 = load ptr, ptr %5, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %255, i32 0, i32 20
  %257 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %256, i32 0, i32 4
  %258 = load ptr, ptr %257, align 8, !tbaa !21
  %259 = load i64, ptr %9, align 8, !tbaa !20
  %260 = getelementptr inbounds double, ptr %258, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !9
  %262 = load ptr, ptr %6, align 8, !tbaa !5
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %262, i32 0, i32 4
  %264 = load ptr, ptr %263, align 8, !tbaa !21
  %265 = load i64, ptr %9, align 8, !tbaa !20
  %266 = getelementptr inbounds double, ptr %264, i64 %265
  store double %261, ptr %266, align 8, !tbaa !9
  br label %267

267:                                              ; preds = %254, %239, %230
  br label %268

268:                                              ; preds = %267
  %269 = load i64, ptr %9, align 8, !tbaa !20
  %270 = add nsw i64 %269, 1
  store i64 %270, ptr %9, align 8, !tbaa !20
  br label %176, !llvm.loop !31

271:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl19sasactivelcpenalty1EPNS_10sactivesetEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_ZTSN11alglib_impl10sactivesetE", !13, i64 0, !13, i64 8, !14, i64 16, !15, i64 80, !14, i64 88, !14, i64 152, !14, i64 216, !15, i64 280, !17, i64 288, !17, i64 368, !17, i64 448, !13, i64 528, !14, i64 536, !13, i64 600, !13, i64 608, !15, i64 616, !15, i64 617, !14, i64 624, !14, i64 688, !14, i64 752, !14, i64 816, !17, i64 880, !13, i64 960, !13, i64 968, !14, i64 976, !14, i64 1040, !14, i64 1104, !14, i64 1168, !14, i64 1232, !14, i64 1296, !18, i64 1360, !14, i64 3000, !14, i64 3064, !14, i64 3128, !17, i64 3192, !14, i64 3272, !14, i64 3336, !14, i64 3400, !17, i64 3464, !17, i64 3544, !14, i64 3624, !14, i64 3688, !14, i64 3752, !17, i64 3816, !14, i64 3896, !14, i64 3960, !14, i64 4024, !14, i64 4088, !14, i64 4152, !14, i64 4216, !14, i64 4280}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !15, i64 16, !16, i64 24, !7, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !15, i64 32, !16, i64 40, !7, i64 72}
!18 = !{!"_ZTSN11alglib_impl11snnlssolverE", !13, i64 0, !13, i64 8, !13, i64 16, !17, i64 24, !14, i64 104, !14, i64 168, !10, i64 232, !13, i64 240, !14, i64 248, !14, i64 312, !17, i64 376, !17, i64 456, !17, i64 536, !14, i64 616, !14, i64 680, !14, i64 744, !14, i64 808, !14, i64 872, !14, i64 936, !14, i64 1000, !14, i64 1064, !14, i64 1128, !14, i64 1192, !14, i64 1256, !14, i64 1320, !14, i64 1384, !14, i64 1448, !14, i64 1512, !14, i64 1576}
!19 = !{!12, !13, i64 0}
!20 = !{!13, !13, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!12, !13, i64 528}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}
!28 = !{!15, !15, i64 0}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = distinct !{!31, !24}


; 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.187 = external hidden unnamed_addr constant [43 x i8], align 1

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr 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

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #0

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

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13sascorrectionEPNS_10sactivesetEPNS_9ae_vectorEPdPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2, ptr noundef %3) local_unnamed_addr #2 {
  store double 0.000000e+00, ptr %2, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load i64, ptr %5, align 8, !tbaa !9
  %7 = icmp eq i64 %6, 1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.187, ptr noundef %3)
  tail call void @_ZN11alglib_impl15sasrebuildbasisEPNS_10sactivesetEPNS_8ae_stateE(ptr noundef %0, ptr noundef %3)
  %8 = load i64, ptr %0, align 8, !tbaa !18
  %9 = getelementptr inbounds i8, ptr %0, i64 1232
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %8, ptr noundef %3)
  %10 = tail call noundef double @_ZN11alglib_impl19sasactivelcpenalty1EPNS_10sactivesetEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %3)
  store double %10, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 1288
  %12 = load ptr, ptr %11, align 8, !tbaa !19
  %13 = getelementptr inbounds i8, ptr %1, i64 56
  %14 = load ptr, ptr %13, align 8, !tbaa !19
  %15 = add nsw i64 %8, -1
  %16 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %15)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %12, i64 noundef 1, ptr noundef %14, i64 noundef 1, i64 noundef %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 528
  %18 = load i64, ptr %17, align 8, !tbaa !20
  %.not.not97 = icmp sgt i64 %18, 0
  br i1 %.not.not97, label %.lr.ph100, label %.preheader89

.lr.ph100:                                        ; preds = %4
  %19 = getelementptr inbounds i8, ptr %0, i64 360
  %.not.not8791 = icmp sgt i64 %8, 0
  %20 = getelementptr inbounds i8, ptr %0, i64 144
  br i1 %.not.not8791, label %.lr.ph.us.preheader, label %._crit_edge

.lr.ph.us.preheader:                              ; preds = %.lr.ph100
  %xtraiter = and i64 %8, 3
  %21 = icmp ult i64 %8, 4
  %unroll_iter = and i64 %8, 9223372036854775804
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph.us

22:                                               ; preds = %.preheader90.us, %22
  %.18295.us = phi i64 [ 0, %.preheader90.us ], [ %39, %22 ]
  %23 = load ptr, ptr %11, align 8, !tbaa !19
  %24 = getelementptr inbounds double, ptr %23, i64 %.18295.us
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = load ptr, ptr %19, align 8, !tbaa !19
  %27 = getelementptr inbounds ptr, ptr %26, i64 %.08098.us
  %28 = load ptr, ptr %27, align 8, !tbaa !21
  %29 = getelementptr inbounds double, ptr %28, i64 %.18295.us
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = load ptr, ptr %20, align 8, !tbaa !19
  %32 = getelementptr inbounds double, ptr %31, i64 %.18295.us
  %33 = load double, ptr %32, align 8, !tbaa !5
  %34 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %33, ptr noundef %3)
  %35 = fmul double %30, %70
  %36 = tail call double @llvm.fmuladd.f64(double %35, double %34, double %25)
  %37 = load ptr, ptr %11, align 8, !tbaa !19
  %38 = getelementptr inbounds double, ptr %37, i64 %.18295.us
  store double %36, ptr %38, align 8, !tbaa !5
  %39 = add nuw nsw i64 %.18295.us, 1
  %exitcond115.not = icmp eq i64 %39, %8
  br i1 %exitcond115.not, label %._crit_edge.us, label %22, !llvm.loop !22

.lr.ph.us.new:                                    ; preds = %.lr.ph.us, %.lr.ph.us.new
  %.093.us = phi double [ %62, %.lr.ph.us.new ], [ %76, %.lr.ph.us ]
  %.08192.us = phi i64 [ %63, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %40 = getelementptr inbounds double, ptr %73, i64 %.08192.us
  %41 = load double, ptr %40, align 8, !tbaa !5
  %42 = getelementptr inbounds double, ptr %77, i64 %.08192.us
  %43 = load double, ptr %42, align 8, !tbaa !5
  %44 = tail call double @llvm.fmuladd.f64(double %41, double %43, double %.093.us)
  %45 = or disjoint i64 %.08192.us, 1
  %46 = getelementptr inbounds double, ptr %73, i64 %45
  %47 = load double, ptr %46, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %77, i64 %45
  %49 = load double, ptr %48, align 8, !tbaa !5
  %50 = tail call double @llvm.fmuladd.f64(double %47, double %49, double %44)
  %51 = or disjoint i64 %.08192.us, 2
  %52 = getelementptr inbounds double, ptr %73, i64 %51
  %53 = load double, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %77, i64 %51
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = tail call double @llvm.fmuladd.f64(double %53, double %55, double %50)
  %57 = or disjoint i64 %.08192.us, 3
  %58 = getelementptr inbounds double, ptr %73, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %77, i64 %57
  %61 = load double, ptr %60, align 8, !tbaa !5
  %62 = tail call double @llvm.fmuladd.f64(double %59, double %61, double %56)
  %63 = add nuw nsw i64 %.08192.us, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader90.us.unr-lcssa, label %.lr.ph.us.new, !llvm.loop !24

.preheader90.us.unr-lcssa:                        ; preds = %.lr.ph.us.new, %.lr.ph.us
  %.lcssa.ph = phi double [ poison, %.lr.ph.us ], [ %62, %.lr.ph.us.new ]
  %.093.us.unr = phi double [ %76, %.lr.ph.us ], [ %62, %.lr.ph.us.new ]
  %.08192.us.unr = phi i64 [ 0, %.lr.ph.us ], [ %63, %.lr.ph.us.new ]
  br i1 %lcmp.mod.not, label %.preheader90.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader90.us.unr-lcssa, %.epil.preheader
  %.093.us.epil = phi double [ %68, %.epil.preheader ], [ %.093.us.unr, %.preheader90.us.unr-lcssa ]
  %.08192.us.epil = phi i64 [ %69, %.epil.preheader ], [ %.08192.us.unr, %.preheader90.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader90.us.unr-lcssa ]
  %64 = getelementptr inbounds double, ptr %73, i64 %.08192.us.epil
  %65 = load double, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %77, i64 %.08192.us.epil
  %67 = load double, ptr %66, align 8, !tbaa !5
  %68 = tail call double @llvm.fmuladd.f64(double %65, double %67, double %.093.us.epil)
  %69 = add nuw nsw i64 %.08192.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader90.us, label %.epil.preheader, !llvm.loop !25

.preheader90.us:                                  ; preds = %.epil.preheader, %.preheader90.us.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %.preheader90.us.unr-lcssa ], [ %68, %.epil.preheader ]
  %70 = fneg double %.lcssa
  br label %22

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %.08098.us = phi i64 [ %78, %._crit_edge.us ], [ 0, %.lr.ph.us.preheader ]
  %71 = load ptr, ptr %19, align 8, !tbaa !19
  %72 = getelementptr inbounds ptr, ptr %71, i64 %.08098.us
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  %74 = getelementptr inbounds double, ptr %73, i64 %8
  %75 = load double, ptr %74, align 8, !tbaa !5
  %76 = fneg double %75
  %77 = load ptr, ptr %11, align 8, !tbaa !19
  br i1 %21, label %.preheader90.us.unr-lcssa, label %.lr.ph.us.new

._crit_edge.us:                                   ; preds = %22
  %78 = add nuw nsw i64 %.08098.us, 1
  %79 = load i64, ptr %17, align 8, !tbaa !20
  %.not.not.us = icmp slt i64 %78, %79
  br i1 %.not.not.us, label %.lr.ph.us, label %.preheader89, !llvm.loop !27

.preheader89:                                     ; preds = %._crit_edge.us, %4
  %.not.not85109 = icmp sgt i64 %8, 0
  br i1 %.not.not85109, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader89
  %80 = getelementptr inbounds i8, ptr %0, i64 272
  %81 = getelementptr inbounds i8, ptr %0, i64 72
  %xtraiter123 = and i64 %8, 1
  %82 = icmp eq i64 %8, 1
  br i1 %82, label %.preheader.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter126 = and i64 %8, 9223372036854775806
  br label %97

.preheader.unr-lcssa:                             ; preds = %120, %.lr.ph
  %.1110.unr = phi i64 [ 0, %.lr.ph ], [ %121, %120 ]
  %lcmp.mod125.not = icmp eq i64 %xtraiter123, 0
  br i1 %lcmp.mod125.not, label %.preheader, label %.epil.preheader122

.epil.preheader122:                               ; preds = %.preheader.unr-lcssa
  %83 = load ptr, ptr %80, align 8, !tbaa !19
  %84 = getelementptr inbounds i64, ptr %83, i64 %.1110.unr
  %85 = load i64, ptr %84, align 8, !tbaa !28
  %86 = icmp sgt i64 %85, 0
  br i1 %86, label %87, label %.preheader

87:                                               ; preds = %.epil.preheader122
  %88 = load ptr, ptr %81, align 8, !tbaa !19
  %89 = getelementptr inbounds double, ptr %88, i64 %.1110.unr
  %90 = load double, ptr %89, align 8, !tbaa !5
  %91 = load ptr, ptr %11, align 8, !tbaa !19
  %92 = getelementptr inbounds double, ptr %91, i64 %.1110.unr
  store double %90, ptr %92, align 8, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.epil.preheader122, %87, %.preheader.unr-lcssa
  br i1 %.not.not85109, label %.lr.ph113, label %._crit_edge

.lr.ph113:                                        ; preds = %.preheader
  %93 = getelementptr inbounds i8, ptr %0, i64 680
  %94 = getelementptr inbounds i8, ptr %0, i64 808
  %95 = getelementptr inbounds i8, ptr %0, i64 744
  %96 = getelementptr inbounds i8, ptr %0, i64 872
  br label %122

97:                                               ; preds = %120, %.lr.ph.new
  %.1110 = phi i64 [ 0, %.lr.ph.new ], [ %121, %120 ]
  %niter127 = phi i64 [ 0, %.lr.ph.new ], [ %niter127.next.1, %120 ]
  %98 = load ptr, ptr %80, align 8, !tbaa !19
  %99 = getelementptr inbounds i64, ptr %98, i64 %.1110
  %100 = load i64, ptr %99, align 8, !tbaa !28
  %101 = icmp sgt i64 %100, 0
  br i1 %101, label %102, label %108

102:                                              ; preds = %97
  %103 = load ptr, ptr %81, align 8, !tbaa !19
  %104 = getelementptr inbounds double, ptr %103, i64 %.1110
  %105 = load double, ptr %104, align 8, !tbaa !5
  %106 = load ptr, ptr %11, align 8, !tbaa !19
  %107 = getelementptr inbounds double, ptr %106, i64 %.1110
  store double %105, ptr %107, align 8, !tbaa !5
  br label %108

108:                                              ; preds = %97, %102
  %109 = or disjoint i64 %.1110, 1
  %110 = load ptr, ptr %80, align 8, !tbaa !19
  %111 = getelementptr inbounds i64, ptr %110, i64 %109
  %112 = load i64, ptr %111, align 8, !tbaa !28
  %113 = icmp sgt i64 %112, 0
  br i1 %113, label %114, label %120

114:                                              ; preds = %108
  %115 = load ptr, ptr %81, align 8, !tbaa !19
  %116 = getelementptr inbounds double, ptr %115, i64 %109
  %117 = load double, ptr %116, align 8, !tbaa !5
  %118 = load ptr, ptr %11, align 8, !tbaa !19
  %119 = getelementptr inbounds double, ptr %118, i64 %109
  store double %117, ptr %119, align 8, !tbaa !5
  br label %120

120:                                              ; preds = %114, %108
  %121 = add nuw nsw i64 %.1110, 2
  %niter127.next.1 = add i64 %niter127, 2
  %niter127.ncmp.1 = icmp eq i64 %niter127.next.1, %unroll_iter126
  br i1 %niter127.ncmp.1, label %.preheader.unr-lcssa, label %97, !llvm.loop !29

122:                                              ; preds = %.lr.ph113, %165
  %.2112 = phi i64 [ 0, %.lr.ph113 ], [ %166, %165 ]
  %123 = load ptr, ptr %11, align 8, !tbaa !19
  %124 = getelementptr inbounds double, ptr %123, i64 %.2112
  %125 = load double, ptr %124, align 8, !tbaa !5
  %126 = load ptr, ptr %13, align 8, !tbaa !19
  %127 = getelementptr inbounds double, ptr %126, i64 %.2112
  store double %125, ptr %127, align 8, !tbaa !5
  %128 = load ptr, ptr %93, align 8, !tbaa !19
  %129 = getelementptr inbounds i8, ptr %128, i64 %.2112
  %130 = load i8, ptr %129, align 1, !tbaa !30, !range !31, !noundef !32
  %131 = trunc nuw i8 %130 to i1
  br i1 %131, label %132, label %146

132:                                              ; preds = %122
  %133 = load ptr, ptr %13, align 8, !tbaa !19
  %134 = getelementptr inbounds double, ptr %133, i64 %.2112
  %135 = load double, ptr %134, align 8, !tbaa !5
  %136 = load ptr, ptr %94, align 8, !tbaa !19
  %137 = getelementptr inbounds double, ptr %136, i64 %.2112
  %138 = load double, ptr %137, align 8, !tbaa !5
  %139 = tail call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %135, double noundef %138)
  br i1 %139, label %140, label %146

140:                                              ; preds = %132
  %141 = load ptr, ptr %94, align 8, !tbaa !19
  %142 = getelementptr inbounds double, ptr %141, i64 %.2112
  %143 = load double, ptr %142, align 8, !tbaa !5
  %144 = load ptr, ptr %13, align 8, !tbaa !19
  %145 = getelementptr inbounds double, ptr %144, i64 %.2112
  store double %143, ptr %145, align 8, !tbaa !5
  br label %146

146:                                              ; preds = %140, %132, %122
  %147 = load ptr, ptr %95, align 8, !tbaa !19
  %148 = getelementptr inbounds i8, ptr %147, i64 %.2112
  %149 = load i8, ptr %148, align 1, !tbaa !30, !range !31, !noundef !32
  %150 = trunc nuw i8 %149 to i1
  br i1 %150, label %151, label %165

151:                                              ; preds = %146
  %152 = load ptr, ptr %13, align 8, !tbaa !19
  %153 = getelementptr inbounds double, ptr %152, i64 %.2112
  %154 = load double, ptr %153, align 8, !tbaa !5
  %155 = load ptr, ptr %96, align 8, !tbaa !19
  %156 = getelementptr inbounds double, ptr %155, i64 %.2112
  %157 = load double, ptr %156, align 8, !tbaa !5
  %158 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %154, double noundef %157)
  br i1 %158, label %159, label %165

159:                                              ; preds = %151
  %160 = load ptr, ptr %96, align 8, !tbaa !19
  %161 = getelementptr inbounds double, ptr %160, i64 %.2112
  %162 = load double, ptr %161, align 8, !tbaa !5
  %163 = load ptr, ptr %13, align 8, !tbaa !19
  %164 = getelementptr inbounds double, ptr %163, i64 %.2112
  store double %162, ptr %164, align 8, !tbaa !5
  br label %165

165:                                              ; preds = %146, %151, %159
  %166 = add nuw nsw i64 %.2112, 1
  %exitcond117.not = icmp eq i64 %166, %8
  br i1 %exitcond117.not, label %._crit_edge, label %122, !llvm.loop !33

._crit_edge:                                      ; preds = %165, %.lr.ph100, %.preheader89, %.preheader
  ret void
}

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

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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" }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSN11alglib_impl10sactivesetE", !11, i64 0, !11, i64 8, !12, i64 16, !13, i64 80, !12, i64 88, !12, i64 152, !12, i64 216, !13, i64 280, !16, i64 288, !16, i64 368, !16, i64 448, !11, i64 528, !12, i64 536, !11, i64 600, !11, i64 608, !13, i64 616, !13, i64 617, !12, i64 624, !12, i64 688, !12, i64 752, !12, i64 816, !16, i64 880, !11, i64 960, !11, i64 968, !12, i64 976, !12, i64 1040, !12, i64 1104, !12, i64 1168, !12, i64 1232, !12, i64 1296, !17, i64 1360, !12, i64 3000, !12, i64 3064, !12, i64 3128, !16, i64 3192, !12, i64 3272, !12, i64 3336, !12, i64 3400, !16, i64 3464, !16, i64 3544, !12, i64 3624, !12, i64 3688, !12, i64 3752, !16, i64 3816, !12, i64 3896, !12, i64 3960, !12, i64 4024, !12, i64 4088, !12, i64 4152, !12, i64 4216, !12, i64 4280}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!17 = !{!"_ZTSN11alglib_impl11snnlssolverE", !11, i64 0, !11, i64 8, !11, i64 16, !16, i64 24, !12, i64 104, !12, i64 168, !6, i64 232, !11, i64 240, !12, i64 248, !12, i64 312, !16, i64 376, !16, i64 456, !16, i64 536, !12, i64 616, !12, i64 680, !12, i64 744, !12, i64 808, !12, i64 872, !12, i64 936, !12, i64 1000, !12, i64 1064, !12, i64 1128, !12, i64 1192, !12, i64 1256, !12, i64 1320, !12, i64 1384, !12, i64 1448, !12, i64 1512, !12, i64 1576}
!18 = !{!10, !11, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!10, !11, i64 528}
!21 = !{!15, !15, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.unroll.disable"}
!27 = distinct !{!27, !23}
!28 = !{!11, !11, i64 0}
!29 = distinct !{!29, !23}
!30 = !{!13, !13, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = distinct !{!33, !23}


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