; 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::minnsstate" = type { i64, i64, double, i64, i8, double, %"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", i64, i64, %"struct.alglib_impl::ae_matrix", i64, i64, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i8, i8, i8, %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::hqrndstate", double, i64, double, double, double, double, double, double, double, double, i64, double, i64, i64, i64, i64, double, double, %"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", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"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::minnsqp", %"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", i64, i64, i64, i64, i64, i64, double, double, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::minnsqp" = type { double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::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_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::snnlssolver" }
%"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.517 = external hidden unnamed_addr constant [30 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl14minnsiterationEPNS_10minnsstateEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %16, i32 0, i32 23
  %18 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %17, i32 0, i32 0
  %19 = load i32, ptr %18, align 8, !tbaa !9
  %20 = icmp sge i32 %19, 0
  br i1 %20, label %21, label %78

21:                                               ; preds = %2
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %22, i32 0, i32 23
  %24 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %23, i32 0, i32 1
  %25 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %26 = load ptr, ptr %25, align 8, !tbaa !22
  %27 = getelementptr inbounds i64, ptr %26, i64 0
  %28 = load i64, ptr %27, align 8, !tbaa !23
  store i64 %28, ptr %6, align 8, !tbaa !23
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %29, i32 0, i32 23
  %31 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %30, i32 0, i32 1
  %32 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %33 = load ptr, ptr %32, align 8, !tbaa !22
  %34 = getelementptr inbounds i64, ptr %33, i64 1
  %35 = load i64, ptr %34, align 8, !tbaa !23
  store i64 %35, ptr %7, align 8, !tbaa !23
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %36, i32 0, i32 23
  %38 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %37, i32 0, i32 1
  %39 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %38, i32 0, i32 4
  %40 = load ptr, ptr %39, align 8, !tbaa !22
  %41 = getelementptr inbounds i64, ptr %40, i64 2
  %42 = load i64, ptr %41, align 8, !tbaa !23
  store i64 %42, ptr %8, align 8, !tbaa !23
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %43, i32 0, i32 23
  %45 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %44, i32 0, i32 1
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !22
  %48 = getelementptr inbounds i64, ptr %47, i64 3
  %49 = load i64, ptr %48, align 8, !tbaa !23
  store i64 %49, ptr %9, align 8, !tbaa !23
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %50, i32 0, i32 23
  %52 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %51, i32 0, i32 1
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %55 = getelementptr inbounds i64, ptr %54, i64 4
  %56 = load i64, ptr %55, align 8, !tbaa !23
  store i64 %56, ptr %10, align 8, !tbaa !23
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %57, i32 0, i32 23
  %59 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %58, i32 0, i32 3
  %60 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %59, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !22
  %62 = getelementptr inbounds double, ptr %61, i64 0
  %63 = load double, ptr %62, align 8, !tbaa !24
  store double %63, ptr %11, align 8, !tbaa !24
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %64, i32 0, i32 23
  %66 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %65, i32 0, i32 3
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %66, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !22
  %69 = getelementptr inbounds double, ptr %68, i64 1
  %70 = load double, ptr %69, align 8, !tbaa !24
  store double %70, ptr %12, align 8, !tbaa !24
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %71, i32 0, i32 23
  %73 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %72, i32 0, i32 3
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !22
  %76 = getelementptr inbounds double, ptr %75, i64 2
  %77 = load double, ptr %76, align 8, !tbaa !24
  store double %77, ptr %13, align 8, !tbaa !24
  br label %79

78:                                               ; preds = %2
  store i64 359, ptr %6, align 8, !tbaa !23
  store i64 -58, ptr %7, align 8, !tbaa !23
  store i64 -919, ptr %8, align 8, !tbaa !23
  store i64 -909, ptr %9, align 8, !tbaa !23
  store i64 81, ptr %10, align 8, !tbaa !23
  store double 2.550000e+02, ptr %11, align 8, !tbaa !24
  store double 7.400000e+01, ptr %12, align 8, !tbaa !24
  store double -7.880000e+02, ptr %13, align 8, !tbaa !24
  br label %79

79:                                               ; preds = %78, %21
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %80, i32 0, i32 23
  %82 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !9
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %79
  br label %343

86:                                               ; preds = %79
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %87, i32 0, i32 23
  %89 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 8, !tbaa !9
  %91 = icmp eq i32 %90, 1
  br i1 %91, label %92, label %93

92:                                               ; preds = %86
  br label %381

93:                                               ; preds = %86
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %94, i32 0, i32 23
  %96 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %95, i32 0, i32 0
  %97 = load i32, ptr %96, align 8, !tbaa !9
  %98 = icmp eq i32 %97, 2
  br i1 %98, label %99, label %100

99:                                               ; preds = %93
  br label %506

100:                                              ; preds = %93
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %101, i32 0, i32 23
  %103 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %102, i32 0, i32 0
  %104 = load i32, ptr %103, align 8, !tbaa !9
  %105 = icmp eq i32 %104, 3
  br i1 %105, label %106, label %107

106:                                              ; preds = %100
  br label %515

107:                                              ; preds = %100
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %108, i32 0, i32 77
  store double 0.000000e+00, ptr %109, align 8, !tbaa !25
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %110, i32 0, i32 78
  store double 0.000000e+00, ptr %111, align 8, !tbaa !26
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %112, i32 0, i32 76
  store i64 0, ptr %113, align 8, !tbaa !27
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %114, i32 0, i32 71
  store i64 0, ptr %115, align 8, !tbaa !28
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %116, i32 0, i32 72
  store i64 0, ptr %117, align 8, !tbaa !29
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %118, i32 0, i32 73
  store i64 0, ptr %119, align 8, !tbaa !30
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %120, i32 0, i32 74
  store i64 0, ptr %121, align 8, !tbaa !31
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %122, i32 0, i32 75
  store i64 0, ptr %123, align 8, !tbaa !32
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %124, i32 0, i32 53
  store i8 0, ptr %125, align 8, !tbaa !33
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %126, i32 0, i32 79
  store i64 0, ptr %127, align 8, !tbaa !34
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %128, i32 0, i32 1
  %130 = load i64, ptr %129, align 8, !tbaa !35
  store i64 %130, ptr %8, align 8, !tbaa !23
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %131, i32 0, i32 14
  %133 = load i64, ptr %132, align 8, !tbaa !36
  store i64 %133, ptr %9, align 8, !tbaa !23
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %134, i32 0, i32 15
  %136 = load i64, ptr %135, align 8, !tbaa !37
  store i64 %136, ptr %10, align 8, !tbaa !23
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_implL24minns_clearrequestfieldsEPNS_10minnsstateEPNS_8ae_stateE(ptr noundef %137, ptr noundef %138)
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %139, i32 0, i32 0
  %141 = load i64, ptr %140, align 8, !tbaa !38
  %142 = icmp ne i64 %141, 0
  br i1 %142, label %143, label %144

143:                                              ; preds = %107
  br label %522

144:                                              ; preds = %107
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %145, i32 0, i32 5
  %147 = load double, ptr %146, align 8, !tbaa !39
  %148 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %147, double noundef 0.000000e+00)
  br i1 %148, label %149, label %168

149:                                              ; preds = %144
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %150, i32 0, i32 68
  %152 = load i64, ptr %8, align 8, !tbaa !23
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %151, i64 noundef %152, ptr noundef %153)
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %154, i32 0, i32 70
  %156 = load i64, ptr %9, align 8, !tbaa !23
  %157 = add nsw i64 1, %156
  %158 = load i64, ptr %10, align 8, !tbaa !23
  %159 = add nsw i64 %157, %158
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %155, i64 noundef %159, ptr noundef %160)
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %161, i32 0, i32 69
  %163 = load i64, ptr %9, align 8, !tbaa !23
  %164 = add nsw i64 1, %163
  %165 = load i64, ptr %10, align 8, !tbaa !23
  %166 = add nsw i64 %164, %165
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %162, i64 noundef %166, ptr noundef %167)
  br label %168

168:                                              ; preds = %149, %144
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %169, i32 0, i32 24
  %171 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %170, i32 0, i32 1
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %171, i64 noundef 14, ptr noundef %172)
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %173, i32 0, i32 24
  %175 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %174, i32 0, i32 2
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %175, i64 noundef 4, ptr noundef %176)
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %177, i32 0, i32 24
  %179 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %178, i32 0, i32 3
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %179, i64 noundef 10, ptr noundef %180)
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %181, i32 0, i32 24
  %183 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %182, i32 0, i32 0
  store i32 -1, ptr %183, align 8, !tbaa !40
  br label %184

184:                                              ; preds = %515, %506, %168
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = call noundef zeroext i1 @_ZN11alglib_implL18minns_agsiterationEPNS_10minnsstateEPNS_8ae_stateE(ptr noundef %185, ptr noundef %186)
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  br label %519

189:                                              ; preds = %184
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %190, i32 0, i32 5
  %192 = load double, ptr %191, align 8, !tbaa !39
  %193 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %192, double noundef 0.000000e+00)
  br i1 %193, label %194, label %199

194:                                              ; preds = %189
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %195, i32 0, i32 20
  %197 = load i8, ptr %196, align 8, !tbaa !41, !range !42, !noundef !43
  %198 = trunc i8 %197 to i1
  br i1 %198, label %200, label %199

199:                                              ; preds = %194, %189
  br label %511

200:                                              ; preds = %194
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %201, i32 0, i32 20
  store i8 0, ptr %202, align 8, !tbaa !41
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %203, i32 0, i32 21
  store i8 1, ptr %204, align 1, !tbaa !44
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %205, i32 0, i32 68
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %206, i32 0, i32 4
  %208 = load ptr, ptr %207, align 8, !tbaa !22
  %209 = getelementptr inbounds double, ptr %208, i64 0
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %210, i32 0, i32 16
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %211, i32 0, i32 4
  %213 = load ptr, ptr %212, align 8, !tbaa !22
  %214 = getelementptr inbounds double, ptr %213, i64 0
  %215 = load i64, ptr %8, align 8, !tbaa !23
  %216 = sub nsw i64 %215, 1
  %217 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %216)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %209, i64 noundef 1, ptr noundef %214, i64 noundef 1, i64 noundef %217)
  store i64 0, ptr %7, align 8, !tbaa !23
  br label %218

218:                                              ; preds = %486, %200
  %219 = load i64, ptr %7, align 8, !tbaa !23
  %220 = load i64, ptr %8, align 8, !tbaa !23
  %221 = sub nsw i64 %220, 1
  %222 = icmp sgt i64 %219, %221
  br i1 %222, label %223, label %224

223:                                              ; preds = %218
  br label %489

224:                                              ; preds = %218
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %225, i32 0, i32 68
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %226, i32 0, i32 4
  %228 = load ptr, ptr %227, align 8, !tbaa !22
  %229 = load i64, ptr %7, align 8, !tbaa !23
  %230 = getelementptr inbounds double, ptr %228, i64 %229
  %231 = load double, ptr %230, align 8, !tbaa !24
  store double %231, ptr %11, align 8, !tbaa !24
  %232 = load double, ptr %11, align 8, !tbaa !24
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %233, i32 0, i32 5
  %235 = load double, ptr %234, align 8, !tbaa !39
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %236, i32 0, i32 6
  %238 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %237, i32 0, i32 4
  %239 = load ptr, ptr %238, align 8, !tbaa !22
  %240 = load i64, ptr %7, align 8, !tbaa !23
  %241 = getelementptr inbounds double, ptr %239, i64 %240
  %242 = load double, ptr %241, align 8, !tbaa !24
  %243 = fneg double %235
  %244 = call double @llvm.fmuladd.f64(double %243, double %242, double %232)
  store double %244, ptr %13, align 8, !tbaa !24
  %245 = load double, ptr %11, align 8, !tbaa !24
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %246, i32 0, i32 5
  %248 = load double, ptr %247, align 8, !tbaa !39
  %249 = load ptr, ptr %4, align 8, !tbaa !5
  %250 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %249, i32 0, i32 6
  %251 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %250, i32 0, i32 4
  %252 = load ptr, ptr %251, align 8, !tbaa !22
  %253 = load i64, ptr %7, align 8, !tbaa !23
  %254 = getelementptr inbounds double, ptr %252, i64 %253
  %255 = load double, ptr %254, align 8, !tbaa !24
  %256 = call double @llvm.fmuladd.f64(double %248, double %255, double %245)
  store double %256, ptr %12, align 8, !tbaa !24
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %257, i32 0, i32 9
  %259 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %258, i32 0, i32 4
  %260 = load ptr, ptr %259, align 8, !tbaa !22
  %261 = load i64, ptr %7, align 8, !tbaa !23
  %262 = getelementptr inbounds i8, ptr %260, i64 %261
  %263 = load i8, ptr %262, align 1, !tbaa !45, !range !42, !noundef !43
  %264 = trunc i8 %263 to i1
  br i1 %264, label %265, label %283

265:                                              ; preds = %224
  %266 = load double, ptr %13, align 8, !tbaa !24
  %267 = load ptr, ptr %4, align 8, !tbaa !5
  %268 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %267, i32 0, i32 7
  %269 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %268, i32 0, i32 4
  %270 = load ptr, ptr %269, align 8, !tbaa !22
  %271 = load i64, ptr %7, align 8, !tbaa !23
  %272 = getelementptr inbounds double, ptr %270, i64 %271
  %273 = load double, ptr %272, align 8, !tbaa !24
  %274 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %266, double noundef %273)
  br i1 %274, label %275, label %283

275:                                              ; preds = %265
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %276, i32 0, i32 7
  %278 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %277, i32 0, i32 4
  %279 = load ptr, ptr %278, align 8, !tbaa !22
  %280 = load i64, ptr %7, align 8, !tbaa !23
  %281 = getelementptr inbounds double, ptr %279, i64 %280
  %282 = load double, ptr %281, align 8, !tbaa !24
  store double %282, ptr %13, align 8, !tbaa !24
  br label %283

283:                                              ; preds = %275, %265, %224
  %284 = load ptr, ptr %4, align 8, !tbaa !5
  %285 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %284, i32 0, i32 10
  %286 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %285, i32 0, i32 4
  %287 = load ptr, ptr %286, align 8, !tbaa !22
  %288 = load i64, ptr %7, align 8, !tbaa !23
  %289 = getelementptr inbounds i8, ptr %287, i64 %288
  %290 = load i8, ptr %289, align 1, !tbaa !45, !range !42, !noundef !43
  %291 = trunc i8 %290 to i1
  br i1 %291, label %292, label %310

292:                                              ; preds = %283
  %293 = load double, ptr %12, align 8, !tbaa !24
  %294 = load ptr, ptr %4, align 8, !tbaa !5
  %295 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %294, i32 0, i32 8
  %296 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %295, i32 0, i32 4
  %297 = load ptr, ptr %296, align 8, !tbaa !22
  %298 = load i64, ptr %7, align 8, !tbaa !23
  %299 = getelementptr inbounds double, ptr %297, i64 %298
  %300 = load double, ptr %299, align 8, !tbaa !24
  %301 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %293, double noundef %300)
  br i1 %301, label %302, label %310

302:                                              ; preds = %292
  %303 = load ptr, ptr %4, align 8, !tbaa !5
  %304 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %303, i32 0, i32 8
  %305 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %304, i32 0, i32 4
  %306 = load ptr, ptr %305, align 8, !tbaa !22
  %307 = load i64, ptr %7, align 8, !tbaa !23
  %308 = getelementptr inbounds double, ptr %306, i64 %307
  %309 = load double, ptr %308, align 8, !tbaa !24
  store double %309, ptr %12, align 8, !tbaa !24
  br label %310

310:                                              ; preds = %302, %292, %283
  %311 = load double, ptr %13, align 8, !tbaa !24
  %312 = load double, ptr %12, align 8, !tbaa !24
  %313 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %311, double noundef %312)
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %313, ptr noundef @.str.517, ptr noundef %314)
  %315 = load double, ptr %13, align 8, !tbaa !24
  %316 = load double, ptr %12, align 8, !tbaa !24
  %317 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %315, double noundef %316)
  br i1 %317, label %318, label %319

318:                                              ; preds = %310
  br label %465

319:                                              ; preds = %310
  %320 = load ptr, ptr %4, align 8, !tbaa !5
  %321 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %320, i32 0, i32 16
  %322 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %321, i32 0, i32 4
  %323 = load ptr, ptr %322, align 8, !tbaa !22
  %324 = getelementptr inbounds double, ptr %323, i64 0
  %325 = load ptr, ptr %4, align 8, !tbaa !5
  %326 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %325, i32 0, i32 68
  %327 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %326, i32 0, i32 4
  %328 = load ptr, ptr %327, align 8, !tbaa !22
  %329 = getelementptr inbounds double, ptr %328, i64 0
  %330 = load i64, ptr %8, align 8, !tbaa !23
  %331 = sub nsw i64 %330, 1
  %332 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %331)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %324, i64 noundef 1, ptr noundef %329, i64 noundef 1, i64 noundef %332)
  %333 = load double, ptr %13, align 8, !tbaa !24
  %334 = load ptr, ptr %4, align 8, !tbaa !5
  %335 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %334, i32 0, i32 16
  %336 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %335, i32 0, i32 4
  %337 = load ptr, ptr %336, align 8, !tbaa !22
  %338 = load i64, ptr %7, align 8, !tbaa !23
  %339 = getelementptr inbounds double, ptr %337, i64 %338
  store double %333, ptr %339, align 8, !tbaa !24
  %340 = load ptr, ptr %4, align 8, !tbaa !5
  %341 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %340, i32 0, i32 23
  %342 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %341, i32 0, i32 0
  store i32 0, ptr %342, align 8, !tbaa !9
  br label %525

343:                                              ; preds = %85
  %344 = load ptr, ptr %4, align 8, !tbaa !5
  %345 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %344, i32 0, i32 70
  %346 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %345, i32 0, i32 4
  %347 = load ptr, ptr %346, align 8, !tbaa !22
  %348 = getelementptr inbounds double, ptr %347, i64 0
  %349 = load ptr, ptr %4, align 8, !tbaa !5
  %350 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %349, i32 0, i32 18
  %351 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %350, i32 0, i32 4
  %352 = load ptr, ptr %351, align 8, !tbaa !22
  %353 = getelementptr inbounds double, ptr %352, i64 0
  %354 = load i64, ptr %9, align 8, !tbaa !23
  %355 = load i64, ptr %10, align 8, !tbaa !23
  %356 = add nsw i64 %354, %355
  %357 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %356)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %348, i64 noundef 1, ptr noundef %353, i64 noundef 1, i64 noundef %357)
  %358 = load ptr, ptr %4, align 8, !tbaa !5
  %359 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %358, i32 0, i32 16
  %360 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %359, i32 0, i32 4
  %361 = load ptr, ptr %360, align 8, !tbaa !22
  %362 = getelementptr inbounds double, ptr %361, i64 0
  %363 = load ptr, ptr %4, align 8, !tbaa !5
  %364 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %363, i32 0, i32 68
  %365 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %364, i32 0, i32 4
  %366 = load ptr, ptr %365, align 8, !tbaa !22
  %367 = getelementptr inbounds double, ptr %366, i64 0
  %368 = load i64, ptr %8, align 8, !tbaa !23
  %369 = sub nsw i64 %368, 1
  %370 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %369)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %362, i64 noundef 1, ptr noundef %367, i64 noundef 1, i64 noundef %370)
  %371 = load double, ptr %12, align 8, !tbaa !24
  %372 = load ptr, ptr %4, align 8, !tbaa !5
  %373 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %372, i32 0, i32 16
  %374 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %373, i32 0, i32 4
  %375 = load ptr, ptr %374, align 8, !tbaa !22
  %376 = load i64, ptr %7, align 8, !tbaa !23
  %377 = getelementptr inbounds double, ptr %375, i64 %376
  store double %371, ptr %377, align 8, !tbaa !24
  %378 = load ptr, ptr %4, align 8, !tbaa !5
  %379 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %378, i32 0, i32 23
  %380 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %379, i32 0, i32 0
  store i32 1, ptr %380, align 8, !tbaa !9
  br label %525

381:                                              ; preds = %92
  %382 = load ptr, ptr %4, align 8, !tbaa !5
  %383 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %382, i32 0, i32 69
  %384 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %383, i32 0, i32 4
  %385 = load ptr, ptr %384, align 8, !tbaa !22
  %386 = getelementptr inbounds double, ptr %385, i64 0
  %387 = load ptr, ptr %4, align 8, !tbaa !5
  %388 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %387, i32 0, i32 18
  %389 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %388, i32 0, i32 4
  %390 = load ptr, ptr %389, align 8, !tbaa !22
  %391 = getelementptr inbounds double, ptr %390, i64 0
  %392 = load i64, ptr %9, align 8, !tbaa !23
  %393 = load i64, ptr %10, align 8, !tbaa !23
  %394 = add nsw i64 %392, %393
  %395 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %394)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %386, i64 noundef 1, ptr noundef %391, i64 noundef 1, i64 noundef %395)
  %396 = load ptr, ptr %4, align 8, !tbaa !5
  %397 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %396, i32 0, i32 19
  %398 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %397, i32 0, i32 6
  %399 = load ptr, ptr %398, align 8, !tbaa !22
  %400 = getelementptr inbounds ptr, ptr %399, i64 0
  %401 = load ptr, ptr %400, align 8, !tbaa !5
  %402 = load i64, ptr %7, align 8, !tbaa !23
  %403 = getelementptr inbounds double, ptr %401, i64 %402
  %404 = load ptr, ptr %4, align 8, !tbaa !5
  %405 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %404, i32 0, i32 19
  %406 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %405, i32 0, i32 2
  %407 = load i64, ptr %406, align 8, !tbaa !46
  %408 = load ptr, ptr %4, align 8, !tbaa !5
  %409 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %408, i32 0, i32 69
  %410 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %409, i32 0, i32 4
  %411 = load ptr, ptr %410, align 8, !tbaa !22
  %412 = getelementptr inbounds double, ptr %411, i64 0
  %413 = load i64, ptr %9, align 8, !tbaa !23
  %414 = load i64, ptr %10, align 8, !tbaa !23
  %415 = add nsw i64 %413, %414
  %416 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %415)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %403, i64 noundef %407, ptr noundef %412, i64 noundef 1, i64 noundef %416)
  %417 = load ptr, ptr %4, align 8, !tbaa !5
  %418 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %417, i32 0, i32 19
  %419 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %418, i32 0, i32 6
  %420 = load ptr, ptr %419, align 8, !tbaa !22
  %421 = getelementptr inbounds ptr, ptr %420, i64 0
  %422 = load ptr, ptr %421, align 8, !tbaa !5
  %423 = load i64, ptr %7, align 8, !tbaa !23
  %424 = getelementptr inbounds double, ptr %422, i64 %423
  %425 = load ptr, ptr %4, align 8, !tbaa !5
  %426 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %425, i32 0, i32 19
  %427 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %426, i32 0, i32 2
  %428 = load i64, ptr %427, align 8, !tbaa !46
  %429 = load ptr, ptr %4, align 8, !tbaa !5
  %430 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %429, i32 0, i32 70
  %431 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %430, i32 0, i32 4
  %432 = load ptr, ptr %431, align 8, !tbaa !22
  %433 = getelementptr inbounds double, ptr %432, i64 0
  %434 = load i64, ptr %9, align 8, !tbaa !23
  %435 = load i64, ptr %10, align 8, !tbaa !23
  %436 = add nsw i64 %434, %435
  %437 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %436)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %424, i64 noundef %428, ptr noundef %433, i64 noundef 1, i64 noundef %437)
  %438 = load double, ptr %12, align 8, !tbaa !24
  %439 = load double, ptr %13, align 8, !tbaa !24
  %440 = fsub double %438, %439
  %441 = fdiv double 1.000000e+00, %440
  store double %441, ptr %11, align 8, !tbaa !24
  %442 = load ptr, ptr %4, align 8, !tbaa !5
  %443 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %442, i32 0, i32 19
  %444 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %443, i32 0, i32 6
  %445 = load ptr, ptr %444, align 8, !tbaa !22
  %446 = getelementptr inbounds ptr, ptr %445, i64 0
  %447 = load ptr, ptr %446, align 8, !tbaa !5
  %448 = load i64, ptr %7, align 8, !tbaa !23
  %449 = getelementptr inbounds double, ptr %447, i64 %448
  %450 = load ptr, ptr %4, align 8, !tbaa !5
  %451 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %450, i32 0, i32 19
  %452 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %451, i32 0, i32 2
  %453 = load i64, ptr %452, align 8, !tbaa !46
  %454 = load i64, ptr %9, align 8, !tbaa !23
  %455 = load i64, ptr %10, align 8, !tbaa !23
  %456 = add nsw i64 %454, %455
  %457 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %456)
  %458 = load double, ptr %11, align 8, !tbaa !24
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %449, i64 noundef %453, i64 noundef %457, double noundef %458)
  %459 = load ptr, ptr %4, align 8, !tbaa !5
  %460 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %459, i32 0, i32 73
  %461 = load i64, ptr %460, align 8, !tbaa !30
  %462 = add nsw i64 %461, 2
  %463 = load ptr, ptr %4, align 8, !tbaa !5
  %464 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %463, i32 0, i32 73
  store i64 %462, ptr %464, align 8, !tbaa !30
  br label %486

465:                                              ; preds = %318
  store i64 0, ptr %6, align 8, !tbaa !23
  br label %466

466:                                              ; preds = %482, %465
  %467 = load i64, ptr %6, align 8, !tbaa !23
  %468 = load i64, ptr %9, align 8, !tbaa !23
  %469 = load i64, ptr %10, align 8, !tbaa !23
  %470 = add nsw i64 %468, %469
  %471 = icmp sle i64 %467, %470
  br i1 %471, label %472, label %485

472:                                              ; preds = %466
  %473 = load ptr, ptr %4, align 8, !tbaa !5
  %474 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %473, i32 0, i32 19
  %475 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %474, i32 0, i32 6
  %476 = load ptr, ptr %475, align 8, !tbaa !22
  %477 = load i64, ptr %6, align 8, !tbaa !23
  %478 = getelementptr inbounds ptr, ptr %476, i64 %477
  %479 = load ptr, ptr %478, align 8, !tbaa !5
  %480 = load i64, ptr %7, align 8, !tbaa !23
  %481 = getelementptr inbounds double, ptr %479, i64 %480
  store double 0.000000e+00, ptr %481, align 8, !tbaa !24
  br label %482

482:                                              ; preds = %472
  %483 = load i64, ptr %6, align 8, !tbaa !23
  %484 = add nsw i64 %483, 1
  store i64 %484, ptr %6, align 8, !tbaa !23
  br label %466, !llvm.loop !47

485:                                              ; preds = %466
  br label %486

486:                                              ; preds = %485, %381
  %487 = load i64, ptr %7, align 8, !tbaa !23
  %488 = add nsw i64 %487, 1
  store i64 %488, ptr %7, align 8, !tbaa !23
  br label %218

489:                                              ; preds = %223
  %490 = load ptr, ptr %4, align 8, !tbaa !5
  %491 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %490, i32 0, i32 16
  %492 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %491, i32 0, i32 4
  %493 = load ptr, ptr %492, align 8, !tbaa !22
  %494 = getelementptr inbounds double, ptr %493, i64 0
  %495 = load ptr, ptr %4, align 8, !tbaa !5
  %496 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %495, i32 0, i32 68
  %497 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %496, i32 0, i32 4
  %498 = load ptr, ptr %497, align 8, !tbaa !22
  %499 = getelementptr inbounds double, ptr %498, i64 0
  %500 = load i64, ptr %8, align 8, !tbaa !23
  %501 = sub nsw i64 %500, 1
  %502 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %501)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %494, i64 noundef 1, ptr noundef %499, i64 noundef 1, i64 noundef %502)
  %503 = load ptr, ptr %4, align 8, !tbaa !5
  %504 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %503, i32 0, i32 23
  %505 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %504, i32 0, i32 0
  store i32 2, ptr %505, align 8, !tbaa !9
  br label %525

506:                                              ; preds = %99
  %507 = load ptr, ptr %4, align 8, !tbaa !5
  %508 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %507, i32 0, i32 21
  store i8 0, ptr %508, align 1, !tbaa !44
  %509 = load ptr, ptr %4, align 8, !tbaa !5
  %510 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %509, i32 0, i32 20
  store i8 1, ptr %510, align 8, !tbaa !41
  br label %184

511:                                              ; preds = %199
  %512 = load ptr, ptr %4, align 8, !tbaa !5
  %513 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %512, i32 0, i32 23
  %514 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %513, i32 0, i32 0
  store i32 3, ptr %514, align 8, !tbaa !9
  br label %525

515:                                              ; preds = %106
  %516 = load ptr, ptr %4, align 8, !tbaa !5
  %517 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %516, i32 0, i32 73
  %518 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef %517, ptr noundef %518)
  br label %184

519:                                              ; preds = %188
  store i8 0, ptr %14, align 1, !tbaa !45
  %520 = load i8, ptr %14, align 1, !tbaa !45, !range !42, !noundef !43
  %521 = trunc i8 %520 to i1
  store i1 %521, ptr %3, align 1
  store i32 1, ptr %15, align 4
  br label %584

522:                                              ; preds = %143
  store i8 0, ptr %14, align 1, !tbaa !45
  %523 = load i8, ptr %14, align 1, !tbaa !45, !range !42, !noundef !43
  %524 = trunc i8 %523 to i1
  store i1 %524, ptr %3, align 1
  store i32 1, ptr %15, align 4
  br label %584

525:                                              ; preds = %511, %489, %343, %319
  store i8 1, ptr %14, align 1, !tbaa !45
  %526 = load i64, ptr %6, align 8, !tbaa !23
  %527 = load ptr, ptr %4, align 8, !tbaa !5
  %528 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %527, i32 0, i32 23
  %529 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %528, i32 0, i32 1
  %530 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %529, i32 0, i32 4
  %531 = load ptr, ptr %530, align 8, !tbaa !22
  %532 = getelementptr inbounds i64, ptr %531, i64 0
  store i64 %526, ptr %532, align 8, !tbaa !23
  %533 = load i64, ptr %7, align 8, !tbaa !23
  %534 = load ptr, ptr %4, align 8, !tbaa !5
  %535 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %534, i32 0, i32 23
  %536 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %535, i32 0, i32 1
  %537 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %536, i32 0, i32 4
  %538 = load ptr, ptr %537, align 8, !tbaa !22
  %539 = getelementptr inbounds i64, ptr %538, i64 1
  store i64 %533, ptr %539, align 8, !tbaa !23
  %540 = load i64, ptr %8, align 8, !tbaa !23
  %541 = load ptr, ptr %4, align 8, !tbaa !5
  %542 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %541, i32 0, i32 23
  %543 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %542, i32 0, i32 1
  %544 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %543, i32 0, i32 4
  %545 = load ptr, ptr %544, align 8, !tbaa !22
  %546 = getelementptr inbounds i64, ptr %545, i64 2
  store i64 %540, ptr %546, align 8, !tbaa !23
  %547 = load i64, ptr %9, align 8, !tbaa !23
  %548 = load ptr, ptr %4, align 8, !tbaa !5
  %549 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %548, i32 0, i32 23
  %550 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %549, i32 0, i32 1
  %551 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %550, i32 0, i32 4
  %552 = load ptr, ptr %551, align 8, !tbaa !22
  %553 = getelementptr inbounds i64, ptr %552, i64 3
  store i64 %547, ptr %553, align 8, !tbaa !23
  %554 = load i64, ptr %10, align 8, !tbaa !23
  %555 = load ptr, ptr %4, align 8, !tbaa !5
  %556 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %555, i32 0, i32 23
  %557 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %556, i32 0, i32 1
  %558 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %557, i32 0, i32 4
  %559 = load ptr, ptr %558, align 8, !tbaa !22
  %560 = getelementptr inbounds i64, ptr %559, i64 4
  store i64 %554, ptr %560, align 8, !tbaa !23
  %561 = load double, ptr %11, align 8, !tbaa !24
  %562 = load ptr, ptr %4, align 8, !tbaa !5
  %563 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %562, i32 0, i32 23
  %564 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %563, i32 0, i32 3
  %565 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %564, i32 0, i32 4
  %566 = load ptr, ptr %565, align 8, !tbaa !22
  %567 = getelementptr inbounds double, ptr %566, i64 0
  store double %561, ptr %567, align 8, !tbaa !24
  %568 = load double, ptr %12, align 8, !tbaa !24
  %569 = load ptr, ptr %4, align 8, !tbaa !5
  %570 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %569, i32 0, i32 23
  %571 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %570, i32 0, i32 3
  %572 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %571, i32 0, i32 4
  %573 = load ptr, ptr %572, align 8, !tbaa !22
  %574 = getelementptr inbounds double, ptr %573, i64 1
  store double %568, ptr %574, align 8, !tbaa !24
  %575 = load double, ptr %13, align 8, !tbaa !24
  %576 = load ptr, ptr %4, align 8, !tbaa !5
  %577 = getelementptr inbounds %"struct.alglib_impl::minnsstate", ptr %576, i32 0, i32 23
  %578 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %577, i32 0, i32 3
  %579 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %578, i32 0, i32 4
  %580 = load ptr, ptr %579, align 8, !tbaa !22
  %581 = getelementptr inbounds double, ptr %580, i64 2
  store double %575, ptr %581, align 8, !tbaa !24
  %582 = load i8, ptr %14, align 1, !tbaa !45, !range !42, !noundef !43
  %583 = trunc i8 %582 to i1
  store i1 %583, ptr %3, align 1
  store i32 1, ptr %15, align 4
  br label %584

584:                                              ; preds = %525, %522, %519
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %585 = load i1, ptr %3, align 1
  ret i1 %585
}

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

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

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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 noundef, double noundef) #1

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

declare void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL24minns_clearrequestfieldsEPNS_10minnsstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !18, i64 704}
!10 = !{!"_ZTSN11alglib_impl10minnsstateE", !11, i64 0, !11, i64 8, !12, i64 16, !11, i64 24, !13, i64 32, !12, i64 40, !14, i64 48, !14, i64 112, !14, i64 176, !14, i64 240, !14, i64 304, !11, i64 368, !11, i64 376, !16, i64 384, !11, i64 464, !11, i64 472, !14, i64 480, !12, i64 544, !14, i64 552, !16, i64 616, !13, i64 696, !13, i64 697, !13, i64 698, !17, i64 704, !17, i64 968, !19, i64 1232, !12, i64 1256, !11, i64 1264, !12, i64 1272, !12, i64 1280, !12, i64 1288, !12, i64 1296, !12, i64 1304, !12, i64 1312, !12, i64 1320, !12, i64 1328, !11, i64 1336, !12, i64 1344, !11, i64 1352, !11, i64 1360, !11, i64 1368, !11, i64 1376, !12, i64 1384, !12, i64 1392, !14, i64 1400, !14, i64 1464, !14, i64 1528, !14, i64 1592, !14, i64 1656, !14, i64 1720, !14, i64 1784, !14, i64 1848, !14, i64 1912, !13, i64 1976, !14, i64 1984, !14, i64 2048, !16, i64 2112, !14, i64 2192, !16, i64 2256, !16, i64 2336, !16, i64 2416, !14, i64 2496, !14, i64 2560, !20, i64 2624, !14, i64 5368, !14, i64 5432, !16, i64 5496, !14, i64 5576, !14, i64 5640, !14, i64 5704, !14, i64 5768, !11, i64 5832, !11, i64 5840, !11, i64 5848, !11, i64 5856, !11, i64 5864, !11, i64 5872, !12, i64 5880, !12, i64 5888, !11, i64 5896}
!11 = !{!"long", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !13, i64 16, !15, i64 24, !7, i64 56}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !13, i64 32, !15, i64 40, !7, i64 72}
!17 = !{!"_ZTSN11alglib_impl10rcommstateE", !18, i64 0, !14, i64 8, !14, i64 72, !14, i64 136, !14, i64 200}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSN11alglib_impl10hqrndstateE", !11, i64 0, !11, i64 8, !11, i64 16}
!20 = !{!"_ZTSN11alglib_impl7minnsqpE", !12, i64 0, !12, i64 8, !14, i64 16, !14, i64 80, !14, i64 144, !14, i64 208, !14, i64 272, !16, i64 336, !16, i64 416, !16, i64 496, !14, i64 576, !14, i64 640, !14, i64 704, !14, i64 768, !14, i64 832, !14, i64 896, !16, i64 960, !14, i64 1040, !21, i64 1104}
!21 = !{!"_ZTSN11alglib_impl11snnlssolverE", !11, i64 0, !11, i64 8, !11, i64 16, !16, i64 24, !14, i64 104, !14, i64 168, !12, i64 232, !11, i64 240, !14, i64 248, !14, i64 312, !16, i64 376, !16, i64 456, !16, 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}
!22 = !{!7, !7, i64 0}
!23 = !{!11, !11, i64 0}
!24 = !{!12, !12, i64 0}
!25 = !{!10, !12, i64 5880}
!26 = !{!10, !12, i64 5888}
!27 = !{!10, !11, i64 5872}
!28 = !{!10, !11, i64 5832}
!29 = !{!10, !11, i64 5840}
!30 = !{!10, !11, i64 5848}
!31 = !{!10, !11, i64 5856}
!32 = !{!10, !11, i64 5864}
!33 = !{!10, !13, i64 1976}
!34 = !{!10, !11, i64 5896}
!35 = !{!10, !11, i64 8}
!36 = !{!10, !11, i64 464}
!37 = !{!10, !11, i64 472}
!38 = !{!10, !11, i64 0}
!39 = !{!10, !12, i64 40}
!40 = !{!10, !18, i64 968}
!41 = !{!10, !13, i64 696}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = !{!10, !13, i64 697}
!45 = !{!13, !13, i64 0}
!46 = !{!10, !11, i64 632}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}


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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl14minnsiterationEPNS_10minnsstateEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 704
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp sgt i32 %4, -1
  br i1 %5, label %6, label %25

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 768
  %8 = load ptr, ptr %7, align 8, !tbaa !21
  %9 = load i64, ptr %8, align 8, !tbaa !22
  %10 = getelementptr inbounds i8, ptr %8, i64 8
  %11 = load i64, ptr %10, align 8, !tbaa !22
  %12 = getelementptr inbounds i8, ptr %8, i64 16
  %13 = load i64, ptr %12, align 8, !tbaa !22
  %14 = getelementptr inbounds i8, ptr %8, i64 24
  %15 = load i64, ptr %14, align 8, !tbaa !22
  %16 = getelementptr inbounds i8, ptr %8, i64 32
  %17 = load i64, ptr %16, align 8, !tbaa !22
  %18 = getelementptr inbounds i8, ptr %0, i64 896
  %19 = load ptr, ptr %18, align 8, !tbaa !21
  %20 = load double, ptr %19, align 8, !tbaa !23
  %21 = getelementptr inbounds i8, ptr %19, i64 8
  %22 = load double, ptr %21, align 8, !tbaa !23
  %23 = getelementptr inbounds i8, ptr %19, i64 16
  %24 = load double, ptr %23, align 8, !tbaa !23
  br label %25

25:                                               ; preds = %2, %6
  %.0196 = phi i64 [ %9, %6 ], [ 359, %2 ]
  %.0192 = phi i64 [ %11, %6 ], [ -58, %2 ]
  %.0187 = phi i64 [ %13, %6 ], [ -919, %2 ]
  %.0182 = phi i64 [ %15, %6 ], [ -909, %2 ]
  %.0177 = phi i64 [ %17, %6 ], [ 81, %2 ]
  %.0173 = phi double [ %20, %6 ], [ 2.550000e+02, %2 ]
  %.0168 = phi double [ %22, %6 ], [ 7.400000e+01, %2 ]
  %.0 = phi double [ %24, %6 ], [ -7.880000e+02, %2 ]
  switch i32 %4, label %26 [
    i32 0, label %132
    i32 1, label %147
    i32 2, label %212
    i32 3, label %215
  ]

26:                                               ; preds = %25
  %27 = getelementptr inbounds i8, ptr %0, i64 5832
  %28 = getelementptr inbounds i8, ptr %0, i64 1976
  store i8 0, ptr %28, align 8, !tbaa !24
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %27, i8 0, i64 72, i1 false)
  %30 = load i64, ptr %29, align 8, !tbaa !25
  %31 = getelementptr inbounds i8, ptr %0, i64 464
  %32 = load i64, ptr %31, align 8, !tbaa !26
  %33 = getelementptr inbounds i8, ptr %0, i64 472
  %34 = load i64, ptr %33, align 8, !tbaa !27
  tail call void @_ZN11alglib_implL24minns_clearrequestfieldsEPNS_10minnsstateEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1)
  %35 = load i64, ptr %0, align 8, !tbaa !28
  %.not = icmp eq i64 %35, 0
  br i1 %.not, label %36, label %234

36:                                               ; preds = %26
  %37 = getelementptr inbounds i8, ptr %0, i64 40
  %38 = load double, ptr %37, align 8, !tbaa !29
  %39 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %38, double noundef 0.000000e+00)
  br i1 %39, label %40, label %46

40:                                               ; preds = %36
  %41 = getelementptr inbounds i8, ptr %0, i64 5640
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %41, i64 noundef %30, ptr noundef %1)
  %42 = getelementptr inbounds i8, ptr %0, i64 5768
  %43 = add nsw i64 %32, 1
  %44 = add nsw i64 %43, %34
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %42, i64 noundef %44, ptr noundef %1)
  %45 = getelementptr inbounds i8, ptr %0, i64 5704
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %45, i64 noundef %44, ptr noundef %1)
  br label %46

46:                                               ; preds = %40, %36
  %47 = getelementptr inbounds i8, ptr %0, i64 968
  %48 = getelementptr inbounds i8, ptr %0, i64 976
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %48, i64 noundef 14, ptr noundef %1)
  %49 = getelementptr inbounds i8, ptr %0, i64 1040
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %49, i64 noundef 4, ptr noundef %1)
  %50 = getelementptr inbounds i8, ptr %0, i64 1104
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %50, i64 noundef 10, ptr noundef %1)
  store i32 -1, ptr %47, align 8, !tbaa !30
  br label %51

51:                                               ; preds = %215, %212, %46
  %.1188 = phi i64 [ %.0187, %212 ], [ %.0187, %215 ], [ %30, %46 ]
  %.1183 = phi i64 [ %.0182, %212 ], [ %.0182, %215 ], [ %32, %46 ]
  %.1178 = phi i64 [ %.0177, %212 ], [ %.0177, %215 ], [ %34, %46 ]
  %52 = tail call noundef zeroext i1 @_ZN11alglib_implL18minns_agsiterationEPNS_10minnsstateEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1)
  br i1 %52, label %53, label %234

53:                                               ; preds = %51
  %54 = getelementptr inbounds i8, ptr %0, i64 40
  %55 = load double, ptr %54, align 8, !tbaa !29
  %56 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %55, double noundef 0.000000e+00)
  br i1 %56, label %57, label %217

57:                                               ; preds = %53
  %58 = getelementptr inbounds i8, ptr %0, i64 696
  %59 = load i8, ptr %58, align 8, !tbaa !31, !range !32, !noundef !33
  %60 = trunc nuw i8 %59 to i1
  br i1 %60, label %61, label %217

61:                                               ; preds = %57
  store i8 0, ptr %58, align 8, !tbaa !31
  %62 = getelementptr inbounds i8, ptr %0, i64 697
  store i8 1, ptr %62, align 1, !tbaa !34
  %63 = getelementptr inbounds i8, ptr %0, i64 5696
  %64 = load ptr, ptr %63, align 8, !tbaa !21
  %65 = getelementptr inbounds i8, ptr %0, i64 536
  %66 = load ptr, ptr %65, align 8, !tbaa !21
  %67 = add nsw i64 %.1188, -1
  %68 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %67)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %64, i64 noundef 1, ptr noundef %66, i64 noundef 1, i64 noundef %68)
  br label %69

69:                                               ; preds = %.loopexit, %61
  %.1197 = phi i64 [ %.3199, %.loopexit ], [ %.0196, %61 ]
  %.1193 = phi i64 [ %205, %.loopexit ], [ 0, %61 ]
  %.2189 = phi i64 [ %.3190, %.loopexit ], [ %.1188, %61 ]
  %.2184 = phi i64 [ %.3185, %.loopexit ], [ %.1183, %61 ]
  %.2179 = phi i64 [ %.3180, %.loopexit ], [ %.1178, %61 ]
  %.1174 = phi double [ %.2175, %.loopexit ], [ %.0173, %61 ]
  %.1169 = phi double [ %.3171, %.loopexit ], [ %.0168, %61 ]
  %.1 = phi double [ %.3, %.loopexit ], [ %.0, %61 ]
  %70 = add nsw i64 %.2189, -1
  %.not205 = icmp slt i64 %.1193, %.2189
  br i1 %.not205, label %71, label %206

71:                                               ; preds = %69
  %72 = getelementptr inbounds i8, ptr %0, i64 5696
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  %74 = getelementptr inbounds double, ptr %73, i64 %.1193
  %75 = load double, ptr %74, align 8, !tbaa !23
  %76 = getelementptr inbounds i8, ptr %0, i64 40
  %77 = load double, ptr %76, align 8, !tbaa !29
  %78 = getelementptr inbounds i8, ptr %0, i64 104
  %79 = load ptr, ptr %78, align 8, !tbaa !21
  %80 = getelementptr inbounds double, ptr %79, i64 %.1193
  %81 = load double, ptr %80, align 8, !tbaa !23
  %82 = fneg double %77
  %83 = tail call double @llvm.fmuladd.f64(double %82, double %81, double %75)
  %84 = tail call double @llvm.fmuladd.f64(double %77, double %81, double %75)
  %85 = getelementptr inbounds i8, ptr %0, i64 296
  %86 = load ptr, ptr %85, align 8, !tbaa !21
  %87 = getelementptr inbounds i8, ptr %86, i64 %.1193
  %88 = load i8, ptr %87, align 1, !tbaa !35, !range !32, !noundef !33
  %89 = trunc nuw i8 %88 to i1
  br i1 %89, label %90, label %100

90:                                               ; preds = %71
  %91 = getelementptr inbounds i8, ptr %0, i64 168
  %92 = load ptr, ptr %91, align 8, !tbaa !21
  %93 = getelementptr inbounds double, ptr %92, i64 %.1193
  %94 = load double, ptr %93, align 8, !tbaa !23
  %95 = tail call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %83, double noundef %94)
  br i1 %95, label %96, label %100

96:                                               ; preds = %90
  %97 = load ptr, ptr %91, align 8, !tbaa !21
  %98 = getelementptr inbounds double, ptr %97, i64 %.1193
  %99 = load double, ptr %98, align 8, !tbaa !23
  br label %100

100:                                              ; preds = %96, %90, %71
  %.2 = phi double [ %99, %96 ], [ %83, %90 ], [ %83, %71 ]
  %101 = getelementptr inbounds i8, ptr %0, i64 360
  %102 = load ptr, ptr %101, align 8, !tbaa !21
  %103 = getelementptr inbounds i8, ptr %102, i64 %.1193
  %104 = load i8, ptr %103, align 1, !tbaa !35, !range !32, !noundef !33
  %105 = trunc nuw i8 %104 to i1
  br i1 %105, label %106, label %116

106:                                              ; preds = %100
  %107 = getelementptr inbounds i8, ptr %0, i64 232
  %108 = load ptr, ptr %107, align 8, !tbaa !21
  %109 = getelementptr inbounds double, ptr %108, i64 %.1193
  %110 = load double, ptr %109, align 8, !tbaa !23
  %111 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %84, double noundef %110)
  br i1 %111, label %112, label %116

112:                                              ; preds = %106
  %113 = load ptr, ptr %107, align 8, !tbaa !21
  %114 = getelementptr inbounds double, ptr %113, i64 %.1193
  %115 = load double, ptr %114, align 8, !tbaa !23
  br label %116

116:                                              ; preds = %112, %106, %100
  %.2170 = phi double [ %115, %112 ], [ %84, %106 ], [ %84, %100 ]
  %117 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %.2, double noundef %.2170)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %117, ptr noundef nonnull @.str.517, ptr noundef %1)
  %118 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %.2, double noundef %.2170)
  br i1 %118, label %.preheader, label %125

.preheader:                                       ; preds = %116
  %119 = add i64 %.2179, %.2184
  %.not206207 = icmp slt i64 %119, 0
  br i1 %.not206207, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %120 = getelementptr inbounds i8, ptr %0, i64 688
  %121 = add nuw i64 %119, 1
  %122 = add i64 %.2179, %.2184
  %123 = add i64 %122, 1
  %xtraiter = and i64 %123, 3
  %124 = icmp ult i64 %119, 3
  br i1 %124, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %123, -4
  br label %179

125:                                              ; preds = %116
  %126 = getelementptr inbounds i8, ptr %0, i64 536
  %127 = load ptr, ptr %126, align 8, !tbaa !21
  %128 = load ptr, ptr %72, align 8, !tbaa !21
  %129 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %127, i64 noundef 1, ptr noundef %128, i64 noundef 1, i64 noundef %129)
  %130 = load ptr, ptr %126, align 8, !tbaa !21
  %131 = getelementptr inbounds double, ptr %130, i64 %.1193
  store double %.2, ptr %131, align 8, !tbaa !23
  br label %217

132:                                              ; preds = %25
  %133 = getelementptr inbounds i8, ptr %0, i64 5824
  %134 = load ptr, ptr %133, align 8, !tbaa !21
  %135 = getelementptr inbounds i8, ptr %0, i64 608
  %136 = load ptr, ptr %135, align 8, !tbaa !21
  %137 = add nsw i64 %.0177, %.0182
  %138 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %137)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %134, i64 noundef 1, ptr noundef %136, i64 noundef 1, i64 noundef %138)
  %139 = getelementptr inbounds i8, ptr %0, i64 536
  %140 = load ptr, ptr %139, align 8, !tbaa !21
  %141 = getelementptr inbounds i8, ptr %0, i64 5696
  %142 = load ptr, ptr %141, align 8, !tbaa !21
  %143 = add nsw i64 %.0187, -1
  %144 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %143)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %140, i64 noundef 1, ptr noundef %142, i64 noundef 1, i64 noundef %144)
  %145 = load ptr, ptr %139, align 8, !tbaa !21
  %146 = getelementptr inbounds double, ptr %145, i64 %.0192
  store double %.0168, ptr %146, align 8, !tbaa !23
  br label %217

147:                                              ; preds = %25
  %148 = getelementptr inbounds i8, ptr %0, i64 5760
  %149 = load ptr, ptr %148, align 8, !tbaa !21
  %150 = getelementptr inbounds i8, ptr %0, i64 608
  %151 = load ptr, ptr %150, align 8, !tbaa !21
  %152 = add nsw i64 %.0177, %.0182
  %153 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %152)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %149, i64 noundef 1, ptr noundef %151, i64 noundef 1, i64 noundef %153)
  %154 = getelementptr inbounds i8, ptr %0, i64 688
  %155 = load ptr, ptr %154, align 8, !tbaa !21
  %156 = load ptr, ptr %155, align 8, !tbaa !36
  %157 = getelementptr inbounds double, ptr %156, i64 %.0192
  %158 = getelementptr inbounds i8, ptr %0, i64 632
  %159 = load i64, ptr %158, align 8, !tbaa !37
  %160 = load ptr, ptr %148, align 8, !tbaa !21
  %161 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %152)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %157, i64 noundef %159, ptr noundef %160, i64 noundef 1, i64 noundef %161)
  %162 = load ptr, ptr %154, align 8, !tbaa !21
  %163 = load ptr, ptr %162, align 8, !tbaa !36
  %164 = getelementptr inbounds double, ptr %163, i64 %.0192
  %165 = load i64, ptr %158, align 8, !tbaa !37
  %166 = getelementptr inbounds i8, ptr %0, i64 5824
  %167 = load ptr, ptr %166, align 8, !tbaa !21
  %168 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %152)
  tail call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %164, i64 noundef %165, ptr noundef %167, i64 noundef 1, i64 noundef %168)
  %169 = fsub double %.0168, %.0
  %170 = fdiv double 1.000000e+00, %169
  %171 = load ptr, ptr %154, align 8, !tbaa !21
  %172 = load ptr, ptr %171, align 8, !tbaa !36
  %173 = getelementptr inbounds double, ptr %172, i64 %.0192
  %174 = load i64, ptr %158, align 8, !tbaa !37
  %175 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %152)
  tail call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %173, i64 noundef %174, i64 noundef %175, double noundef %170)
  %176 = getelementptr inbounds i8, ptr %0, i64 5848
  %177 = load i64, ptr %176, align 8, !tbaa !38
  %178 = add nsw i64 %177, 2
  store i64 %178, ptr %176, align 8, !tbaa !38
  br label %.loopexit

179:                                              ; preds = %179, %.lr.ph.new
  %.2198208 = phi i64 [ 0, %.lr.ph.new ], [ %199, %179 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %179 ]
  %180 = load ptr, ptr %120, align 8, !tbaa !21
  %181 = getelementptr inbounds ptr, ptr %180, i64 %.2198208
  %182 = load ptr, ptr %181, align 8, !tbaa !36
  %183 = getelementptr inbounds double, ptr %182, i64 %.1193
  store double 0.000000e+00, ptr %183, align 8, !tbaa !23
  %184 = or disjoint i64 %.2198208, 1
  %185 = load ptr, ptr %120, align 8, !tbaa !21
  %186 = getelementptr inbounds ptr, ptr %185, i64 %184
  %187 = load ptr, ptr %186, align 8, !tbaa !36
  %188 = getelementptr inbounds double, ptr %187, i64 %.1193
  store double 0.000000e+00, ptr %188, align 8, !tbaa !23
  %189 = or disjoint i64 %.2198208, 2
  %190 = load ptr, ptr %120, align 8, !tbaa !21
  %191 = getelementptr inbounds ptr, ptr %190, i64 %189
  %192 = load ptr, ptr %191, align 8, !tbaa !36
  %193 = getelementptr inbounds double, ptr %192, i64 %.1193
  store double 0.000000e+00, ptr %193, align 8, !tbaa !23
  %194 = or disjoint i64 %.2198208, 3
  %195 = load ptr, ptr %120, align 8, !tbaa !21
  %196 = getelementptr inbounds ptr, ptr %195, i64 %194
  %197 = load ptr, ptr %196, align 8, !tbaa !36
  %198 = getelementptr inbounds double, ptr %197, i64 %.1193
  store double 0.000000e+00, ptr %198, align 8, !tbaa !23
  %199 = add nuw i64 %.2198208, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %179, !llvm.loop !39

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

.epil.preheader:                                  ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader
  %.2198208.epil = phi i64 [ %204, %.epil.preheader ], [ %.2198208.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %200 = load ptr, ptr %120, align 8, !tbaa !21
  %201 = getelementptr inbounds ptr, ptr %200, i64 %.2198208.epil
  %202 = load ptr, ptr %201, align 8, !tbaa !36
  %203 = getelementptr inbounds double, ptr %202, i64 %.1193
  store double 0.000000e+00, ptr %203, align 8, !tbaa !23
  %204 = add nuw i64 %.2198208.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.epil.preheader, !llvm.loop !41

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader, %.preheader, %147
  %.3199 = phi i64 [ %.0196, %147 ], [ 0, %.preheader ], [ %121, %.epil.preheader ], [ %121, %.loopexit.loopexit.unr-lcssa ]
  %.2194 = phi i64 [ %.0192, %147 ], [ %.1193, %.preheader ], [ %.1193, %.epil.preheader ], [ %.1193, %.loopexit.loopexit.unr-lcssa ]
  %.3190 = phi i64 [ %.0187, %147 ], [ %.2189, %.preheader ], [ %.2189, %.epil.preheader ], [ %.2189, %.loopexit.loopexit.unr-lcssa ]
  %.3185 = phi i64 [ %.0182, %147 ], [ %.2184, %.preheader ], [ %.2184, %.epil.preheader ], [ %.2184, %.loopexit.loopexit.unr-lcssa ]
  %.3180 = phi i64 [ %.0177, %147 ], [ %.2179, %.preheader ], [ %.2179, %.epil.preheader ], [ %.2179, %.loopexit.loopexit.unr-lcssa ]
  %.2175 = phi double [ %170, %147 ], [ %75, %.preheader ], [ %75, %.epil.preheader ], [ %75, %.loopexit.loopexit.unr-lcssa ]
  %.3171 = phi double [ %.0168, %147 ], [ %.2170, %.preheader ], [ %.2170, %.epil.preheader ], [ %.2170, %.loopexit.loopexit.unr-lcssa ]
  %.3 = phi double [ %.0, %147 ], [ %.2, %.preheader ], [ %.2, %.epil.preheader ], [ %.2, %.loopexit.loopexit.unr-lcssa ]
  %205 = add nsw i64 %.2194, 1
  br label %69

206:                                              ; preds = %69
  %207 = getelementptr inbounds i8, ptr %0, i64 536
  %208 = load ptr, ptr %207, align 8, !tbaa !21
  %209 = getelementptr inbounds i8, ptr %0, i64 5696
  %210 = load ptr, ptr %209, align 8, !tbaa !21
  %211 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %208, i64 noundef 1, ptr noundef %210, i64 noundef 1, i64 noundef %211)
  br label %217

212:                                              ; preds = %25
  %213 = getelementptr inbounds i8, ptr %0, i64 697
  store i8 0, ptr %213, align 1, !tbaa !34
  %214 = getelementptr inbounds i8, ptr %0, i64 696
  store i8 1, ptr %214, align 8, !tbaa !31
  br label %51

215:                                              ; preds = %25
  %216 = getelementptr inbounds i8, ptr %0, i64 5848
  tail call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef nonnull %216, ptr noundef %1)
  br label %51

217:                                              ; preds = %57, %53, %206, %132, %125
  %.sink = phi i32 [ 2, %206 ], [ 1, %132 ], [ 0, %125 ], [ 3, %53 ], [ 3, %57 ]
  %.4200 = phi i64 [ %.1197, %206 ], [ %.0196, %132 ], [ %.1197, %125 ], [ %.0196, %53 ], [ %.0196, %57 ]
  %.3195 = phi i64 [ %.1193, %206 ], [ %.0192, %132 ], [ %.1193, %125 ], [ %.0192, %53 ], [ %.0192, %57 ]
  %.4191 = phi i64 [ %.2189, %206 ], [ %.0187, %132 ], [ %.2189, %125 ], [ %.1188, %53 ], [ %.1188, %57 ]
  %.4186 = phi i64 [ %.2184, %206 ], [ %.0182, %132 ], [ %.2184, %125 ], [ %.1183, %53 ], [ %.1183, %57 ]
  %.4181 = phi i64 [ %.2179, %206 ], [ %.0177, %132 ], [ %.2179, %125 ], [ %.1178, %53 ], [ %.1178, %57 ]
  %.3176 = phi double [ %.1174, %206 ], [ %.0173, %132 ], [ %75, %125 ], [ %.0173, %53 ], [ %.0173, %57 ]
  %.4172 = phi double [ %.1169, %206 ], [ %.0168, %132 ], [ %.2170, %125 ], [ %.0168, %53 ], [ %.0168, %57 ]
  %.4 = phi double [ %.1, %206 ], [ %.0, %132 ], [ %.2, %125 ], [ %.0, %53 ], [ %.0, %57 ]
  store i32 %.sink, ptr %3, align 8, !tbaa !5
  %218 = getelementptr inbounds i8, ptr %0, i64 768
  %219 = load ptr, ptr %218, align 8, !tbaa !21
  store i64 %.4200, ptr %219, align 8, !tbaa !22
  %220 = load ptr, ptr %218, align 8, !tbaa !21
  %221 = getelementptr inbounds i8, ptr %220, i64 8
  store i64 %.3195, ptr %221, align 8, !tbaa !22
  %222 = load ptr, ptr %218, align 8, !tbaa !21
  %223 = getelementptr inbounds i8, ptr %222, i64 16
  store i64 %.4191, ptr %223, align 8, !tbaa !22
  %224 = load ptr, ptr %218, align 8, !tbaa !21
  %225 = getelementptr inbounds i8, ptr %224, i64 24
  store i64 %.4186, ptr %225, align 8, !tbaa !22
  %226 = load ptr, ptr %218, align 8, !tbaa !21
  %227 = getelementptr inbounds i8, ptr %226, i64 32
  store i64 %.4181, ptr %227, align 8, !tbaa !22
  %228 = getelementptr inbounds i8, ptr %0, i64 896
  %229 = load ptr, ptr %228, align 8, !tbaa !21
  store double %.3176, ptr %229, align 8, !tbaa !23
  %230 = load ptr, ptr %228, align 8, !tbaa !21
  %231 = getelementptr inbounds i8, ptr %230, i64 8
  store double %.4172, ptr %231, align 8, !tbaa !23
  %232 = load ptr, ptr %228, align 8, !tbaa !21
  %233 = getelementptr inbounds i8, ptr %232, i64 16
  store double %.4, ptr %233, align 8, !tbaa !23
  br label %234

234:                                              ; preds = %26, %51, %217
  %.0201 = phi i1 [ true, %217 ], [ false, %51 ], [ false, %26 ]
  ret i1 %.0201
}

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(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) #2

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(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_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 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

declare void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL24minns_clearrequestfieldsEPNS_10minnsstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL18minns_agsiterationEPNS_10minnsstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

!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, !17, i64 704}
!6 = !{!"_ZTSN11alglib_impl10minnsstateE", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !11, i64 32, !10, i64 40, !12, i64 48, !12, i64 112, !12, i64 176, !12, i64 240, !12, i64 304, !7, i64 368, !7, i64 376, !15, i64 384, !7, i64 464, !7, i64 472, !12, i64 480, !10, i64 544, !12, i64 552, !15, i64 616, !11, i64 696, !11, i64 697, !11, i64 698, !16, i64 704, !16, i64 968, !18, i64 1232, !10, i64 1256, !7, i64 1264, !10, i64 1272, !10, i64 1280, !10, i64 1288, !10, i64 1296, !10, i64 1304, !10, i64 1312, !10, i64 1320, !10, i64 1328, !7, i64 1336, !10, i64 1344, !7, i64 1352, !7, i64 1360, !7, i64 1368, !7, i64 1376, !10, i64 1384, !10, i64 1392, !12, i64 1400, !12, i64 1464, !12, i64 1528, !12, i64 1592, !12, i64 1656, !12, i64 1720, !12, i64 1784, !12, i64 1848, !12, i64 1912, !11, i64 1976, !12, i64 1984, !12, i64 2048, !15, i64 2112, !12, i64 2192, !15, i64 2256, !15, i64 2336, !15, i64 2416, !12, i64 2496, !12, i64 2560, !19, i64 2624, !12, i64 5368, !12, i64 5432, !15, i64 5496, !12, i64 5576, !12, i64 5640, !12, i64 5704, !12, i64 5768, !7, i64 5832, !7, i64 5840, !7, i64 5848, !7, i64 5856, !7, i64 5864, !7, i64 5872, !10, i64 5880, !10, i64 5888, !7, i64 5896}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !13, i64 24, !8, i64 56}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !13, i64 40, !8, i64 72}
!16 = !{!"_ZTSN11alglib_impl10rcommstateE", !17, i64 0, !12, i64 8, !12, i64 72, !12, i64 136, !12, i64 200}
!17 = !{!"int", !8, i64 0}
!18 = !{!"_ZTSN11alglib_impl10hqrndstateE", !7, i64 0, !7, i64 8, !7, i64 16}
!19 = !{!"_ZTSN11alglib_impl7minnsqpE", !10, i64 0, !10, i64 8, !12, i64 16, !12, i64 80, !12, i64 144, !12, i64 208, !12, i64 272, !15, i64 336, !15, i64 416, !15, i64 496, !12, i64 576, !12, i64 640, !12, i64 704, !12, i64 768, !12, i64 832, !12, i64 896, !15, i64 960, !12, i64 1040, !20, i64 1104}
!20 = !{!"_ZTSN11alglib_impl11snnlssolverE", !7, i64 0, !7, i64 8, !7, i64 16, !15, i64 24, !12, i64 104, !12, i64 168, !10, i64 232, !7, i64 240, !12, i64 248, !12, i64 312, !15, i64 376, !15, i64 456, !15, 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}
!21 = !{!8, !8, i64 0}
!22 = !{!7, !7, i64 0}
!23 = !{!10, !10, i64 0}
!24 = !{!6, !11, i64 1976}
!25 = !{!6, !7, i64 8}
!26 = !{!6, !7, i64 464}
!27 = !{!6, !7, i64 472}
!28 = !{!6, !7, i64 0}
!29 = !{!6, !10, i64 40}
!30 = !{!6, !17, i64 968}
!31 = !{!6, !11, i64 696}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!6, !11, i64 697}
!35 = !{!11, !11, i64 0}
!36 = !{!14, !14, i64 0}
!37 = !{!6, !7, i64 632}
!38 = !{!6, !7, i64 5848}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.unroll.disable"}


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