; 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::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::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::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::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::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_state" = type { i64, double, double, double, ptr, %"struct.alglib_impl::ae_dyn_block", ptr, i32, ptr, i64, ptr, ptr, ptr }

@.str.1442 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1443 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1444 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZN11alglib_implL22diffevo_defaultpenaltyE = external hidden global double, align 8
@.str.1445 = external hidden unnamed_addr constant [64 x i8], align 1

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

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

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

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

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

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

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

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

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

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

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

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

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12gdemoinitbufEPKNS_9ae_vectorES2_S2_llPKNS_9ae_matrixES2_S2_lS2_S2_llllPNS_10gdemostateEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10, i64 noundef %11, i64 noundef %12, i64 noundef %13, i64 noundef %14, ptr noundef %15, ptr noundef %16) #2 {
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i64, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i64, align 8
  store ptr %0, ptr %18, align 8, !tbaa !5
  store ptr %1, ptr %19, align 8, !tbaa !5
  store ptr %2, ptr %20, align 8, !tbaa !5
  store i64 %3, ptr %21, align 8, !tbaa !9
  store i64 %4, ptr %22, align 8, !tbaa !9
  store ptr %5, ptr %23, align 8, !tbaa !5
  store ptr %6, ptr %24, align 8, !tbaa !5
  store ptr %7, ptr %25, align 8, !tbaa !5
  store i64 %8, ptr %26, align 8, !tbaa !9
  store ptr %9, ptr %27, align 8, !tbaa !5
  store ptr %10, ptr %28, align 8, !tbaa !5
  store i64 %11, ptr %29, align 8, !tbaa !9
  store i64 %12, ptr %30, align 8, !tbaa !9
  store i64 %13, ptr %31, align 8, !tbaa !9
  store i64 %14, ptr %32, align 8, !tbaa !9
  store ptr %15, ptr %33, align 8, !tbaa !5
  store ptr %16, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  %36 = load i64, ptr %22, align 8, !tbaa !9
  %37 = icmp eq i64 %36, 1
  %38 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %37, ptr noundef @.str.1442, ptr noundef %38)
  %39 = load i64, ptr %30, align 8, !tbaa !9
  %40 = icmp sge i64 %39, 0
  %41 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef @.str.1443, ptr noundef %41)
  %42 = load i64, ptr %31, align 8, !tbaa !9
  %43 = icmp sgt i64 %42, 0
  %44 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.1444, ptr noundef %44)
  %45 = load i64, ptr %30, align 8, !tbaa !9
  %46 = load i64, ptr %21, align 8, !tbaa !9
  %47 = mul nsw i64 10, %46
  %48 = load ptr, ptr %34, align 8, !tbaa !5
  %49 = call noundef i64 @_ZN11alglib_impl9coalesceiEllPNS_8ae_stateE(i64 noundef %45, i64 noundef %47, ptr noundef %48)
  %50 = load ptr, ptr %34, align 8, !tbaa !5
  %51 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %49, i64 noundef 10, ptr noundef %50)
  store i64 %51, ptr %30, align 8, !tbaa !9
  %52 = load i64, ptr %21, align 8, !tbaa !9
  %53 = load ptr, ptr %33, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %53, i32 0, i32 0
  store i64 %52, ptr %54, align 8, !tbaa !11
  %55 = load i64, ptr %22, align 8, !tbaa !9
  %56 = load ptr, ptr %33, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %56, i32 0, i32 1
  store i64 %55, ptr %57, align 8, !tbaa !23
  %58 = load i64, ptr %26, align 8, !tbaa !9
  %59 = load ptr, ptr %33, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %59, i32 0, i32 2
  store i64 %58, ptr %60, align 8, !tbaa !24
  %61 = load i64, ptr %29, align 8, !tbaa !9
  %62 = load ptr, ptr %33, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %62, i32 0, i32 3
  store i64 %61, ptr %63, align 8, !tbaa !25
  %64 = load i64, ptr %30, align 8, !tbaa !9
  %65 = load ptr, ptr %33, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %65, i32 0, i32 26
  store i64 %64, ptr %66, align 8, !tbaa !26
  %67 = load i64, ptr %31, align 8, !tbaa !9
  %68 = load ptr, ptr %33, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %68, i32 0, i32 27
  store i64 %67, ptr %69, align 8, !tbaa !27
  %70 = load ptr, ptr %33, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %70, i32 0, i32 28
  store double 9.000000e-01, ptr %71, align 8, !tbaa !28
  %72 = load ptr, ptr %33, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %72, i32 0, i32 29
  store double 5.000000e-01, ptr %73, align 8, !tbaa !29
  %74 = load ptr, ptr %33, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %74, i32 0, i32 30
  store i64 0, ptr %75, align 8, !tbaa !30
  %76 = load double, ptr @_ZN11alglib_implL22diffevo_defaultpenaltyE, align 8, !tbaa !31
  %77 = load ptr, ptr %33, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %77, i32 0, i32 31
  store double %76, ptr %78, align 8, !tbaa !32
  %79 = load double, ptr @_ZN11alglib_implL22diffevo_defaultpenaltyE, align 8, !tbaa !31
  %80 = load ptr, ptr %33, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %80, i32 0, i32 32
  store double %79, ptr %81, align 8, !tbaa !33
  %82 = load ptr, ptr %33, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %82, i32 0, i32 33
  store double 0.000000e+00, ptr %83, align 8, !tbaa !34
  %84 = load ptr, ptr %33, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %84, i32 0, i32 34
  store double 1.000000e+00, ptr %85, align 8, !tbaa !35
  %86 = load ptr, ptr %33, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %86, i32 0, i32 54
  store i64 0, ptr %87, align 8, !tbaa !36
  %88 = load i64, ptr %30, align 8, !tbaa !9
  %89 = mul nsw i64 2, %88
  %90 = load ptr, ptr %34, align 8, !tbaa !5
  %91 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %89, i64 noundef 200, ptr noundef %90)
  %92 = load ptr, ptr %33, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %92, i32 0, i32 55
  store i64 %91, ptr %93, align 8, !tbaa !37
  %94 = load ptr, ptr %33, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %94, i32 0, i32 35
  store i8 0, ptr %95, align 8, !tbaa !38
  %96 = load ptr, ptr %33, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %96, i32 0, i32 5
  store i8 0, ptr %97, align 8, !tbaa !39
  %98 = load ptr, ptr %33, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %98, i32 0, i32 39
  store i8 0, ptr %99, align 8, !tbaa !40
  %100 = load ptr, ptr %33, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %100, i32 0, i32 41
  store double 0.000000e+00, ptr %101, align 8, !tbaa !41
  %102 = load ptr, ptr %33, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %102, i32 0, i32 42
  store double 0.000000e+00, ptr %103, align 8, !tbaa !42
  %104 = load i64, ptr %32, align 8, !tbaa !9
  %105 = icmp sle i64 %104, 0
  br i1 %105, label %106, label %109

106:                                              ; preds = %17
  %107 = load ptr, ptr %34, align 8, !tbaa !5
  %108 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 30000, ptr noundef %107)
  store i64 %108, ptr %32, align 8, !tbaa !9
  br label %109

109:                                              ; preds = %106, %17
  %110 = load i64, ptr %32, align 8, !tbaa !9
  %111 = load i64, ptr %32, align 8, !tbaa !9
  %112 = add nsw i64 %111, 1172
  %113 = load ptr, ptr %33, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %113, i32 0, i32 50
  %115 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef %110, i64 noundef %112, ptr noundef %114, ptr noundef %115)
  %116 = load i64, ptr %22, align 8, !tbaa !9
  %117 = load i64, ptr %21, align 8, !tbaa !9
  %118 = load ptr, ptr %33, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %118, i32 0, i32 57
  %120 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %116, i64 noundef %117, double noundef 0.000000e+00, ptr noundef %119, ptr noundef %120)
  %121 = load i64, ptr %22, align 8, !tbaa !9
  %122 = load ptr, ptr %34, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %122, i32 0, i32 1
  %124 = load double, ptr %123, align 8, !tbaa !43
  %125 = load ptr, ptr %33, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %125, i32 0, i32 58
  %127 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %121, double noundef %124, ptr noundef %126, ptr noundef %127)
  %128 = load ptr, ptr %33, align 8, !tbaa !5
  %129 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl15gdemosetprofileEPNS_10gdemostateElPNS_8ae_stateE(ptr noundef %128, i64 noundef 0, ptr noundef %129)
  %130 = load ptr, ptr %33, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %130, i32 0, i32 49
  %132 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %131, i32 0, i32 1
  %133 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %132, i64 noundef 11, ptr noundef %133)
  %134 = load ptr, ptr %33, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %134, i32 0, i32 49
  %136 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %135, i32 0, i32 2
  %137 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %136, i64 noundef 3, ptr noundef %137)
  %138 = load ptr, ptr %33, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %138, i32 0, i32 49
  %140 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %139, i32 0, i32 3
  %141 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %140, i64 noundef 4, ptr noundef %141)
  %142 = load ptr, ptr %33, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %142, i32 0, i32 49
  %144 = getelementptr inbounds %"struct.alglib_impl::rcommstate", ptr %143, i32 0, i32 0
  store i32 -1, ptr %144, align 8, !tbaa !47
  %145 = load i64, ptr %21, align 8, !tbaa !9
  %146 = load ptr, ptr %33, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %146, i32 0, i32 4
  %148 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %145, ptr noundef %147, ptr noundef %148)
  %149 = load ptr, ptr %33, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %149, i32 0, i32 7
  %151 = load i64, ptr %21, align 8, !tbaa !9
  %152 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %150, i64 noundef %151, ptr noundef %152)
  %153 = load ptr, ptr %33, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %153, i32 0, i32 8
  %155 = load i64, ptr %21, align 8, !tbaa !9
  %156 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %154, i64 noundef %155, ptr noundef %156)
  %157 = load i64, ptr %21, align 8, !tbaa !9
  %158 = load ptr, ptr %33, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %158, i32 0, i32 9
  %160 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %157, double noundef -1.000000e+300, ptr noundef %159, ptr noundef %160)
  %161 = load i64, ptr %21, align 8, !tbaa !9
  %162 = load ptr, ptr %33, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %162, i32 0, i32 10
  %164 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %161, double noundef 1.000000e+300, ptr noundef %163, ptr noundef %164)
  store i64 0, ptr %35, align 8, !tbaa !9
  br label %165

165:                                              ; preds = %304, %109
  %166 = load i64, ptr %35, align 8, !tbaa !9
  %167 = load i64, ptr %21, align 8, !tbaa !9
  %168 = sub nsw i64 %167, 1
  %169 = icmp sle i64 %166, %168
  br i1 %169, label %170, label %307

170:                                              ; preds = %165
  %171 = load ptr, ptr %18, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !48
  %174 = load i64, ptr %35, align 8, !tbaa !9
  %175 = getelementptr inbounds double, ptr %173, i64 %174
  %176 = load double, ptr %175, align 8, !tbaa !31
  %177 = load ptr, ptr %34, align 8, !tbaa !5
  %178 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %176, ptr noundef %177)
  %179 = load ptr, ptr %33, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %179, i32 0, i32 7
  %181 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %180, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !48
  %183 = load i64, ptr %35, align 8, !tbaa !9
  %184 = getelementptr inbounds i8, ptr %182, i64 %183
  %185 = zext i1 %178 to i8
  store i8 %185, ptr %184, align 1, !tbaa !49
  %186 = load ptr, ptr %19, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %186, i32 0, i32 4
  %188 = load ptr, ptr %187, align 8, !tbaa !48
  %189 = load i64, ptr %35, align 8, !tbaa !9
  %190 = getelementptr inbounds double, ptr %188, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !31
  %192 = load ptr, ptr %34, align 8, !tbaa !5
  %193 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %191, ptr noundef %192)
  %194 = load ptr, ptr %33, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %194, i32 0, i32 8
  %196 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %195, i32 0, i32 4
  %197 = load ptr, ptr %196, align 8, !tbaa !48
  %198 = load i64, ptr %35, align 8, !tbaa !9
  %199 = getelementptr inbounds i8, ptr %197, i64 %198
  %200 = zext i1 %193 to i8
  store i8 %200, ptr %199, align 1, !tbaa !49
  %201 = load ptr, ptr %33, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %201, i32 0, i32 7
  %203 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %202, i32 0, i32 4
  %204 = load ptr, ptr %203, align 8, !tbaa !48
  %205 = load i64, ptr %35, align 8, !tbaa !9
  %206 = getelementptr inbounds i8, ptr %204, i64 %205
  %207 = load i8, ptr %206, align 1, !tbaa !49, !range !50, !noundef !51
  %208 = trunc i8 %207 to i1
  br i1 %208, label %209, label %229

209:                                              ; preds = %170
  %210 = load ptr, ptr %18, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %210, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !48
  %213 = load i64, ptr %35, align 8, !tbaa !9
  %214 = getelementptr inbounds double, ptr %212, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !31
  %216 = load ptr, ptr %20, align 8, !tbaa !5
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %216, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !48
  %219 = load i64, ptr %35, align 8, !tbaa !9
  %220 = getelementptr inbounds double, ptr %218, i64 %219
  %221 = load double, ptr %220, align 8, !tbaa !31
  %222 = fdiv double %215, %221
  %223 = load ptr, ptr %33, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %223, i32 0, i32 9
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %224, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !48
  %227 = load i64, ptr %35, align 8, !tbaa !9
  %228 = getelementptr inbounds double, ptr %226, i64 %227
  store double %222, ptr %228, align 8, !tbaa !31
  br label %229

229:                                              ; preds = %209, %170
  %230 = load ptr, ptr %33, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %230, i32 0, i32 8
  %232 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %231, i32 0, i32 4
  %233 = load ptr, ptr %232, align 8, !tbaa !48
  %234 = load i64, ptr %35, align 8, !tbaa !9
  %235 = getelementptr inbounds i8, ptr %233, i64 %234
  %236 = load i8, ptr %235, align 1, !tbaa !49, !range !50, !noundef !51
  %237 = trunc i8 %236 to i1
  br i1 %237, label %238, label %258

238:                                              ; preds = %229
  %239 = load ptr, ptr %19, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %239, i32 0, i32 4
  %241 = load ptr, ptr %240, align 8, !tbaa !48
  %242 = load i64, ptr %35, align 8, !tbaa !9
  %243 = getelementptr inbounds double, ptr %241, i64 %242
  %244 = load double, ptr %243, align 8, !tbaa !31
  %245 = load ptr, ptr %20, align 8, !tbaa !5
  %246 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %245, i32 0, i32 4
  %247 = load ptr, ptr %246, align 8, !tbaa !48
  %248 = load i64, ptr %35, align 8, !tbaa !9
  %249 = getelementptr inbounds double, ptr %247, i64 %248
  %250 = load double, ptr %249, align 8, !tbaa !31
  %251 = fdiv double %244, %250
  %252 = load ptr, ptr %33, align 8, !tbaa !5
  %253 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %252, i32 0, i32 10
  %254 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %253, i32 0, i32 4
  %255 = load ptr, ptr %254, align 8, !tbaa !48
  %256 = load i64, ptr %35, align 8, !tbaa !9
  %257 = getelementptr inbounds double, ptr %255, i64 %256
  store double %251, ptr %257, align 8, !tbaa !31
  br label %258

258:                                              ; preds = %238, %229
  %259 = load ptr, ptr %33, align 8, !tbaa !5
  %260 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %259, i32 0, i32 7
  %261 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %260, i32 0, i32 4
  %262 = load ptr, ptr %261, align 8, !tbaa !48
  %263 = load i64, ptr %35, align 8, !tbaa !9
  %264 = getelementptr inbounds i8, ptr %262, i64 %263
  %265 = load i8, ptr %264, align 1, !tbaa !49, !range !50, !noundef !51
  %266 = trunc i8 %265 to i1
  br i1 %266, label %267, label %291

267:                                              ; preds = %258
  %268 = load ptr, ptr %33, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %268, i32 0, i32 8
  %270 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %269, i32 0, i32 4
  %271 = load ptr, ptr %270, align 8, !tbaa !48
  %272 = load i64, ptr %35, align 8, !tbaa !9
  %273 = getelementptr inbounds i8, ptr %271, i64 %272
  %274 = load i8, ptr %273, align 1, !tbaa !49, !range !50, !noundef !51
  %275 = trunc i8 %274 to i1
  br i1 %275, label %276, label %291

276:                                              ; preds = %267
  %277 = load ptr, ptr %18, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %277, i32 0, i32 4
  %279 = load ptr, ptr %278, align 8, !tbaa !48
  %280 = load i64, ptr %35, align 8, !tbaa !9
  %281 = getelementptr inbounds double, ptr %279, i64 %280
  %282 = load double, ptr %281, align 8, !tbaa !31
  %283 = load ptr, ptr %19, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %283, i32 0, i32 4
  %285 = load ptr, ptr %284, align 8, !tbaa !48
  %286 = load i64, ptr %35, align 8, !tbaa !9
  %287 = getelementptr inbounds double, ptr %285, i64 %286
  %288 = load double, ptr %287, align 8, !tbaa !31
  %289 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %282, double noundef %288)
  %290 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %289, ptr noundef @.str.1445, ptr noundef %290)
  br label %291

291:                                              ; preds = %276, %267, %258
  %292 = load ptr, ptr %20, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %292, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !48
  %295 = load i64, ptr %35, align 8, !tbaa !9
  %296 = getelementptr inbounds double, ptr %294, i64 %295
  %297 = load double, ptr %296, align 8, !tbaa !31
  %298 = load ptr, ptr %33, align 8, !tbaa !5
  %299 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %298, i32 0, i32 4
  %300 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %299, i32 0, i32 4
  %301 = load ptr, ptr %300, align 8, !tbaa !48
  %302 = load i64, ptr %35, align 8, !tbaa !9
  %303 = getelementptr inbounds double, ptr %301, i64 %302
  store double %297, ptr %303, align 8, !tbaa !31
  br label %304

304:                                              ; preds = %291
  %305 = load i64, ptr %35, align 8, !tbaa !9
  %306 = add nsw i64 %305, 1
  store i64 %306, ptr %35, align 8, !tbaa !9
  br label %165, !llvm.loop !52

307:                                              ; preds = %165
  %308 = load i64, ptr %26, align 8, !tbaa !9
  %309 = icmp sgt i64 %308, 0
  br i1 %309, label %310, label %406

310:                                              ; preds = %307
  %311 = load i64, ptr %21, align 8, !tbaa !9
  %312 = load ptr, ptr %33, align 8, !tbaa !5
  %313 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %312, i32 0, i32 65
  %314 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %311, double noundef 0.000000e+00, ptr noundef %313, ptr noundef %314)
  %315 = load i64, ptr %26, align 8, !tbaa !9
  %316 = load i64, ptr %21, align 8, !tbaa !9
  %317 = load ptr, ptr %23, align 8, !tbaa !5
  %318 = load ptr, ptr %33, align 8, !tbaa !5
  %319 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %318, i32 0, i32 11
  %320 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocmEllPKNS_9ae_matrixEPS0_PNS_8ae_stateE(i64 noundef %315, i64 noundef %316, ptr noundef %317, ptr noundef %319, ptr noundef %320)
  %321 = load i64, ptr %26, align 8, !tbaa !9
  %322 = load ptr, ptr %24, align 8, !tbaa !5
  %323 = load ptr, ptr %33, align 8, !tbaa !5
  %324 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %323, i32 0, i32 12
  %325 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %321, ptr noundef %322, ptr noundef %324, ptr noundef %325)
  %326 = load i64, ptr %26, align 8, !tbaa !9
  %327 = load ptr, ptr %25, align 8, !tbaa !5
  %328 = load ptr, ptr %33, align 8, !tbaa !5
  %329 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %328, i32 0, i32 13
  %330 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %326, ptr noundef %327, ptr noundef %329, ptr noundef %330)
  %331 = load ptr, ptr %20, align 8, !tbaa !5
  %332 = load ptr, ptr %33, align 8, !tbaa !5
  %333 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %332, i32 0, i32 65
  %334 = load i64, ptr %21, align 8, !tbaa !9
  %335 = load ptr, ptr %33, align 8, !tbaa !5
  %336 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %335, i32 0, i32 66
  %337 = load ptr, ptr %33, align 8, !tbaa !5
  %338 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %337, i32 0, i32 11
  %339 = load i64, ptr %26, align 8, !tbaa !9
  %340 = load ptr, ptr %33, align 8, !tbaa !5
  %341 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %340, i32 0, i32 12
  %342 = load ptr, ptr %33, align 8, !tbaa !5
  %343 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %342, i32 0, i32 13
  %344 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl24scaleshiftmixedlcinplaceEPKNS_9ae_vectorES2_lPNS_12sparsematrixElPNS_9ae_matrixElPS0_S7_PNS_8ae_stateE(ptr noundef %331, ptr noundef %333, i64 noundef %334, ptr noundef %336, i64 noundef 0, ptr noundef %338, i64 noundef %339, ptr noundef %341, ptr noundef %343, ptr noundef %344)
  %345 = load ptr, ptr %33, align 8, !tbaa !5
  %346 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %345, i32 0, i32 11
  %347 = load i64, ptr %26, align 8, !tbaa !9
  %348 = load ptr, ptr %33, align 8, !tbaa !5
  %349 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %348, i32 0, i32 12
  %350 = load ptr, ptr %33, align 8, !tbaa !5
  %351 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %350, i32 0, i32 13
  %352 = load i64, ptr %21, align 8, !tbaa !9
  %353 = load ptr, ptr %33, align 8, !tbaa !5
  %354 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %353, i32 0, i32 20
  %355 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl23normalizedenselcinplaceEPNS_9ae_matrixElPNS_9ae_vectorES3_lbS3_bPNS_8ae_stateE(ptr noundef %346, i64 noundef %347, ptr noundef %349, ptr noundef %351, i64 noundef %352, i1 noundef zeroext true, ptr noundef %354, i1 noundef zeroext true, ptr noundef %355)
  %356 = load i64, ptr %26, align 8, !tbaa !9
  %357 = load ptr, ptr %33, align 8, !tbaa !5
  %358 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %357, i32 0, i32 14
  %359 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl7ballocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %356, ptr noundef %358, ptr noundef %359)
  %360 = load i64, ptr %26, align 8, !tbaa !9
  %361 = load ptr, ptr %33, align 8, !tbaa !5
  %362 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %361, i32 0, i32 15
  %363 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl7ballocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %360, ptr noundef %362, ptr noundef %363)
  store i64 0, ptr %35, align 8, !tbaa !9
  br label %364

364:                                              ; preds = %402, %310
  %365 = load i64, ptr %35, align 8, !tbaa !9
  %366 = load i64, ptr %26, align 8, !tbaa !9
  %367 = sub nsw i64 %366, 1
  %368 = icmp sle i64 %365, %367
  br i1 %368, label %369, label %405

369:                                              ; preds = %364
  %370 = load ptr, ptr %33, align 8, !tbaa !5
  %371 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %370, i32 0, i32 12
  %372 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %371, i32 0, i32 4
  %373 = load ptr, ptr %372, align 8, !tbaa !48
  %374 = load i64, ptr %35, align 8, !tbaa !9
  %375 = getelementptr inbounds double, ptr %373, i64 %374
  %376 = load double, ptr %375, align 8, !tbaa !31
  %377 = load ptr, ptr %34, align 8, !tbaa !5
  %378 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %376, ptr noundef %377)
  %379 = load ptr, ptr %33, align 8, !tbaa !5
  %380 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %379, i32 0, i32 14
  %381 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %380, i32 0, i32 4
  %382 = load ptr, ptr %381, align 8, !tbaa !48
  %383 = load i64, ptr %35, align 8, !tbaa !9
  %384 = getelementptr inbounds i8, ptr %382, i64 %383
  %385 = zext i1 %378 to i8
  store i8 %385, ptr %384, align 1, !tbaa !49
  %386 = load ptr, ptr %33, align 8, !tbaa !5
  %387 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %386, i32 0, i32 13
  %388 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %387, i32 0, i32 4
  %389 = load ptr, ptr %388, align 8, !tbaa !48
  %390 = load i64, ptr %35, align 8, !tbaa !9
  %391 = getelementptr inbounds double, ptr %389, i64 %390
  %392 = load double, ptr %391, align 8, !tbaa !31
  %393 = load ptr, ptr %34, align 8, !tbaa !5
  %394 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %392, ptr noundef %393)
  %395 = load ptr, ptr %33, align 8, !tbaa !5
  %396 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %395, i32 0, i32 15
  %397 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %396, i32 0, i32 4
  %398 = load ptr, ptr %397, align 8, !tbaa !48
  %399 = load i64, ptr %35, align 8, !tbaa !9
  %400 = getelementptr inbounds i8, ptr %398, i64 %399
  %401 = zext i1 %394 to i8
  store i8 %401, ptr %400, align 1, !tbaa !49
  br label %402

402:                                              ; preds = %369
  %403 = load i64, ptr %35, align 8, !tbaa !9
  %404 = add nsw i64 %403, 1
  store i64 %404, ptr %35, align 8, !tbaa !9
  br label %364, !llvm.loop !54

405:                                              ; preds = %364
  br label %406

406:                                              ; preds = %405, %307
  %407 = load i64, ptr %29, align 8, !tbaa !9
  %408 = icmp sgt i64 %407, 0
  br i1 %408, label %409, label %470

409:                                              ; preds = %406
  %410 = load i64, ptr %29, align 8, !tbaa !9
  %411 = load ptr, ptr %27, align 8, !tbaa !5
  %412 = load ptr, ptr %33, align 8, !tbaa !5
  %413 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %412, i32 0, i32 16
  %414 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %410, ptr noundef %411, ptr noundef %413, ptr noundef %414)
  %415 = load i64, ptr %29, align 8, !tbaa !9
  %416 = load ptr, ptr %28, align 8, !tbaa !5
  %417 = load ptr, ptr %33, align 8, !tbaa !5
  %418 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %417, i32 0, i32 17
  %419 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %415, ptr noundef %416, ptr noundef %418, ptr noundef %419)
  %420 = load i64, ptr %29, align 8, !tbaa !9
  %421 = load ptr, ptr %33, align 8, !tbaa !5
  %422 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %421, i32 0, i32 18
  %423 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl7ballocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %420, ptr noundef %422, ptr noundef %423)
  %424 = load i64, ptr %29, align 8, !tbaa !9
  %425 = load ptr, ptr %33, align 8, !tbaa !5
  %426 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %425, i32 0, i32 19
  %427 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN11alglib_impl7ballocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %424, ptr noundef %426, ptr noundef %427)
  store i64 0, ptr %35, align 8, !tbaa !9
  br label %428

428:                                              ; preds = %466, %409
  %429 = load i64, ptr %35, align 8, !tbaa !9
  %430 = load i64, ptr %29, align 8, !tbaa !9
  %431 = sub nsw i64 %430, 1
  %432 = icmp sle i64 %429, %431
  br i1 %432, label %433, label %469

433:                                              ; preds = %428
  %434 = load ptr, ptr %33, align 8, !tbaa !5
  %435 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %434, i32 0, i32 16
  %436 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %435, i32 0, i32 4
  %437 = load ptr, ptr %436, align 8, !tbaa !48
  %438 = load i64, ptr %35, align 8, !tbaa !9
  %439 = getelementptr inbounds double, ptr %437, i64 %438
  %440 = load double, ptr %439, align 8, !tbaa !31
  %441 = load ptr, ptr %34, align 8, !tbaa !5
  %442 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %440, ptr noundef %441)
  %443 = load ptr, ptr %33, align 8, !tbaa !5
  %444 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %443, i32 0, i32 18
  %445 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %444, i32 0, i32 4
  %446 = load ptr, ptr %445, align 8, !tbaa !48
  %447 = load i64, ptr %35, align 8, !tbaa !9
  %448 = getelementptr inbounds i8, ptr %446, i64 %447
  %449 = zext i1 %442 to i8
  store i8 %449, ptr %448, align 1, !tbaa !49
  %450 = load ptr, ptr %33, align 8, !tbaa !5
  %451 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %450, i32 0, i32 17
  %452 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %451, i32 0, i32 4
  %453 = load ptr, ptr %452, align 8, !tbaa !48
  %454 = load i64, ptr %35, align 8, !tbaa !9
  %455 = getelementptr inbounds double, ptr %453, i64 %454
  %456 = load double, ptr %455, align 8, !tbaa !31
  %457 = load ptr, ptr %34, align 8, !tbaa !5
  %458 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %456, ptr noundef %457)
  %459 = load ptr, ptr %33, align 8, !tbaa !5
  %460 = getelementptr inbounds %"struct.alglib_impl::gdemostate", ptr %459, i32 0, i32 19
  %461 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %460, i32 0, i32 4
  %462 = load ptr, ptr %461, align 8, !tbaa !48
  %463 = load i64, ptr %35, align 8, !tbaa !9
  %464 = getelementptr inbounds i8, ptr %462, i64 %463
  %465 = zext i1 %458 to i8
  store i8 %465, ptr %464, align 1, !tbaa !49
  br label %466

466:                                              ; preds = %433
  %467 = load i64, ptr %35, align 8, !tbaa !9
  %468 = add nsw i64 %467, 1
  store i64 %468, ptr %35, align 8, !tbaa !9
  br label %428, !llvm.loop !55

469:                                              ; preds = %428
  br label %470

470:                                              ; preds = %469, %406
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  ret void
}

declare noundef i64 @_ZN11alglib_impl9coalesceiEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef, ptr noundef) #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl10gdemostateE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !14, i64 96, !13, i64 104, !13, i64 168, !13, i64 232, !13, i64 296, !13, i64 360, !16, i64 424, !13, i64 504, !13, i64 568, !13, i64 632, !13, i64 696, !13, i64 760, !13, i64 824, !13, i64 888, !13, i64 952, !13, i64 1016, !10, i64 1080, !13, i64 1088, !10, i64 1152, !17, i64 1160, !17, i64 1168, !10, i64 1176, !10, i64 1184, !17, i64 1192, !17, i64 1200, !10, i64 1208, !17, i64 1216, !17, i64 1224, !17, i64 1232, !17, i64 1240, !14, i64 1248, !10, i64 1256, !17, i64 1264, !17, i64 1272, !14, i64 1280, !17, i64 1288, !17, i64 1296, !17, i64 1304, !10, i64 1312, !13, i64 1320, !17, i64 1384, !10, i64 1392, !13, i64 1400, !13, i64 1464, !18, i64 1528, !20, i64 1792, !21, i64 1816, !21, i64 2208, !16, i64 2600, !10, i64 2680, !10, i64 2688, !10, i64 2696, !16, i64 2704, !13, i64 2784, !10, i64 2848, !10, i64 2856, !17, i64 2864, !10, i64 2872, !17, i64 2880, !10, i64 2888, !13, i64 2896, !22, i64 2960, !13, i64 3328, !13, i64 3392, !13, i64 3456, !13, i64 3520}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !14, i64 16, !15, i64 24, !7, i64 56}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !15, i64 40, !7, i64 72}
!17 = !{!"double", !7, i64 0}
!18 = !{!"_ZTSN11alglib_impl10rcommstateE", !19, i64 0, !13, i64 8, !13, i64 72, !13, i64 136, !13, i64 200}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSN11alglib_impl10hqrndstateE", !10, i64 0, !10, i64 8, !10, i64 16}
!21 = !{!"_ZTSN11alglib_impl15gdemopopulationE", !10, i64 0, !16, i64 8, !16, i64 88, !16, i64 168, !16, i64 248, !13, i64 328}
!22 = !{!"_ZTSN11alglib_impl12sparsematrixE", !13, i64 0, !13, i64 64, !13, i64 128, !13, i64 192, !13, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!23 = !{!12, !10, i64 8}
!24 = !{!12, !10, i64 16}
!25 = !{!12, !10, i64 24}
!26 = !{!12, !10, i64 1176}
!27 = !{!12, !10, i64 1184}
!28 = !{!12, !17, i64 1192}
!29 = !{!12, !17, i64 1200}
!30 = !{!12, !10, i64 1208}
!31 = !{!17, !17, i64 0}
!32 = !{!12, !17, i64 1216}
!33 = !{!12, !17, i64 1224}
!34 = !{!12, !17, i64 1232}
!35 = !{!12, !17, i64 1240}
!36 = !{!12, !10, i64 2680}
!37 = !{!12, !10, i64 2688}
!38 = !{!12, !14, i64 1248}
!39 = !{!12, !14, i64 96}
!40 = !{!12, !14, i64 1280}
!41 = !{!12, !17, i64 1296}
!42 = !{!12, !17, i64 1304}
!43 = !{!44, !17, i64 8}
!44 = !{!"_ZTSN11alglib_impl8ae_stateE", !10, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !6, i64 32, !15, i64 40, !6, i64 72, !45, i64 80, !6, i64 88, !46, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!45 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!46 = !{!"long long", !7, i64 0}
!47 = !{!12, !19, i64 1528}
!48 = !{!7, !7, i64 0}
!49 = !{!14, !14, i64 0}
!50 = !{i8 0, i8 2}
!51 = !{}
!52 = distinct !{!52, !53}
!53 = !{!"llvm.loop.mustprogress"}
!54 = distinct !{!54, !53}
!55 = distinct !{!55, !53}


; 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.1442 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1443 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1444 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZN11alglib_implL22diffevo_defaultpenaltyE = external hidden local_unnamed_addr global double, align 8
@.str.1445 = external hidden unnamed_addr constant [64 x i8], align 1

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

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

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

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

declare void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, ptr 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_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12gdemoinitbufEPKNS_9ae_vectorES2_S2_llPKNS_9ae_matrixES2_S2_lS2_S2_llllPNS_10gdemostateEPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10, i64 noundef %11, i64 noundef %12, i64 noundef %13, i64 noundef %14, ptr noundef %15, ptr noundef %16) local_unnamed_addr #1 {
  %18 = icmp eq i64 %4, 1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.1442, ptr noundef %16)
  %19 = icmp sgt i64 %12, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.1443, ptr noundef %16)
  %20 = icmp sgt i64 %13, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.1444, ptr noundef %16)
  %21 = mul nsw i64 %3, 10
  %22 = tail call noundef i64 @_ZN11alglib_impl9coalesceiEllPNS_8ae_stateE(i64 noundef %12, i64 noundef %21, ptr noundef %16)
  %23 = tail call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %22, i64 noundef 10, ptr noundef %16)
  store i64 %3, ptr %15, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %15, i64 8
  store i64 %4, ptr %24, align 8, !tbaa !21
  %25 = getelementptr inbounds i8, ptr %15, i64 16
  store i64 %8, ptr %25, align 8, !tbaa !22
  %26 = getelementptr inbounds i8, ptr %15, i64 24
  store i64 %11, ptr %26, align 8, !tbaa !23
  %27 = getelementptr inbounds i8, ptr %15, i64 1176
  store i64 %23, ptr %27, align 8, !tbaa !24
  %28 = getelementptr inbounds i8, ptr %15, i64 1184
  store i64 %13, ptr %28, align 8, !tbaa !25
  %29 = getelementptr inbounds i8, ptr %15, i64 1192
  store <2 x double> <double 9.000000e-01, double 5.000000e-01>, ptr %29, align 8, !tbaa !26
  %30 = getelementptr inbounds i8, ptr %15, i64 1208
  store i64 0, ptr %30, align 8, !tbaa !27
  %31 = load double, ptr @_ZN11alglib_implL22diffevo_defaultpenaltyE, align 8, !tbaa !26
  %32 = getelementptr inbounds i8, ptr %15, i64 1216
  store double %31, ptr %32, align 8, !tbaa !28
  %33 = getelementptr inbounds i8, ptr %15, i64 1224
  store double %31, ptr %33, align 8, !tbaa !29
  %34 = getelementptr inbounds i8, ptr %15, i64 1232
  store <2 x double> <double 0.000000e+00, double 1.000000e+00>, ptr %34, align 8, !tbaa !26
  %35 = getelementptr inbounds i8, ptr %15, i64 2680
  store i64 0, ptr %35, align 8, !tbaa !30
  %36 = shl nsw i64 %23, 1
  %37 = tail call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %36, i64 noundef 200, ptr noundef %16)
  %38 = getelementptr inbounds i8, ptr %15, i64 2688
  store i64 %37, ptr %38, align 8, !tbaa !31
  %39 = getelementptr inbounds i8, ptr %15, i64 1248
  store i8 0, ptr %39, align 8, !tbaa !32
  %40 = getelementptr inbounds i8, ptr %15, i64 96
  store i8 0, ptr %40, align 8, !tbaa !33
  %41 = getelementptr inbounds i8, ptr %15, i64 1280
  store i8 0, ptr %41, align 8, !tbaa !34
  %42 = getelementptr inbounds i8, ptr %15, i64 1296
  %43 = icmp slt i64 %14, 1
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %42, i8 0, i64 16, i1 false)
  br i1 %43, label %44, label %46

44:                                               ; preds = %17
  %45 = tail call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 30000, ptr noundef %16)
  br label %46

46:                                               ; preds = %44, %17
  %.0197 = phi i64 [ %45, %44 ], [ %14, %17 ]
  %47 = add nsw i64 %.0197, 1172
  %48 = getelementptr inbounds i8, ptr %15, i64 1792
  tail call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef %.0197, i64 noundef %47, ptr noundef nonnull %48, ptr noundef %16)
  %49 = getelementptr inbounds i8, ptr %15, i64 2704
  tail call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %4, i64 noundef %3, double noundef 0.000000e+00, ptr noundef nonnull %49, ptr noundef %16)
  %50 = getelementptr inbounds i8, ptr %16, i64 8
  %51 = load double, ptr %50, align 8, !tbaa !35
  %52 = getelementptr inbounds i8, ptr %15, i64 2784
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %4, double noundef %51, ptr noundef nonnull %52, ptr noundef %16)
  tail call void @_ZN11alglib_impl15gdemosetprofileEPNS_10gdemostateElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef 0, ptr noundef %16)
  %53 = getelementptr inbounds i8, ptr %15, i64 1528
  %54 = getelementptr inbounds i8, ptr %15, i64 1536
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %54, i64 noundef 11, ptr noundef %16)
  %55 = getelementptr inbounds i8, ptr %15, i64 1600
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %55, i64 noundef 3, ptr noundef %16)
  %56 = getelementptr inbounds i8, ptr %15, i64 1664
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %56, i64 noundef 4, ptr noundef %16)
  store i32 -1, ptr %53, align 8, !tbaa !39
  %57 = getelementptr inbounds i8, ptr %15, i64 32
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %3, ptr noundef nonnull %57, ptr noundef %16)
  %58 = getelementptr inbounds i8, ptr %15, i64 168
  tail call void @_ZN11alglib_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %58, i64 noundef %3, ptr noundef %16)
  %59 = getelementptr inbounds i8, ptr %15, i64 232
  tail call void @_ZN11alglib_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %59, i64 noundef %3, ptr noundef %16)
  %60 = getelementptr inbounds i8, ptr %15, i64 296
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %3, double noundef -1.000000e+300, ptr noundef nonnull %60, ptr noundef %16)
  %61 = getelementptr inbounds i8, ptr %15, i64 360
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %3, double noundef 1.000000e+300, ptr noundef nonnull %61, ptr noundef %16)
  %.not.not204 = icmp sgt i64 %3, 0
  br i1 %.not.not204, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %46
  %62 = getelementptr inbounds i8, ptr %0, i64 56
  %63 = getelementptr inbounds i8, ptr %15, i64 224
  %64 = getelementptr inbounds i8, ptr %1, i64 56
  %65 = getelementptr inbounds i8, ptr %15, i64 288
  %66 = getelementptr inbounds i8, ptr %2, i64 56
  %67 = getelementptr inbounds i8, ptr %15, i64 352
  %68 = getelementptr inbounds i8, ptr %15, i64 416
  %69 = getelementptr inbounds i8, ptr %15, i64 88
  br label %70

70:                                               ; preds = %.lr.ph, %132
  %.0205 = phi i64 [ 0, %.lr.ph ], [ %138, %132 ]
  %71 = load ptr, ptr %62, align 8, !tbaa !40
  %72 = getelementptr inbounds double, ptr %71, i64 %.0205
  %73 = load double, ptr %72, align 8, !tbaa !26
  %74 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %73, ptr noundef %16)
  %75 = load ptr, ptr %63, align 8, !tbaa !40
  %76 = getelementptr inbounds i8, ptr %75, i64 %.0205
  %77 = zext i1 %74 to i8
  store i8 %77, ptr %76, align 1, !tbaa !41
  %78 = load ptr, ptr %64, align 8, !tbaa !40
  %79 = getelementptr inbounds double, ptr %78, i64 %.0205
  %80 = load double, ptr %79, align 8, !tbaa !26
  %81 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %80, ptr noundef %16)
  %82 = load ptr, ptr %65, align 8, !tbaa !40
  %83 = getelementptr inbounds i8, ptr %82, i64 %.0205
  %84 = zext i1 %81 to i8
  store i8 %84, ptr %83, align 1, !tbaa !41
  %85 = load ptr, ptr %63, align 8, !tbaa !40
  %86 = getelementptr inbounds i8, ptr %85, i64 %.0205
  %87 = load i8, ptr %86, align 1, !tbaa !41, !range !42, !noundef !43
  %88 = trunc nuw i8 %87 to i1
  br i1 %88, label %89, label %99

89:                                               ; preds = %70
  %90 = load ptr, ptr %62, align 8, !tbaa !40
  %91 = getelementptr inbounds double, ptr %90, i64 %.0205
  %92 = load double, ptr %91, align 8, !tbaa !26
  %93 = load ptr, ptr %66, align 8, !tbaa !40
  %94 = getelementptr inbounds double, ptr %93, i64 %.0205
  %95 = load double, ptr %94, align 8, !tbaa !26
  %96 = fdiv double %92, %95
  %97 = load ptr, ptr %67, align 8, !tbaa !40
  %98 = getelementptr inbounds double, ptr %97, i64 %.0205
  store double %96, ptr %98, align 8, !tbaa !26
  br label %99

99:                                               ; preds = %89, %70
  %100 = load ptr, ptr %65, align 8, !tbaa !40
  %101 = getelementptr inbounds i8, ptr %100, i64 %.0205
  %102 = load i8, ptr %101, align 1, !tbaa !41, !range !42, !noundef !43
  %103 = trunc nuw i8 %102 to i1
  br i1 %103, label %104, label %114

104:                                              ; preds = %99
  %105 = load ptr, ptr %64, align 8, !tbaa !40
  %106 = getelementptr inbounds double, ptr %105, i64 %.0205
  %107 = load double, ptr %106, align 8, !tbaa !26
  %108 = load ptr, ptr %66, align 8, !tbaa !40
  %109 = getelementptr inbounds double, ptr %108, i64 %.0205
  %110 = load double, ptr %109, align 8, !tbaa !26
  %111 = fdiv double %107, %110
  %112 = load ptr, ptr %68, align 8, !tbaa !40
  %113 = getelementptr inbounds double, ptr %112, i64 %.0205
  store double %111, ptr %113, align 8, !tbaa !26
  br label %114

114:                                              ; preds = %104, %99
  %115 = load ptr, ptr %63, align 8, !tbaa !40
  %116 = getelementptr inbounds i8, ptr %115, i64 %.0205
  %117 = load i8, ptr %116, align 1, !tbaa !41, !range !42, !noundef !43
  %118 = trunc nuw i8 %117 to i1
  br i1 %118, label %119, label %132

119:                                              ; preds = %114
  %120 = load ptr, ptr %65, align 8, !tbaa !40
  %121 = getelementptr inbounds i8, ptr %120, i64 %.0205
  %122 = load i8, ptr %121, align 1, !tbaa !41, !range !42, !noundef !43
  %123 = trunc nuw i8 %122 to i1
  br i1 %123, label %124, label %132

124:                                              ; preds = %119
  %125 = load ptr, ptr %62, align 8, !tbaa !40
  %126 = getelementptr inbounds double, ptr %125, i64 %.0205
  %127 = load double, ptr %126, align 8, !tbaa !26
  %128 = load ptr, ptr %64, align 8, !tbaa !40
  %129 = getelementptr inbounds double, ptr %128, i64 %.0205
  %130 = load double, ptr %129, align 8, !tbaa !26
  %131 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %127, double noundef %130)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %131, ptr noundef nonnull @.str.1445, ptr noundef %16)
  br label %132

132:                                              ; preds = %124, %119, %114
  %133 = load ptr, ptr %66, align 8, !tbaa !40
  %134 = getelementptr inbounds double, ptr %133, i64 %.0205
  %135 = load double, ptr %134, align 8, !tbaa !26
  %136 = load ptr, ptr %69, align 8, !tbaa !40
  %137 = getelementptr inbounds double, ptr %136, i64 %.0205
  store double %135, ptr %137, align 8, !tbaa !26
  %138 = add nuw nsw i64 %.0205, 1
  %exitcond.not = icmp eq i64 %138, %3
  br i1 %exitcond.not, label %._crit_edge, label %70, !llvm.loop !44

._crit_edge:                                      ; preds = %132, %46
  %139 = icmp sgt i64 %8, 0
  br i1 %139, label %140, label %.loopexit203

140:                                              ; preds = %._crit_edge
  %141 = getelementptr inbounds i8, ptr %15, i64 2896
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %3, double noundef 0.000000e+00, ptr noundef nonnull %141, ptr noundef %16)
  %142 = getelementptr inbounds i8, ptr %15, i64 424
  tail call void @_ZN11alglib_impl11rcopyallocmEllPKNS_9ae_matrixEPS0_PNS_8ae_stateE(i64 noundef %8, i64 noundef %3, ptr noundef %5, ptr noundef nonnull %142, ptr noundef %16)
  %143 = getelementptr inbounds i8, ptr %15, i64 504
  tail call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %8, ptr noundef %6, ptr noundef nonnull %143, ptr noundef %16)
  %144 = getelementptr inbounds i8, ptr %15, i64 568
  tail call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %8, ptr noundef %7, ptr noundef nonnull %144, ptr noundef %16)
  %145 = getelementptr inbounds i8, ptr %15, i64 2960
  tail call void @_ZN11alglib_impl24scaleshiftmixedlcinplaceEPKNS_9ae_vectorES2_lPNS_12sparsematrixElPNS_9ae_matrixElPS0_S7_PNS_8ae_stateE(ptr noundef %2, ptr noundef nonnull %141, i64 noundef %3, ptr noundef nonnull %145, i64 noundef 0, ptr noundef nonnull %142, i64 noundef %8, ptr noundef nonnull %143, ptr noundef nonnull %144, ptr noundef %16)
  %146 = getelementptr inbounds i8, ptr %15, i64 1016
  tail call void @_ZN11alglib_impl23normalizedenselcinplaceEPNS_9ae_matrixElPNS_9ae_vectorES3_lbS3_bPNS_8ae_stateE(ptr noundef nonnull %142, i64 noundef %8, ptr noundef nonnull %143, ptr noundef nonnull %144, i64 noundef %3, i1 noundef zeroext true, ptr noundef nonnull %146, i1 noundef zeroext true, ptr noundef %16)
  %147 = getelementptr inbounds i8, ptr %15, i64 632
  tail call void @_ZN11alglib_impl7ballocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %8, ptr noundef nonnull %147, ptr noundef %16)
  %148 = getelementptr inbounds i8, ptr %15, i64 696
  tail call void @_ZN11alglib_impl7ballocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %8, ptr noundef nonnull %148, ptr noundef %16)
  %149 = getelementptr inbounds i8, ptr %15, i64 560
  %150 = getelementptr inbounds i8, ptr %15, i64 688
  %151 = getelementptr inbounds i8, ptr %15, i64 624
  %152 = getelementptr inbounds i8, ptr %15, i64 752
  br label %153

153:                                              ; preds = %140, %153
  %.1206 = phi i64 [ 0, %140 ], [ %168, %153 ]
  %154 = load ptr, ptr %149, align 8, !tbaa !40
  %155 = getelementptr inbounds double, ptr %154, i64 %.1206
  %156 = load double, ptr %155, align 8, !tbaa !26
  %157 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %156, ptr noundef %16)
  %158 = load ptr, ptr %150, align 8, !tbaa !40
  %159 = getelementptr inbounds i8, ptr %158, i64 %.1206
  %160 = zext i1 %157 to i8
  store i8 %160, ptr %159, align 1, !tbaa !41
  %161 = load ptr, ptr %151, align 8, !tbaa !40
  %162 = getelementptr inbounds double, ptr %161, i64 %.1206
  %163 = load double, ptr %162, align 8, !tbaa !26
  %164 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %163, ptr noundef %16)
  %165 = load ptr, ptr %152, align 8, !tbaa !40
  %166 = getelementptr inbounds i8, ptr %165, i64 %.1206
  %167 = zext i1 %164 to i8
  store i8 %167, ptr %166, align 1, !tbaa !41
  %168 = add nuw nsw i64 %.1206, 1
  %exitcond208.not = icmp eq i64 %168, %8
  br i1 %exitcond208.not, label %.loopexit203, label %153, !llvm.loop !46

.loopexit203:                                     ; preds = %153, %._crit_edge
  %169 = icmp sgt i64 %11, 0
  br i1 %169, label %170, label %.loopexit

170:                                              ; preds = %.loopexit203
  %171 = getelementptr inbounds i8, ptr %15, i64 760
  tail call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %11, ptr noundef %9, ptr noundef nonnull %171, ptr noundef %16)
  %172 = getelementptr inbounds i8, ptr %15, i64 824
  tail call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %11, ptr noundef %10, ptr noundef nonnull %172, ptr noundef %16)
  %173 = getelementptr inbounds i8, ptr %15, i64 888
  tail call void @_ZN11alglib_impl7ballocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %11, ptr noundef nonnull %173, ptr noundef %16)
  %174 = getelementptr inbounds i8, ptr %15, i64 952
  tail call void @_ZN11alglib_impl7ballocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %11, ptr noundef nonnull %174, ptr noundef %16)
  %175 = getelementptr inbounds i8, ptr %15, i64 816
  %176 = getelementptr inbounds i8, ptr %15, i64 944
  %177 = getelementptr inbounds i8, ptr %15, i64 880
  %178 = getelementptr inbounds i8, ptr %15, i64 1008
  br label %179

179:                                              ; preds = %170, %179
  %.2207 = phi i64 [ 0, %170 ], [ %194, %179 ]
  %180 = load ptr, ptr %175, align 8, !tbaa !40
  %181 = getelementptr inbounds double, ptr %180, i64 %.2207
  %182 = load double, ptr %181, align 8, !tbaa !26
  %183 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %182, ptr noundef %16)
  %184 = load ptr, ptr %176, align 8, !tbaa !40
  %185 = getelementptr inbounds i8, ptr %184, i64 %.2207
  %186 = zext i1 %183 to i8
  store i8 %186, ptr %185, align 1, !tbaa !41
  %187 = load ptr, ptr %177, align 8, !tbaa !40
  %188 = getelementptr inbounds double, ptr %187, i64 %.2207
  %189 = load double, ptr %188, align 8, !tbaa !26
  %190 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %189, ptr noundef %16)
  %191 = load ptr, ptr %178, align 8, !tbaa !40
  %192 = getelementptr inbounds i8, ptr %191, i64 %.2207
  %193 = zext i1 %190 to i8
  store i8 %193, ptr %192, align 1, !tbaa !41
  %194 = add nuw nsw i64 %.2207, 1
  %exitcond209.not = icmp eq i64 %194, %11
  br i1 %exitcond209.not, label %.loopexit, label %179, !llvm.loop !47

.loopexit:                                        ; preds = %179, %.loopexit203
  ret void
}

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

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

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { 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, !7, i64 0}
!6 = !{!"_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, !16, i64 1528, !18, i64 1792, !19, i64 1816, !19, 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, !20, i64 2960, !10, i64 3328, !10, i64 3392, !10, i64 3456, !10, i64 3520}
!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_impl10rcommstateE", !17, i64 0, !10, i64 8, !10, i64 72, !10, i64 136, !10, i64 200}
!17 = !{!"int", !8, i64 0}
!18 = !{!"_ZTSN11alglib_impl10hqrndstateE", !7, i64 0, !7, i64 8, !7, i64 16}
!19 = !{!"_ZTSN11alglib_impl15gdemopopulationE", !7, i64 0, !14, i64 8, !14, i64 88, !14, i64 168, !14, i64 248, !10, i64 328}
!20 = !{!"_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}
!21 = !{!6, !7, i64 8}
!22 = !{!6, !7, i64 16}
!23 = !{!6, !7, i64 24}
!24 = !{!6, !7, i64 1176}
!25 = !{!6, !7, i64 1184}
!26 = !{!15, !15, i64 0}
!27 = !{!6, !7, i64 1208}
!28 = !{!6, !15, i64 1216}
!29 = !{!6, !15, i64 1224}
!30 = !{!6, !7, i64 2680}
!31 = !{!6, !7, i64 2688}
!32 = !{!6, !11, i64 1248}
!33 = !{!6, !11, i64 96}
!34 = !{!6, !11, i64 1280}
!35 = !{!36, !15, i64 8}
!36 = !{!"_ZTSN11alglib_impl8ae_stateE", !7, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !13, i64 32, !12, i64 40, !13, i64 72, !37, i64 80, !13, i64 88, !38, i64 96, !13, i64 104, !13, i64 112, !13, i64 120}
!37 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !8, i64 0}
!38 = !{!"long long", !8, i64 0}
!39 = !{!6, !17, i64 1528}
!40 = !{!8, !8, i64 0}
!41 = !{!11, !11, i64 0}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = distinct !{!46, !45}
!47 = distinct !{!47, !45}


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