; 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.182 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [26 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_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

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

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

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

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

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

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

46:                                               ; preds = %77, %6
  %47 = load i64, ptr %16, align 8, !tbaa !11
  %48 = load i64, ptr %13, align 8, !tbaa !11
  %49 = sub nsw i64 %48, 1
  %50 = icmp sle i64 %47, %49
  br i1 %50, label %51, label %80

51:                                               ; preds = %46
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %52, i32 0, i32 2
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !24
  %56 = load i64, ptr %16, align 8, !tbaa !11
  %57 = getelementptr inbounds double, ptr %55, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !13
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %59, i32 0, i32 25
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !24
  %63 = load i64, ptr %16, align 8, !tbaa !11
  %64 = getelementptr inbounds double, ptr %62, i64 %63
  store double %58, ptr %64, align 8, !tbaa !13
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %65, i32 0, i32 4
  %67 = load ptr, ptr %66, align 8, !tbaa !24
  %68 = load i64, ptr %16, align 8, !tbaa !11
  %69 = getelementptr inbounds double, ptr %67, i64 %68
  %70 = load double, ptr %69, align 8, !tbaa !13
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %71, i32 0, i32 2
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %72, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !24
  %75 = load i64, ptr %16, align 8, !tbaa !11
  %76 = getelementptr inbounds double, ptr %74, i64 %75
  store double %70, ptr %76, align 8, !tbaa !13
  br label %77

77:                                               ; preds = %51
  %78 = load i64, ptr %16, align 8, !tbaa !11
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr %16, align 8, !tbaa !11
  br label %46, !llvm.loop !25

80:                                               ; preds = %46
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %81

81:                                               ; preds = %104, %80
  %82 = load i64, ptr %16, align 8, !tbaa !11
  %83 = load i64, ptr %13, align 8, !tbaa !11
  %84 = load i64, ptr %14, align 8, !tbaa !11
  %85 = add nsw i64 %83, %84
  %86 = load i64, ptr %15, align 8, !tbaa !11
  %87 = add nsw i64 %85, %86
  %88 = sub nsw i64 %87, 1
  %89 = icmp sle i64 %82, %88
  br i1 %89, label %90, label %107

90:                                               ; preds = %81
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %91, i32 0, i32 6
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %92, i32 0, i32 4
  %94 = load ptr, ptr %93, align 8, !tbaa !24
  %95 = load i64, ptr %16, align 8, !tbaa !11
  %96 = getelementptr inbounds i64, ptr %94, i64 %95
  %97 = load i64, ptr %96, align 8, !tbaa !11
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %98, i32 0, i32 26
  %100 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %99, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !24
  %102 = load i64, ptr %16, align 8, !tbaa !11
  %103 = getelementptr inbounds i64, ptr %101, i64 %102
  store i64 %97, ptr %103, align 8, !tbaa !11
  br label %104

104:                                              ; preds = %90
  %105 = load i64, ptr %16, align 8, !tbaa !11
  %106 = add nsw i64 %105, 1
  store i64 %106, ptr %16, align 8, !tbaa !11
  br label %81, !llvm.loop !27

107:                                              ; preds = %81
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %108, i32 0, i32 24
  %110 = load i64, ptr %13, align 8, !tbaa !11
  %111 = load i64, ptr %14, align 8, !tbaa !11
  %112 = add nsw i64 %110, %111
  %113 = load i64, ptr %15, align 8, !tbaa !11
  %114 = add nsw i64 %112, %113
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %109, i64 noundef %114, ptr noundef %115)
  store i8 0, ptr %17, align 1, !tbaa !9
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %116

116:                                              ; preds = %132, %107
  %117 = load i64, ptr %16, align 8, !tbaa !11
  %118 = load i64, ptr %13, align 8, !tbaa !11
  %119 = load i64, ptr %14, align 8, !tbaa !11
  %120 = add nsw i64 %118, %119
  %121 = load i64, ptr %15, align 8, !tbaa !11
  %122 = add nsw i64 %120, %121
  %123 = sub nsw i64 %122, 1
  %124 = icmp sle i64 %117, %123
  br i1 %124, label %125, label %135

125:                                              ; preds = %116
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %126, i32 0, i32 24
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %127, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !24
  %130 = load i64, ptr %16, align 8, !tbaa !11
  %131 = getelementptr inbounds i8, ptr %129, i64 %130
  store i8 0, ptr %131, align 1, !tbaa !9
  br label %132

132:                                              ; preds = %125
  %133 = load i64, ptr %16, align 8, !tbaa !11
  %134 = add nsw i64 %133, 1
  store i64 %134, ptr %16, align 8, !tbaa !11
  br label %116, !llvm.loop !28

135:                                              ; preds = %116
  %136 = load i8, ptr %9, align 1, !tbaa !9, !range !29, !noundef !30
  %137 = trunc i8 %136 to i1
  br i1 %137, label %138, label %176

138:                                              ; preds = %135
  %139 = load i64, ptr %10, align 8, !tbaa !11
  %140 = icmp sge i64 %139, 0
  br i1 %140, label %141, label %149

141:                                              ; preds = %138
  %142 = load i64, ptr %10, align 8, !tbaa !11
  %143 = load i64, ptr %13, align 8, !tbaa !11
  %144 = load i64, ptr %14, align 8, !tbaa !11
  %145 = add nsw i64 %143, %144
  %146 = load i64, ptr %15, align 8, !tbaa !11
  %147 = add nsw i64 %145, %146
  %148 = icmp slt i64 %142, %147
  br label %149

149:                                              ; preds = %141, %138
  %150 = phi i1 [ false, %138 ], [ %148, %141 ]
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %150, ptr noundef @.str.183, ptr noundef %151)
  %152 = load i64, ptr %10, align 8, !tbaa !11
  %153 = load i64, ptr %13, align 8, !tbaa !11
  %154 = icmp slt i64 %152, %153
  br i1 %154, label %155, label %163

155:                                              ; preds = %149
  %156 = load double, ptr %11, align 8, !tbaa !13
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %157, i32 0, i32 2
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %158, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !24
  %161 = load i64, ptr %10, align 8, !tbaa !11
  %162 = getelementptr inbounds double, ptr %160, i64 %161
  store double %156, ptr %162, align 8, !tbaa !13
  br label %163

163:                                              ; preds = %155, %149
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %164, i32 0, i32 6
  %166 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %165, i32 0, i32 4
  %167 = load ptr, ptr %166, align 8, !tbaa !24
  %168 = load i64, ptr %10, align 8, !tbaa !11
  %169 = getelementptr inbounds i64, ptr %167, i64 %168
  store i64 1, ptr %169, align 8, !tbaa !11
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %170, i32 0, i32 24
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !24
  %174 = load i64, ptr %10, align 8, !tbaa !11
  %175 = getelementptr inbounds i8, ptr %173, i64 %174
  store i8 1, ptr %175, align 1, !tbaa !9
  store i8 1, ptr %17, align 1, !tbaa !9
  br label %176

176:                                              ; preds = %163, %135
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %177

177:                                              ; preds = %317, %176
  %178 = load i64, ptr %16, align 8, !tbaa !11
  %179 = load i64, ptr %13, align 8, !tbaa !11
  %180 = sub nsw i64 %179, 1
  %181 = icmp sle i64 %178, %180
  br i1 %181, label %182, label %320

182:                                              ; preds = %177
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %183, i32 0, i32 17
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %184, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !24
  %187 = load i64, ptr %16, align 8, !tbaa !11
  %188 = getelementptr inbounds i8, ptr %186, i64 %187
  %189 = load i8, ptr %188, align 1, !tbaa !9, !range !29, !noundef !30
  %190 = trunc i8 %189 to i1
  br i1 %190, label %191, label %249

191:                                              ; preds = %182
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %192, i32 0, i32 2
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %193, i32 0, i32 4
  %195 = load ptr, ptr %194, align 8, !tbaa !24
  %196 = load i64, ptr %16, align 8, !tbaa !11
  %197 = getelementptr inbounds double, ptr %195, i64 %196
  %198 = load double, ptr %197, align 8, !tbaa !13
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %199, i32 0, i32 19
  %201 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %200, i32 0, i32 4
  %202 = load ptr, ptr %201, align 8, !tbaa !24
  %203 = load i64, ptr %16, align 8, !tbaa !11
  %204 = getelementptr inbounds double, ptr %202, i64 %203
  %205 = load double, ptr %204, align 8, !tbaa !13
  %206 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %198, double noundef %205)
  br i1 %206, label %207, label %249

207:                                              ; preds = %191
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %208, i32 0, i32 2
  %210 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %209, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !24
  %212 = load i64, ptr %16, align 8, !tbaa !11
  %213 = getelementptr inbounds double, ptr %211, i64 %212
  %214 = load double, ptr %213, align 8, !tbaa !13
  %215 = load ptr, ptr %7, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %215, i32 0, i32 25
  %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 %16, align 8, !tbaa !11
  %220 = getelementptr inbounds double, ptr %218, i64 %219
  %221 = load double, ptr %220, align 8, !tbaa !13
  %222 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %214, double noundef %221)
  br i1 %222, label %223, label %249

223:                                              ; preds = %207
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %224, i32 0, i32 19
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %225, i32 0, i32 4
  %227 = load ptr, ptr %226, align 8, !tbaa !24
  %228 = load i64, ptr %16, align 8, !tbaa !11
  %229 = getelementptr inbounds double, ptr %227, i64 %228
  %230 = load double, ptr %229, align 8, !tbaa !13
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  %232 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %231, i32 0, i32 2
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %232, i32 0, i32 4
  %234 = load ptr, ptr %233, align 8, !tbaa !24
  %235 = load i64, ptr %16, align 8, !tbaa !11
  %236 = getelementptr inbounds double, ptr %234, i64 %235
  store double %230, ptr %236, align 8, !tbaa !13
  %237 = load ptr, ptr %7, align 8, !tbaa !5
  %238 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %237, i32 0, i32 6
  %239 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %238, i32 0, i32 4
  %240 = load ptr, ptr %239, align 8, !tbaa !24
  %241 = load i64, ptr %16, align 8, !tbaa !11
  %242 = getelementptr inbounds i64, ptr %240, i64 %241
  store i64 1, ptr %242, align 8, !tbaa !11
  %243 = load ptr, ptr %7, align 8, !tbaa !5
  %244 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %243, i32 0, i32 24
  %245 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %244, i32 0, i32 4
  %246 = load ptr, ptr %245, align 8, !tbaa !24
  %247 = load i64, ptr %16, align 8, !tbaa !11
  %248 = getelementptr inbounds i8, ptr %246, i64 %247
  store i8 1, ptr %248, align 1, !tbaa !9
  store i8 1, ptr %17, align 1, !tbaa !9
  br label %249

249:                                              ; preds = %223, %207, %191, %182
  %250 = load ptr, ptr %7, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %250, i32 0, i32 18
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %251, i32 0, i32 4
  %253 = load ptr, ptr %252, align 8, !tbaa !24
  %254 = load i64, ptr %16, align 8, !tbaa !11
  %255 = getelementptr inbounds i8, ptr %253, i64 %254
  %256 = load i8, ptr %255, align 1, !tbaa !9, !range !29, !noundef !30
  %257 = trunc i8 %256 to i1
  br i1 %257, label %258, label %316

258:                                              ; preds = %249
  %259 = load ptr, ptr %7, align 8, !tbaa !5
  %260 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %259, i32 0, i32 2
  %261 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %260, i32 0, i32 4
  %262 = load ptr, ptr %261, align 8, !tbaa !24
  %263 = load i64, ptr %16, align 8, !tbaa !11
  %264 = getelementptr inbounds double, ptr %262, i64 %263
  %265 = load double, ptr %264, align 8, !tbaa !13
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %266, i32 0, i32 20
  %268 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %267, i32 0, i32 4
  %269 = load ptr, ptr %268, align 8, !tbaa !24
  %270 = load i64, ptr %16, align 8, !tbaa !11
  %271 = getelementptr inbounds double, ptr %269, i64 %270
  %272 = load double, ptr %271, align 8, !tbaa !13
  %273 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %265, double noundef %272)
  br i1 %273, label %274, label %316

274:                                              ; preds = %258
  %275 = load ptr, ptr %7, align 8, !tbaa !5
  %276 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %275, i32 0, i32 2
  %277 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %276, i32 0, i32 4
  %278 = load ptr, ptr %277, align 8, !tbaa !24
  %279 = load i64, ptr %16, align 8, !tbaa !11
  %280 = getelementptr inbounds double, ptr %278, i64 %279
  %281 = load double, ptr %280, align 8, !tbaa !13
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %282, i32 0, i32 25
  %284 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %283, i32 0, i32 4
  %285 = load ptr, ptr %284, align 8, !tbaa !24
  %286 = load i64, ptr %16, align 8, !tbaa !11
  %287 = getelementptr inbounds double, ptr %285, i64 %286
  %288 = load double, ptr %287, align 8, !tbaa !13
  %289 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %281, double noundef %288)
  br i1 %289, label %290, label %316

290:                                              ; preds = %274
  %291 = load ptr, ptr %7, align 8, !tbaa !5
  %292 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %291, i32 0, i32 20
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %292, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !24
  %295 = load i64, ptr %16, align 8, !tbaa !11
  %296 = getelementptr inbounds double, ptr %294, i64 %295
  %297 = load double, ptr %296, align 8, !tbaa !13
  %298 = load ptr, ptr %7, align 8, !tbaa !5
  %299 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %298, i32 0, i32 2
  %300 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %299, i32 0, i32 4
  %301 = load ptr, ptr %300, align 8, !tbaa !24
  %302 = load i64, ptr %16, align 8, !tbaa !11
  %303 = getelementptr inbounds double, ptr %301, i64 %302
  store double %297, ptr %303, align 8, !tbaa !13
  %304 = load ptr, ptr %7, align 8, !tbaa !5
  %305 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %304, i32 0, i32 6
  %306 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %305, i32 0, i32 4
  %307 = load ptr, ptr %306, align 8, !tbaa !24
  %308 = load i64, ptr %16, align 8, !tbaa !11
  %309 = getelementptr inbounds i64, ptr %307, i64 %308
  store i64 1, ptr %309, align 8, !tbaa !11
  %310 = load ptr, ptr %7, align 8, !tbaa !5
  %311 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %310, i32 0, i32 24
  %312 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %311, i32 0, i32 4
  %313 = load ptr, ptr %312, align 8, !tbaa !24
  %314 = load i64, ptr %16, align 8, !tbaa !11
  %315 = getelementptr inbounds i8, ptr %313, i64 %314
  store i8 1, ptr %315, align 1, !tbaa !9
  store i8 1, ptr %17, align 1, !tbaa !9
  br label %316

316:                                              ; preds = %290, %274, %258, %249
  br label %317

317:                                              ; preds = %316
  %318 = load i64, ptr %16, align 8, !tbaa !11
  %319 = add nsw i64 %318, 1
  store i64 %319, ptr %16, align 8, !tbaa !11
  br label %177, !llvm.loop !31

320:                                              ; preds = %177
  %321 = load i8, ptr %17, align 1, !tbaa !9, !range !29, !noundef !30
  %322 = trunc i8 %321 to i1
  br i1 %322, label %323, label %398

323:                                              ; preds = %320
  store i64 0, ptr %18, align 8, !tbaa !11
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %324

324:                                              ; preds = %356, %323
  %325 = load i64, ptr %16, align 8, !tbaa !11
  %326 = load i64, ptr %13, align 8, !tbaa !11
  %327 = sub nsw i64 %326, 1
  %328 = icmp sle i64 %325, %327
  br i1 %328, label %329, label %359

329:                                              ; preds = %324
  %330 = load ptr, ptr %7, align 8, !tbaa !5
  %331 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %330, i32 0, i32 6
  %332 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %331, i32 0, i32 4
  %333 = load ptr, ptr %332, align 8, !tbaa !24
  %334 = load i64, ptr %16, align 8, !tbaa !11
  %335 = getelementptr inbounds i64, ptr %333, i64 %334
  %336 = load i64, ptr %335, align 8, !tbaa !11
  %337 = icmp sgt i64 %336, 0
  br i1 %337, label %338, label %355

338:                                              ; preds = %329
  %339 = load ptr, ptr %7, align 8, !tbaa !5
  %340 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %339, i32 0, i32 2
  %341 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %340, i32 0, i32 4
  %342 = load ptr, ptr %341, align 8, !tbaa !24
  %343 = load i64, ptr %16, align 8, !tbaa !11
  %344 = getelementptr inbounds double, ptr %342, i64 %343
  %345 = load double, ptr %344, align 8, !tbaa !13
  %346 = load ptr, ptr %7, align 8, !tbaa !5
  %347 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %346, i32 0, i32 25
  %348 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %347, i32 0, i32 4
  %349 = load ptr, ptr %348, align 8, !tbaa !24
  %350 = load i64, ptr %16, align 8, !tbaa !11
  %351 = getelementptr inbounds double, ptr %349, i64 %350
  %352 = load double, ptr %351, align 8, !tbaa !13
  %353 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %345, double noundef %352)
  br i1 %353, label %354, label %355

354:                                              ; preds = %338
  store i64 1, ptr %18, align 8, !tbaa !11
  br label %355

355:                                              ; preds = %354, %338, %329
  br label %356

356:                                              ; preds = %355
  %357 = load i64, ptr %16, align 8, !tbaa !11
  %358 = add nsw i64 %357, 1
  store i64 %358, ptr %16, align 8, !tbaa !11
  br label %324, !llvm.loop !32

359:                                              ; preds = %324
  %360 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %360, ptr %16, align 8, !tbaa !11
  br label %361

361:                                              ; preds = %394, %359
  %362 = load i64, ptr %16, align 8, !tbaa !11
  %363 = load i64, ptr %13, align 8, !tbaa !11
  %364 = load ptr, ptr %7, align 8, !tbaa !5
  %365 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %364, i32 0, i32 22
  %366 = load i64, ptr %365, align 8, !tbaa !22
  %367 = add nsw i64 %363, %366
  %368 = load ptr, ptr %7, align 8, !tbaa !5
  %369 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %368, i32 0, i32 23
  %370 = load i64, ptr %369, align 8, !tbaa !23
  %371 = add nsw i64 %367, %370
  %372 = sub nsw i64 %371, 1
  %373 = icmp sle i64 %362, %372
  br i1 %373, label %374, label %397

374:                                              ; preds = %361
  %375 = load ptr, ptr %7, align 8, !tbaa !5
  %376 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %375, i32 0, i32 26
  %377 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %376, i32 0, i32 4
  %378 = load ptr, ptr %377, align 8, !tbaa !24
  %379 = load i64, ptr %16, align 8, !tbaa !11
  %380 = getelementptr inbounds i64, ptr %378, i64 %379
  %381 = load i64, ptr %380, align 8, !tbaa !11
  %382 = icmp slt i64 %381, 0
  br i1 %382, label %383, label %393

383:                                              ; preds = %374
  %384 = load ptr, ptr %7, align 8, !tbaa !5
  %385 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %384, i32 0, i32 6
  %386 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %385, i32 0, i32 4
  %387 = load ptr, ptr %386, align 8, !tbaa !24
  %388 = load i64, ptr %16, align 8, !tbaa !11
  %389 = getelementptr inbounds i64, ptr %387, i64 %388
  %390 = load i64, ptr %389, align 8, !tbaa !11
  %391 = icmp sgt i64 %390, 0
  br i1 %391, label %392, label %393

392:                                              ; preds = %383
  store i64 1, ptr %18, align 8, !tbaa !11
  br label %393

393:                                              ; preds = %392, %383, %374
  br label %394

394:                                              ; preds = %393
  %395 = load i64, ptr %16, align 8, !tbaa !11
  %396 = add nsw i64 %395, 1
  store i64 %396, ptr %16, align 8, !tbaa !11
  br label %361, !llvm.loop !33

397:                                              ; preds = %361
  br label %399

398:                                              ; preds = %320
  store i64 -1, ptr %18, align 8, !tbaa !11
  br label %399

399:                                              ; preds = %398, %397
  %400 = load ptr, ptr %7, align 8, !tbaa !5
  %401 = load ptr, ptr %7, align 8, !tbaa !5
  %402 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %401, i32 0, i32 24
  %403 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl16sasappendtobasisEPNS_10sactivesetEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %400, ptr noundef %402, ptr noundef %403)
  %404 = load i64, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  ret i64 %404
}

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


; 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.182 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [26 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_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr 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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i64 -1, 2) i64 @_ZN11alglib_impl9sasmovetoEPNS_10sactivesetEPNS_9ae_vectorEbldPNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, i1 noundef zeroext %2, i64 noundef %3, double noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %9 = icmp eq i64 %8, 1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.182, ptr noundef %5)
  %10 = load i64, ptr %0, align 8, !tbaa !17
  %11 = getelementptr inbounds i8, ptr %0, i64 960
  %12 = load i64, ptr %11, align 8, !tbaa !18
  %13 = getelementptr inbounds i8, ptr %0, i64 968
  %14 = load i64, ptr %13, align 8, !tbaa !19
  %15 = getelementptr inbounds i8, ptr %0, i64 1040
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %10, ptr noundef %5)
  %16 = getelementptr inbounds i8, ptr %0, i64 1104
  %17 = add nsw i64 %12, %10
  %18 = add nsw i64 %17, %14
  tail call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %18, ptr noundef %5)
  %.not.not145 = icmp sgt i64 %10, 0
  br i1 %.not.not145, label %.lr.ph, label %.preheader144

.lr.ph:                                           ; preds = %6
  %19 = getelementptr inbounds i8, ptr %0, i64 72
  %20 = getelementptr inbounds i8, ptr %0, i64 1096
  %21 = getelementptr inbounds i8, ptr %1, i64 56
  %xtraiter = and i64 %10, 1
  %22 = icmp eq i64 %10, 1
  br i1 %22, label %.preheader144.loopexit.unr-lcssa, label %.lr.ph.new

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

.preheader144.loopexit.unr-lcssa:                 ; preds = %40, %.lr.ph
  %.0127146.unr = phi i64 [ 0, %.lr.ph ], [ %62, %40 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader144, label %.preheader144.loopexit.epilog-lcssa

.preheader144.loopexit.epilog-lcssa:              ; preds = %.preheader144.loopexit.unr-lcssa
  %23 = load ptr, ptr %19, align 8, !tbaa !20
  %24 = getelementptr inbounds double, ptr %23, i64 %.0127146.unr
  %25 = load double, ptr %24, align 8, !tbaa !21
  %26 = load ptr, ptr %20, align 8, !tbaa !20
  %27 = getelementptr inbounds double, ptr %26, i64 %.0127146.unr
  store double %25, ptr %27, align 8, !tbaa !21
  %28 = load ptr, ptr %21, align 8, !tbaa !20
  %29 = getelementptr inbounds double, ptr %28, i64 %.0127146.unr
  %30 = load double, ptr %29, align 8, !tbaa !21
  %31 = load ptr, ptr %19, align 8, !tbaa !20
  %32 = getelementptr inbounds double, ptr %31, i64 %.0127146.unr
  store double %30, ptr %32, align 8, !tbaa !21
  br label %.preheader144

.preheader144:                                    ; preds = %.preheader144.loopexit.epilog-lcssa, %.preheader144.loopexit.unr-lcssa, %6
  %.not.not136147 = icmp sgt i64 %18, 0
  br i1 %.not.not136147, label %.lr.ph149, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.preheader144
  %33 = getelementptr inbounds i8, ptr %0, i64 976
  tail call void @_ZN11alglib_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %33, i64 noundef %18, ptr noundef %5)
  br label %._crit_edge154

.lr.ph149:                                        ; preds = %.preheader144
  %34 = getelementptr inbounds i8, ptr %0, i64 272
  %35 = getelementptr inbounds i8, ptr %0, i64 1160
  %36 = add i64 %12, %14
  %37 = add i64 %36, %10
  %38 = add i64 %37, -1
  %xtraiter187 = and i64 %18, 3
  %39 = icmp ult i64 %38, 3
  br i1 %39, label %._crit_edge.unr-lcssa, label %.lr.ph149.new

.lr.ph149.new:                                    ; preds = %.lr.ph149
  %unroll_iter189 = and i64 %18, 9223372036854775804
  br label %63

40:                                               ; preds = %40, %.lr.ph.new
  %.0127146 = phi i64 [ 0, %.lr.ph.new ], [ %62, %40 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %40 ]
  %41 = load ptr, ptr %19, align 8, !tbaa !20
  %42 = getelementptr inbounds double, ptr %41, i64 %.0127146
  %43 = load double, ptr %42, align 8, !tbaa !21
  %44 = load ptr, ptr %20, align 8, !tbaa !20
  %45 = getelementptr inbounds double, ptr %44, i64 %.0127146
  store double %43, ptr %45, align 8, !tbaa !21
  %46 = load ptr, ptr %21, align 8, !tbaa !20
  %47 = getelementptr inbounds double, ptr %46, i64 %.0127146
  %48 = load double, ptr %47, align 8, !tbaa !21
  %49 = load ptr, ptr %19, align 8, !tbaa !20
  %50 = getelementptr inbounds double, ptr %49, i64 %.0127146
  store double %48, ptr %50, align 8, !tbaa !21
  %51 = or disjoint i64 %.0127146, 1
  %52 = load ptr, ptr %19, align 8, !tbaa !20
  %53 = getelementptr inbounds double, ptr %52, i64 %51
  %54 = load double, ptr %53, align 8, !tbaa !21
  %55 = load ptr, ptr %20, align 8, !tbaa !20
  %56 = getelementptr inbounds double, ptr %55, i64 %51
  store double %54, ptr %56, align 8, !tbaa !21
  %57 = load ptr, ptr %21, align 8, !tbaa !20
  %58 = getelementptr inbounds double, ptr %57, i64 %51
  %59 = load double, ptr %58, align 8, !tbaa !21
  %60 = load ptr, ptr %19, align 8, !tbaa !20
  %61 = getelementptr inbounds double, ptr %60, i64 %51
  store double %59, ptr %61, align 8, !tbaa !21
  %62 = add nuw nsw i64 %.0127146, 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 %.preheader144.loopexit.unr-lcssa, label %40, !llvm.loop !22

63:                                               ; preds = %63, %.lr.ph149.new
  %.1128148 = phi i64 [ 0, %.lr.ph149.new ], [ %87, %63 ]
  %niter190 = phi i64 [ 0, %.lr.ph149.new ], [ %niter190.next.3, %63 ]
  %64 = load ptr, ptr %34, align 8, !tbaa !20
  %65 = getelementptr inbounds i64, ptr %64, i64 %.1128148
  %66 = load i64, ptr %65, align 8, !tbaa !24
  %67 = load ptr, ptr %35, align 8, !tbaa !20
  %68 = getelementptr inbounds i64, ptr %67, i64 %.1128148
  store i64 %66, ptr %68, align 8, !tbaa !24
  %69 = or disjoint i64 %.1128148, 1
  %70 = load ptr, ptr %34, align 8, !tbaa !20
  %71 = getelementptr inbounds i64, ptr %70, i64 %69
  %72 = load i64, ptr %71, align 8, !tbaa !24
  %73 = load ptr, ptr %35, align 8, !tbaa !20
  %74 = getelementptr inbounds i64, ptr %73, i64 %69
  store i64 %72, ptr %74, align 8, !tbaa !24
  %75 = or disjoint i64 %.1128148, 2
  %76 = load ptr, ptr %34, align 8, !tbaa !20
  %77 = getelementptr inbounds i64, ptr %76, i64 %75
  %78 = load i64, ptr %77, align 8, !tbaa !24
  %79 = load ptr, ptr %35, align 8, !tbaa !20
  %80 = getelementptr inbounds i64, ptr %79, i64 %75
  store i64 %78, ptr %80, align 8, !tbaa !24
  %81 = or disjoint i64 %.1128148, 3
  %82 = load ptr, ptr %34, align 8, !tbaa !20
  %83 = getelementptr inbounds i64, ptr %82, i64 %81
  %84 = load i64, ptr %83, align 8, !tbaa !24
  %85 = load ptr, ptr %35, align 8, !tbaa !20
  %86 = getelementptr inbounds i64, ptr %85, i64 %81
  store i64 %84, ptr %86, align 8, !tbaa !24
  %87 = add nuw nsw i64 %.1128148, 4
  %niter190.next.3 = add i64 %niter190, 4
  %niter190.ncmp.3 = icmp eq i64 %niter190.next.3, %unroll_iter189
  br i1 %niter190.ncmp.3, label %._crit_edge.unr-lcssa, label %63, !llvm.loop !25

._crit_edge.unr-lcssa:                            ; preds = %63, %.lr.ph149
  %.1128148.unr = phi i64 [ 0, %.lr.ph149 ], [ %87, %63 ]
  %lcmp.mod188.not = icmp eq i64 %xtraiter187, 0
  br i1 %lcmp.mod188.not, label %._crit_edge, label %.epil.preheader186

.epil.preheader186:                               ; preds = %._crit_edge.unr-lcssa, %.epil.preheader186
  %.1128148.epil = phi i64 [ %93, %.epil.preheader186 ], [ %.1128148.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader186 ], [ 0, %._crit_edge.unr-lcssa ]
  %88 = load ptr, ptr %34, align 8, !tbaa !20
  %89 = getelementptr inbounds i64, ptr %88, i64 %.1128148.epil
  %90 = load i64, ptr %89, align 8, !tbaa !24
  %91 = load ptr, ptr %35, align 8, !tbaa !20
  %92 = getelementptr inbounds i64, ptr %91, i64 %.1128148.epil
  store i64 %90, ptr %92, align 8, !tbaa !24
  %93 = add nuw nsw i64 %.1128148.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter187
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader186, !llvm.loop !26

._crit_edge:                                      ; preds = %.epil.preheader186, %._crit_edge.unr-lcssa
  %94 = getelementptr inbounds i8, ptr %0, i64 976
  tail call void @_ZN11alglib_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %94, i64 noundef %18, ptr noundef %5)
  br i1 %.not.not136147, label %.lr.ph153, label %._crit_edge154

.lr.ph153:                                        ; preds = %._crit_edge
  %95 = getelementptr inbounds i8, ptr %0, i64 1032
  %xtraiter192 = and i64 %18, 3
  %96 = icmp ult i64 %38, 3
  br i1 %96, label %._crit_edge154.loopexit.unr-lcssa, label %.lr.ph153.new

.lr.ph153.new:                                    ; preds = %.lr.ph153
  %unroll_iter195 = and i64 %18, 9223372036854775804
  br label %97

97:                                               ; preds = %97, %.lr.ph153.new
  %.2129151 = phi i64 [ 0, %.lr.ph153.new ], [ %109, %97 ]
  %niter196 = phi i64 [ 0, %.lr.ph153.new ], [ %niter196.next.3, %97 ]
  %98 = load ptr, ptr %95, align 8, !tbaa !20
  %99 = getelementptr inbounds i8, ptr %98, i64 %.2129151
  store i8 0, ptr %99, align 1, !tbaa !28
  %100 = or disjoint i64 %.2129151, 1
  %101 = load ptr, ptr %95, align 8, !tbaa !20
  %102 = getelementptr inbounds i8, ptr %101, i64 %100
  store i8 0, ptr %102, align 1, !tbaa !28
  %103 = or disjoint i64 %.2129151, 2
  %104 = load ptr, ptr %95, align 8, !tbaa !20
  %105 = getelementptr inbounds i8, ptr %104, i64 %103
  store i8 0, ptr %105, align 1, !tbaa !28
  %106 = or disjoint i64 %.2129151, 3
  %107 = load ptr, ptr %95, align 8, !tbaa !20
  %108 = getelementptr inbounds i8, ptr %107, i64 %106
  store i8 0, ptr %108, align 1, !tbaa !28
  %109 = add nuw nsw i64 %.2129151, 4
  %niter196.next.3 = add i64 %niter196, 4
  %niter196.ncmp.3 = icmp eq i64 %niter196.next.3, %unroll_iter195
  br i1 %niter196.ncmp.3, label %._crit_edge154.loopexit.unr-lcssa, label %97, !llvm.loop !29

._crit_edge154.loopexit.unr-lcssa:                ; preds = %97, %.lr.ph153
  %.2129151.unr = phi i64 [ 0, %.lr.ph153 ], [ %109, %97 ]
  %lcmp.mod194.not = icmp eq i64 %xtraiter192, 0
  br i1 %lcmp.mod194.not, label %._crit_edge154, label %.epil.preheader191

.epil.preheader191:                               ; preds = %._crit_edge154.loopexit.unr-lcssa, %.epil.preheader191
  %.2129151.epil = phi i64 [ %112, %.epil.preheader191 ], [ %.2129151.unr, %._crit_edge154.loopexit.unr-lcssa ]
  %epil.iter193 = phi i64 [ %epil.iter193.next, %.epil.preheader191 ], [ 0, %._crit_edge154.loopexit.unr-lcssa ]
  %110 = load ptr, ptr %95, align 8, !tbaa !20
  %111 = getelementptr inbounds i8, ptr %110, i64 %.2129151.epil
  store i8 0, ptr %111, align 1, !tbaa !28
  %112 = add nuw nsw i64 %.2129151.epil, 1
  %epil.iter193.next = add i64 %epil.iter193, 1
  %epil.iter193.cmp.not = icmp eq i64 %epil.iter193.next, %xtraiter192
  br i1 %epil.iter193.cmp.not, label %._crit_edge154, label %.epil.preheader191, !llvm.loop !30

._crit_edge154:                                   ; preds = %._crit_edge154.loopexit.unr-lcssa, %.epil.preheader191, %._crit_edge.thread, %._crit_edge
  %113 = phi ptr [ %33, %._crit_edge.thread ], [ %94, %._crit_edge ], [ %94, %.epil.preheader191 ], [ %94, %._crit_edge154.loopexit.unr-lcssa ]
  br i1 %2, label %114, label %.thread182

114:                                              ; preds = %._crit_edge154
  %115 = icmp sgt i64 %3, -1
  %116 = icmp sgt i64 %18, %3
  %spec.select = and i1 %115, %116
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.183, ptr noundef %5)
  %117 = icmp sgt i64 %10, %3
  br i1 %117, label %118, label %122

118:                                              ; preds = %114
  %119 = getelementptr inbounds i8, ptr %0, i64 72
  %120 = load ptr, ptr %119, align 8, !tbaa !20
  %121 = getelementptr inbounds double, ptr %120, i64 %3
  store double %4, ptr %121, align 8, !tbaa !21
  br label %122

122:                                              ; preds = %114, %118
  %123 = getelementptr inbounds i8, ptr %0, i64 272
  %124 = load ptr, ptr %123, align 8, !tbaa !20
  %125 = getelementptr inbounds i64, ptr %124, i64 %3
  store i64 1, ptr %125, align 8, !tbaa !24
  %126 = getelementptr inbounds i8, ptr %0, i64 1032
  %127 = load ptr, ptr %126, align 8, !tbaa !20
  %128 = getelementptr inbounds i8, ptr %127, i64 %3
  store i8 1, ptr %128, align 1, !tbaa !28
  br i1 %.not.not145, label %.lr.ph159, label %._crit_edge160.thread

.thread182:                                       ; preds = %._crit_edge154
  br i1 %.not.not145, label %.lr.ph159, label %.loopexit

.lr.ph159:                                        ; preds = %.thread182, %122
  %129 = getelementptr inbounds i8, ptr %0, i64 680
  %130 = getelementptr inbounds i8, ptr %0, i64 72
  %131 = getelementptr inbounds i8, ptr %0, i64 808
  %132 = getelementptr inbounds i8, ptr %0, i64 1096
  %133 = getelementptr inbounds i8, ptr %0, i64 272
  %134 = getelementptr inbounds i8, ptr %0, i64 1032
  %135 = getelementptr inbounds i8, ptr %0, i64 744
  %136 = getelementptr inbounds i8, ptr %0, i64 872
  br label %.backedge

.backedge:                                        ; preds = %.backedge.backedge, %.lr.ph159
  %.1124157 = phi i1 [ %2, %.lr.ph159 ], [ %.1124157.be, %.backedge.backedge ]
  %.3130156 = phi i64 [ 0, %.lr.ph159 ], [ %.3130156.be, %.backedge.backedge ]
  %137 = load ptr, ptr %129, align 8, !tbaa !20
  %138 = getelementptr inbounds i8, ptr %137, i64 %.3130156
  %139 = load i8, ptr %138, align 1, !tbaa !28, !range !31, !noundef !32
  %140 = trunc nuw i8 %139 to i1
  br i1 %140, label %141, label %167

141:                                              ; preds = %.backedge
  %142 = load ptr, ptr %130, align 8, !tbaa !20
  %143 = getelementptr inbounds double, ptr %142, i64 %.3130156
  %144 = load double, ptr %143, align 8, !tbaa !21
  %145 = load ptr, ptr %131, align 8, !tbaa !20
  %146 = getelementptr inbounds double, ptr %145, i64 %.3130156
  %147 = load double, ptr %146, align 8, !tbaa !21
  %148 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %144, double noundef %147)
  br i1 %148, label %149, label %167

149:                                              ; preds = %141
  %150 = load ptr, ptr %130, align 8, !tbaa !20
  %151 = getelementptr inbounds double, ptr %150, i64 %.3130156
  %152 = load double, ptr %151, align 8, !tbaa !21
  %153 = load ptr, ptr %132, align 8, !tbaa !20
  %154 = getelementptr inbounds double, ptr %153, i64 %.3130156
  %155 = load double, ptr %154, align 8, !tbaa !21
  %156 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %152, double noundef %155)
  br i1 %156, label %157, label %167

157:                                              ; preds = %149
  %158 = load ptr, ptr %131, align 8, !tbaa !20
  %159 = getelementptr inbounds double, ptr %158, i64 %.3130156
  %160 = load double, ptr %159, align 8, !tbaa !21
  %161 = load ptr, ptr %130, align 8, !tbaa !20
  %162 = getelementptr inbounds double, ptr %161, i64 %.3130156
  store double %160, ptr %162, align 8, !tbaa !21
  %163 = load ptr, ptr %133, align 8, !tbaa !20
  %164 = getelementptr inbounds i64, ptr %163, i64 %.3130156
  store i64 1, ptr %164, align 8, !tbaa !24
  %165 = load ptr, ptr %134, align 8, !tbaa !20
  %166 = getelementptr inbounds i8, ptr %165, i64 %.3130156
  store i8 1, ptr %166, align 1, !tbaa !28
  br label %167

167:                                              ; preds = %157, %149, %141, %.backedge
  %.2125 = phi i1 [ true, %157 ], [ %.1124157, %149 ], [ %.1124157, %141 ], [ %.1124157, %.backedge ]
  %168 = load ptr, ptr %135, align 8, !tbaa !20
  %169 = getelementptr inbounds i8, ptr %168, i64 %.3130156
  %170 = load i8, ptr %169, align 1, !tbaa !28, !range !31, !noundef !32
  %171 = trunc nuw i8 %170 to i1
  br i1 %171, label %172, label %188

172:                                              ; preds = %167
  %173 = load ptr, ptr %130, align 8, !tbaa !20
  %174 = getelementptr inbounds double, ptr %173, i64 %.3130156
  %175 = load double, ptr %174, align 8, !tbaa !21
  %176 = load ptr, ptr %136, align 8, !tbaa !20
  %177 = getelementptr inbounds double, ptr %176, i64 %.3130156
  %178 = load double, ptr %177, align 8, !tbaa !21
  %179 = tail call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %175, double noundef %178)
  br i1 %179, label %180, label %188

180:                                              ; preds = %172
  %181 = load ptr, ptr %130, align 8, !tbaa !20
  %182 = getelementptr inbounds double, ptr %181, i64 %.3130156
  %183 = load double, ptr %182, align 8, !tbaa !21
  %184 = load ptr, ptr %132, align 8, !tbaa !20
  %185 = getelementptr inbounds double, ptr %184, i64 %.3130156
  %186 = load double, ptr %185, align 8, !tbaa !21
  %187 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %183, double noundef %186)
  br i1 %187, label %.thread, label %188

188:                                              ; preds = %167, %172, %180
  %189 = add nuw nsw i64 %.3130156, 1
  %exitcond173.not = icmp eq i64 %189, %10
  br i1 %exitcond173.not, label %._crit_edge160, label %.backedge.backedge

.backedge.backedge:                               ; preds = %188, %.thread
  %.1124157.be = phi i1 [ %.2125, %188 ], [ true, %.thread ]
  %.3130156.be = phi i64 [ %189, %188 ], [ %199, %.thread ]
  br label %.backedge, !llvm.loop !33

.thread:                                          ; preds = %180
  %190 = load ptr, ptr %136, align 8, !tbaa !20
  %191 = getelementptr inbounds double, ptr %190, i64 %.3130156
  %192 = load double, ptr %191, align 8, !tbaa !21
  %193 = load ptr, ptr %130, align 8, !tbaa !20
  %194 = getelementptr inbounds double, ptr %193, i64 %.3130156
  store double %192, ptr %194, align 8, !tbaa !21
  %195 = load ptr, ptr %133, align 8, !tbaa !20
  %196 = getelementptr inbounds i64, ptr %195, i64 %.3130156
  store i64 1, ptr %196, align 8, !tbaa !24
  %197 = load ptr, ptr %134, align 8, !tbaa !20
  %198 = getelementptr inbounds i8, ptr %197, i64 %.3130156
  store i8 1, ptr %198, align 1, !tbaa !28
  %199 = add nuw nsw i64 %.3130156, 1
  %exitcond173.not178 = icmp eq i64 %199, %10
  br i1 %exitcond173.not178, label %.preheader143, label %.backedge.backedge

._crit_edge160:                                   ; preds = %188
  br i1 %.2125, label %.preheader143, label %.loopexit

._crit_edge160.thread:                            ; preds = %122
  br i1 %2, label %.preheader, label %.loopexit

.preheader143:                                    ; preds = %.thread, %._crit_edge160
  br i1 %.not.not145, label %.lr.ph164, label %.preheader

.lr.ph164:                                        ; preds = %.preheader143
  %200 = getelementptr inbounds i8, ptr %0, i64 272
  %201 = getelementptr inbounds i8, ptr %0, i64 72
  %202 = getelementptr inbounds i8, ptr %0, i64 1096
  br label %220

.preheader:                                       ; preds = %233, %._crit_edge160.thread, %.preheader143
  %.0.lcssa = phi i64 [ 0, %.preheader143 ], [ 0, %._crit_edge160.thread ], [ %.1, %233 ]
  %203 = load i64, ptr %11, align 8, !tbaa !18
  %204 = add nsw i64 %203, %10
  %205 = load i64, ptr %13, align 8, !tbaa !19
  %206 = add nsw i64 %204, %205
  %.not.not140166 = icmp slt i64 %10, %206
  br i1 %.not.not140166, label %.lr.ph169, label %.loopexit

.lr.ph169:                                        ; preds = %.preheader
  %207 = getelementptr inbounds i8, ptr %0, i64 1160
  %208 = load ptr, ptr %207, align 8, !tbaa !20
  %209 = getelementptr inbounds i8, ptr %0, i64 272
  %210 = add i64 %203, %205
  %xtraiter197 = and i64 %210, 1
  %lcmp.mod198.not = icmp eq i64 %xtraiter197, 0
  br i1 %lcmp.mod198.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph169
  %211 = getelementptr inbounds i64, ptr %208, i64 %10
  %212 = load i64, ptr %211, align 8, !tbaa !24
  %213 = icmp slt i64 %212, 0
  br i1 %213, label %214, label %.prol.loopexit.unr-lcssa

214:                                              ; preds = %.prol.preheader
  %215 = load ptr, ptr %209, align 8, !tbaa !20
  %216 = getelementptr inbounds i64, ptr %215, i64 %10
  %217 = load i64, ptr %216, align 8, !tbaa !24
  %.inv.prol = icmp slt i64 %217, 1
  %spec.select142.prol = select i1 %.inv.prol, i64 %.0.lcssa, i64 1
  br label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %214, %.prol.preheader
  %.3.prol = phi i64 [ %.0.lcssa, %.prol.preheader ], [ %spec.select142.prol, %214 ]
  %218 = add nsw i64 %10, 1
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph169
  %.3.lcssa.unr = phi i64 [ poison, %.lr.ph169 ], [ %.3.prol, %.prol.loopexit.unr-lcssa ]
  %.2168.unr = phi i64 [ %.0.lcssa, %.lr.ph169 ], [ %.3.prol, %.prol.loopexit.unr-lcssa ]
  %.5167.unr = phi i64 [ %10, %.lr.ph169 ], [ %218, %.prol.loopexit.unr-lcssa ]
  %219 = icmp eq i64 %210, 1
  br i1 %219, label %.loopexit, label %.lr.ph169.new

220:                                              ; preds = %.lr.ph164, %233
  %.0163 = phi i64 [ 0, %.lr.ph164 ], [ %.1, %233 ]
  %.4131162 = phi i64 [ 0, %.lr.ph164 ], [ %234, %233 ]
  %221 = load ptr, ptr %200, align 8, !tbaa !20
  %222 = getelementptr inbounds i64, ptr %221, i64 %.4131162
  %223 = load i64, ptr %222, align 8, !tbaa !24
  %224 = icmp sgt i64 %223, 0
  br i1 %224, label %225, label %233

225:                                              ; preds = %220
  %226 = load ptr, ptr %201, align 8, !tbaa !20
  %227 = getelementptr inbounds double, ptr %226, i64 %.4131162
  %228 = load double, ptr %227, align 8, !tbaa !21
  %229 = load ptr, ptr %202, align 8, !tbaa !20
  %230 = getelementptr inbounds double, ptr %229, i64 %.4131162
  %231 = load double, ptr %230, align 8, !tbaa !21
  %232 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %228, double noundef %231)
  %spec.select141 = select i1 %232, i64 1, i64 %.0163
  br label %233

233:                                              ; preds = %225, %220
  %.1 = phi i64 [ %.0163, %220 ], [ %spec.select141, %225 ]
  %234 = add nuw nsw i64 %.4131162, 1
  %exitcond174.not = icmp eq i64 %234, %10
  br i1 %exitcond174.not, label %.preheader, label %220, !llvm.loop !34

.lr.ph169.new:                                    ; preds = %.prol.loopexit, %251
  %.2168 = phi i64 [ %.3.1, %251 ], [ %.2168.unr, %.prol.loopexit ]
  %.5167 = phi i64 [ %252, %251 ], [ %.5167.unr, %.prol.loopexit ]
  %235 = getelementptr inbounds i64, ptr %208, i64 %.5167
  %236 = load i64, ptr %235, align 8, !tbaa !24
  %237 = icmp slt i64 %236, 0
  br i1 %237, label %238, label %242

238:                                              ; preds = %.lr.ph169.new
  %239 = load ptr, ptr %209, align 8, !tbaa !20
  %240 = getelementptr inbounds i64, ptr %239, i64 %.5167
  %241 = load i64, ptr %240, align 8, !tbaa !24
  %.inv = icmp slt i64 %241, 1
  %spec.select142 = select i1 %.inv, i64 %.2168, i64 1
  br label %242

242:                                              ; preds = %238, %.lr.ph169.new
  %.3 = phi i64 [ %.2168, %.lr.ph169.new ], [ %spec.select142, %238 ]
  %243 = add nsw i64 %.5167, 1
  %244 = getelementptr inbounds i64, ptr %208, i64 %243
  %245 = load i64, ptr %244, align 8, !tbaa !24
  %246 = icmp slt i64 %245, 0
  br i1 %246, label %247, label %251

247:                                              ; preds = %242
  %248 = load ptr, ptr %209, align 8, !tbaa !20
  %249 = getelementptr inbounds i64, ptr %248, i64 %243
  %250 = load i64, ptr %249, align 8, !tbaa !24
  %.inv.1 = icmp slt i64 %250, 1
  %spec.select142.1 = select i1 %.inv.1, i64 %.3, i64 1
  br label %251

251:                                              ; preds = %247, %242
  %.3.1 = phi i64 [ %.3, %242 ], [ %spec.select142.1, %247 ]
  %252 = add nsw i64 %.5167, 2
  %exitcond175.not.1 = icmp eq i64 %252, %206
  br i1 %exitcond175.not.1, label %.loopexit, label %.lr.ph169.new, !llvm.loop !35

.loopexit:                                        ; preds = %.prol.loopexit, %251, %.thread182, %._crit_edge160.thread, %.preheader, %._crit_edge160
  %.4 = phi i64 [ -1, %._crit_edge160 ], [ %.0.lcssa, %.preheader ], [ -1, %._crit_edge160.thread ], [ -1, %.thread182 ], [ %.3.lcssa.unr, %.prol.loopexit ], [ %.3.1, %251 ]
  tail call void @_ZN11alglib_impl16sasappendtobasisEPNS_10sactivesetEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %113, ptr noundef %5)
  ret i64 %.4
}

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

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" }

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

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


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