; LLVM IR from Dimandragon/non-parametric-dsp :: 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::mindfstate" = type { 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::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", double, double, i8, double, i64, i8, %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"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::sparsematrix", i8, i64, i64, i64, double, double, %"struct.alglib_impl::gdemostate", i8, i64, double, double, i64, double, double, double, double, i64, double, double, %"struct.alglib_impl::ssgdstate", %"struct.alglib_impl::rcommstate", i64, i64, i64, i64, double, i64, double, i64, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"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::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::gdemostate" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", 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_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::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", i64, double, double, i64, i64, double, double, i64, double, double, double, double, i8, i64, double, double, i8, double, double, double, i64, %"struct.alglib_impl::ae_vector", double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::hqrndstate", %"struct.alglib_impl::gdemopopulation", %"struct.alglib_impl::gdemopopulation", %"struct.alglib_impl::ae_matrix", i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", i64, i64, double, i64, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"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::gdemopopulation" = type { i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ssgdstate" = type { i64, 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::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", i64, double, double, double, double, double, i64, double, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::hqrndstate", %"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", double, double, double, i64, i64, %"struct.alglib_impl::rcommstate", %"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::sparsematrix" }
%"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::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.1494 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1495 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1496 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1497 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1498 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1499 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1500 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1501 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1502 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.1503 = 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_impl14mindfiterationEPNS_10mindfstateEPNS_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 i8, align 1
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  %11 = 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) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %12, i32 0, i32 64
  %14 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %13, i32 0, i32 0
  %15 = load i32, ptr %14, align 8, !tbaa !9
  %16 = icmp sge i32 %15, 0
  br i1 %16, label %17, label %48

17:                                               ; preds = %2
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %18, i32 0, i32 64
  %20 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %19, i32 0, i32 1
  %21 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %22 = load ptr, ptr %21, align 8, !tbaa !24
  %23 = getelementptr inbounds i64, ptr %22, i64 0
  %24 = load i64, ptr %23, align 8, !tbaa !25
  store i64 %24, ptr %6, align 8, !tbaa !25
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %25, i32 0, i32 64
  %27 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %26, i32 0, i32 1
  %28 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %29 = load ptr, ptr %28, align 8, !tbaa !24
  %30 = getelementptr inbounds i64, ptr %29, i64 1
  %31 = load i64, ptr %30, align 8, !tbaa !25
  store i64 %31, ptr %7, align 8, !tbaa !25
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %32, i32 0, i32 64
  %34 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %33, i32 0, i32 1
  %35 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %36 = load ptr, ptr %35, align 8, !tbaa !24
  %37 = getelementptr inbounds i64, ptr %36, i64 2
  %38 = load i64, ptr %37, align 8, !tbaa !25
  store i64 %38, ptr %9, align 8, !tbaa !25
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %39, i32 0, i32 64
  %41 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %40, i32 0, i32 2
  %42 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %43 = load ptr, ptr %42, align 8, !tbaa !24
  %44 = getelementptr inbounds i8, ptr %43, i64 0
  %45 = load i8, ptr %44, align 1, !tbaa !26, !range !27, !noundef !28
  %46 = trunc i8 %45 to i1
  %47 = zext i1 %46 to i8
  store i8 %47, ptr %8, align 1, !tbaa !26
  br label %49

48:                                               ; preds = %2
  store i64 359, ptr %6, align 8, !tbaa !25
  store i64 -58, ptr %7, align 8, !tbaa !25
  store i64 -919, ptr %9, align 8, !tbaa !25
  store i8 1, ptr %8, align 1, !tbaa !26
  br label %49

49:                                               ; preds = %48, %17
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %50, i32 0, i32 64
  %52 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !9
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %49
  br label %384

56:                                               ; preds = %49
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %57, i32 0, i32 64
  %59 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !9
  %61 = icmp eq i32 %60, 1
  br i1 %61, label %62, label %63

62:                                               ; preds = %56
  br label %464

63:                                               ; preds = %56
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %64, i32 0, i32 64
  %66 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %65, i32 0, i32 0
  %67 = load i32, ptr %66, align 8, !tbaa !9
  %68 = icmp eq i32 %67, 2
  br i1 %68, label %69, label %70

69:                                               ; preds = %63
  br label %724

70:                                               ; preds = %63
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %71, i32 0, i32 64
  %73 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !9
  %75 = icmp eq i32 %74, 3
  br i1 %75, label %76, label %77

76:                                               ; preds = %70
  br label %767

77:                                               ; preds = %70
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %78, i32 0, i32 1
  %80 = load i64, ptr %79, align 8, !tbaa !29
  store i64 %80, ptr %7, align 8, !tbaa !25
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %81, i32 0, i32 71
  store double 0.000000e+00, ptr %82, align 8, !tbaa !30
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %83, i32 0, i32 73
  store double 0.000000e+00, ptr %84, align 8, !tbaa !31
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %85, i32 0, i32 65
  store i64 0, ptr %86, align 8, !tbaa !32
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %87, i32 0, i32 66
  store i64 0, ptr %88, align 8, !tbaa !33
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %89, i32 0, i32 67
  store i64 0, ptr %90, align 8, !tbaa !34
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %91, i32 0, i32 68
  store i64 0, ptr %92, align 8, !tbaa !35
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %93, i32 0, i32 44
  store i8 0, ptr %94, align 8, !tbaa !36
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %95, i32 0, i32 25
  %97 = load i64, ptr %96, align 8, !tbaa !37
  %98 = icmp eq i64 %97, 2
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %98, ptr noundef @.str.1494, ptr noundef %99)
  %100 = load i64, ptr %7, align 8, !tbaa !25
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %101, i32 0, i32 27
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %100, ptr noundef %102, ptr noundef %103)
  %104 = load i64, ptr %7, align 8, !tbaa !25
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %105, i32 0, i32 38
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %104, ptr noundef %106, ptr noundef %107)
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %108, i32 0, i32 14
  %110 = load i64, ptr %109, align 8, !tbaa !38
  %111 = add nsw i64 1, %110
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %112, i32 0, i32 40
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %111, ptr noundef %113, ptr noundef %114)
  %115 = load i64, ptr %7, align 8, !tbaa !25
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %116, i32 0, i32 41
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %115, ptr noundef %117, ptr noundef %118)
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %119, i32 0, i32 0
  %121 = load i64, ptr %120, align 8, !tbaa !39
  %122 = icmp ne i64 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %77
  br label %608

124:                                              ; preds = %77
  store i8 0, ptr %8, align 1, !tbaa !26
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %125, i32 0, i32 0
  %127 = load i64, ptr %126, align 8, !tbaa !39
  %128 = icmp eq i64 %127, 0
  br i1 %128, label %129, label %261

129:                                              ; preds = %124
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %130, i32 0, i32 2
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %132, i32 0, i32 3
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %134, i32 0, i32 15
  %136 = load i64, ptr %7, align 8, !tbaa !25
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %137, i32 0, i32 8
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %139, i32 0, i32 9
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %141, i32 0, i32 10
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %143, i32 0, i32 11
  %145 = load i64, ptr %144, align 8, !tbaa !40
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %146, i32 0, i32 12
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %148, i32 0, i32 13
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %150, i32 0, i32 14
  %152 = load i64, ptr %151, align 8, !tbaa !38
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %153, i32 0, i32 47
  %155 = load i64, ptr %154, align 8, !tbaa !41
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %156, i32 0, i32 46
  %158 = load i64, ptr %157, align 8, !tbaa !42
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %159, i32 0, i32 22
  %161 = load i64, ptr %160, align 8, !tbaa !43
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %162, i32 0, i32 50
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl12gdemoinitbufEPKNS_9ae_vectorES2_S2_llPKNS_9ae_matrixES2_S2_lS2_S2_llllPNS_10gdemostateEPNS_8ae_stateE(ptr noundef %131, ptr noundef %133, ptr noundef %135, i64 noundef %136, i64 noundef 1, ptr noundef %138, ptr noundef %140, ptr noundef %142, i64 noundef %145, ptr noundef %147, ptr noundef %149, i64 noundef %152, i64 noundef %155, i64 noundef %158, i64 noundef %161, ptr noundef %163, ptr noundef %164)
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %165, i32 0, i32 50
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %167, i32 0, i32 45
  %169 = load i64, ptr %168, align 8, !tbaa !44
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl15gdemosetprofileEPNS_10gdemostateElPNS_8ae_stateE(ptr noundef %166, i64 noundef %169, ptr noundef %170)
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %171, i32 0, i32 16
  %173 = load i8, ptr %172, align 8, !tbaa !45, !range !27, !noundef !28
  %174 = trunc i8 %173 to i1
  br i1 %174, label %175, label %181

175:                                              ; preds = %129
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %176, i32 0, i32 50
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %178, i32 0, i32 17
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl10gdemosetx0EPNS_10gdemostateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %177, ptr noundef %179, ptr noundef %180)
  br label %181

181:                                              ; preds = %175, %129
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %182, i32 0, i32 51
  %184 = load i8, ptr %183, align 8, !tbaa !46, !range !27, !noundef !28
  %185 = trunc i8 %184 to i1
  br i1 %185, label %186, label %199

186:                                              ; preds = %181
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %187, i32 0, i32 50
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %189, i32 0, i32 52
  %191 = load i64, ptr %190, align 8, !tbaa !47
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %192, i32 0, i32 53
  %194 = load double, ptr %193, align 8, !tbaa !48
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %195, i32 0, i32 54
  %197 = load double, ptr %196, align 8, !tbaa !49
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl19gdemosetfixedparamsEPNS_10gdemostateElddPNS_8ae_stateE(ptr noundef %188, i64 noundef %191, double noundef %194, double noundef %197, ptr noundef %198)
  br label %199

199:                                              ; preds = %186, %181
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %200, i32 0, i32 20
  %202 = load i8, ptr %201, align 8, !tbaa !50, !range !27, !noundef !28
  %203 = trunc i8 %202 to i1
  br i1 %203, label %204, label %211

204:                                              ; preds = %199
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %205, i32 0, i32 50
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %207, i32 0, i32 21
  %209 = load double, ptr %208, align 8, !tbaa !51
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl14gdemosetsmallfEPNS_10gdemostateEdPNS_8ae_stateE(ptr noundef %206, double noundef %209, ptr noundef %210)
  br label %211

211:                                              ; preds = %204, %199
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %212, i32 0, i32 18
  %214 = load double, ptr %213, align 8, !tbaa !52
  %215 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %214, double noundef 0.000000e+00)
  br i1 %215, label %221, label %216

216:                                              ; preds = %211
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %217, i32 0, i32 19
  %219 = load double, ptr %218, align 8, !tbaa !53
  %220 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %219, double noundef 0.000000e+00)
  br i1 %220, label %221, label %231

221:                                              ; preds = %216, %211
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %222, i32 0, i32 50
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %224, i32 0, i32 18
  %226 = load double, ptr %225, align 8, !tbaa !52
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %227, i32 0, i32 19
  %229 = load double, ptr %228, align 8, !tbaa !53
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl14gdemosetcondfxEPNS_10gdemostateEddPNS_8ae_stateE(ptr noundef %223, double noundef %226, double noundef %229, ptr noundef %230)
  br label %231

231:                                              ; preds = %221, %216
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %232, i32 0, i32 48
  %234 = load double, ptr %233, align 8, !tbaa !54
  %235 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %234, double noundef 0.000000e+00)
  br i1 %235, label %241, label %236

236:                                              ; preds = %231
  %237 = load ptr, ptr %4, align 8, !tbaa !5
  %238 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %237, i32 0, i32 49
  %239 = load double, ptr %238, align 8, !tbaa !55
  %240 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %239, double noundef 0.000000e+00)
  br label %241

241:                                              ; preds = %236, %231
  %242 = phi i1 [ true, %231 ], [ %240, %236 ]
  %243 = zext i1 %242 to i8
  store i8 %243, ptr %8, align 1, !tbaa !26
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %244, i32 0, i32 50
  %246 = load i8, ptr %8, align 1, !tbaa !26, !range !27, !noundef !28
  %247 = trunc i8 %246 to i1
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %248, i32 0, i32 48
  %250 = load double, ptr %249, align 8, !tbaa !54
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = call noundef double @_ZN11alglib_impl6rcase2EbddPNS_8ae_stateE(i1 noundef zeroext %247, double noundef %250, double noundef 5.000000e+01, ptr noundef %251)
  %253 = load i8, ptr %8, align 1, !tbaa !26, !range !27, !noundef !28
  %254 = trunc i8 %253 to i1
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %255, i32 0, i32 49
  %257 = load double, ptr %256, align 8, !tbaa !55
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = call noundef double @_ZN11alglib_impl6rcase2EbddPNS_8ae_stateE(i1 noundef zeroext %254, double noundef %257, double noundef 5.000000e+01, ptr noundef %258)
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl19gdemosetmodepenaltyEPNS_10gdemostateEddPNS_8ae_stateE(ptr noundef %245, double noundef %252, double noundef %259, ptr noundef %260)
  store i8 1, ptr %8, align 1, !tbaa !26
  br label %261

261:                                              ; preds = %241, %124
  %262 = load i8, ptr %8, align 1, !tbaa !26, !range !27, !noundef !28
  %263 = trunc i8 %262 to i1
  %264 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %263, ptr noundef @.str.1495, ptr noundef %264)
  br label %265

265:                                              ; preds = %526, %261
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  %267 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %266, i32 0, i32 26
  store i64 0, ptr %267, align 8, !tbaa !56
  store i64 0, ptr %9, align 8, !tbaa !25
  store i8 0, ptr %8, align 1, !tbaa !26
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %268, i32 0, i32 0
  %270 = load i64, ptr %269, align 8, !tbaa !39
  %271 = icmp eq i64 %270, 0
  br i1 %271, label %272, label %360

272:                                              ; preds = %265
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %273, i32 0, i32 50
  %275 = load ptr, ptr %4, align 8, !tbaa !5
  %276 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %275, i32 0, i32 44
  %277 = load i8, ptr %276, align 8, !tbaa !36, !range !27, !noundef !28
  %278 = trunc i8 %277 to i1
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = call noundef zeroext i1 @_ZN11alglib_impl14gdemoiterationEPNS_10gdemostateEbPNS_8ae_stateE(ptr noundef %274, i1 noundef zeroext %278, ptr noundef %279)
  br i1 %280, label %282, label %281

281:                                              ; preds = %272
  br label %530

282:                                              ; preds = %272
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %283, i32 0, i32 50
  %285 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %284, i32 0, i32 43
  %286 = load i64, ptr %285, align 8, !tbaa !57
  %287 = icmp eq i64 %286, 4
  br i1 %287, label %288, label %327

288:                                              ; preds = %282
  %289 = load i64, ptr %7, align 8, !tbaa !25
  %290 = load ptr, ptr %4, align 8, !tbaa !5
  %291 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %290, i32 0, i32 50
  %292 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %291, i32 0, i32 46
  %293 = load i64, ptr %292, align 8, !tbaa !58
  %294 = mul nsw i64 %289, %293
  %295 = load ptr, ptr %4, align 8, !tbaa !5
  %296 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %295, i32 0, i32 75
  %297 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %294, ptr noundef %296, ptr noundef %297)
  %298 = load ptr, ptr %4, align 8, !tbaa !5
  %299 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %298, i32 0, i32 50
  %300 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %299, i32 0, i32 46
  %301 = load i64, ptr %300, align 8, !tbaa !58
  %302 = load ptr, ptr %4, align 8, !tbaa !5
  %303 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %302, i32 0, i32 77
  store i64 %301, ptr %303, align 8, !tbaa !59
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %304, i32 0, i32 50
  %306 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %305, i32 0, i32 47
  %307 = load ptr, ptr %4, align 8, !tbaa !5
  %308 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %307, i32 0, i32 50
  %309 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %308, i32 0, i32 46
  %310 = load i64, ptr %309, align 8, !tbaa !58
  %311 = load ptr, ptr %4, align 8, !tbaa !5
  %312 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %311, i32 0, i32 15
  %313 = load i64, ptr %7, align 8, !tbaa !25
  %314 = load ptr, ptr %4, align 8, !tbaa !5
  %315 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %314, i32 0, i32 50
  %316 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %315, i32 0, i32 9
  %317 = load ptr, ptr %4, align 8, !tbaa !5
  %318 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %317, i32 0, i32 50
  %319 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %318, i32 0, i32 10
  %320 = load ptr, ptr %4, align 8, !tbaa !5
  %321 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %320, i32 0, i32 4
  %322 = load ptr, ptr %4, align 8, !tbaa !5
  %323 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %322, i32 0, i32 5
  %324 = load ptr, ptr %4, align 8, !tbaa !5
  %325 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %324, i32 0, i32 75
  %326 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl22unscalexbatchfinitebndEPKNS_9ae_vectorElS2_lS2_S2_S2_S2_PS0_PNS_8ae_stateE(ptr noundef %306, i64 noundef %310, ptr noundef %312, i64 noundef %313, ptr noundef %316, ptr noundef %319, ptr noundef %321, ptr noundef %323, ptr noundef %325, ptr noundef %326)
  store i64 4, ptr %9, align 8, !tbaa !25
  store i8 1, ptr %8, align 1, !tbaa !26
  br label %327

327:                                              ; preds = %288, %282
  %328 = load ptr, ptr %4, align 8, !tbaa !5
  %329 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %328, i32 0, i32 50
  %330 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %329, i32 0, i32 43
  %331 = load i64, ptr %330, align 8, !tbaa !57
  %332 = icmp eq i64 %331, -1
  br i1 %332, label %333, label %359

333:                                              ; preds = %327
  %334 = load ptr, ptr %4, align 8, !tbaa !5
  %335 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %334, i32 0, i32 50
  %336 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %335, i32 0, i32 44
  %337 = load ptr, ptr %4, align 8, !tbaa !5
  %338 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %337, i32 0, i32 15
  %339 = load i64, ptr %7, align 8, !tbaa !25
  %340 = load ptr, ptr %4, align 8, !tbaa !5
  %341 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %340, i32 0, i32 50
  %342 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %341, i32 0, i32 9
  %343 = load ptr, ptr %4, align 8, !tbaa !5
  %344 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %343, i32 0, i32 50
  %345 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %344, i32 0, i32 10
  %346 = load ptr, ptr %4, align 8, !tbaa !5
  %347 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %346, i32 0, i32 4
  %348 = load ptr, ptr %4, align 8, !tbaa !5
  %349 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %348, i32 0, i32 5
  %350 = load ptr, ptr %4, align 8, !tbaa !5
  %351 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %350, i32 0, i32 27
  %352 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl22unscalexbatchfinitebndEPKNS_9ae_vectorElS2_lS2_S2_S2_S2_PS0_PNS_8ae_stateE(ptr noundef %336, i64 noundef 1, ptr noundef %338, i64 noundef %339, ptr noundef %342, ptr noundef %345, ptr noundef %347, ptr noundef %349, ptr noundef %351, ptr noundef %352)
  %353 = load ptr, ptr %4, align 8, !tbaa !5
  %354 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %353, i32 0, i32 50
  %355 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %354, i32 0, i32 45
  %356 = load double, ptr %355, align 8, !tbaa !60
  %357 = load ptr, ptr %4, align 8, !tbaa !5
  %358 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %357, i32 0, i32 28
  store double %356, ptr %358, align 8, !tbaa !61
  store i64 -1, ptr %9, align 8, !tbaa !25
  store i8 1, ptr %8, align 1, !tbaa !26
  br label %359

359:                                              ; preds = %333, %327
  br label %360

360:                                              ; preds = %359, %265
  %361 = load i8, ptr %8, align 1, !tbaa !26, !range !27, !noundef !28
  %362 = trunc i8 %361 to i1
  %363 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %362, ptr noundef @.str.1496, ptr noundef %363)
  store i8 0, ptr %8, align 1, !tbaa !26
  %364 = load i64, ptr %9, align 8, !tbaa !25
  %365 = icmp ne i64 %364, -1
  br i1 %365, label %366, label %367

366:                                              ; preds = %360
  br label %386

367:                                              ; preds = %360
  %368 = load ptr, ptr %4, align 8, !tbaa !5
  %369 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %368, i32 0, i32 25
  %370 = load i64, ptr %369, align 8, !tbaa !37
  %371 = icmp eq i64 %370, 2
  %372 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %371, ptr noundef @.str.1497, ptr noundef %372)
  %373 = load ptr, ptr %4, align 8, !tbaa !5
  %374 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %373, i32 0, i32 26
  store i64 -1, ptr %374, align 8, !tbaa !56
  %375 = load ptr, ptr %4, align 8, !tbaa !5
  %376 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %375, i32 0, i32 23
  %377 = load i8, ptr %376, align 8, !tbaa !62, !range !27, !noundef !28
  %378 = trunc i8 %377 to i1
  br i1 %378, label %380, label %379

379:                                              ; preds = %367
  br label %385

380:                                              ; preds = %367
  %381 = load ptr, ptr %4, align 8, !tbaa !5
  %382 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %381, i32 0, i32 64
  %383 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %382, i32 0, i32 0
  store i32 0, ptr %383, align 8, !tbaa !9
  br label %805

384:                                              ; preds = %55
  br label %385

385:                                              ; preds = %384, %379
  store i8 1, ptr %8, align 1, !tbaa !26
  br label %386

386:                                              ; preds = %385, %366
  %387 = load i64, ptr %9, align 8, !tbaa !25
  %388 = icmp ne i64 %387, 4
  br i1 %388, label %389, label %390

389:                                              ; preds = %386
  br label %483

390:                                              ; preds = %386
  %391 = load ptr, ptr %4, align 8, !tbaa !5
  %392 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %391, i32 0, i32 67
  %393 = load i64, ptr %392, align 8, !tbaa !34
  %394 = load ptr, ptr %4, align 8, !tbaa !5
  %395 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %394, i32 0, i32 77
  %396 = load i64, ptr %395, align 8, !tbaa !59
  %397 = add nsw i64 %393, %396
  %398 = load ptr, ptr %4, align 8, !tbaa !5
  %399 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %398, i32 0, i32 67
  store i64 %397, ptr %399, align 8, !tbaa !34
  %400 = load ptr, ptr %4, align 8, !tbaa !5
  %401 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %400, i32 0, i32 68
  %402 = load i64, ptr %401, align 8, !tbaa !35
  %403 = add nsw i64 %402, 1
  %404 = load ptr, ptr %4, align 8, !tbaa !5
  %405 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %404, i32 0, i32 68
  store i64 %403, ptr %405, align 8, !tbaa !35
  %406 = load i64, ptr %7, align 8, !tbaa !25
  %407 = load ptr, ptr %4, align 8, !tbaa !5
  %408 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %407, i32 0, i32 34
  %409 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %406, ptr noundef %408, ptr noundef %409)
  %410 = load ptr, ptr %4, align 8, !tbaa !5
  %411 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %410, i32 0, i32 14
  %412 = load i64, ptr %411, align 8, !tbaa !38
  %413 = add nsw i64 1, %412
  %414 = load ptr, ptr %4, align 8, !tbaa !5
  %415 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %414, i32 0, i32 35
  %416 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %413, ptr noundef %415, ptr noundef %416)
  %417 = load ptr, ptr %4, align 8, !tbaa !5
  %418 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %417, i32 0, i32 14
  %419 = load i64, ptr %418, align 8, !tbaa !38
  %420 = add nsw i64 1, %419
  %421 = load ptr, ptr %4, align 8, !tbaa !5
  %422 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %421, i32 0, i32 77
  %423 = load i64, ptr %422, align 8, !tbaa !59
  %424 = mul nsw i64 %420, %423
  %425 = load ptr, ptr %4, align 8, !tbaa !5
  %426 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %425, i32 0, i32 76
  %427 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %424, ptr noundef %426, ptr noundef %427)
  store i64 0, ptr %6, align 8, !tbaa !25
  br label %428

428:                                              ; preds = %464, %390
  %429 = load i64, ptr %6, align 8, !tbaa !25
  %430 = load ptr, ptr %4, align 8, !tbaa !5
  %431 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %430, i32 0, i32 77
  %432 = load i64, ptr %431, align 8, !tbaa !59
  %433 = sub nsw i64 %432, 1
  %434 = icmp sgt i64 %429, %433
  br i1 %434, label %435, label %436

435:                                              ; preds = %428
  br label %482

436:                                              ; preds = %428
  %437 = load ptr, ptr %4, align 8, !tbaa !5
  %438 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %437, i32 0, i32 26
  store i64 4, ptr %438, align 8, !tbaa !56
  %439 = load ptr, ptr %4, align 8, !tbaa !5
  %440 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %439, i32 0, i32 14
  %441 = load i64, ptr %440, align 8, !tbaa !38
  %442 = add nsw i64 1, %441
  %443 = load ptr, ptr %4, align 8, !tbaa !5
  %444 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %443, i32 0, i32 30
  store i64 %442, ptr %444, align 8, !tbaa !63
  %445 = load i64, ptr %7, align 8, !tbaa !25
  %446 = load ptr, ptr %4, align 8, !tbaa !5
  %447 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %446, i32 0, i32 31
  store i64 %445, ptr %447, align 8, !tbaa !64
  %448 = load ptr, ptr %4, align 8, !tbaa !5
  %449 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %448, i32 0, i32 32
  store i64 0, ptr %449, align 8, !tbaa !65
  %450 = load ptr, ptr %4, align 8, !tbaa !5
  %451 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %450, i32 0, i32 29
  store i64 1, ptr %451, align 8, !tbaa !66
  %452 = load i64, ptr %7, align 8, !tbaa !25
  %453 = load ptr, ptr %4, align 8, !tbaa !5
  %454 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %453, i32 0, i32 75
  %455 = load i64, ptr %6, align 8, !tbaa !25
  %456 = load i64, ptr %7, align 8, !tbaa !25
  %457 = mul nsw i64 %455, %456
  %458 = load ptr, ptr %4, align 8, !tbaa !5
  %459 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %458, i32 0, i32 34
  %460 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyvxElPKNS_9ae_vectorElPS0_lPNS_8ae_stateE(i64 noundef %452, ptr noundef %454, i64 noundef %457, ptr noundef %459, i64 noundef 0, ptr noundef %460)
  %461 = load ptr, ptr %4, align 8, !tbaa !5
  %462 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %461, i32 0, i32 64
  %463 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %462, i32 0, i32 0
  store i32 1, ptr %463, align 8, !tbaa !9
  br label %805

464:                                              ; preds = %62
  %465 = load ptr, ptr %4, align 8, !tbaa !5
  %466 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %465, i32 0, i32 14
  %467 = load i64, ptr %466, align 8, !tbaa !38
  %468 = add nsw i64 1, %467
  %469 = load ptr, ptr %4, align 8, !tbaa !5
  %470 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %469, i32 0, i32 35
  %471 = load ptr, ptr %4, align 8, !tbaa !5
  %472 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %471, i32 0, i32 76
  %473 = load i64, ptr %6, align 8, !tbaa !25
  %474 = load ptr, ptr %4, align 8, !tbaa !5
  %475 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %474, i32 0, i32 14
  %476 = load i64, ptr %475, align 8, !tbaa !38
  %477 = add nsw i64 1, %476
  %478 = mul nsw i64 %473, %477
  %479 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyvxElPKNS_9ae_vectorElPS0_lPNS_8ae_stateE(i64 noundef %468, ptr noundef %470, i64 noundef 0, ptr noundef %472, i64 noundef %478, ptr noundef %479)
  %480 = load i64, ptr %6, align 8, !tbaa !25
  %481 = add nsw i64 %480, 1
  store i64 %481, ptr %6, align 8, !tbaa !25
  br label %428

482:                                              ; preds = %435
  store i8 1, ptr %8, align 1, !tbaa !26
  br label %483

483:                                              ; preds = %482, %389
  %484 = load i8, ptr %8, align 1, !tbaa !26, !range !27, !noundef !28
  %485 = trunc i8 %484 to i1
  %486 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %485, ptr noundef @.str.1498, ptr noundef %486)
  %487 = load i64, ptr %9, align 8, !tbaa !25
  %488 = icmp eq i64 %487, -1
  br i1 %488, label %492, label %489

489:                                              ; preds = %483
  %490 = load i64, ptr %9, align 8, !tbaa !25
  %491 = icmp eq i64 %490, 4
  br label %492

492:                                              ; preds = %489, %483
  %493 = phi i1 [ true, %483 ], [ %491, %489 ]
  %494 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %493, ptr noundef @.str.1499, ptr noundef %494)
  store i8 0, ptr %8, align 1, !tbaa !26
  %495 = load i64, ptr %9, align 8, !tbaa !25
  %496 = icmp eq i64 %495, -1
  br i1 %496, label %497, label %498

497:                                              ; preds = %492
  store i8 1, ptr %8, align 1, !tbaa !26
  br label %498

498:                                              ; preds = %497, %492
  %499 = load i64, ptr %9, align 8, !tbaa !25
  %500 = icmp eq i64 %499, 4
  br i1 %500, label %501, label %526

501:                                              ; preds = %498
  %502 = load ptr, ptr %4, align 8, !tbaa !5
  %503 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %502, i32 0, i32 0
  %504 = load i64, ptr %503, align 8, !tbaa !39
  %505 = icmp eq i64 %504, 0
  br i1 %505, label %506, label %526

506:                                              ; preds = %501
  %507 = load ptr, ptr %4, align 8, !tbaa !5
  %508 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %507, i32 0, i32 25
  %509 = load i64, ptr %508, align 8, !tbaa !37
  %510 = icmp eq i64 %509, 2
  %511 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %510, ptr noundef @.str.1500, ptr noundef %511)
  %512 = load ptr, ptr %4, align 8, !tbaa !5
  %513 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %512, i32 0, i32 14
  %514 = load i64, ptr %513, align 8, !tbaa !38
  %515 = add nsw i64 1, %514
  %516 = load ptr, ptr %4, align 8, !tbaa !5
  %517 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %516, i32 0, i32 77
  %518 = load i64, ptr %517, align 8, !tbaa !59
  %519 = mul nsw i64 %515, %518
  %520 = load ptr, ptr %4, align 8, !tbaa !5
  %521 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %520, i32 0, i32 76
  %522 = load ptr, ptr %4, align 8, !tbaa !5
  %523 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %522, i32 0, i32 50
  %524 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %523, i32 0, i32 48
  %525 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %519, ptr noundef %521, ptr noundef %524, ptr noundef %525)
  store i8 1, ptr %8, align 1, !tbaa !26
  br label %526

526:                                              ; preds = %506, %501, %498
  %527 = load i8, ptr %8, align 1, !tbaa !26, !range !27, !noundef !28
  %528 = trunc i8 %527 to i1
  %529 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %528, ptr noundef @.str.1501, ptr noundef %529)
  br label %265

530:                                              ; preds = %281
  store i8 0, ptr %8, align 1, !tbaa !26
  %531 = load ptr, ptr %4, align 8, !tbaa !5
  %532 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %531, i32 0, i32 0
  %533 = load i64, ptr %532, align 8, !tbaa !39
  %534 = icmp eq i64 %533, 0
  br i1 %534, label %535, label %605

535:                                              ; preds = %530
  %536 = load ptr, ptr %4, align 8, !tbaa !5
  %537 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %536, i32 0, i32 50
  %538 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %537, i32 0, i32 59
  %539 = load i64, ptr %538, align 8, !tbaa !67
  %540 = load ptr, ptr %4, align 8, !tbaa !5
  %541 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %540, i32 0, i32 65
  store i64 %539, ptr %541, align 8, !tbaa !32
  %542 = load ptr, ptr %4, align 8, !tbaa !5
  %543 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %542, i32 0, i32 50
  %544 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %543, i32 0, i32 60
  %545 = load i64, ptr %544, align 8, !tbaa !68
  %546 = load ptr, ptr %4, align 8, !tbaa !5
  %547 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %546, i32 0, i32 66
  store i64 %545, ptr %547, align 8, !tbaa !33
  %548 = load ptr, ptr %4, align 8, !tbaa !5
  %549 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %548, i32 0, i32 69
  store double 0.000000e+00, ptr %549, align 8, !tbaa !69
  %550 = load ptr, ptr %4, align 8, !tbaa !5
  %551 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %550, i32 0, i32 70
  store i64 -1, ptr %551, align 8, !tbaa !70
  %552 = load ptr, ptr %4, align 8, !tbaa !5
  %553 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %552, i32 0, i32 50
  %554 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %553, i32 0, i32 61
  %555 = load double, ptr %554, align 8, !tbaa !71
  %556 = load ptr, ptr %4, align 8, !tbaa !5
  %557 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %556, i32 0, i32 71
  store double %555, ptr %557, align 8, !tbaa !30
  %558 = load ptr, ptr %4, align 8, !tbaa !5
  %559 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %558, i32 0, i32 50
  %560 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %559, i32 0, i32 62
  %561 = load i64, ptr %560, align 8, !tbaa !72
  %562 = load ptr, ptr %4, align 8, !tbaa !5
  %563 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %562, i32 0, i32 72
  store i64 %561, ptr %563, align 8, !tbaa !73
  %564 = load ptr, ptr %4, align 8, !tbaa !5
  %565 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %564, i32 0, i32 50
  %566 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %565, i32 0, i32 63
  %567 = load double, ptr %566, align 8, !tbaa !74
  %568 = load ptr, ptr %4, align 8, !tbaa !5
  %569 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %568, i32 0, i32 73
  store double %567, ptr %569, align 8, !tbaa !31
  %570 = load ptr, ptr %4, align 8, !tbaa !5
  %571 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %570, i32 0, i32 50
  %572 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %571, i32 0, i32 64
  %573 = load i64, ptr %572, align 8, !tbaa !75
  %574 = load ptr, ptr %4, align 8, !tbaa !5
  %575 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %574, i32 0, i32 74
  store i64 %573, ptr %575, align 8, !tbaa !76
  %576 = load i64, ptr %7, align 8, !tbaa !25
  %577 = load ptr, ptr %4, align 8, !tbaa !5
  %578 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %577, i32 0, i32 78
  %579 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %576, ptr noundef %578, ptr noundef %579)
  %580 = load i64, ptr %7, align 8, !tbaa !25
  %581 = load ptr, ptr %4, align 8, !tbaa !5
  %582 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %581, i32 0, i32 50
  %583 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %582, i32 0, i32 57
  %584 = load ptr, ptr %4, align 8, !tbaa !5
  %585 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %584, i32 0, i32 78
  %586 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyrvElPKNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %580, ptr noundef %583, i64 noundef 0, ptr noundef %585, ptr noundef %586)
  %587 = load ptr, ptr %4, align 8, !tbaa !5
  %588 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %587, i32 0, i32 78
  %589 = load ptr, ptr %4, align 8, !tbaa !5
  %590 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %589, i32 0, i32 15
  %591 = load i64, ptr %7, align 8, !tbaa !25
  %592 = load ptr, ptr %4, align 8, !tbaa !5
  %593 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %592, i32 0, i32 50
  %594 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %593, i32 0, i32 9
  %595 = load ptr, ptr %4, align 8, !tbaa !5
  %596 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %595, i32 0, i32 50
  %597 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %596, i32 0, i32 10
  %598 = load ptr, ptr %4, align 8, !tbaa !5
  %599 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %598, i32 0, i32 4
  %600 = load ptr, ptr %4, align 8, !tbaa !5
  %601 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %600, i32 0, i32 5
  %602 = load ptr, ptr %4, align 8, !tbaa !5
  %603 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %602, i32 0, i32 24
  %604 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl22unscalexbatchfinitebndEPKNS_9ae_vectorElS2_lS2_S2_S2_S2_PS0_PNS_8ae_stateE(ptr noundef %588, i64 noundef 1, ptr noundef %590, i64 noundef %591, ptr noundef %594, ptr noundef %597, ptr noundef %599, ptr noundef %601, ptr noundef %603, ptr noundef %604)
  br label %605

605:                                              ; preds = %535, %530
  store i8 0, ptr %10, align 1, !tbaa !26
  %606 = load i8, ptr %10, align 1, !tbaa !26, !range !27, !noundef !28
  %607 = trunc i8 %606 to i1
  store i1 %607, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %838

608:                                              ; preds = %123
  %609 = load ptr, ptr %4, align 8, !tbaa !5
  %610 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %609, i32 0, i32 0
  %611 = load i64, ptr %610, align 8, !tbaa !39
  %612 = icmp ne i64 %611, -1
  br i1 %612, label %613, label %614

613:                                              ; preds = %608
  br label %801

614:                                              ; preds = %608
  %615 = load ptr, ptr %4, align 8, !tbaa !5
  %616 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %615, i32 0, i32 2
  %617 = load ptr, ptr %4, align 8, !tbaa !5
  %618 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %617, i32 0, i32 3
  %619 = load ptr, ptr %4, align 8, !tbaa !5
  %620 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %619, i32 0, i32 15
  %621 = load ptr, ptr %4, align 8, !tbaa !5
  %622 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %621, i32 0, i32 17
  %623 = load i64, ptr %7, align 8, !tbaa !25
  %624 = load ptr, ptr %4, align 8, !tbaa !5
  %625 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %624, i32 0, i32 8
  %626 = load ptr, ptr %4, align 8, !tbaa !5
  %627 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %626, i32 0, i32 9
  %628 = load ptr, ptr %4, align 8, !tbaa !5
  %629 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %628, i32 0, i32 10
  %630 = load ptr, ptr %4, align 8, !tbaa !5
  %631 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %630, i32 0, i32 11
  %632 = load i64, ptr %631, align 8, !tbaa !40
  %633 = load ptr, ptr %4, align 8, !tbaa !5
  %634 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %633, i32 0, i32 12
  %635 = load ptr, ptr %4, align 8, !tbaa !5
  %636 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %635, i32 0, i32 13
  %637 = load ptr, ptr %4, align 8, !tbaa !5
  %638 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %637, i32 0, i32 14
  %639 = load i64, ptr %638, align 8, !tbaa !38
  %640 = load ptr, ptr %4, align 8, !tbaa !5
  %641 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %640, i32 0, i32 58
  %642 = load double, ptr %641, align 8, !tbaa !77
  %643 = load ptr, ptr %4, align 8, !tbaa !5
  %644 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %643, i32 0, i32 59
  %645 = load double, ptr %644, align 8, !tbaa !78
  %646 = load ptr, ptr %4, align 8, !tbaa !5
  %647 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %646, i32 0, i32 60
  %648 = load i64, ptr %647, align 8, !tbaa !79
  %649 = load ptr, ptr %4, align 8, !tbaa !5
  %650 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %649, i32 0, i32 56
  %651 = load double, ptr %650, align 8, !tbaa !80
  %652 = load ptr, ptr %4, align 8, !tbaa !5
  %653 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %652, i32 0, i32 57
  %654 = load double, ptr %653, align 8, !tbaa !81
  %655 = load ptr, ptr %4, align 8, !tbaa !5
  %656 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %655, i32 0, i32 61
  %657 = load double, ptr %656, align 8, !tbaa !82
  %658 = load ptr, ptr %4, align 8, !tbaa !5
  %659 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %658, i32 0, i32 55
  %660 = load i64, ptr %659, align 8, !tbaa !83
  %661 = load ptr, ptr %4, align 8, !tbaa !5
  %662 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %661, i32 0, i32 62
  %663 = load double, ptr %662, align 8, !tbaa !84
  %664 = load ptr, ptr %4, align 8, !tbaa !5
  %665 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %664, i32 0, i32 63
  %666 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl11ssgdinitbufEPKNS_9ae_vectorES2_S2_S2_lPKNS_9ae_matrixES2_S2_lS2_S2_lddldddldPNS_9ssgdstateEPNS_8ae_stateE(ptr noundef %616, ptr noundef %618, ptr noundef %620, ptr noundef %622, i64 noundef %623, ptr noundef %625, ptr noundef %627, ptr noundef %629, i64 noundef %632, ptr noundef %634, ptr noundef %636, i64 noundef %639, double noundef %642, double noundef %645, i64 noundef %648, double noundef %651, double noundef %654, double noundef %657, i64 noundef %660, double noundef %663, ptr noundef %665, ptr noundef %666)
  br label %667

667:                                              ; preds = %769, %768, %724, %614
  %668 = load ptr, ptr %4, align 8, !tbaa !5
  %669 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %668, i32 0, i32 63
  %670 = load ptr, ptr %4, align 8, !tbaa !5
  %671 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %670, i32 0, i32 44
  %672 = load i8, ptr %671, align 8, !tbaa !36, !range !27, !noundef !28
  %673 = trunc i8 %672 to i1
  %674 = load ptr, ptr %5, align 8, !tbaa !5
  %675 = call noundef zeroext i1 @_ZN11alglib_impl13ssgditerationEPNS_9ssgdstateEbPNS_8ae_stateE(ptr noundef %669, i1 noundef zeroext %673, ptr noundef %674)
  br i1 %675, label %677, label %676

676:                                              ; preds = %667
  br label %771

677:                                              ; preds = %667
  %678 = load ptr, ptr %4, align 8, !tbaa !5
  %679 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %678, i32 0, i32 63
  %680 = getelementptr inbounds %"struct.alglib_impl::ssgdstate", ptr %679, i32 0, i32 30
  %681 = load i8, ptr %680, align 8, !tbaa !85, !range !27, !noundef !28
  %682 = trunc i8 %681 to i1
  br i1 %682, label %684, label %683

683:                                              ; preds = %677
  br label %735

684:                                              ; preds = %677
  %685 = load ptr, ptr %4, align 8, !tbaa !5
  %686 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %685, i32 0, i32 26
  store i64 4, ptr %686, align 8, !tbaa !56
  %687 = load ptr, ptr %4, align 8, !tbaa !5
  %688 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %687, i32 0, i32 29
  store i64 1, ptr %688, align 8, !tbaa !66
  %689 = load ptr, ptr %4, align 8, !tbaa !5
  %690 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %689, i32 0, i32 14
  %691 = load i64, ptr %690, align 8, !tbaa !38
  %692 = add nsw i64 1, %691
  %693 = load ptr, ptr %4, align 8, !tbaa !5
  %694 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %693, i32 0, i32 30
  store i64 %692, ptr %694, align 8, !tbaa !63
  %695 = load i64, ptr %7, align 8, !tbaa !25
  %696 = load ptr, ptr %4, align 8, !tbaa !5
  %697 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %696, i32 0, i32 31
  store i64 %695, ptr %697, align 8, !tbaa !64
  %698 = load ptr, ptr %4, align 8, !tbaa !5
  %699 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %698, i32 0, i32 32
  store i64 0, ptr %699, align 8, !tbaa !65
  %700 = load ptr, ptr %4, align 8, !tbaa !5
  %701 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %700, i32 0, i32 29
  %702 = load i64, ptr %701, align 8, !tbaa !66
  %703 = load ptr, ptr %4, align 8, !tbaa !5
  %704 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %703, i32 0, i32 30
  %705 = load i64, ptr %704, align 8, !tbaa !63
  %706 = mul nsw i64 %702, %705
  %707 = load ptr, ptr %4, align 8, !tbaa !5
  %708 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %707, i32 0, i32 35
  %709 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %706, ptr noundef %708, ptr noundef %709)
  %710 = load i64, ptr %7, align 8, !tbaa !25
  %711 = load ptr, ptr %4, align 8, !tbaa !5
  %712 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %711, i32 0, i32 34
  %713 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %710, ptr noundef %712, ptr noundef %713)
  %714 = load ptr, ptr %4, align 8, !tbaa !5
  %715 = load ptr, ptr %4, align 8, !tbaa !5
  %716 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %715, i32 0, i32 63
  %717 = getelementptr inbounds %"struct.alglib_impl::ssgdstate", ptr %716, i32 0, i32 27
  %718 = load ptr, ptr %4, align 8, !tbaa !5
  %719 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %718, i32 0, i32 34
  %720 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_implL13mindf_unscaleEPKNS_10mindfstateEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %714, ptr noundef %717, ptr noundef %719, ptr noundef %720)
  %721 = load ptr, ptr %4, align 8, !tbaa !5
  %722 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %721, i32 0, i32 64
  %723 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %722, i32 0, i32 0
  store i32 2, ptr %723, align 8, !tbaa !9
  br label %805

724:                                              ; preds = %69
  %725 = load ptr, ptr %4, align 8, !tbaa !5
  %726 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %725, i32 0, i32 14
  %727 = load i64, ptr %726, align 8, !tbaa !38
  %728 = add nsw i64 1, %727
  %729 = load ptr, ptr %4, align 8, !tbaa !5
  %730 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %729, i32 0, i32 35
  %731 = load ptr, ptr %4, align 8, !tbaa !5
  %732 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %731, i32 0, i32 63
  %733 = getelementptr inbounds %"struct.alglib_impl::ssgdstate", ptr %732, i32 0, i32 29
  %734 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %728, ptr noundef %730, ptr noundef %733, ptr noundef %734)
  br label %667

735:                                              ; preds = %683
  %736 = load ptr, ptr %4, align 8, !tbaa !5
  %737 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %736, i32 0, i32 63
  %738 = getelementptr inbounds %"struct.alglib_impl::ssgdstate", ptr %737, i32 0, i32 31
  %739 = load i8, ptr %738, align 1, !tbaa !86, !range !27, !noundef !28
  %740 = trunc i8 %739 to i1
  br i1 %740, label %742, label %741

741:                                              ; preds = %735
  br label %769

742:                                              ; preds = %735
  %743 = load ptr, ptr %4, align 8, !tbaa !5
  %744 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %743, i32 0, i32 23
  %745 = load i8, ptr %744, align 8, !tbaa !62, !range !27, !noundef !28
  %746 = trunc i8 %745 to i1
  br i1 %746, label %748, label %747

747:                                              ; preds = %742
  br label %768

748:                                              ; preds = %742
  %749 = load ptr, ptr %4, align 8, !tbaa !5
  %750 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %749, i32 0, i32 26
  store i64 -1, ptr %750, align 8, !tbaa !56
  %751 = load ptr, ptr %4, align 8, !tbaa !5
  %752 = load ptr, ptr %4, align 8, !tbaa !5
  %753 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %752, i32 0, i32 63
  %754 = getelementptr inbounds %"struct.alglib_impl::ssgdstate", ptr %753, i32 0, i32 27
  %755 = load ptr, ptr %4, align 8, !tbaa !5
  %756 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %755, i32 0, i32 27
  %757 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_implL13mindf_unscaleEPKNS_10mindfstateEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %751, ptr noundef %754, ptr noundef %756, ptr noundef %757)
  %758 = load ptr, ptr %4, align 8, !tbaa !5
  %759 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %758, i32 0, i32 63
  %760 = getelementptr inbounds %"struct.alglib_impl::ssgdstate", ptr %759, i32 0, i32 28
  %761 = load double, ptr %760, align 8, !tbaa !87
  %762 = load ptr, ptr %4, align 8, !tbaa !5
  %763 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %762, i32 0, i32 28
  store double %761, ptr %763, align 8, !tbaa !61
  %764 = load ptr, ptr %4, align 8, !tbaa !5
  %765 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %764, i32 0, i32 64
  %766 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %765, i32 0, i32 0
  store i32 3, ptr %766, align 8, !tbaa !9
  br label %805

767:                                              ; preds = %76
  br label %768

768:                                              ; preds = %767, %747
  br label %667

769:                                              ; preds = %741
  %770 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.1502, ptr noundef %770)
  br label %667

771:                                              ; preds = %676
  %772 = load ptr, ptr %4, align 8, !tbaa !5
  %773 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %772, i32 0, i32 65
  store i64 1, ptr %773, align 8, !tbaa !32
  %774 = load ptr, ptr %4, align 8, !tbaa !5
  %775 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %774, i32 0, i32 63
  %776 = getelementptr inbounds %"struct.alglib_impl::ssgdstate", ptr %775, i32 0, i32 43
  %777 = load i64, ptr %776, align 8, !tbaa !88
  %778 = load ptr, ptr %4, align 8, !tbaa !5
  %779 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %778, i32 0, i32 66
  store i64 %777, ptr %779, align 8, !tbaa !33
  %780 = load ptr, ptr %4, align 8, !tbaa !5
  %781 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %780, i32 0, i32 69
  store double 0.000000e+00, ptr %781, align 8, !tbaa !69
  %782 = load ptr, ptr %4, align 8, !tbaa !5
  %783 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %782, i32 0, i32 70
  store i64 0, ptr %783, align 8, !tbaa !70
  %784 = load ptr, ptr %4, align 8, !tbaa !5
  %785 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %784, i32 0, i32 71
  store double 0.000000e+00, ptr %785, align 8, !tbaa !30
  %786 = load ptr, ptr %4, align 8, !tbaa !5
  %787 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %786, i32 0, i32 72
  store i64 0, ptr %787, align 8, !tbaa !73
  %788 = load ptr, ptr %4, align 8, !tbaa !5
  %789 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %788, i32 0, i32 73
  store double 0.000000e+00, ptr %789, align 8, !tbaa !31
  %790 = load ptr, ptr %4, align 8, !tbaa !5
  %791 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %790, i32 0, i32 74
  store i64 0, ptr %791, align 8, !tbaa !76
  %792 = load ptr, ptr %4, align 8, !tbaa !5
  %793 = load ptr, ptr %4, align 8, !tbaa !5
  %794 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %793, i32 0, i32 63
  %795 = getelementptr inbounds %"struct.alglib_impl::ssgdstate", ptr %794, i32 0, i32 37
  %796 = load ptr, ptr %4, align 8, !tbaa !5
  %797 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %796, i32 0, i32 24
  %798 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_implL13mindf_unscaleEPKNS_10mindfstateEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %792, ptr noundef %795, ptr noundef %797, ptr noundef %798)
  store i8 0, ptr %10, align 1, !tbaa !26
  %799 = load i8, ptr %10, align 1, !tbaa !26, !range !27, !noundef !28
  %800 = trunc i8 %799 to i1
  store i1 %800, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %838

801:                                              ; preds = %613
  %802 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.1503, ptr noundef %802)
  store i8 0, ptr %10, align 1, !tbaa !26
  %803 = load i8, ptr %10, align 1, !tbaa !26, !range !27, !noundef !28
  %804 = trunc i8 %803 to i1
  store i1 %804, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %838

805:                                              ; preds = %748, %684, %436, %380
  store i8 1, ptr %10, align 1, !tbaa !26
  %806 = load i64, ptr %6, align 8, !tbaa !25
  %807 = load ptr, ptr %4, align 8, !tbaa !5
  %808 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %807, i32 0, i32 64
  %809 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %808, i32 0, i32 1
  %810 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %809, i32 0, i32 4
  %811 = load ptr, ptr %810, align 8, !tbaa !24
  %812 = getelementptr inbounds i64, ptr %811, i64 0
  store i64 %806, ptr %812, align 8, !tbaa !25
  %813 = load i64, ptr %7, align 8, !tbaa !25
  %814 = load ptr, ptr %4, align 8, !tbaa !5
  %815 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %814, i32 0, i32 64
  %816 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %815, i32 0, i32 1
  %817 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %816, i32 0, i32 4
  %818 = load ptr, ptr %817, align 8, !tbaa !24
  %819 = getelementptr inbounds i64, ptr %818, i64 1
  store i64 %813, ptr %819, align 8, !tbaa !25
  %820 = load i64, ptr %9, align 8, !tbaa !25
  %821 = load ptr, ptr %4, align 8, !tbaa !5
  %822 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %821, i32 0, i32 64
  %823 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %822, i32 0, i32 1
  %824 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %823, i32 0, i32 4
  %825 = load ptr, ptr %824, align 8, !tbaa !24
  %826 = getelementptr inbounds i64, ptr %825, i64 2
  store i64 %820, ptr %826, align 8, !tbaa !25
  %827 = load i8, ptr %8, align 1, !tbaa !26, !range !27, !noundef !28
  %828 = trunc i8 %827 to i1
  %829 = load ptr, ptr %4, align 8, !tbaa !5
  %830 = getelementptr inbounds %"struct.alglib_impl::mindfstate", ptr %829, i32 0, i32 64
  %831 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %830, i32 0, i32 2
  %832 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %831, i32 0, i32 4
  %833 = load ptr, ptr %832, align 8, !tbaa !24
  %834 = getelementptr inbounds i8, ptr %833, i64 0
  %835 = zext i1 %828 to i8
  store i8 %835, ptr %834, align 1, !tbaa !26
  %836 = load i8, ptr %10, align 1, !tbaa !26, !range !27, !noundef !28
  %837 = trunc i8 %836 to i1
  store i1 %837, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %838

838:                                              ; preds = %805, %801, %771, %605
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %839 = load i1, ptr %3, align 1
  ret i1 %839
}

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

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

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

declare noundef double @_ZN11alglib_impl6rcase2EbddPNS_8ae_stateE(i1 noundef zeroext, double noundef, double noundef, ptr noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl13ssgditerationEPNS_9ssgdstateEbPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, ptr noundef) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl19gdemosetfixedparamsEPNS_10gdemostateElddPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, double noundef, ptr noundef) #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl14gdemoiterationEPNS_10gdemostateEbPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, ptr noundef) #2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !20, i64 9048}
!10 = !{!"_ZTSN11alglib_impl10mindfstateE", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 80, !12, i64 144, !12, i64 208, !12, i64 272, !12, i64 336, !15, i64 400, !12, i64 480, !12, i64 544, !11, i64 608, !12, i64 616, !12, i64 680, !11, i64 744, !12, i64 752, !13, i64 816, !12, i64 824, !16, i64 888, !16, i64 896, !13, i64 904, !16, i64 912, !11, i64 920, !13, i64 928, !12, i64 936, !11, i64 1000, !11, i64 1008, !12, i64 1016, !16, i64 1080, !11, i64 1088, !11, i64 1096, !11, i64 1104, !11, i64 1112, !11, i64 1120, !12, i64 1128, !12, i64 1192, !12, i64 1256, !17, i64 1320, !12, i64 1688, !12, i64 1752, !12, i64 1816, !12, i64 1880, !15, i64 1944, !17, i64 2024, !13, i64 2392, !11, i64 2400, !11, i64 2408, !11, i64 2416, !16, i64 2424, !16, i64 2432, !18, i64 2440, !13, i64 6024, !11, i64 6032, !16, i64 6040, !16, i64 6048, !11, i64 6056, !16, i64 6064, !16, i64 6072, !16, i64 6080, !16, i64 6088, !11, i64 6096, !16, i64 6104, !16, i64 6112, !23, i64 6120, !19, i64 9048, !11, i64 9312, !11, i64 9320, !11, i64 9328, !11, i64 9336, !16, i64 9344, !11, i64 9352, !16, i64 9360, !11, i64 9368, !16, i64 9376, !11, i64 9384, !12, i64 9392, !12, i64 9456, !11, i64 9520, !12, i64 9528}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl12sparsematrixE", !12, i64 0, !12, i64 64, !12, i64 128, !12, i64 192, !12, i64 256, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360}
!18 = !{!"_ZTSN11alglib_impl10gdemostateE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 96, !12, i64 104, !12, i64 168, !12, i64 232, !12, i64 296, !12, i64 360, !15, i64 424, !12, i64 504, !12, i64 568, !12, i64 632, !12, i64 696, !12, i64 760, !12, i64 824, !12, i64 888, !12, i64 952, !12, i64 1016, !11, i64 1080, !12, i64 1088, !11, i64 1152, !16, i64 1160, !16, i64 1168, !11, i64 1176, !11, i64 1184, !16, i64 1192, !16, i64 1200, !11, i64 1208, !16, i64 1216, !16, i64 1224, !16, i64 1232, !16, i64 1240, !13, i64 1248, !11, i64 1256, !16, i64 1264, !16, i64 1272, !13, i64 1280, !16, i64 1288, !16, i64 1296, !16, i64 1304, !11, i64 1312, !12, i64 1320, !16, i64 1384, !11, i64 1392, !12, i64 1400, !12, i64 1464, !19, i64 1528, !21, i64 1792, !22, i64 1816, !22, i64 2208, !15, i64 2600, !11, i64 2680, !11, i64 2688, !11, i64 2696, !15, i64 2704, !12, i64 2784, !11, i64 2848, !11, i64 2856, !16, i64 2864, !11, i64 2872, !16, i64 2880, !11, i64 2888, !12, i64 2896, !17, i64 2960, !12, i64 3328, !12, i64 3392, !12, i64 3456, !12, i64 3520}
!19 = !{!"_ZTSN11alglib_impl10rcommstateE", !20, i64 0, !12, i64 8, !12, i64 72, !12, i64 136, !12, i64 200}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTSN11alglib_impl10hqrndstateE", !11, i64 0, !11, i64 8, !11, i64 16}
!22 = !{!"_ZTSN11alglib_impl15gdemopopulationE", !11, i64 0, !15, i64 8, !15, i64 88, !15, i64 168, !15, i64 248, !12, i64 328}
!23 = !{!"_ZTSN11alglib_impl9ssgdstateE", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !12, i64 88, !12, i64 152, !12, i64 216, !12, i64 280, !12, i64 344, !15, i64 408, !12, i64 488, !12, i64 552, !12, i64 616, !12, i64 680, !12, i64 744, !12, i64 808, !12, i64 872, !12, i64 936, !12, i64 1000, !11, i64 1064, !16, i64 1072, !16, i64 1080, !16, i64 1088, !16, i64 1096, !16, i64 1104, !11, i64 1112, !16, i64 1120, !12, i64 1128, !16, i64 1192, !12, i64 1200, !13, i64 1264, !13, i64 1265, !12, i64 1272, !12, i64 1336, !21, i64 1400, !12, i64 1424, !12, i64 1488, !12, i64 1552, !12, i64 1616, !12, i64 1680, !16, i64 1744, !16, i64 1752, !16, i64 1760, !11, i64 1768, !11, i64 1776, !19, i64 1784, !12, i64 2048, !12, i64 2112, !12, i64 2176, !12, i64 2240, !12, i64 2304, !12, i64 2368, !12, i64 2432, !12, i64 2496, !17, i64 2560}
!24 = !{!7, !7, i64 0}
!25 = !{!11, !11, i64 0}
!26 = !{!13, !13, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!10, !11, i64 8}
!30 = !{!10, !16, i64 9360}
!31 = !{!10, !16, i64 9376}
!32 = !{!10, !11, i64 9312}
!33 = !{!10, !11, i64 9320}
!34 = !{!10, !11, i64 9328}
!35 = !{!10, !11, i64 9336}
!36 = !{!10, !13, i64 2392}
!37 = !{!10, !11, i64 1000}
!38 = !{!10, !11, i64 744}
!39 = !{!10, !11, i64 0}
!40 = !{!10, !11, i64 608}
!41 = !{!10, !11, i64 2416}
!42 = !{!10, !11, i64 2408}
!43 = !{!10, !11, i64 920}
!44 = !{!10, !11, i64 2400}
!45 = !{!10, !13, i64 816}
!46 = !{!10, !13, i64 6024}
!47 = !{!10, !11, i64 6032}
!48 = !{!10, !16, i64 6040}
!49 = !{!10, !16, i64 6048}
!50 = !{!10, !13, i64 904}
!51 = !{!10, !16, i64 912}
!52 = !{!10, !16, i64 888}
!53 = !{!10, !16, i64 896}
!54 = !{!10, !16, i64 2424}
!55 = !{!10, !16, i64 2432}
!56 = !{!10, !11, i64 1008}
!57 = !{!10, !11, i64 3752}
!58 = !{!10, !11, i64 3832}
!59 = !{!10, !11, i64 9520}
!60 = !{!10, !16, i64 3824}
!61 = !{!10, !16, i64 1080}
!62 = !{!10, !13, i64 928}
!63 = !{!10, !11, i64 1096}
!64 = !{!10, !11, i64 1104}
!65 = !{!10, !11, i64 1112}
!66 = !{!10, !11, i64 1088}
!67 = !{!10, !11, i64 5288}
!68 = !{!10, !11, i64 5296}
!69 = !{!10, !16, i64 9344}
!70 = !{!10, !11, i64 9352}
!71 = !{!10, !16, i64 5304}
!72 = !{!10, !11, i64 5312}
!73 = !{!10, !11, i64 9368}
!74 = !{!10, !16, i64 5320}
!75 = !{!10, !11, i64 5328}
!76 = !{!10, !11, i64 9384}
!77 = !{!10, !16, i64 6080}
!78 = !{!10, !16, i64 6088}
!79 = !{!10, !11, i64 6096}
!80 = !{!10, !16, i64 6064}
!81 = !{!10, !16, i64 6072}
!82 = !{!10, !16, i64 6104}
!83 = !{!10, !11, i64 6056}
!84 = !{!10, !16, i64 6112}
!85 = !{!10, !13, i64 7384}
!86 = !{!10, !13, i64 7385}
!87 = !{!10, !16, i64 7312}
!88 = !{!10, !11, i64 7888}


; 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.1494 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1495 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1496 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1497 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1498 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1499 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1500 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1501 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1502 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.1503 = 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_impl14mindfiterationEPNS_10mindfstateEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 9048
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp sgt i32 %4, -1
  br i1 %5, label %6, label %17

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 9112
  %8 = load ptr, ptr %7, align 8, !tbaa !23
  %9 = load i64, ptr %8, align 8, !tbaa !24
  %10 = getelementptr inbounds i8, ptr %8, i64 8
  %11 = load i64, ptr %10, align 8, !tbaa !24
  %12 = getelementptr inbounds i8, ptr %8, i64 16
  %13 = load i64, ptr %12, align 8, !tbaa !24
  %14 = getelementptr inbounds i8, ptr %0, i64 9176
  %15 = load ptr, ptr %14, align 8, !tbaa !23
  %16 = load i8, ptr %15, align 1, !tbaa !25, !range !26, !noundef !27
  br label %17

17:                                               ; preds = %2, %6
  %.0317 = phi i64 [ %9, %6 ], [ 359, %2 ]
  %.0308 = phi i64 [ %11, %6 ], [ -58, %2 ]
  %.0300 = phi i8 [ %16, %6 ], [ 1, %2 ]
  %.0 = phi i64 [ %13, %6 ], [ -919, %2 ]
  switch i32 %4, label %18 [
    i32 0, label %154
    i32 1, label %187
    i32 2, label %296
    i32 3, label %.preheader.preheader
  ]

18:                                               ; preds = %17
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = load i64, ptr %19, align 8, !tbaa !28
  %21 = getelementptr inbounds i8, ptr %0, i64 9360
  store double 0.000000e+00, ptr %21, align 8, !tbaa !29
  %22 = getelementptr inbounds i8, ptr %0, i64 9376
  store double 0.000000e+00, ptr %22, align 8, !tbaa !30
  %23 = getelementptr inbounds i8, ptr %0, i64 9312
  %24 = getelementptr inbounds i8, ptr %0, i64 2392
  store i8 0, ptr %24, align 8, !tbaa !31
  %25 = getelementptr inbounds i8, ptr %0, i64 1000
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %23, i8 0, i64 32, i1 false)
  %26 = load i64, ptr %25, align 8, !tbaa !32
  %27 = icmp eq i64 %26, 2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef nonnull @.str.1494, ptr noundef %1)
  %28 = getelementptr inbounds i8, ptr %0, i64 1016
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %20, ptr noundef nonnull %28, ptr noundef %1)
  %29 = getelementptr inbounds i8, ptr %0, i64 1688
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %20, ptr noundef nonnull %29, ptr noundef %1)
  %30 = getelementptr inbounds i8, ptr %0, i64 744
  %31 = load i64, ptr %30, align 8, !tbaa !33
  %32 = add nsw i64 %31, 1
  %33 = getelementptr inbounds i8, ptr %0, i64 1816
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %32, ptr noundef nonnull %33, ptr noundef %1)
  %34 = getelementptr inbounds i8, ptr %0, i64 1880
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %20, ptr noundef nonnull %34, ptr noundef %1)
  %35 = load i64, ptr %0, align 8, !tbaa !34
  switch i64 %35, label %326 [
    i64 0, label %36
    i64 -1, label %244
  ]

36:                                               ; preds = %18
  %37 = getelementptr inbounds i8, ptr %0, i64 16
  %38 = getelementptr inbounds i8, ptr %0, i64 80
  %39 = getelementptr inbounds i8, ptr %0, i64 752
  %40 = getelementptr inbounds i8, ptr %0, i64 400
  %41 = getelementptr inbounds i8, ptr %0, i64 480
  %42 = getelementptr inbounds i8, ptr %0, i64 544
  %43 = getelementptr inbounds i8, ptr %0, i64 608
  %44 = load i64, ptr %43, align 8, !tbaa !35
  %45 = getelementptr inbounds i8, ptr %0, i64 616
  %46 = getelementptr inbounds i8, ptr %0, i64 680
  %47 = load i64, ptr %30, align 8, !tbaa !33
  %48 = getelementptr inbounds i8, ptr %0, i64 2416
  %49 = load i64, ptr %48, align 8, !tbaa !36
  %50 = getelementptr inbounds i8, ptr %0, i64 2408
  %51 = load i64, ptr %50, align 8, !tbaa !37
  %52 = getelementptr inbounds i8, ptr %0, i64 920
  %53 = load i64, ptr %52, align 8, !tbaa !38
  %54 = getelementptr inbounds i8, ptr %0, i64 2440
  tail call void @_ZN11alglib_impl12gdemoinitbufEPKNS_9ae_vectorES2_S2_llPKNS_9ae_matrixES2_S2_lS2_S2_llllPNS_10gdemostateEPNS_8ae_stateE(ptr noundef nonnull %37, ptr noundef nonnull %38, ptr noundef nonnull %39, i64 noundef %20, i64 noundef 1, ptr noundef nonnull %40, ptr noundef nonnull %41, ptr noundef nonnull %42, i64 noundef %44, ptr noundef nonnull %45, ptr noundef nonnull %46, i64 noundef %47, i64 noundef %49, i64 noundef %51, i64 noundef %53, ptr noundef nonnull %54, ptr noundef %1)
  %55 = getelementptr inbounds i8, ptr %0, i64 2400
  %56 = load i64, ptr %55, align 8, !tbaa !39
  tail call void @_ZN11alglib_impl15gdemosetprofileEPNS_10gdemostateElPNS_8ae_stateE(ptr noundef nonnull %54, i64 noundef %56, ptr noundef %1)
  %57 = getelementptr inbounds i8, ptr %0, i64 816
  %58 = load i8, ptr %57, align 8, !tbaa !40, !range !26, !noundef !27
  %59 = trunc nuw i8 %58 to i1
  br i1 %59, label %60, label %62

60:                                               ; preds = %36
  %61 = getelementptr inbounds i8, ptr %0, i64 824
  tail call void @_ZN11alglib_impl10gdemosetx0EPNS_10gdemostateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %54, ptr noundef nonnull %61, ptr noundef %1)
  br label %62

62:                                               ; preds = %60, %36
  %63 = getelementptr inbounds i8, ptr %0, i64 6024
  %64 = load i8, ptr %63, align 8, !tbaa !41, !range !26, !noundef !27
  %65 = trunc nuw i8 %64 to i1
  br i1 %65, label %66, label %73

66:                                               ; preds = %62
  %67 = getelementptr inbounds i8, ptr %0, i64 6032
  %68 = load i64, ptr %67, align 8, !tbaa !42
  %69 = getelementptr inbounds i8, ptr %0, i64 6040
  %70 = load double, ptr %69, align 8, !tbaa !43
  %71 = getelementptr inbounds i8, ptr %0, i64 6048
  %72 = load double, ptr %71, align 8, !tbaa !44
  tail call void @_ZN11alglib_impl19gdemosetfixedparamsEPNS_10gdemostateElddPNS_8ae_stateE(ptr noundef nonnull %54, i64 noundef %68, double noundef %70, double noundef %72, ptr noundef %1)
  br label %73

73:                                               ; preds = %66, %62
  %74 = getelementptr inbounds i8, ptr %0, i64 904
  %75 = load i8, ptr %74, align 8, !tbaa !45, !range !26, !noundef !27
  %76 = trunc nuw i8 %75 to i1
  br i1 %76, label %77, label %80

77:                                               ; preds = %73
  %78 = getelementptr inbounds i8, ptr %0, i64 912
  %79 = load double, ptr %78, align 8, !tbaa !46
  tail call void @_ZN11alglib_impl14gdemosetsmallfEPNS_10gdemostateEdPNS_8ae_stateE(ptr noundef nonnull %54, double noundef %79, ptr noundef %1)
  br label %80

80:                                               ; preds = %77, %73
  %81 = getelementptr inbounds i8, ptr %0, i64 888
  %82 = load double, ptr %81, align 8, !tbaa !47
  %83 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %82, double noundef 0.000000e+00)
  br i1 %83, label %88, label %84

84:                                               ; preds = %80
  %85 = getelementptr inbounds i8, ptr %0, i64 896
  %86 = load double, ptr %85, align 8, !tbaa !48
  %87 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %86, double noundef 0.000000e+00)
  br i1 %87, label %88, label %92

88:                                               ; preds = %84, %80
  %89 = load double, ptr %81, align 8, !tbaa !47
  %90 = getelementptr inbounds i8, ptr %0, i64 896
  %91 = load double, ptr %90, align 8, !tbaa !48
  tail call void @_ZN11alglib_impl14gdemosetcondfxEPNS_10gdemostateEddPNS_8ae_stateE(ptr noundef nonnull %54, double noundef %89, double noundef %91, ptr noundef %1)
  br label %92

92:                                               ; preds = %88, %84
  %93 = getelementptr inbounds i8, ptr %0, i64 2424
  %94 = load double, ptr %93, align 8, !tbaa !49
  %95 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %94, double noundef 0.000000e+00)
  br i1 %95, label %100, label %96

96:                                               ; preds = %92
  %97 = getelementptr inbounds i8, ptr %0, i64 2432
  %98 = load double, ptr %97, align 8, !tbaa !50
  %99 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %98, double noundef 0.000000e+00)
  br label %100

100:                                              ; preds = %96, %92
  %101 = phi i1 [ true, %92 ], [ %99, %96 ]
  %102 = load double, ptr %93, align 8, !tbaa !49
  %103 = tail call noundef double @_ZN11alglib_impl6rcase2EbddPNS_8ae_stateE(i1 noundef zeroext %101, double noundef %102, double noundef 5.000000e+01, ptr noundef %1)
  %104 = getelementptr inbounds i8, ptr %0, i64 2432
  %105 = load double, ptr %104, align 8, !tbaa !50
  %106 = tail call noundef double @_ZN11alglib_impl6rcase2EbddPNS_8ae_stateE(i1 noundef zeroext %101, double noundef %105, double noundef 5.000000e+01, ptr noundef %1)
  tail call void @_ZN11alglib_impl19gdemosetmodepenaltyEPNS_10gdemostateEddPNS_8ae_stateE(ptr noundef nonnull %54, double noundef %103, double noundef %106, ptr noundef %1)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext true, ptr noundef nonnull @.str.1495, ptr noundef %1)
  br label %107

107:                                              ; preds = %214, %100
  %.1318 = phi i64 [ %.5322, %214 ], [ %.0317, %100 ]
  %.1309 = phi i64 [ %.5313, %214 ], [ %20, %100 ]
  %108 = getelementptr inbounds i8, ptr %0, i64 1008
  store i64 0, ptr %108, align 8, !tbaa !51
  %109 = load i64, ptr %0, align 8, !tbaa !34
  %110 = icmp eq i64 %109, 0
  br i1 %110, label %111, label %.thread

111:                                              ; preds = %107
  %112 = getelementptr inbounds i8, ptr %0, i64 2440
  %113 = getelementptr inbounds i8, ptr %0, i64 2392
  %114 = load i8, ptr %113, align 8, !tbaa !31, !range !26, !noundef !27
  %115 = trunc nuw i8 %114 to i1
  %116 = tail call noundef zeroext i1 @_ZN11alglib_impl14gdemoiterationEPNS_10gdemostateEbPNS_8ae_stateE(ptr noundef nonnull %112, i1 noundef zeroext %115, ptr noundef %1)
  br i1 %116, label %117, label %215

117:                                              ; preds = %111
  %118 = getelementptr inbounds i8, ptr %0, i64 3752
  %119 = load i64, ptr %118, align 8, !tbaa !52
  %120 = icmp eq i64 %119, 4
  br i1 %120, label %121, label %134

121:                                              ; preds = %117
  %122 = getelementptr inbounds i8, ptr %0, i64 3832
  %123 = load i64, ptr %122, align 8, !tbaa !53
  %124 = mul nsw i64 %123, %.1309
  %125 = getelementptr inbounds i8, ptr %0, i64 9392
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %124, ptr noundef nonnull %125, ptr noundef %1)
  %126 = load i64, ptr %122, align 8, !tbaa !53
  %127 = getelementptr inbounds i8, ptr %0, i64 9520
  store i64 %126, ptr %127, align 8, !tbaa !54
  %128 = getelementptr inbounds i8, ptr %0, i64 3840
  %129 = getelementptr inbounds i8, ptr %0, i64 752
  %130 = getelementptr inbounds i8, ptr %0, i64 2736
  %131 = getelementptr inbounds i8, ptr %0, i64 2800
  %132 = getelementptr inbounds i8, ptr %0, i64 144
  %133 = getelementptr inbounds i8, ptr %0, i64 208
  tail call void @_ZN11alglib_impl22unscalexbatchfinitebndEPKNS_9ae_vectorElS2_lS2_S2_S2_S2_PS0_PNS_8ae_stateE(ptr noundef nonnull %128, i64 noundef %126, ptr noundef nonnull %129, i64 noundef %.1309, ptr noundef nonnull %130, ptr noundef nonnull %131, ptr noundef nonnull %132, ptr noundef nonnull %133, ptr noundef nonnull %125, ptr noundef %1)
  %.pr = load i64, ptr %118, align 8, !tbaa !52
  br label %134

134:                                              ; preds = %121, %117
  %135 = phi i64 [ %.pr, %121 ], [ %119, %117 ]
  %.1 = phi i64 [ 4, %121 ], [ 0, %117 ]
  %136 = icmp eq i64 %135, -1
  br i1 %136, label %137, label %.thread

.thread:                                          ; preds = %134, %107
  %.3303.ph = phi i1 [ false, %107 ], [ %120, %134 ]
  %.2.ph = phi i64 [ 0, %107 ], [ %.1, %134 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %.3303.ph, ptr noundef nonnull @.str.1496, ptr noundef %1)
  br label %154

137:                                              ; preds = %134
  %138 = getelementptr inbounds i8, ptr %0, i64 3760
  %139 = getelementptr inbounds i8, ptr %0, i64 752
  %140 = getelementptr inbounds i8, ptr %0, i64 2736
  %141 = getelementptr inbounds i8, ptr %0, i64 2800
  %142 = getelementptr inbounds i8, ptr %0, i64 144
  %143 = getelementptr inbounds i8, ptr %0, i64 208
  %144 = getelementptr inbounds i8, ptr %0, i64 1016
  tail call void @_ZN11alglib_impl22unscalexbatchfinitebndEPKNS_9ae_vectorElS2_lS2_S2_S2_S2_PS0_PNS_8ae_stateE(ptr noundef nonnull %138, i64 noundef 1, ptr noundef nonnull %139, i64 noundef %.1309, ptr noundef nonnull %140, ptr noundef nonnull %141, ptr noundef nonnull %142, ptr noundef nonnull %143, ptr noundef nonnull %144, ptr noundef %1)
  %145 = getelementptr inbounds i8, ptr %0, i64 3824
  %146 = load double, ptr %145, align 8, !tbaa !55
  %147 = getelementptr inbounds i8, ptr %0, i64 1080
  store double %146, ptr %147, align 8, !tbaa !56
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext true, ptr noundef nonnull @.str.1496, ptr noundef %1)
  %148 = getelementptr inbounds i8, ptr %0, i64 1000
  %149 = load i64, ptr %148, align 8, !tbaa !32
  %150 = icmp eq i64 %149, 2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %150, ptr noundef nonnull @.str.1497, ptr noundef %1)
  store i64 -1, ptr %108, align 8, !tbaa !51
  %151 = getelementptr inbounds i8, ptr %0, i64 928
  %152 = load i8, ptr %151, align 8, !tbaa !57, !range !26, !noundef !27
  %153 = trunc nuw i8 %152 to i1
  br i1 %153, label %327, label %.thread334

154:                                              ; preds = %17, %.thread
  %.3320 = phi i64 [ %.1318, %.thread ], [ %.0317, %17 ]
  %.3311 = phi i64 [ %.1309, %.thread ], [ %.0308, %17 ]
  %.4304 = phi i8 [ 0, %.thread ], [ 1, %17 ]
  %.4 = phi i64 [ %.2.ph, %.thread ], [ %.0, %17 ]
  %.not328 = icmp eq i64 %.4, 4
  br i1 %.not328, label %155, label %.thread334

155:                                              ; preds = %154
  %156 = getelementptr inbounds i8, ptr %0, i64 9328
  %157 = getelementptr inbounds i8, ptr %0, i64 9520
  %158 = load i64, ptr %157, align 8, !tbaa !54
  %159 = load <2 x i64>, ptr %156, align 8, !tbaa !24
  %160 = insertelement <2 x i64> <i64 poison, i64 1>, i64 %158, i64 0
  %161 = add nsw <2 x i64> %159, %160
  store <2 x i64> %161, ptr %156, align 8, !tbaa !24
  %162 = getelementptr inbounds i8, ptr %0, i64 1128
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %.3311, ptr noundef nonnull %162, ptr noundef %1)
  %163 = getelementptr inbounds i8, ptr %0, i64 744
  %164 = load i64, ptr %163, align 8, !tbaa !33
  %165 = add nsw i64 %164, 1
  %166 = getelementptr inbounds i8, ptr %0, i64 1192
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %165, ptr noundef nonnull %166, ptr noundef %1)
  %167 = load i64, ptr %163, align 8, !tbaa !33
  %168 = add nsw i64 %167, 1
  %169 = load i64, ptr %157, align 8, !tbaa !54
  %170 = mul nsw i64 %168, %169
  %171 = getelementptr inbounds i8, ptr %0, i64 9456
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %170, ptr noundef nonnull %171, ptr noundef %1)
  br label %172

172:                                              ; preds = %187, %155
  %.4321 = phi i64 [ 0, %155 ], [ %194, %187 ]
  %.4312 = phi i64 [ %.3311, %155 ], [ %.0308, %187 ]
  %.5305 = phi i8 [ %.4304, %155 ], [ %.0300, %187 ]
  %.5 = phi i64 [ 4, %155 ], [ %.0, %187 ]
  %173 = getelementptr inbounds i8, ptr %0, i64 9520
  %174 = load i64, ptr %173, align 8, !tbaa !54
  %.not329 = icmp slt i64 %.4321, %174
  br i1 %.not329, label %175, label %.thread334

175:                                              ; preds = %172
  %176 = getelementptr inbounds i8, ptr %0, i64 1008
  store i64 4, ptr %176, align 8, !tbaa !51
  %177 = getelementptr inbounds i8, ptr %0, i64 744
  %178 = load i64, ptr %177, align 8, !tbaa !33
  %179 = add nsw i64 %178, 1
  %180 = getelementptr inbounds i8, ptr %0, i64 1096
  store i64 %179, ptr %180, align 8, !tbaa !58
  %181 = getelementptr inbounds i8, ptr %0, i64 1104
  store i64 %.4312, ptr %181, align 8, !tbaa !59
  %182 = getelementptr inbounds i8, ptr %0, i64 1112
  store i64 0, ptr %182, align 8, !tbaa !60
  %183 = getelementptr inbounds i8, ptr %0, i64 1088
  store i64 1, ptr %183, align 8, !tbaa !61
  %184 = getelementptr inbounds i8, ptr %0, i64 9392
  %185 = mul nsw i64 %.4312, %.4321
  %186 = getelementptr inbounds i8, ptr %0, i64 1128
  tail call void @_ZN11alglib_impl7rcopyvxElPKNS_9ae_vectorElPS0_lPNS_8ae_stateE(i64 noundef %.4312, ptr noundef nonnull %184, i64 noundef %185, ptr noundef nonnull %186, i64 noundef 0, ptr noundef %1)
  br label %327

187:                                              ; preds = %17
  %188 = getelementptr inbounds i8, ptr %0, i64 744
  %189 = load i64, ptr %188, align 8, !tbaa !33
  %190 = add nsw i64 %189, 1
  %191 = getelementptr inbounds i8, ptr %0, i64 1192
  %192 = getelementptr inbounds i8, ptr %0, i64 9456
  %193 = mul nsw i64 %190, %.0317
  tail call void @_ZN11alglib_impl7rcopyvxElPKNS_9ae_vectorElPS0_lPNS_8ae_stateE(i64 noundef %190, ptr noundef nonnull %191, i64 noundef 0, ptr noundef nonnull %192, i64 noundef %193, ptr noundef %1)
  %194 = add nsw i64 %.0317, 1
  br label %172

.thread334:                                       ; preds = %137, %172, %154
  %.5322 = phi i64 [ %.3320, %154 ], [ %.4321, %172 ], [ %.1318, %137 ]
  %.5313 = phi i64 [ %.3311, %154 ], [ %.4312, %172 ], [ %.1309, %137 ]
  %.6306 = phi i8 [ %.4304, %154 ], [ 1, %172 ], [ 1, %137 ]
  %.6 = phi i64 [ %.4, %154 ], [ %.5, %172 ], [ -1, %137 ]
  %195 = trunc nuw i8 %.6306 to i1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %195, ptr noundef nonnull @.str.1498, ptr noundef %1)
  %196 = icmp eq i64 %.6, -1
  %197 = icmp eq i64 %.6, 4
  %198 = or i1 %196, %197
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %198, ptr noundef nonnull @.str.1499, ptr noundef %1)
  br i1 %197, label %199, label %214

199:                                              ; preds = %.thread334
  %200 = load i64, ptr %0, align 8, !tbaa !34
  %201 = icmp eq i64 %200, 0
  br i1 %201, label %202, label %214

202:                                              ; preds = %199
  %203 = getelementptr inbounds i8, ptr %0, i64 1000
  %204 = load i64, ptr %203, align 8, !tbaa !32
  %205 = icmp eq i64 %204, 2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %205, ptr noundef nonnull @.str.1500, ptr noundef %1)
  %206 = getelementptr inbounds i8, ptr %0, i64 744
  %207 = load i64, ptr %206, align 8, !tbaa !33
  %208 = add nsw i64 %207, 1
  %209 = getelementptr inbounds i8, ptr %0, i64 9520
  %210 = load i64, ptr %209, align 8, !tbaa !54
  %211 = mul nsw i64 %208, %210
  %212 = getelementptr inbounds i8, ptr %0, i64 9456
  %213 = getelementptr inbounds i8, ptr %0, i64 3904
  tail call void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %211, ptr noundef nonnull %212, ptr noundef nonnull %213, ptr noundef %1)
  br label %214

214:                                              ; preds = %202, %199, %.thread334
  %.7307.shrunk = phi i1 [ true, %202 ], [ %196, %199 ], [ %196, %.thread334 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %.7307.shrunk, ptr noundef nonnull @.str.1501, ptr noundef %1)
  br label %107

215:                                              ; preds = %111
  %216 = load i64, ptr %0, align 8, !tbaa !34
  %217 = icmp eq i64 %216, 0
  br i1 %217, label %218, label %337

218:                                              ; preds = %215
  %219 = getelementptr inbounds i8, ptr %0, i64 5288
  %220 = getelementptr inbounds i8, ptr %0, i64 9312
  %221 = load <2 x i64>, ptr %219, align 8, !tbaa !24
  store <2 x i64> %221, ptr %220, align 8, !tbaa !24
  %222 = getelementptr inbounds i8, ptr %0, i64 9344
  store double 0.000000e+00, ptr %222, align 8, !tbaa !62
  %223 = getelementptr inbounds i8, ptr %0, i64 9352
  store i64 -1, ptr %223, align 8, !tbaa !63
  %224 = getelementptr inbounds i8, ptr %0, i64 5304
  %225 = load double, ptr %224, align 8, !tbaa !64
  %226 = getelementptr inbounds i8, ptr %0, i64 9360
  store double %225, ptr %226, align 8, !tbaa !29
  %227 = getelementptr inbounds i8, ptr %0, i64 5312
  %228 = load i64, ptr %227, align 8, !tbaa !65
  %229 = getelementptr inbounds i8, ptr %0, i64 9368
  store i64 %228, ptr %229, align 8, !tbaa !66
  %230 = getelementptr inbounds i8, ptr %0, i64 5320
  %231 = load double, ptr %230, align 8, !tbaa !67
  %232 = getelementptr inbounds i8, ptr %0, i64 9376
  store double %231, ptr %232, align 8, !tbaa !30
  %233 = getelementptr inbounds i8, ptr %0, i64 5328
  %234 = load i64, ptr %233, align 8, !tbaa !68
  %235 = getelementptr inbounds i8, ptr %0, i64 9384
  store i64 %234, ptr %235, align 8, !tbaa !69
  %236 = getelementptr inbounds i8, ptr %0, i64 9528
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %.1309, ptr noundef nonnull %236, ptr noundef %1)
  %237 = getelementptr inbounds i8, ptr %0, i64 5144
  tail call void @_ZN11alglib_impl7rcopyrvElPKNS_9ae_matrixElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %.1309, ptr noundef nonnull %237, i64 noundef 0, ptr noundef nonnull %236, ptr noundef %1)
  %238 = getelementptr inbounds i8, ptr %0, i64 752
  %239 = getelementptr inbounds i8, ptr %0, i64 2736
  %240 = getelementptr inbounds i8, ptr %0, i64 2800
  %241 = getelementptr inbounds i8, ptr %0, i64 144
  %242 = getelementptr inbounds i8, ptr %0, i64 208
  %243 = getelementptr inbounds i8, ptr %0, i64 936
  tail call void @_ZN11alglib_impl22unscalexbatchfinitebndEPKNS_9ae_vectorElS2_lS2_S2_S2_S2_PS0_PNS_8ae_stateE(ptr noundef nonnull %236, i64 noundef 1, ptr noundef nonnull %238, i64 noundef %.1309, ptr noundef nonnull %239, ptr noundef nonnull %240, ptr noundef nonnull %241, ptr noundef nonnull %242, ptr noundef nonnull %243, ptr noundef %1)
  br label %337

244:                                              ; preds = %18
  %245 = getelementptr inbounds i8, ptr %0, i64 16
  %246 = getelementptr inbounds i8, ptr %0, i64 80
  %247 = getelementptr inbounds i8, ptr %0, i64 752
  %248 = getelementptr inbounds i8, ptr %0, i64 824
  %249 = getelementptr inbounds i8, ptr %0, i64 400
  %250 = getelementptr inbounds i8, ptr %0, i64 480
  %251 = getelementptr inbounds i8, ptr %0, i64 544
  %252 = getelementptr inbounds i8, ptr %0, i64 608
  %253 = load i64, ptr %252, align 8, !tbaa !35
  %254 = getelementptr inbounds i8, ptr %0, i64 616
  %255 = getelementptr inbounds i8, ptr %0, i64 680
  %256 = load i64, ptr %30, align 8, !tbaa !33
  %257 = getelementptr inbounds i8, ptr %0, i64 6080
  %258 = load double, ptr %257, align 8, !tbaa !70
  %259 = getelementptr inbounds i8, ptr %0, i64 6088
  %260 = load double, ptr %259, align 8, !tbaa !71
  %261 = getelementptr inbounds i8, ptr %0, i64 6096
  %262 = load i64, ptr %261, align 8, !tbaa !72
  %263 = getelementptr inbounds i8, ptr %0, i64 6064
  %264 = load double, ptr %263, align 8, !tbaa !73
  %265 = getelementptr inbounds i8, ptr %0, i64 6072
  %266 = load double, ptr %265, align 8, !tbaa !74
  %267 = getelementptr inbounds i8, ptr %0, i64 6104
  %268 = load double, ptr %267, align 8, !tbaa !75
  %269 = getelementptr inbounds i8, ptr %0, i64 6056
  %270 = load i64, ptr %269, align 8, !tbaa !76
  %271 = getelementptr inbounds i8, ptr %0, i64 6112
  %272 = load double, ptr %271, align 8, !tbaa !77
  %273 = getelementptr inbounds i8, ptr %0, i64 6120
  tail call void @_ZN11alglib_impl11ssgdinitbufEPKNS_9ae_vectorES2_S2_S2_lPKNS_9ae_matrixES2_S2_lS2_S2_lddldddldPNS_9ssgdstateEPNS_8ae_stateE(ptr noundef nonnull %245, ptr noundef nonnull %246, ptr noundef nonnull %247, ptr noundef nonnull %248, i64 noundef %20, ptr noundef nonnull %249, ptr noundef nonnull %250, ptr noundef nonnull %251, i64 noundef %253, ptr noundef nonnull %254, ptr noundef nonnull %255, i64 noundef %256, double noundef %258, double noundef %260, i64 noundef %262, double noundef %264, double noundef %266, double noundef %268, i64 noundef %270, double noundef %272, ptr noundef nonnull %273, ptr noundef %1)
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %296, %244, %17
  %.6314.ph.ph = phi i64 [ %.0308, %17 ], [ %.0308, %296 ], [ %20, %244 ]
  %274 = getelementptr inbounds i8, ptr %0, i64 6120
  %275 = getelementptr inbounds i8, ptr %0, i64 2392
  %276 = getelementptr inbounds i8, ptr %0, i64 7384
  %277 = getelementptr inbounds i8, ptr %0, i64 7385
  %278 = getelementptr inbounds i8, ptr %0, i64 928
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %305
  %279 = load i8, ptr %275, align 8, !tbaa !31, !range !26, !noundef !27
  %280 = trunc nuw i8 %279 to i1
  %281 = tail call noundef zeroext i1 @_ZN11alglib_impl13ssgditerationEPNS_9ssgdstateEbPNS_8ae_stateE(ptr noundef nonnull %274, i1 noundef zeroext %280, ptr noundef %1)
  br i1 %281, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader, %315
  %282 = load i8, ptr %276, align 8, !tbaa !78, !range !26, !noundef !27
  %283 = trunc nuw i8 %282 to i1
  br i1 %283, label %284, label %302

284:                                              ; preds = %.lr.ph
  %285 = getelementptr inbounds i8, ptr %0, i64 1008
  store i64 4, ptr %285, align 8, !tbaa !51
  %286 = getelementptr inbounds i8, ptr %0, i64 1088
  store i64 1, ptr %286, align 8, !tbaa !61
  %287 = getelementptr inbounds i8, ptr %0, i64 744
  %288 = load i64, ptr %287, align 8, !tbaa !33
  %289 = add nsw i64 %288, 1
  %290 = getelementptr inbounds i8, ptr %0, i64 1096
  store i64 %289, ptr %290, align 8, !tbaa !58
  %291 = getelementptr inbounds i8, ptr %0, i64 1104
  store i64 %.6314.ph.ph, ptr %291, align 8, !tbaa !59
  %292 = getelementptr inbounds i8, ptr %0, i64 1112
  store i64 0, ptr %292, align 8, !tbaa !60
  %293 = getelementptr inbounds i8, ptr %0, i64 1192
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %289, ptr noundef nonnull %293, ptr noundef %1)
  %294 = getelementptr inbounds i8, ptr %0, i64 1128
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %.6314.ph.ph, ptr noundef nonnull %294, ptr noundef %1)
  %295 = getelementptr inbounds i8, ptr %0, i64 7248
  tail call void @_ZN11alglib_implL13mindf_unscaleEPKNS_10mindfstateEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %295, ptr noundef nonnull %294, ptr noundef %1)
  br label %327

296:                                              ; preds = %17
  %297 = getelementptr inbounds i8, ptr %0, i64 744
  %298 = load i64, ptr %297, align 8, !tbaa !33
  %299 = add nsw i64 %298, 1
  %300 = getelementptr inbounds i8, ptr %0, i64 1192
  %301 = getelementptr inbounds i8, ptr %0, i64 7320
  tail call void @_ZN11alglib_impl6rcopyvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %299, ptr noundef nonnull %300, ptr noundef nonnull %301, ptr noundef %1)
  br label %.preheader.preheader

302:                                              ; preds = %.lr.ph
  %303 = load i8, ptr %277, align 1, !tbaa !79, !range !26, !noundef !27
  %304 = trunc nuw i8 %303 to i1
  br i1 %304, label %305, label %315

305:                                              ; preds = %302
  %306 = load i8, ptr %278, align 8, !tbaa !57, !range !26, !noundef !27
  %307 = trunc nuw i8 %306 to i1
  br i1 %307, label %308, label %.preheader

308:                                              ; preds = %305
  %309 = getelementptr inbounds i8, ptr %0, i64 1008
  store i64 -1, ptr %309, align 8, !tbaa !51
  %310 = getelementptr inbounds i8, ptr %0, i64 7248
  %311 = getelementptr inbounds i8, ptr %0, i64 1016
  tail call void @_ZN11alglib_implL13mindf_unscaleEPKNS_10mindfstateEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %310, ptr noundef nonnull %311, ptr noundef %1)
  %312 = getelementptr inbounds i8, ptr %0, i64 7312
  %313 = load double, ptr %312, align 8, !tbaa !80
  %314 = getelementptr inbounds i8, ptr %0, i64 1080
  store double %313, ptr %314, align 8, !tbaa !56
  br label %327

315:                                              ; preds = %302
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.1502, ptr noundef %1)
  %316 = load i8, ptr %275, align 8, !tbaa !31, !range !26, !noundef !27
  %317 = trunc nuw i8 %316 to i1
  %318 = tail call noundef zeroext i1 @_ZN11alglib_impl13ssgditerationEPNS_9ssgdstateEbPNS_8ae_stateE(ptr noundef nonnull %274, i1 noundef zeroext %317, ptr noundef %1)
  br i1 %318, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.preheader, %315
  %319 = getelementptr inbounds i8, ptr %0, i64 9312
  store i64 1, ptr %319, align 8, !tbaa !81
  %320 = getelementptr inbounds i8, ptr %0, i64 7888
  %321 = load i64, ptr %320, align 8, !tbaa !82
  %322 = getelementptr inbounds i8, ptr %0, i64 9320
  store i64 %321, ptr %322, align 8, !tbaa !83
  %323 = getelementptr inbounds i8, ptr %0, i64 9344
  %324 = getelementptr inbounds i8, ptr %0, i64 7672
  %325 = getelementptr inbounds i8, ptr %0, i64 936
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %323, i8 0, i64 48, i1 false)
  tail call void @_ZN11alglib_implL13mindf_unscaleEPKNS_10mindfstateEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %324, ptr noundef nonnull %325, ptr noundef %1)
  br label %337

326:                                              ; preds = %18
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.1503, ptr noundef %1)
  br label %337

327:                                              ; preds = %137, %308, %284, %175
  %.sink = phi i32 [ 3, %308 ], [ 2, %284 ], [ 1, %175 ], [ 0, %137 ]
  %.6323 = phi i64 [ %.0317, %308 ], [ %.0317, %284 ], [ %.4321, %175 ], [ %.1318, %137 ]
  %.8316 = phi i64 [ %.6314.ph.ph, %308 ], [ %.6314.ph.ph, %284 ], [ %.4312, %175 ], [ %.1309, %137 ]
  %.8 = phi i8 [ %.0300, %308 ], [ %.0300, %284 ], [ %.5305, %175 ], [ 0, %137 ]
  %.7 = phi i64 [ %.0, %308 ], [ %.0, %284 ], [ %.5, %175 ], [ -1, %137 ]
  store i32 %.sink, ptr %3, align 8, !tbaa !5
  %328 = getelementptr inbounds i8, ptr %0, i64 9112
  %329 = load ptr, ptr %328, align 8, !tbaa !23
  store i64 %.6323, ptr %329, align 8, !tbaa !24
  %330 = load ptr, ptr %328, align 8, !tbaa !23
  %331 = getelementptr inbounds i8, ptr %330, i64 8
  store i64 %.8316, ptr %331, align 8, !tbaa !24
  %332 = load ptr, ptr %328, align 8, !tbaa !23
  %333 = getelementptr inbounds i8, ptr %332, i64 16
  store i64 %.7, ptr %333, align 8, !tbaa !24
  %334 = getelementptr inbounds i8, ptr %0, i64 9176
  %335 = load ptr, ptr %334, align 8, !tbaa !23
  %336 = and i8 %.8, 1
  store i8 %336, ptr %335, align 1, !tbaa !25
  br label %337

337:                                              ; preds = %215, %218, %327, %326, %._crit_edge
  %.0324 = phi i1 [ true, %327 ], [ false, %._crit_edge ], [ false, %326 ], [ false, %218 ], [ false, %215 ]
  ret i1 %.0324
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl19gdemosetfixedparamsEPNS_10gdemostateElddPNS_8ae_stateE(ptr noundef, i64 noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !19, i64 9048}
!6 = !{!"_ZTSN11alglib_impl10mindfstateE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !10, i64 208, !10, i64 272, !10, i64 336, !14, i64 400, !10, i64 480, !10, i64 544, !7, i64 608, !10, i64 616, !10, i64 680, !7, i64 744, !10, i64 752, !11, i64 816, !10, i64 824, !15, i64 888, !15, i64 896, !11, i64 904, !15, i64 912, !7, i64 920, !11, i64 928, !10, i64 936, !7, i64 1000, !7, i64 1008, !10, i64 1016, !15, i64 1080, !7, i64 1088, !7, i64 1096, !7, i64 1104, !7, i64 1112, !7, i64 1120, !10, i64 1128, !10, i64 1192, !10, i64 1256, !16, i64 1320, !10, i64 1688, !10, i64 1752, !10, i64 1816, !10, i64 1880, !14, i64 1944, !16, i64 2024, !11, i64 2392, !7, i64 2400, !7, i64 2408, !7, i64 2416, !15, i64 2424, !15, i64 2432, !17, i64 2440, !11, i64 6024, !7, i64 6032, !15, i64 6040, !15, i64 6048, !7, i64 6056, !15, i64 6064, !15, i64 6072, !15, i64 6080, !15, i64 6088, !7, i64 6096, !15, i64 6104, !15, i64 6112, !22, i64 6120, !18, i64 9048, !7, i64 9312, !7, i64 9320, !7, i64 9328, !7, i64 9336, !15, i64 9344, !7, i64 9352, !15, i64 9360, !7, i64 9368, !15, i64 9376, !7, i64 9384, !10, i64 9392, !10, i64 9456, !7, i64 9520, !10, i64 9528}
!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 = !{!"double", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl12sparsematrixE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !10, i64 256, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360}
!17 = !{!"_ZTSN11alglib_impl10gdemostateE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 96, !10, i64 104, !10, i64 168, !10, i64 232, !10, i64 296, !10, i64 360, !14, i64 424, !10, i64 504, !10, i64 568, !10, i64 632, !10, i64 696, !10, i64 760, !10, i64 824, !10, i64 888, !10, i64 952, !10, i64 1016, !7, i64 1080, !10, i64 1088, !7, i64 1152, !15, i64 1160, !15, i64 1168, !7, i64 1176, !7, i64 1184, !15, i64 1192, !15, i64 1200, !7, i64 1208, !15, i64 1216, !15, i64 1224, !15, i64 1232, !15, i64 1240, !11, i64 1248, !7, i64 1256, !15, i64 1264, !15, i64 1272, !11, i64 1280, !15, i64 1288, !15, i64 1296, !15, i64 1304, !7, i64 1312, !10, i64 1320, !15, i64 1384, !7, i64 1392, !10, i64 1400, !10, i64 1464, !18, i64 1528, !20, i64 1792, !21, i64 1816, !21, i64 2208, !14, i64 2600, !7, i64 2680, !7, i64 2688, !7, i64 2696, !14, i64 2704, !10, i64 2784, !7, i64 2848, !7, i64 2856, !15, i64 2864, !7, i64 2872, !15, i64 2880, !7, i64 2888, !10, i64 2896, !16, i64 2960, !10, i64 3328, !10, i64 3392, !10, i64 3456, !10, i64 3520}
!18 = !{!"_ZTSN11alglib_impl10rcommstateE", !19, i64 0, !10, i64 8, !10, i64 72, !10, i64 136, !10, i64 200}
!19 = !{!"int", !8, i64 0}
!20 = !{!"_ZTSN11alglib_impl10hqrndstateE", !7, i64 0, !7, i64 8, !7, i64 16}
!21 = !{!"_ZTSN11alglib_impl15gdemopopulationE", !7, i64 0, !14, i64 8, !14, i64 88, !14, i64 168, !14, i64 248, !10, i64 328}
!22 = !{!"_ZTSN11alglib_impl9ssgdstateE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 88, !10, i64 152, !10, i64 216, !10, i64 280, !10, i64 344, !14, i64 408, !10, i64 488, !10, i64 552, !10, i64 616, !10, i64 680, !10, i64 744, !10, i64 808, !10, i64 872, !10, i64 936, !10, i64 1000, !7, i64 1064, !15, i64 1072, !15, i64 1080, !15, i64 1088, !15, i64 1096, !15, i64 1104, !7, i64 1112, !15, i64 1120, !10, i64 1128, !15, i64 1192, !10, i64 1200, !11, i64 1264, !11, i64 1265, !10, i64 1272, !10, i64 1336, !20, i64 1400, !10, i64 1424, !10, i64 1488, !10, i64 1552, !10, i64 1616, !10, i64 1680, !15, i64 1744, !15, i64 1752, !15, i64 1760, !7, i64 1768, !7, i64 1776, !18, i64 1784, !10, i64 2048, !10, i64 2112, !10, i64 2176, !10, i64 2240, !10, i64 2304, !10, i64 2368, !10, i64 2432, !10, i64 2496, !16, i64 2560}
!23 = !{!8, !8, i64 0}
!24 = !{!7, !7, i64 0}
!25 = !{!11, !11, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!6, !7, i64 8}
!29 = !{!6, !15, i64 9360}
!30 = !{!6, !15, i64 9376}
!31 = !{!6, !11, i64 2392}
!32 = !{!6, !7, i64 1000}
!33 = !{!6, !7, i64 744}
!34 = !{!6, !7, i64 0}
!35 = !{!6, !7, i64 608}
!36 = !{!6, !7, i64 2416}
!37 = !{!6, !7, i64 2408}
!38 = !{!6, !7, i64 920}
!39 = !{!6, !7, i64 2400}
!40 = !{!6, !11, i64 816}
!41 = !{!6, !11, i64 6024}
!42 = !{!6, !7, i64 6032}
!43 = !{!6, !15, i64 6040}
!44 = !{!6, !15, i64 6048}
!45 = !{!6, !11, i64 904}
!46 = !{!6, !15, i64 912}
!47 = !{!6, !15, i64 888}
!48 = !{!6, !15, i64 896}
!49 = !{!6, !15, i64 2424}
!50 = !{!6, !15, i64 2432}
!51 = !{!6, !7, i64 1008}
!52 = !{!6, !7, i64 3752}
!53 = !{!6, !7, i64 3832}
!54 = !{!6, !7, i64 9520}
!55 = !{!6, !15, i64 3824}
!56 = !{!6, !15, i64 1080}
!57 = !{!6, !11, i64 928}
!58 = !{!6, !7, i64 1096}
!59 = !{!6, !7, i64 1104}
!60 = !{!6, !7, i64 1112}
!61 = !{!6, !7, i64 1088}
!62 = !{!6, !15, i64 9344}
!63 = !{!6, !7, i64 9352}
!64 = !{!6, !15, i64 5304}
!65 = !{!6, !7, i64 5312}
!66 = !{!6, !7, i64 9368}
!67 = !{!6, !15, i64 5320}
!68 = !{!6, !7, i64 5328}
!69 = !{!6, !7, i64 9384}
!70 = !{!6, !15, i64 6080}
!71 = !{!6, !15, i64 6088}
!72 = !{!6, !7, i64 6096}
!73 = !{!6, !15, i64 6064}
!74 = !{!6, !15, i64 6072}
!75 = !{!6, !15, i64 6104}
!76 = !{!6, !7, i64 6056}
!77 = !{!6, !15, i64 6112}
!78 = !{!6, !11, i64 7384}
!79 = !{!6, !11, i64 7385}
!80 = !{!6, !15, i64 7312}
!81 = !{!6, !7, i64 9312}
!82 = !{!6, !7, i64 7888}
!83 = !{!6, !7, i64 9320}


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