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

; 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::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::minlmstate" = type { i64, i64, double, double, i64, i8, double, i64, i8, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, i8, i8, i8, i64, i8, i8, i8, %"struct.alglib_impl::ae_vector", double, %"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_matrix", i64, i64, double, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, i8, %"struct.alglib_impl::smoothnessmonitor", double, %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64, i64, %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::minlbfgsstate", %"struct.alglib_impl::minlbfgsreport", %"struct.alglib_impl::minqpstate", %"struct.alglib_impl::minqpreport", %"struct.alglib_impl::minlmstepfinder" }
%"struct.alglib_impl::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", i64, %"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, i8, i8, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"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::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::minlbfgsstate" = type { i64, i64, double, double, double, i64, i8, double, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", i64, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::precbuflbfgs", %"struct.alglib_impl::precbuflowrank", double, double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, double, %"struct.alglib_impl::rcommstate", i64, i64, i64, %"struct.alglib_impl::linminstate", i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::precbuflbfgs" = type { %"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::precbuflowrank" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::linminstate" = type { i8, i8, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"struct.alglib_impl::minlbfgsreport" = type { i64, i64, i64 }
%"struct.alglib_impl::minqpstate" = type { i64, %"struct.alglib_impl::qqpsettings", %"struct.alglib_impl::qpbleicsettings", %"struct.alglib_impl::qpdenseaulsettings", i8, i64, i64, %"struct.alglib_impl::convexquadraticmodel", %"struct.alglib_impl::sparsematrix", i8, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", 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", i8, %"struct.alglib_impl::ae_matrix", i64, i64, %"struct.alglib_impl::sparsematrix", i64, i64, %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::qpbleicbuffers", %"struct.alglib_impl::qqpbuffers", %"struct.alglib_impl::qpdenseaulbuffers" }
%"struct.alglib_impl::qqpsettings" = type { double, double, double, i64, i8, i8, i64, i64, i64, i64 }
%"struct.alglib_impl::qpbleicsettings" = type { double, double, double, i64 }
%"struct.alglib_impl::qpdenseaulsettings" = type { double, i64, double }
%"struct.alglib_impl::convexquadraticmodel" = type { i64, i64, double, double, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i8, i8, i8, i8 }
%"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::qpbleicbuffers" = type { %"struct.alglib_impl::minbleicstate", %"struct.alglib_impl::minbleicreport", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64 }
%"struct.alglib_impl::minbleicstate" = type { i64, i64, double, double, double, i64, i8, i8, double, double, %"struct.alglib_impl::sactiveset", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, i8, i8, i8, %"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", double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, i64, double, double, double, %"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, double, double, double, double, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::snnlssolver", double, double, double, double, double, double, double, double, double, i64, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::linminstate", double, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sactiveset" = type { i64, i64, %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::ae_vector", i64, i64, i8, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::snnlssolver", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::snnlssolver" = type { i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::minbleicreport" = type { i64, i64, i64, i64, double, double, double, double, i64, i64, i64, i64 }
%"struct.alglib_impl::qqpbuffers" = type { i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", i8, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sactiveset", %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::ae_matrix", %"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_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsebuffers", i64, i64, i64, i64 }
%"struct.alglib_impl::sparsebuffers" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix" }
%"struct.alglib_impl::qpdenseaulbuffers" = type { %"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_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::qqpsettings", %"struct.alglib_impl::qqpbuffers", %"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::convexquadraticmodel", %"struct.alglib_impl::sparsematrix", %"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", i64, i64, i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::minqpreport" = type { i64, i64, i64, i64, i64 }
%"struct.alglib_impl::minlmstepfinder" = type { i64, i64, double, i64, i64, i8, double, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::minqpstate", %"struct.alglib_impl::minqpreport", %"struct.alglib_impl::sparsematrix" }
%"struct.alglib_impl::minlmreport" = type { i64, i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::lsfitreport" = type { double, i64, i64, double, double, double, double, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double }
%"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.457 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.458 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.459 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.460 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.461 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.462 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.463 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.464 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.465 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.466 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.467 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.468 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.469 = external hidden unnamed_addr constant [29 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; 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) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14logisticfit45xEPNS_9ae_vectorES1_lddbddlPdS2_S2_S2_S2_PNS_11lsfitreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, double noundef %3, double noundef %4, i1 noundef zeroext %5, double noundef %6, double noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15) #3 {
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i8, align 1
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca i64, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca %"struct.alglib_impl::ae_frame", align 8
  %34 = alloca %"struct.alglib_impl::ae_vector", align 8
  %35 = alloca %"struct.alglib_impl::ae_vector", align 8
  %36 = alloca i64, align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca double, align 8
  %40 = alloca %"struct.alglib_impl::ae_vector", align 8
  %41 = alloca %"struct.alglib_impl::ae_vector", align 8
  %42 = alloca %"struct.alglib_impl::ae_vector", align 8
  %43 = alloca %"struct.alglib_impl::ae_vector", align 8
  %44 = alloca %"struct.alglib_impl::ae_vector", align 8
  %45 = alloca %"struct.alglib_impl::ae_vector", align 8
  %46 = alloca %"struct.alglib_impl::ae_vector", align 8
  %47 = alloca %"struct.alglib_impl::ae_vector", align 8
  %48 = alloca %"struct.alglib_impl::ae_vector", align 8
  %49 = alloca %"struct.alglib_impl::ae_vector", align 8
  %50 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %51 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %52 = alloca %"struct.alglib_impl::minlmstate", align 8
  %53 = alloca %"struct.alglib_impl::minlmreport", align 8
  %54 = alloca i64, align 8
  %55 = alloca double, align 8
  %56 = alloca double, align 8
  %57 = alloca double, align 8
  %58 = alloca double, align 8
  %59 = alloca %"struct.alglib_impl::ae_vector", align 8
  %60 = alloca %"struct.alglib_impl::ae_vector", align 8
  %61 = alloca double, align 8
  %62 = alloca double, align 8
  %63 = alloca i32, align 4
  store ptr %0, ptr %17, align 8, !tbaa !5
  store ptr %1, ptr %18, align 8, !tbaa !5
  store i64 %2, ptr %19, align 8, !tbaa !9
  store double %3, ptr %20, align 8, !tbaa !11
  store double %4, ptr %21, align 8, !tbaa !11
  %64 = zext i1 %5 to i8
  store i8 %64, ptr %22, align 1, !tbaa !13
  store double %6, ptr %23, align 8, !tbaa !11
  store double %7, ptr %24, align 8, !tbaa !11
  store i64 %8, ptr %25, align 8, !tbaa !9
  store ptr %9, ptr %26, align 8, !tbaa !5
  store ptr %10, ptr %27, align 8, !tbaa !5
  store ptr %11, ptr %28, align 8, !tbaa !5
  store ptr %12, ptr %29, align 8, !tbaa !5
  store ptr %13, ptr %30, align 8, !tbaa !5
  store ptr %14, ptr %31, align 8, !tbaa !5
  store ptr %15, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %40) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %41) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %42) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %43) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %44) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %45) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %46) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %47) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %48) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %49) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %50) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %51) #5
  call void @llvm.lifetime.start.p0(i64 85408, ptr %52) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr %53) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %59) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %60) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #5
  %65 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %65, ptr noundef %33)
  call void @llvm.memset.p0.i64(ptr align 8 %34, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %35, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %40, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %41, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %42, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %43, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %44, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %45, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %46, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %47, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %48, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %49, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %50, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %51, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %52, i8 0, i64 85408, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %53, i8 0, i64 56, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %59, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %60, i8 0, i64 64, i1 false)
  %66 = load ptr, ptr %17, align 8, !tbaa !5
  %67 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %34, ptr noundef %66, ptr noundef %67, i1 noundef zeroext true)
  store ptr %34, ptr %17, align 8, !tbaa !5
  %68 = load ptr, ptr %18, align 8, !tbaa !5
  %69 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %35, ptr noundef %68, ptr noundef %69, i1 noundef zeroext true)
  store ptr %35, ptr %18, align 8, !tbaa !5
  %70 = load ptr, ptr %26, align 8, !tbaa !5
  store double 0.000000e+00, ptr %70, align 8, !tbaa !11
  %71 = load ptr, ptr %27, align 8, !tbaa !5
  store double 0.000000e+00, ptr %71, align 8, !tbaa !11
  %72 = load ptr, ptr %28, align 8, !tbaa !5
  store double 0.000000e+00, ptr %72, align 8, !tbaa !11
  %73 = load ptr, ptr %29, align 8, !tbaa !5
  store double 0.000000e+00, ptr %73, align 8, !tbaa !11
  %74 = load ptr, ptr %30, align 8, !tbaa !5
  store double 0.000000e+00, ptr %74, align 8, !tbaa !11
  %75 = load ptr, ptr %31, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_lsfitreport_clearEPv(ptr noundef %75)
  %76 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %40, i64 noundef 0, i64 noundef 3, ptr noundef %76, i1 noundef zeroext true)
  %77 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %41, i64 noundef 0, i64 noundef 3, ptr noundef %77, i1 noundef zeroext true)
  %78 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %42, i64 noundef 0, i64 noundef 3, ptr noundef %78, i1 noundef zeroext true)
  %79 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %43, i64 noundef 0, i64 noundef 3, ptr noundef %79, i1 noundef zeroext true)
  %80 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %44, i64 noundef 0, i64 noundef 3, ptr noundef %80, i1 noundef zeroext true)
  %81 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %45, i64 noundef 0, i64 noundef 3, ptr noundef %81, i1 noundef zeroext true)
  %82 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %46, i64 noundef 0, i64 noundef 3, ptr noundef %82, i1 noundef zeroext true)
  %83 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %47, i64 noundef 0, i64 noundef 3, ptr noundef %83, i1 noundef zeroext true)
  %84 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %48, i64 noundef 0, i64 noundef 3, ptr noundef %84, i1 noundef zeroext true)
  %85 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %49, i64 noundef 0, i64 noundef 3, ptr noundef %85, i1 noundef zeroext true)
  %86 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %50, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %86, i1 noundef zeroext true)
  %87 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %51, ptr noundef %87, i1 noundef zeroext true)
  %88 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_minlmstate_initEPvPNS_8ae_stateEb(ptr noundef %52, ptr noundef %88, i1 noundef zeroext true)
  %89 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl17_minlmreport_initEPvPNS_8ae_stateEb(ptr noundef %53, ptr noundef %89, i1 noundef zeroext true)
  %90 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %59, i64 noundef 0, i64 noundef 3, ptr noundef %90, i1 noundef zeroext true)
  %91 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %60, i64 noundef 0, i64 noundef 3, ptr noundef %91, i1 noundef zeroext true)
  %92 = load double, ptr %24, align 8, !tbaa !11
  %93 = load ptr, ptr %32, align 8, !tbaa !5
  %94 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %92, ptr noundef %93)
  %95 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %94, ptr noundef @.str.457, ptr noundef %95)
  %96 = load double, ptr %23, align 8, !tbaa !11
  %97 = load ptr, ptr %32, align 8, !tbaa !5
  %98 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %96, ptr noundef %97)
  %99 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %98, ptr noundef @.str.458, ptr noundef %99)
  %100 = load double, ptr %20, align 8, !tbaa !11
  %101 = load ptr, ptr %32, align 8, !tbaa !5
  %102 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %100, ptr noundef %101)
  br i1 %102, label %107, label %103

103:                                              ; preds = %16
  %104 = load double, ptr %20, align 8, !tbaa !11
  %105 = load ptr, ptr %32, align 8, !tbaa !5
  %106 = call noundef zeroext i1 @_ZN11alglib_impl8ae_isnanEdPNS_8ae_stateE(double noundef %104, ptr noundef %105)
  br label %107

107:                                              ; preds = %103, %16
  %108 = phi i1 [ true, %16 ], [ %106, %103 ]
  %109 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %108, ptr noundef @.str.459, ptr noundef %109)
  %110 = load double, ptr %21, align 8, !tbaa !11
  %111 = load ptr, ptr %32, align 8, !tbaa !5
  %112 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %110, ptr noundef %111)
  br i1 %112, label %117, label %113

113:                                              ; preds = %107
  %114 = load double, ptr %21, align 8, !tbaa !11
  %115 = load ptr, ptr %32, align 8, !tbaa !5
  %116 = call noundef zeroext i1 @_ZN11alglib_impl8ae_isnanEdPNS_8ae_stateE(double noundef %114, ptr noundef %115)
  br label %117

117:                                              ; preds = %113, %107
  %118 = phi i1 [ true, %107 ], [ %116, %113 ]
  %119 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %118, ptr noundef @.str.460, ptr noundef %119)
  %120 = load double, ptr %23, align 8, !tbaa !11
  %121 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %120, double noundef 0.000000e+00)
  %122 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %121, ptr noundef @.str.461, ptr noundef %122)
  %123 = load i64, ptr %19, align 8, !tbaa !9
  %124 = icmp sgt i64 %123, 0
  %125 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %124, ptr noundef @.str.462, ptr noundef %125)
  %126 = load i64, ptr %25, align 8, !tbaa !9
  %127 = icmp sge i64 %126, 0
  %128 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %127, ptr noundef @.str.463, ptr noundef %128)
  %129 = load double, ptr %24, align 8, !tbaa !11
  %130 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %129, double noundef 0.000000e+00)
  %131 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %130, ptr noundef @.str.464, ptr noundef %131)
  %132 = load ptr, ptr %17, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %132, i32 0, i32 0
  %134 = load i64, ptr %133, align 8, !tbaa !15
  %135 = load i64, ptr %19, align 8, !tbaa !9
  %136 = icmp sge i64 %134, %135
  %137 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %136, ptr noundef @.str.465, ptr noundef %137)
  %138 = load ptr, ptr %18, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %138, i32 0, i32 0
  %140 = load i64, ptr %139, align 8, !tbaa !15
  %141 = load i64, ptr %19, align 8, !tbaa !9
  %142 = icmp sge i64 %140, %141
  %143 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %142, ptr noundef @.str.466, ptr noundef %143)
  %144 = load ptr, ptr %17, align 8, !tbaa !5
  %145 = load i64, ptr %19, align 8, !tbaa !9
  %146 = load ptr, ptr %32, align 8, !tbaa !5
  %147 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %144, i64 noundef %145, ptr noundef %146)
  %148 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %147, ptr noundef @.str.467, ptr noundef %148)
  %149 = load ptr, ptr %18, align 8, !tbaa !5
  %150 = load i64, ptr %19, align 8, !tbaa !9
  %151 = load ptr, ptr %32, align 8, !tbaa !5
  %152 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %149, i64 noundef %150, ptr noundef %151)
  %153 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %152, ptr noundef @.str.467, ptr noundef %153)
  %154 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef 2211, i64 noundef 1033044, ptr noundef %51, ptr noundef %154)
  %155 = load ptr, ptr %31, align 8, !tbaa !5
  %156 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL17lsfit_clearreportEPNS_11lsfitreportEPNS_8ae_stateE(ptr noundef %155, ptr noundef %156)
  %157 = load double, ptr %24, align 8, !tbaa !11
  %158 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %157, double noundef 0.000000e+00)
  br i1 %158, label %159, label %160

159:                                              ; preds = %117
  store double 1.000000e-10, ptr %24, align 8, !tbaa !11
  br label %160

160:                                              ; preds = %159, %117
  %161 = load i64, ptr %25, align 8, !tbaa !9
  %162 = icmp eq i64 %161, 0
  br i1 %162, label %163, label %164

163:                                              ; preds = %160
  store i64 4, ptr %25, align 8, !tbaa !9
  br label %164

164:                                              ; preds = %163, %160
  store i64 1000, ptr %54, align 8, !tbaa !9
  %165 = load ptr, ptr %17, align 8, !tbaa !5
  %166 = load ptr, ptr %18, align 8, !tbaa !5
  %167 = load i64, ptr %19, align 8, !tbaa !9
  %168 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl12tagsortfastrEPNS_9ae_vectorES1_S1_S1_lPNS_8ae_stateE(ptr noundef %165, ptr noundef %166, ptr noundef %59, ptr noundef %60, i64 noundef %167, ptr noundef %168)
  %169 = load ptr, ptr %17, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %169, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !18
  %172 = getelementptr inbounds double, ptr %171, i64 0
  %173 = load double, ptr %172, align 8, !tbaa !11
  %174 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %173, double noundef 0.000000e+00)
  %175 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %174, ptr noundef @.str.468, ptr noundef %175)
  %176 = load i64, ptr %19, align 8, !tbaa !9
  store i64 %176, ptr %38, align 8, !tbaa !9
  store i64 0, ptr %36, align 8, !tbaa !9
  br label %177

177:                                              ; preds = %193, %164
  %178 = load i64, ptr %36, align 8, !tbaa !9
  %179 = load i64, ptr %19, align 8, !tbaa !9
  %180 = sub nsw i64 %179, 1
  %181 = icmp sle i64 %178, %180
  br i1 %181, label %182, label %196

182:                                              ; preds = %177
  %183 = load ptr, ptr %17, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %183, i32 0, i32 4
  %185 = load ptr, ptr %184, align 8, !tbaa !18
  %186 = load i64, ptr %36, align 8, !tbaa !9
  %187 = getelementptr inbounds double, ptr %185, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !11
  %189 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %188, double noundef 0.000000e+00)
  br i1 %189, label %190, label %192

190:                                              ; preds = %182
  %191 = load i64, ptr %36, align 8, !tbaa !9
  store i64 %191, ptr %38, align 8, !tbaa !9
  br label %196

192:                                              ; preds = %182
  br label %193

193:                                              ; preds = %192
  %194 = load i64, ptr %36, align 8, !tbaa !9
  %195 = add nsw i64 %194, 1
  store i64 %195, ptr %36, align 8, !tbaa !9
  br label %177, !llvm.loop !19

196:                                              ; preds = %190, %177
  %197 = load ptr, ptr %31, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %197, i32 0, i32 1
  store i64 0, ptr %198, align 8, !tbaa !21
  %199 = load i64, ptr %38, align 8, !tbaa !9
  %200 = load i64, ptr %19, align 8, !tbaa !9
  %201 = icmp eq i64 %199, %200
  br i1 %201, label %202, label %265

202:                                              ; preds = %196
  store double 0.000000e+00, ptr %39, align 8, !tbaa !11
  store i64 0, ptr %36, align 8, !tbaa !9
  br label %203

203:                                              ; preds = %217, %202
  %204 = load i64, ptr %36, align 8, !tbaa !9
  %205 = load i64, ptr %19, align 8, !tbaa !9
  %206 = sub nsw i64 %205, 1
  %207 = icmp sle i64 %204, %206
  br i1 %207, label %208, label %220

208:                                              ; preds = %203
  %209 = load double, ptr %39, align 8, !tbaa !11
  %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 !18
  %213 = load i64, ptr %36, align 8, !tbaa !9
  %214 = getelementptr inbounds double, ptr %212, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !11
  %216 = fadd double %209, %215
  store double %216, ptr %39, align 8, !tbaa !11
  br label %217

217:                                              ; preds = %208
  %218 = load i64, ptr %36, align 8, !tbaa !9
  %219 = add nsw i64 %218, 1
  store i64 %219, ptr %36, align 8, !tbaa !9
  br label %203, !llvm.loop !24

220:                                              ; preds = %203
  %221 = load double, ptr %39, align 8, !tbaa !11
  %222 = load i64, ptr %19, align 8, !tbaa !9
  %223 = sitofp i64 %222 to double
  %224 = fdiv double %221, %223
  store double %224, ptr %39, align 8, !tbaa !11
  %225 = load double, ptr %20, align 8, !tbaa !11
  %226 = load ptr, ptr %32, align 8, !tbaa !5
  %227 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %225, ptr noundef %226)
  br i1 %227, label %228, label %231

228:                                              ; preds = %220
  %229 = load double, ptr %20, align 8, !tbaa !11
  %230 = load ptr, ptr %26, align 8, !tbaa !5
  store double %229, ptr %230, align 8, !tbaa !11
  br label %234

231:                                              ; preds = %220
  %232 = load double, ptr %39, align 8, !tbaa !11
  %233 = load ptr, ptr %26, align 8, !tbaa !5
  store double %232, ptr %233, align 8, !tbaa !11
  br label %234

234:                                              ; preds = %231, %228
  %235 = load ptr, ptr %27, align 8, !tbaa !5
  store double 1.000000e+00, ptr %235, align 8, !tbaa !11
  %236 = load ptr, ptr %28, align 8, !tbaa !5
  store double 1.000000e+00, ptr %236, align 8, !tbaa !11
  %237 = load double, ptr %21, align 8, !tbaa !11
  %238 = load ptr, ptr %32, align 8, !tbaa !5
  %239 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %237, ptr noundef %238)
  br i1 %239, label %240, label %243

240:                                              ; preds = %234
  %241 = load double, ptr %21, align 8, !tbaa !11
  %242 = load ptr, ptr %29, align 8, !tbaa !5
  store double %241, ptr %242, align 8, !tbaa !11
  br label %247

243:                                              ; preds = %234
  %244 = load ptr, ptr %26, align 8, !tbaa !5
  %245 = load double, ptr %244, align 8, !tbaa !11
  %246 = load ptr, ptr %29, align 8, !tbaa !5
  store double %245, ptr %246, align 8, !tbaa !11
  br label %247

247:                                              ; preds = %243, %240
  %248 = load ptr, ptr %30, align 8, !tbaa !5
  store double 1.000000e+00, ptr %248, align 8, !tbaa !11
  %249 = load ptr, ptr %17, align 8, !tbaa !5
  %250 = load ptr, ptr %18, align 8, !tbaa !5
  %251 = load i64, ptr %19, align 8, !tbaa !9
  %252 = load ptr, ptr %26, align 8, !tbaa !5
  %253 = load double, ptr %252, align 8, !tbaa !11
  %254 = load ptr, ptr %27, align 8, !tbaa !5
  %255 = load double, ptr %254, align 8, !tbaa !11
  %256 = load ptr, ptr %28, align 8, !tbaa !5
  %257 = load double, ptr %256, align 8, !tbaa !11
  %258 = load ptr, ptr %29, align 8, !tbaa !5
  %259 = load double, ptr %258, align 8, !tbaa !11
  %260 = load ptr, ptr %30, align 8, !tbaa !5
  %261 = load double, ptr %260, align 8, !tbaa !11
  %262 = load ptr, ptr %31, align 8, !tbaa !5
  %263 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfit45errorsEPNS_9ae_vectorES1_ldddddPNS_11lsfitreportEPNS_8ae_stateE(ptr noundef %249, ptr noundef %250, i64 noundef %251, double noundef %253, double noundef %255, double noundef %257, double noundef %259, double noundef %261, ptr noundef %262, ptr noundef %263)
  %264 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %264)
  store i32 1, ptr %63, align 4
  br label %1258

265:                                              ; preds = %196
  %266 = load ptr, ptr %17, align 8, !tbaa !5
  %267 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %266, i32 0, i32 4
  %268 = load ptr, ptr %267, align 8, !tbaa !18
  %269 = load i64, ptr %38, align 8, !tbaa !9
  %270 = load i64, ptr %19, align 8, !tbaa !9
  %271 = load i64, ptr %38, align 8, !tbaa !9
  %272 = sub nsw i64 %270, %271
  %273 = sdiv i64 %272, 2
  %274 = add nsw i64 %269, %273
  %275 = getelementptr inbounds double, ptr %268, i64 %274
  %276 = load double, ptr %275, align 8, !tbaa !11
  store double %276, ptr %57, align 8, !tbaa !11
  %277 = load double, ptr %57, align 8, !tbaa !11
  %278 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %277, double noundef 0.000000e+00)
  %279 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %278, ptr noundef @.str.469, ptr noundef %279)
  store double 0.000000e+00, ptr %39, align 8, !tbaa !11
  store i64 0, ptr %36, align 8, !tbaa !9
  br label %280

280:                                              ; preds = %294, %265
  %281 = load i64, ptr %36, align 8, !tbaa !9
  %282 = load i64, ptr %19, align 8, !tbaa !9
  %283 = sub nsw i64 %282, 1
  %284 = icmp sle i64 %281, %283
  br i1 %284, label %285, label %297

285:                                              ; preds = %280
  %286 = load double, ptr %39, align 8, !tbaa !11
  %287 = load ptr, ptr %18, align 8, !tbaa !5
  %288 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %287, i32 0, i32 4
  %289 = load ptr, ptr %288, align 8, !tbaa !18
  %290 = load i64, ptr %36, align 8, !tbaa !9
  %291 = getelementptr inbounds double, ptr %289, i64 %290
  %292 = load double, ptr %291, align 8, !tbaa !11
  %293 = fadd double %286, %292
  store double %293, ptr %39, align 8, !tbaa !11
  br label %294

294:                                              ; preds = %285
  %295 = load i64, ptr %36, align 8, !tbaa !9
  %296 = add nsw i64 %295, 1
  store i64 %296, ptr %36, align 8, !tbaa !9
  br label %280, !llvm.loop !25

297:                                              ; preds = %280
  %298 = load double, ptr %39, align 8, !tbaa !11
  %299 = load i64, ptr %19, align 8, !tbaa !9
  %300 = sitofp i64 %299 to double
  %301 = fdiv double %298, %300
  store double %301, ptr %39, align 8, !tbaa !11
  store double 0.000000e+00, ptr %58, align 8, !tbaa !11
  store i64 0, ptr %36, align 8, !tbaa !9
  br label %302

302:                                              ; preds = %320, %297
  %303 = load i64, ptr %36, align 8, !tbaa !9
  %304 = load i64, ptr %19, align 8, !tbaa !9
  %305 = sub nsw i64 %304, 1
  %306 = icmp sle i64 %303, %305
  br i1 %306, label %307, label %323

307:                                              ; preds = %302
  %308 = load double, ptr %58, align 8, !tbaa !11
  %309 = load ptr, ptr %18, align 8, !tbaa !5
  %310 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %309, i32 0, i32 4
  %311 = load ptr, ptr %310, align 8, !tbaa !18
  %312 = load i64, ptr %36, align 8, !tbaa !9
  %313 = getelementptr inbounds double, ptr %311, i64 %312
  %314 = load double, ptr %313, align 8, !tbaa !11
  %315 = load double, ptr %39, align 8, !tbaa !11
  %316 = fsub double %314, %315
  %317 = load ptr, ptr %32, align 8, !tbaa !5
  %318 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %316, ptr noundef %317)
  %319 = fadd double %308, %318
  store double %319, ptr %58, align 8, !tbaa !11
  br label %320

320:                                              ; preds = %307
  %321 = load i64, ptr %36, align 8, !tbaa !9
  %322 = add nsw i64 %321, 1
  store i64 %322, ptr %36, align 8, !tbaa !9
  br label %302, !llvm.loop !26

323:                                              ; preds = %302
  %324 = load double, ptr %58, align 8, !tbaa !11
  %325 = load i64, ptr %19, align 8, !tbaa !9
  %326 = sitofp i64 %325 to double
  %327 = fdiv double %324, %326
  %328 = load ptr, ptr %32, align 8, !tbaa !5
  %329 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %327, ptr noundef %328)
  store double %329, ptr %58, align 8, !tbaa !11
  %330 = load double, ptr %58, align 8, !tbaa !11
  %331 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %330, double noundef 0.000000e+00)
  br i1 %331, label %332, label %333

332:                                              ; preds = %323
  store double 1.000000e+00, ptr %58, align 8, !tbaa !11
  br label %333

333:                                              ; preds = %332, %323
  %334 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %45, i64 noundef 5, ptr noundef %334)
  %335 = load double, ptr %58, align 8, !tbaa !11
  %336 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %337 = load ptr, ptr %336, align 8, !tbaa !18
  %338 = getelementptr inbounds double, ptr %337, i64 0
  store double %335, ptr %338, align 8, !tbaa !11
  %339 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %340 = load ptr, ptr %339, align 8, !tbaa !18
  %341 = getelementptr inbounds double, ptr %340, i64 1
  store double 1.000000e-01, ptr %341, align 8, !tbaa !11
  %342 = load double, ptr %57, align 8, !tbaa !11
  %343 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %344 = load ptr, ptr %343, align 8, !tbaa !18
  %345 = getelementptr inbounds double, ptr %344, i64 2
  store double %342, ptr %345, align 8, !tbaa !11
  %346 = load double, ptr %58, align 8, !tbaa !11
  %347 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %348 = load ptr, ptr %347, align 8, !tbaa !18
  %349 = getelementptr inbounds double, ptr %348, i64 3
  store double %346, ptr %349, align 8, !tbaa !11
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !18
  %352 = getelementptr inbounds double, ptr %351, i64 4
  store double 1.000000e-01, ptr %352, align 8, !tbaa !11
  %353 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %40, i64 noundef 5, ptr noundef %353)
  %354 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %355 = load ptr, ptr %354, align 8, !tbaa !18
  %356 = getelementptr inbounds double, ptr %355, i64 0
  store double 0.000000e+00, ptr %356, align 8, !tbaa !11
  %357 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %358 = load ptr, ptr %357, align 8, !tbaa !18
  %359 = getelementptr inbounds double, ptr %358, i64 1
  store double 0.000000e+00, ptr %359, align 8, !tbaa !11
  %360 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %361 = load ptr, ptr %360, align 8, !tbaa !18
  %362 = getelementptr inbounds double, ptr %361, i64 2
  store double 0.000000e+00, ptr %362, align 8, !tbaa !11
  %363 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %364 = load ptr, ptr %363, align 8, !tbaa !18
  %365 = getelementptr inbounds double, ptr %364, i64 3
  store double 0.000000e+00, ptr %365, align 8, !tbaa !11
  %366 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %367 = load ptr, ptr %366, align 8, !tbaa !18
  %368 = getelementptr inbounds double, ptr %367, i64 4
  store double 0.000000e+00, ptr %368, align 8, !tbaa !11
  %369 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %43, i64 noundef 5, ptr noundef %369)
  %370 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %44, i64 noundef 5, ptr noundef %370)
  %371 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %46, i64 noundef 5, ptr noundef %371)
  %372 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %47, i64 noundef 5, ptr noundef %372)
  %373 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %48, i64 noundef 5, ptr noundef %373)
  %374 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %49, i64 noundef 5, ptr noundef %374)
  %375 = load i64, ptr %19, align 8, !tbaa !9
  %376 = add nsw i64 %375, 5
  %377 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minlmcreatevjEllPNS_9ae_vectorEPNS_10minlmstateEPNS_8ae_stateE(i64 noundef 5, i64 noundef %376, ptr noundef %40, ptr noundef %52, ptr noundef %377)
  %378 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minlmsetscaleEPNS_10minlmstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %52, ptr noundef %45, ptr noundef %378)
  %379 = load double, ptr %24, align 8, !tbaa !11
  %380 = load i64, ptr %54, align 8, !tbaa !9
  %381 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minlmsetcondEPNS_10minlmstateEdlPNS_8ae_stateE(ptr noundef %52, double noundef %379, i64 noundef %380, ptr noundef %381)
  %382 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minlmsetxrepEPNS_10minlmstateEbPNS_8ae_stateE(ptr noundef %52, i1 noundef zeroext true, ptr noundef %382)
  %383 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %41, i64 noundef 5, ptr noundef %383)
  %384 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %42, i64 noundef 5, ptr noundef %384)
  %385 = load i8, ptr %22, align 1, !tbaa !13, !range !27, !noundef !28
  %386 = trunc i8 %385 to i1
  br i1 %386, label %387, label %691

387:                                              ; preds = %333
  %388 = load ptr, ptr %26, align 8, !tbaa !5
  store double 0.000000e+00, ptr %388, align 8, !tbaa !11
  %389 = load ptr, ptr %27, align 8, !tbaa !5
  store double 1.000000e+00, ptr %389, align 8, !tbaa !11
  %390 = load ptr, ptr %28, align 8, !tbaa !5
  store double 1.000000e+00, ptr %390, align 8, !tbaa !11
  %391 = load ptr, ptr %29, align 8, !tbaa !5
  store double 1.000000e+00, ptr %391, align 8, !tbaa !11
  %392 = load ptr, ptr %30, align 8, !tbaa !5
  store double 1.000000e+00, ptr %392, align 8, !tbaa !11
  store double 1.000000e+300, ptr %55, align 8, !tbaa !11
  store i64 0, ptr %37, align 8, !tbaa !9
  br label %393

393:                                              ; preds = %671, %387
  %394 = load i64, ptr %37, align 8, !tbaa !9
  %395 = load i64, ptr %25, align 8, !tbaa !9
  %396 = sub nsw i64 %395, 1
  %397 = icmp sle i64 %394, %396
  br i1 %397, label %398, label %674

398:                                              ; preds = %393
  %399 = load double, ptr %20, align 8, !tbaa !11
  %400 = load ptr, ptr %32, align 8, !tbaa !5
  %401 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %399, ptr noundef %400)
  br i1 %401, label %402, label %407

402:                                              ; preds = %398
  %403 = load double, ptr %20, align 8, !tbaa !11
  %404 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %405 = load ptr, ptr %404, align 8, !tbaa !18
  %406 = getelementptr inbounds double, ptr %405, i64 0
  store double %403, ptr %406, align 8, !tbaa !11
  br label %422

407:                                              ; preds = %398
  %408 = load ptr, ptr %18, align 8, !tbaa !5
  %409 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %408, i32 0, i32 4
  %410 = load ptr, ptr %409, align 8, !tbaa !18
  %411 = getelementptr inbounds double, ptr %410, i64 0
  %412 = load double, ptr %411, align 8, !tbaa !11
  %413 = load double, ptr %58, align 8, !tbaa !11
  %414 = fmul double 1.500000e-01, %413
  %415 = load ptr, ptr %32, align 8, !tbaa !5
  %416 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %51, ptr noundef %415)
  %417 = fsub double %416, 5.000000e-01
  %418 = call double @llvm.fmuladd.f64(double %414, double %417, double %412)
  %419 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %420 = load ptr, ptr %419, align 8, !tbaa !18
  %421 = getelementptr inbounds double, ptr %420, i64 0
  store double %418, ptr %421, align 8, !tbaa !11
  br label %422

422:                                              ; preds = %407, %402
  %423 = load ptr, ptr %32, align 8, !tbaa !5
  %424 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %51, ptr noundef %423)
  %425 = fadd double 5.000000e-01, %424
  %426 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %427 = load ptr, ptr %426, align 8, !tbaa !18
  %428 = getelementptr inbounds double, ptr %427, i64 1
  store double %425, ptr %428, align 8, !tbaa !11
  %429 = load ptr, ptr %17, align 8, !tbaa !5
  %430 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %429, i32 0, i32 4
  %431 = load ptr, ptr %430, align 8, !tbaa !18
  %432 = load i64, ptr %38, align 8, !tbaa !9
  %433 = load i64, ptr %19, align 8, !tbaa !9
  %434 = load i64, ptr %38, align 8, !tbaa !9
  %435 = sub nsw i64 %433, %434
  %436 = load ptr, ptr %32, align 8, !tbaa !5
  %437 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %51, i64 noundef %435, ptr noundef %436)
  %438 = add nsw i64 %432, %437
  %439 = getelementptr inbounds double, ptr %431, i64 %438
  %440 = load double, ptr %439, align 8, !tbaa !11
  %441 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %442 = load ptr, ptr %441, align 8, !tbaa !18
  %443 = getelementptr inbounds double, ptr %442, i64 2
  store double %440, ptr %443, align 8, !tbaa !11
  %444 = load double, ptr %21, align 8, !tbaa !11
  %445 = load ptr, ptr %32, align 8, !tbaa !5
  %446 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %444, ptr noundef %445)
  br i1 %446, label %447, label %452

447:                                              ; preds = %422
  %448 = load double, ptr %21, align 8, !tbaa !11
  %449 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %450 = load ptr, ptr %449, align 8, !tbaa !18
  %451 = getelementptr inbounds double, ptr %450, i64 3
  store double %448, ptr %451, align 8, !tbaa !11
  br label %469

452:                                              ; preds = %422
  %453 = load ptr, ptr %18, align 8, !tbaa !5
  %454 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %453, i32 0, i32 4
  %455 = load ptr, ptr %454, align 8, !tbaa !18
  %456 = load i64, ptr %19, align 8, !tbaa !9
  %457 = sub nsw i64 %456, 1
  %458 = getelementptr inbounds double, ptr %455, i64 %457
  %459 = load double, ptr %458, align 8, !tbaa !11
  %460 = load double, ptr %58, align 8, !tbaa !11
  %461 = fmul double 2.500000e-01, %460
  %462 = load ptr, ptr %32, align 8, !tbaa !5
  %463 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %51, ptr noundef %462)
  %464 = fsub double %463, 5.000000e-01
  %465 = call double @llvm.fmuladd.f64(double %461, double %464, double %459)
  %466 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %467 = load ptr, ptr %466, align 8, !tbaa !18
  %468 = getelementptr inbounds double, ptr %467, i64 3
  store double %465, ptr %468, align 8, !tbaa !11
  br label %469

469:                                              ; preds = %452, %447
  %470 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %471 = load ptr, ptr %470, align 8, !tbaa !18
  %472 = getelementptr inbounds double, ptr %471, i64 4
  store double 1.000000e+00, ptr %472, align 8, !tbaa !11
  %473 = load double, ptr %20, align 8, !tbaa !11
  %474 = load ptr, ptr %32, align 8, !tbaa !5
  %475 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %473, ptr noundef %474)
  br i1 %475, label %476, label %485

476:                                              ; preds = %469
  %477 = load double, ptr %20, align 8, !tbaa !11
  %478 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %479 = load ptr, ptr %478, align 8, !tbaa !18
  %480 = getelementptr inbounds double, ptr %479, i64 0
  store double %477, ptr %480, align 8, !tbaa !11
  %481 = load double, ptr %20, align 8, !tbaa !11
  %482 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %483 = load ptr, ptr %482, align 8, !tbaa !18
  %484 = getelementptr inbounds double, ptr %483, i64 0
  store double %481, ptr %484, align 8, !tbaa !11
  br label %498

485:                                              ; preds = %469
  %486 = load ptr, ptr %32, align 8, !tbaa !5
  %487 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %486, i32 0, i32 3
  %488 = load double, ptr %487, align 8, !tbaa !29
  %489 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %490 = load ptr, ptr %489, align 8, !tbaa !18
  %491 = getelementptr inbounds double, ptr %490, i64 0
  store double %488, ptr %491, align 8, !tbaa !11
  %492 = load ptr, ptr %32, align 8, !tbaa !5
  %493 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %492, i32 0, i32 2
  %494 = load double, ptr %493, align 8, !tbaa !33
  %495 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %496 = load ptr, ptr %495, align 8, !tbaa !18
  %497 = getelementptr inbounds double, ptr %496, i64 0
  store double %494, ptr %497, align 8, !tbaa !11
  br label %498

498:                                              ; preds = %485, %476
  %499 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %500 = load ptr, ptr %499, align 8, !tbaa !18
  %501 = getelementptr inbounds double, ptr %500, i64 1
  store double 5.000000e-01, ptr %501, align 8, !tbaa !11
  %502 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %503 = load ptr, ptr %502, align 8, !tbaa !18
  %504 = getelementptr inbounds double, ptr %503, i64 1
  store double 2.000000e+00, ptr %504, align 8, !tbaa !11
  %505 = load double, ptr %57, align 8, !tbaa !11
  %506 = fmul double 5.000000e-01, %505
  %507 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %508 = load ptr, ptr %507, align 8, !tbaa !18
  %509 = getelementptr inbounds double, ptr %508, i64 2
  store double %506, ptr %509, align 8, !tbaa !11
  %510 = load double, ptr %57, align 8, !tbaa !11
  %511 = fmul double 2.000000e+00, %510
  %512 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %513 = load ptr, ptr %512, align 8, !tbaa !18
  %514 = getelementptr inbounds double, ptr %513, i64 2
  store double %511, ptr %514, align 8, !tbaa !11
  %515 = load double, ptr %21, align 8, !tbaa !11
  %516 = load ptr, ptr %32, align 8, !tbaa !5
  %517 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %515, ptr noundef %516)
  br i1 %517, label %518, label %527

518:                                              ; preds = %498
  %519 = load double, ptr %21, align 8, !tbaa !11
  %520 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %521 = load ptr, ptr %520, align 8, !tbaa !18
  %522 = getelementptr inbounds double, ptr %521, i64 3
  store double %519, ptr %522, align 8, !tbaa !11
  %523 = load double, ptr %21, align 8, !tbaa !11
  %524 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %525 = load ptr, ptr %524, align 8, !tbaa !18
  %526 = getelementptr inbounds double, ptr %525, i64 3
  store double %523, ptr %526, align 8, !tbaa !11
  br label %540

527:                                              ; preds = %498
  %528 = load ptr, ptr %32, align 8, !tbaa !5
  %529 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %528, i32 0, i32 3
  %530 = load double, ptr %529, align 8, !tbaa !29
  %531 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %532 = load ptr, ptr %531, align 8, !tbaa !18
  %533 = getelementptr inbounds double, ptr %532, i64 3
  store double %530, ptr %533, align 8, !tbaa !11
  %534 = load ptr, ptr %32, align 8, !tbaa !5
  %535 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %534, i32 0, i32 2
  %536 = load double, ptr %535, align 8, !tbaa !33
  %537 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %538 = load ptr, ptr %537, align 8, !tbaa !18
  %539 = getelementptr inbounds double, ptr %538, i64 3
  store double %536, ptr %539, align 8, !tbaa !11
  br label %540

540:                                              ; preds = %527, %518
  %541 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %542 = load ptr, ptr %541, align 8, !tbaa !18
  %543 = getelementptr inbounds double, ptr %542, i64 4
  store double 1.000000e+00, ptr %543, align 8, !tbaa !11
  %544 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %545 = load ptr, ptr %544, align 8, !tbaa !18
  %546 = getelementptr inbounds double, ptr %545, i64 4
  store double 1.000000e+00, ptr %546, align 8, !tbaa !11
  %547 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %52, ptr noundef %43, ptr noundef %44, ptr noundef %547)
  %548 = load ptr, ptr %17, align 8, !tbaa !5
  %549 = load ptr, ptr %18, align 8, !tbaa !5
  %550 = load i64, ptr %19, align 8, !tbaa !9
  %551 = load i8, ptr %22, align 1, !tbaa !13, !range !27, !noundef !28
  %552 = trunc i8 %551 to i1
  %553 = load double, ptr %23, align 8, !tbaa !11
  %554 = fmul double 1.000000e+02, %553
  %555 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef %548, ptr noundef %549, i64 noundef %550, i1 noundef zeroext %552, double noundef %554, ptr noundef %52, ptr noundef %53, ptr noundef %41, ptr noundef %56, ptr noundef %555)
  %556 = load ptr, ptr %31, align 8, !tbaa !5
  %557 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %556, i32 0, i32 1
  %558 = load i64, ptr %557, align 8, !tbaa !21
  %559 = getelementptr inbounds %"struct.alglib_impl::minlmreport", ptr %53, i32 0, i32 0
  %560 = load i64, ptr %559, align 8, !tbaa !34
  %561 = add nsw i64 %558, %560
  %562 = load ptr, ptr %31, align 8, !tbaa !5
  %563 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %562, i32 0, i32 1
  store i64 %561, ptr %563, align 8, !tbaa !21
  %564 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %565 = load ptr, ptr %564, align 8, !tbaa !18
  %566 = getelementptr inbounds double, ptr %565, i64 1
  store double 1.000000e-01, ptr %566, align 8, !tbaa !11
  %567 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %568 = load ptr, ptr %567, align 8, !tbaa !18
  %569 = getelementptr inbounds double, ptr %568, i64 1
  store double 1.000000e+01, ptr %569, align 8, !tbaa !11
  %570 = load double, ptr %57, align 8, !tbaa !11
  %571 = fmul double 5.000000e-16, %570
  %572 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %573 = load ptr, ptr %572, align 8, !tbaa !18
  %574 = getelementptr inbounds double, ptr %573, i64 2
  store double %571, ptr %574, align 8, !tbaa !11
  %575 = load double, ptr %57, align 8, !tbaa !11
  %576 = fdiv double %575, 5.000000e-16
  %577 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %578 = load ptr, ptr %577, align 8, !tbaa !18
  %579 = getelementptr inbounds double, ptr %578, i64 2
  store double %576, ptr %579, align 8, !tbaa !11
  %580 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %52, ptr noundef %43, ptr noundef %44, ptr noundef %580)
  %581 = load ptr, ptr %17, align 8, !tbaa !5
  %582 = load ptr, ptr %18, align 8, !tbaa !5
  %583 = load i64, ptr %19, align 8, !tbaa !9
  %584 = load i8, ptr %22, align 1, !tbaa !13, !range !27, !noundef !28
  %585 = trunc i8 %584 to i1
  %586 = load double, ptr %23, align 8, !tbaa !11
  %587 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef %581, ptr noundef %582, i64 noundef %583, i1 noundef zeroext %585, double noundef %586, ptr noundef %52, ptr noundef %53, ptr noundef %41, ptr noundef %56, ptr noundef %587)
  %588 = load ptr, ptr %31, align 8, !tbaa !5
  %589 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %588, i32 0, i32 1
  %590 = load i64, ptr %589, align 8, !tbaa !21
  %591 = getelementptr inbounds %"struct.alglib_impl::minlmreport", ptr %53, i32 0, i32 0
  %592 = load i64, ptr %591, align 8, !tbaa !34
  %593 = add nsw i64 %590, %592
  %594 = load ptr, ptr %31, align 8, !tbaa !5
  %595 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %594, i32 0, i32 1
  store i64 %593, ptr %595, align 8, !tbaa !21
  %596 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %597 = load ptr, ptr %596, align 8, !tbaa !18
  %598 = getelementptr inbounds double, ptr %597, i64 1
  store double 1.000000e-02, ptr %598, align 8, !tbaa !11
  %599 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %600 = load ptr, ptr %599, align 8, !tbaa !18
  %601 = getelementptr inbounds double, ptr %600, i64 1
  store double 1.000000e+02, ptr %601, align 8, !tbaa !11
  %602 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %52, ptr noundef %43, ptr noundef %44, ptr noundef %602)
  %603 = load ptr, ptr %17, align 8, !tbaa !5
  %604 = load ptr, ptr %18, align 8, !tbaa !5
  %605 = load i64, ptr %19, align 8, !tbaa !9
  %606 = load i8, ptr %22, align 1, !tbaa !13, !range !27, !noundef !28
  %607 = trunc i8 %606 to i1
  %608 = load double, ptr %23, align 8, !tbaa !11
  %609 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef %603, ptr noundef %604, i64 noundef %605, i1 noundef zeroext %607, double noundef %608, ptr noundef %52, ptr noundef %53, ptr noundef %41, ptr noundef %56, ptr noundef %609)
  %610 = load ptr, ptr %31, align 8, !tbaa !5
  %611 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %610, i32 0, i32 1
  %612 = load i64, ptr %611, align 8, !tbaa !21
  %613 = getelementptr inbounds %"struct.alglib_impl::minlmreport", ptr %53, i32 0, i32 0
  %614 = load i64, ptr %613, align 8, !tbaa !34
  %615 = add nsw i64 %612, %614
  %616 = load ptr, ptr %31, align 8, !tbaa !5
  %617 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %616, i32 0, i32 1
  store i64 %615, ptr %617, align 8, !tbaa !21
  %618 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %619 = load ptr, ptr %618, align 8, !tbaa !18
  %620 = getelementptr inbounds double, ptr %619, i64 1
  store double 1.000000e-03, ptr %620, align 8, !tbaa !11
  %621 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %622 = load ptr, ptr %621, align 8, !tbaa !18
  %623 = getelementptr inbounds double, ptr %622, i64 1
  store double 1.000000e+03, ptr %623, align 8, !tbaa !11
  %624 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %52, ptr noundef %43, ptr noundef %44, ptr noundef %624)
  %625 = load ptr, ptr %17, align 8, !tbaa !5
  %626 = load ptr, ptr %18, align 8, !tbaa !5
  %627 = load i64, ptr %19, align 8, !tbaa !9
  %628 = load i8, ptr %22, align 1, !tbaa !13, !range !27, !noundef !28
  %629 = trunc i8 %628 to i1
  %630 = load double, ptr %23, align 8, !tbaa !11
  %631 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef %625, ptr noundef %626, i64 noundef %627, i1 noundef zeroext %629, double noundef %630, ptr noundef %52, ptr noundef %53, ptr noundef %41, ptr noundef %56, ptr noundef %631)
  %632 = load ptr, ptr %31, align 8, !tbaa !5
  %633 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %632, i32 0, i32 1
  %634 = load i64, ptr %633, align 8, !tbaa !21
  %635 = getelementptr inbounds %"struct.alglib_impl::minlmreport", ptr %53, i32 0, i32 0
  %636 = load i64, ptr %635, align 8, !tbaa !34
  %637 = add nsw i64 %634, %636
  %638 = load ptr, ptr %31, align 8, !tbaa !5
  %639 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %638, i32 0, i32 1
  store i64 %637, ptr %639, align 8, !tbaa !21
  %640 = load double, ptr %56, align 8, !tbaa !11
  %641 = load double, ptr %55, align 8, !tbaa !11
  %642 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %640, double noundef %641)
  br i1 %642, label %643, label %670

643:                                              ; preds = %540
  %644 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %645 = load ptr, ptr %644, align 8, !tbaa !18
  %646 = getelementptr inbounds double, ptr %645, i64 0
  %647 = load double, ptr %646, align 8, !tbaa !11
  %648 = load ptr, ptr %26, align 8, !tbaa !5
  store double %647, ptr %648, align 8, !tbaa !11
  %649 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %650 = load ptr, ptr %649, align 8, !tbaa !18
  %651 = getelementptr inbounds double, ptr %650, i64 1
  %652 = load double, ptr %651, align 8, !tbaa !11
  %653 = load ptr, ptr %27, align 8, !tbaa !5
  store double %652, ptr %653, align 8, !tbaa !11
  %654 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %655 = load ptr, ptr %654, align 8, !tbaa !18
  %656 = getelementptr inbounds double, ptr %655, i64 2
  %657 = load double, ptr %656, align 8, !tbaa !11
  %658 = load ptr, ptr %28, align 8, !tbaa !5
  store double %657, ptr %658, align 8, !tbaa !11
  %659 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %660 = load ptr, ptr %659, align 8, !tbaa !18
  %661 = getelementptr inbounds double, ptr %660, i64 3
  %662 = load double, ptr %661, align 8, !tbaa !11
  %663 = load ptr, ptr %29, align 8, !tbaa !5
  store double %662, ptr %663, align 8, !tbaa !11
  %664 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %665 = load ptr, ptr %664, align 8, !tbaa !18
  %666 = getelementptr inbounds double, ptr %665, i64 4
  %667 = load double, ptr %666, align 8, !tbaa !11
  %668 = load ptr, ptr %30, align 8, !tbaa !5
  store double %667, ptr %668, align 8, !tbaa !11
  %669 = load double, ptr %56, align 8, !tbaa !11
  store double %669, ptr %55, align 8, !tbaa !11
  br label %670

670:                                              ; preds = %643, %540
  br label %671

671:                                              ; preds = %670
  %672 = load i64, ptr %37, align 8, !tbaa !9
  %673 = add nsw i64 %672, 1
  store i64 %673, ptr %37, align 8, !tbaa !9
  br label %393, !llvm.loop !36

674:                                              ; preds = %393
  %675 = load ptr, ptr %17, align 8, !tbaa !5
  %676 = load ptr, ptr %18, align 8, !tbaa !5
  %677 = load i64, ptr %19, align 8, !tbaa !9
  %678 = load ptr, ptr %26, align 8, !tbaa !5
  %679 = load double, ptr %678, align 8, !tbaa !11
  %680 = load ptr, ptr %27, align 8, !tbaa !5
  %681 = load double, ptr %680, align 8, !tbaa !11
  %682 = load ptr, ptr %28, align 8, !tbaa !5
  %683 = load double, ptr %682, align 8, !tbaa !11
  %684 = load ptr, ptr %29, align 8, !tbaa !5
  %685 = load double, ptr %684, align 8, !tbaa !11
  %686 = load ptr, ptr %30, align 8, !tbaa !5
  %687 = load double, ptr %686, align 8, !tbaa !11
  %688 = load ptr, ptr %31, align 8, !tbaa !5
  %689 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfit45errorsEPNS_9ae_vectorES1_ldddddPNS_11lsfitreportEPNS_8ae_stateE(ptr noundef %675, ptr noundef %676, i64 noundef %677, double noundef %679, double noundef %681, double noundef %683, double noundef %685, double noundef %687, ptr noundef %688, ptr noundef %689)
  %690 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %690)
  store i32 1, ptr %63, align 4
  br label %1258

691:                                              ; preds = %333
  %692 = load ptr, ptr %26, align 8, !tbaa !5
  store double 0.000000e+00, ptr %692, align 8, !tbaa !11
  %693 = load ptr, ptr %27, align 8, !tbaa !5
  store double 1.000000e+00, ptr %693, align 8, !tbaa !11
  %694 = load ptr, ptr %28, align 8, !tbaa !5
  store double 1.000000e+00, ptr %694, align 8, !tbaa !11
  %695 = load ptr, ptr %29, align 8, !tbaa !5
  store double 1.000000e+00, ptr %695, align 8, !tbaa !11
  %696 = load ptr, ptr %30, align 8, !tbaa !5
  store double 1.000000e+00, ptr %696, align 8, !tbaa !11
  store double 1.000000e+300, ptr %55, align 8, !tbaa !11
  store i64 0, ptr %37, align 8, !tbaa !9
  br label %697

697:                                              ; preds = %1238, %691
  %698 = load i64, ptr %37, align 8, !tbaa !9
  %699 = load i64, ptr %25, align 8, !tbaa !9
  %700 = sub nsw i64 %699, 1
  %701 = icmp sle i64 %698, %700
  br i1 %701, label %702, label %1241

702:                                              ; preds = %697
  %703 = load ptr, ptr %18, align 8, !tbaa !5
  %704 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %703, i32 0, i32 4
  %705 = load ptr, ptr %704, align 8, !tbaa !18
  %706 = getelementptr inbounds double, ptr %705, i64 0
  %707 = load double, ptr %706, align 8, !tbaa !11
  %708 = load double, ptr %58, align 8, !tbaa !11
  %709 = fmul double 1.500000e-01, %708
  %710 = load ptr, ptr %32, align 8, !tbaa !5
  %711 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %51, ptr noundef %710)
  %712 = fsub double %711, 5.000000e-01
  %713 = call double @llvm.fmuladd.f64(double %709, double %712, double %707)
  %714 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %715 = load ptr, ptr %714, align 8, !tbaa !18
  %716 = getelementptr inbounds double, ptr %715, i64 0
  store double %713, ptr %716, align 8, !tbaa !11
  %717 = load ptr, ptr %32, align 8, !tbaa !5
  %718 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %51, ptr noundef %717)
  %719 = fadd double 5.000000e-01, %718
  %720 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %721 = load ptr, ptr %720, align 8, !tbaa !18
  %722 = getelementptr inbounds double, ptr %721, i64 1
  store double %719, ptr %722, align 8, !tbaa !11
  %723 = load ptr, ptr %17, align 8, !tbaa !5
  %724 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %723, i32 0, i32 4
  %725 = load ptr, ptr %724, align 8, !tbaa !18
  %726 = load i64, ptr %38, align 8, !tbaa !9
  %727 = load i64, ptr %19, align 8, !tbaa !9
  %728 = load i64, ptr %38, align 8, !tbaa !9
  %729 = sub nsw i64 %727, %728
  %730 = load ptr, ptr %32, align 8, !tbaa !5
  %731 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %51, i64 noundef %729, ptr noundef %730)
  %732 = add nsw i64 %726, %731
  %733 = getelementptr inbounds double, ptr %725, i64 %732
  %734 = load double, ptr %733, align 8, !tbaa !11
  %735 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %736 = load ptr, ptr %735, align 8, !tbaa !18
  %737 = getelementptr inbounds double, ptr %736, i64 2
  store double %734, ptr %737, align 8, !tbaa !11
  %738 = load ptr, ptr %18, align 8, !tbaa !5
  %739 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %738, i32 0, i32 4
  %740 = load ptr, ptr %739, align 8, !tbaa !18
  %741 = load i64, ptr %19, align 8, !tbaa !9
  %742 = sub nsw i64 %741, 1
  %743 = getelementptr inbounds double, ptr %740, i64 %742
  %744 = load double, ptr %743, align 8, !tbaa !11
  %745 = load double, ptr %58, align 8, !tbaa !11
  %746 = fmul double 2.500000e-01, %745
  %747 = load ptr, ptr %32, align 8, !tbaa !5
  %748 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %51, ptr noundef %747)
  %749 = fsub double %748, 5.000000e-01
  %750 = call double @llvm.fmuladd.f64(double %746, double %749, double %744)
  %751 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %752 = load ptr, ptr %751, align 8, !tbaa !18
  %753 = getelementptr inbounds double, ptr %752, i64 3
  store double %750, ptr %753, align 8, !tbaa !11
  %754 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %755 = load ptr, ptr %754, align 8, !tbaa !18
  %756 = getelementptr inbounds double, ptr %755, i64 4
  store double 1.000000e+00, ptr %756, align 8, !tbaa !11
  %757 = load ptr, ptr %32, align 8, !tbaa !5
  %758 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %757, i32 0, i32 3
  %759 = load double, ptr %758, align 8, !tbaa !29
  %760 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %761 = load ptr, ptr %760, align 8, !tbaa !18
  %762 = getelementptr inbounds double, ptr %761, i64 0
  store double %759, ptr %762, align 8, !tbaa !11
  %763 = load ptr, ptr %32, align 8, !tbaa !5
  %764 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %763, i32 0, i32 2
  %765 = load double, ptr %764, align 8, !tbaa !33
  %766 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %767 = load ptr, ptr %766, align 8, !tbaa !18
  %768 = getelementptr inbounds double, ptr %767, i64 0
  store double %765, ptr %768, align 8, !tbaa !11
  %769 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %770 = load ptr, ptr %769, align 8, !tbaa !18
  %771 = getelementptr inbounds double, ptr %770, i64 1
  store double 5.000000e-01, ptr %771, align 8, !tbaa !11
  %772 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %773 = load ptr, ptr %772, align 8, !tbaa !18
  %774 = getelementptr inbounds double, ptr %773, i64 1
  store double 2.000000e+00, ptr %774, align 8, !tbaa !11
  %775 = load double, ptr %57, align 8, !tbaa !11
  %776 = fmul double 5.000000e-01, %775
  %777 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %778 = load ptr, ptr %777, align 8, !tbaa !18
  %779 = getelementptr inbounds double, ptr %778, i64 2
  store double %776, ptr %779, align 8, !tbaa !11
  %780 = load double, ptr %57, align 8, !tbaa !11
  %781 = fmul double 2.000000e+00, %780
  %782 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %783 = load ptr, ptr %782, align 8, !tbaa !18
  %784 = getelementptr inbounds double, ptr %783, i64 2
  store double %781, ptr %784, align 8, !tbaa !11
  %785 = load ptr, ptr %32, align 8, !tbaa !5
  %786 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %785, i32 0, i32 3
  %787 = load double, ptr %786, align 8, !tbaa !29
  %788 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %789 = load ptr, ptr %788, align 8, !tbaa !18
  %790 = getelementptr inbounds double, ptr %789, i64 3
  store double %787, ptr %790, align 8, !tbaa !11
  %791 = load ptr, ptr %32, align 8, !tbaa !5
  %792 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %791, i32 0, i32 2
  %793 = load double, ptr %792, align 8, !tbaa !33
  %794 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %795 = load ptr, ptr %794, align 8, !tbaa !18
  %796 = getelementptr inbounds double, ptr %795, i64 3
  store double %793, ptr %796, align 8, !tbaa !11
  %797 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %798 = load ptr, ptr %797, align 8, !tbaa !18
  %799 = getelementptr inbounds double, ptr %798, i64 4
  store double 5.000000e-01, ptr %799, align 8, !tbaa !11
  %800 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %801 = load ptr, ptr %800, align 8, !tbaa !18
  %802 = getelementptr inbounds double, ptr %801, i64 4
  store double 2.000000e+00, ptr %802, align 8, !tbaa !11
  %803 = load double, ptr %20, align 8, !tbaa !11
  %804 = load ptr, ptr %32, align 8, !tbaa !5
  %805 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %803, ptr noundef %804)
  br i1 %805, label %806, label %819

806:                                              ; preds = %702
  %807 = load double, ptr %20, align 8, !tbaa !11
  %808 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %809 = load ptr, ptr %808, align 8, !tbaa !18
  %810 = getelementptr inbounds double, ptr %809, i64 0
  store double %807, ptr %810, align 8, !tbaa !11
  %811 = load double, ptr %20, align 8, !tbaa !11
  %812 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %813 = load ptr, ptr %812, align 8, !tbaa !18
  %814 = getelementptr inbounds double, ptr %813, i64 0
  store double %811, ptr %814, align 8, !tbaa !11
  %815 = load double, ptr %20, align 8, !tbaa !11
  %816 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %817 = load ptr, ptr %816, align 8, !tbaa !18
  %818 = getelementptr inbounds double, ptr %817, i64 0
  store double %815, ptr %818, align 8, !tbaa !11
  br label %819

819:                                              ; preds = %806, %702
  %820 = load double, ptr %21, align 8, !tbaa !11
  %821 = load ptr, ptr %32, align 8, !tbaa !5
  %822 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %820, ptr noundef %821)
  br i1 %822, label %823, label %836

823:                                              ; preds = %819
  %824 = load double, ptr %21, align 8, !tbaa !11
  %825 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %826 = load ptr, ptr %825, align 8, !tbaa !18
  %827 = getelementptr inbounds double, ptr %826, i64 3
  store double %824, ptr %827, align 8, !tbaa !11
  %828 = load double, ptr %21, align 8, !tbaa !11
  %829 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %830 = load ptr, ptr %829, align 8, !tbaa !18
  %831 = getelementptr inbounds double, ptr %830, i64 3
  store double %828, ptr %831, align 8, !tbaa !11
  %832 = load double, ptr %21, align 8, !tbaa !11
  %833 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %834 = load ptr, ptr %833, align 8, !tbaa !18
  %835 = getelementptr inbounds double, ptr %834, i64 3
  store double %832, ptr %835, align 8, !tbaa !11
  br label %836

836:                                              ; preds = %823, %819
  %837 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %52, ptr noundef %46, ptr noundef %47, ptr noundef %837)
  %838 = load ptr, ptr %17, align 8, !tbaa !5
  %839 = load ptr, ptr %18, align 8, !tbaa !5
  %840 = load i64, ptr %19, align 8, !tbaa !9
  %841 = load i8, ptr %22, align 1, !tbaa !13, !range !27, !noundef !28
  %842 = trunc i8 %841 to i1
  %843 = load double, ptr %23, align 8, !tbaa !11
  %844 = fmul double 1.000000e+02, %843
  %845 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef %838, ptr noundef %839, i64 noundef %840, i1 noundef zeroext %842, double noundef %844, ptr noundef %52, ptr noundef %53, ptr noundef %41, ptr noundef %61, ptr noundef %845)
  %846 = load ptr, ptr %31, align 8, !tbaa !5
  %847 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %846, i32 0, i32 1
  %848 = load i64, ptr %847, align 8, !tbaa !21
  %849 = getelementptr inbounds %"struct.alglib_impl::minlmreport", ptr %53, i32 0, i32 0
  %850 = load i64, ptr %849, align 8, !tbaa !34
  %851 = add nsw i64 %848, %850
  %852 = load ptr, ptr %31, align 8, !tbaa !5
  %853 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %852, i32 0, i32 1
  store i64 %851, ptr %853, align 8, !tbaa !21
  %854 = load ptr, ptr %18, align 8, !tbaa !5
  %855 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %854, i32 0, i32 4
  %856 = load ptr, ptr %855, align 8, !tbaa !18
  %857 = load i64, ptr %19, align 8, !tbaa !9
  %858 = sub nsw i64 %857, 1
  %859 = getelementptr inbounds double, ptr %856, i64 %858
  %860 = load double, ptr %859, align 8, !tbaa !11
  %861 = load double, ptr %58, align 8, !tbaa !11
  %862 = fmul double 1.500000e-01, %861
  %863 = load ptr, ptr %32, align 8, !tbaa !5
  %864 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %51, ptr noundef %863)
  %865 = fsub double %864, 5.000000e-01
  %866 = call double @llvm.fmuladd.f64(double %862, double %865, double %860)
  %867 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %868 = load ptr, ptr %867, align 8, !tbaa !18
  %869 = getelementptr inbounds double, ptr %868, i64 0
  store double %866, ptr %869, align 8, !tbaa !11
  %870 = load ptr, ptr %32, align 8, !tbaa !5
  %871 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %51, ptr noundef %870)
  %872 = fadd double 5.000000e-01, %871
  %873 = fneg double %872
  %874 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %875 = load ptr, ptr %874, align 8, !tbaa !18
  %876 = getelementptr inbounds double, ptr %875, i64 1
  store double %873, ptr %876, align 8, !tbaa !11
  %877 = load ptr, ptr %17, align 8, !tbaa !5
  %878 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %877, i32 0, i32 4
  %879 = load ptr, ptr %878, align 8, !tbaa !18
  %880 = load i64, ptr %38, align 8, !tbaa !9
  %881 = load i64, ptr %19, align 8, !tbaa !9
  %882 = load i64, ptr %38, align 8, !tbaa !9
  %883 = sub nsw i64 %881, %882
  %884 = load ptr, ptr %32, align 8, !tbaa !5
  %885 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %51, i64 noundef %883, ptr noundef %884)
  %886 = add nsw i64 %880, %885
  %887 = getelementptr inbounds double, ptr %879, i64 %886
  %888 = load double, ptr %887, align 8, !tbaa !11
  %889 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %890 = load ptr, ptr %889, align 8, !tbaa !18
  %891 = getelementptr inbounds double, ptr %890, i64 2
  store double %888, ptr %891, align 8, !tbaa !11
  %892 = load ptr, ptr %18, align 8, !tbaa !5
  %893 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %892, i32 0, i32 4
  %894 = load ptr, ptr %893, align 8, !tbaa !18
  %895 = getelementptr inbounds double, ptr %894, i64 0
  %896 = load double, ptr %895, align 8, !tbaa !11
  %897 = load double, ptr %58, align 8, !tbaa !11
  %898 = fmul double 2.500000e-01, %897
  %899 = load ptr, ptr %32, align 8, !tbaa !5
  %900 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %51, ptr noundef %899)
  %901 = fsub double %900, 5.000000e-01
  %902 = call double @llvm.fmuladd.f64(double %898, double %901, double %896)
  %903 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %904 = load ptr, ptr %903, align 8, !tbaa !18
  %905 = getelementptr inbounds double, ptr %904, i64 3
  store double %902, ptr %905, align 8, !tbaa !11
  %906 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %907 = load ptr, ptr %906, align 8, !tbaa !18
  %908 = getelementptr inbounds double, ptr %907, i64 4
  store double 1.000000e+00, ptr %908, align 8, !tbaa !11
  %909 = load ptr, ptr %32, align 8, !tbaa !5
  %910 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %909, i32 0, i32 3
  %911 = load double, ptr %910, align 8, !tbaa !29
  %912 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %913 = load ptr, ptr %912, align 8, !tbaa !18
  %914 = getelementptr inbounds double, ptr %913, i64 0
  store double %911, ptr %914, align 8, !tbaa !11
  %915 = load ptr, ptr %32, align 8, !tbaa !5
  %916 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %915, i32 0, i32 2
  %917 = load double, ptr %916, align 8, !tbaa !33
  %918 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %919 = load ptr, ptr %918, align 8, !tbaa !18
  %920 = getelementptr inbounds double, ptr %919, i64 0
  store double %917, ptr %920, align 8, !tbaa !11
  %921 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %922 = load ptr, ptr %921, align 8, !tbaa !18
  %923 = getelementptr inbounds double, ptr %922, i64 1
  store double -2.000000e+00, ptr %923, align 8, !tbaa !11
  %924 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %925 = load ptr, ptr %924, align 8, !tbaa !18
  %926 = getelementptr inbounds double, ptr %925, i64 1
  store double -5.000000e-01, ptr %926, align 8, !tbaa !11
  %927 = load double, ptr %57, align 8, !tbaa !11
  %928 = fmul double 5.000000e-01, %927
  %929 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %930 = load ptr, ptr %929, align 8, !tbaa !18
  %931 = getelementptr inbounds double, ptr %930, i64 2
  store double %928, ptr %931, align 8, !tbaa !11
  %932 = load double, ptr %57, align 8, !tbaa !11
  %933 = fmul double 2.000000e+00, %932
  %934 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %935 = load ptr, ptr %934, align 8, !tbaa !18
  %936 = getelementptr inbounds double, ptr %935, i64 2
  store double %933, ptr %936, align 8, !tbaa !11
  %937 = load ptr, ptr %32, align 8, !tbaa !5
  %938 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %937, i32 0, i32 3
  %939 = load double, ptr %938, align 8, !tbaa !29
  %940 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %941 = load ptr, ptr %940, align 8, !tbaa !18
  %942 = getelementptr inbounds double, ptr %941, i64 3
  store double %939, ptr %942, align 8, !tbaa !11
  %943 = load ptr, ptr %32, align 8, !tbaa !5
  %944 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %943, i32 0, i32 2
  %945 = load double, ptr %944, align 8, !tbaa !33
  %946 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %947 = load ptr, ptr %946, align 8, !tbaa !18
  %948 = getelementptr inbounds double, ptr %947, i64 3
  store double %945, ptr %948, align 8, !tbaa !11
  %949 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %950 = load ptr, ptr %949, align 8, !tbaa !18
  %951 = getelementptr inbounds double, ptr %950, i64 4
  store double 5.000000e-01, ptr %951, align 8, !tbaa !11
  %952 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %953 = load ptr, ptr %952, align 8, !tbaa !18
  %954 = getelementptr inbounds double, ptr %953, i64 4
  store double 2.000000e+00, ptr %954, align 8, !tbaa !11
  %955 = load double, ptr %20, align 8, !tbaa !11
  %956 = load ptr, ptr %32, align 8, !tbaa !5
  %957 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %955, ptr noundef %956)
  br i1 %957, label %958, label %971

958:                                              ; preds = %836
  %959 = load double, ptr %20, align 8, !tbaa !11
  %960 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %961 = load ptr, ptr %960, align 8, !tbaa !18
  %962 = getelementptr inbounds double, ptr %961, i64 3
  store double %959, ptr %962, align 8, !tbaa !11
  %963 = load double, ptr %20, align 8, !tbaa !11
  %964 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %965 = load ptr, ptr %964, align 8, !tbaa !18
  %966 = getelementptr inbounds double, ptr %965, i64 3
  store double %963, ptr %966, align 8, !tbaa !11
  %967 = load double, ptr %20, align 8, !tbaa !11
  %968 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %969 = load ptr, ptr %968, align 8, !tbaa !18
  %970 = getelementptr inbounds double, ptr %969, i64 3
  store double %967, ptr %970, align 8, !tbaa !11
  br label %971

971:                                              ; preds = %958, %836
  %972 = load double, ptr %21, align 8, !tbaa !11
  %973 = load ptr, ptr %32, align 8, !tbaa !5
  %974 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %972, ptr noundef %973)
  br i1 %974, label %975, label %988

975:                                              ; preds = %971
  %976 = load double, ptr %21, align 8, !tbaa !11
  %977 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %978 = load ptr, ptr %977, align 8, !tbaa !18
  %979 = getelementptr inbounds double, ptr %978, i64 0
  store double %976, ptr %979, align 8, !tbaa !11
  %980 = load double, ptr %21, align 8, !tbaa !11
  %981 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %982 = load ptr, ptr %981, align 8, !tbaa !18
  %983 = getelementptr inbounds double, ptr %982, i64 0
  store double %980, ptr %983, align 8, !tbaa !11
  %984 = load double, ptr %21, align 8, !tbaa !11
  %985 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %986 = load ptr, ptr %985, align 8, !tbaa !18
  %987 = getelementptr inbounds double, ptr %986, i64 0
  store double %984, ptr %987, align 8, !tbaa !11
  br label %988

988:                                              ; preds = %975, %971
  %989 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %52, ptr noundef %48, ptr noundef %49, ptr noundef %989)
  %990 = load ptr, ptr %17, align 8, !tbaa !5
  %991 = load ptr, ptr %18, align 8, !tbaa !5
  %992 = load i64, ptr %19, align 8, !tbaa !9
  %993 = load i8, ptr %22, align 1, !tbaa !13, !range !27, !noundef !28
  %994 = trunc i8 %993 to i1
  %995 = load double, ptr %23, align 8, !tbaa !11
  %996 = fmul double 1.000000e+02, %995
  %997 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef %990, ptr noundef %991, i64 noundef %992, i1 noundef zeroext %994, double noundef %996, ptr noundef %52, ptr noundef %53, ptr noundef %42, ptr noundef %62, ptr noundef %997)
  %998 = load ptr, ptr %31, align 8, !tbaa !5
  %999 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %998, i32 0, i32 1
  %1000 = load i64, ptr %999, align 8, !tbaa !21
  %1001 = getelementptr inbounds %"struct.alglib_impl::minlmreport", ptr %53, i32 0, i32 0
  %1002 = load i64, ptr %1001, align 8, !tbaa !34
  %1003 = add nsw i64 %1000, %1002
  %1004 = load ptr, ptr %31, align 8, !tbaa !5
  %1005 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %1004, i32 0, i32 1
  store i64 %1003, ptr %1005, align 8, !tbaa !21
  %1006 = load double, ptr %61, align 8, !tbaa !11
  %1007 = load double, ptr %62, align 8, !tbaa !11
  %1008 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1006, double noundef %1007)
  br i1 %1008, label %1009, label %1123

1009:                                             ; preds = %988
  %1010 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %1011 = load ptr, ptr %1010, align 8, !tbaa !18
  %1012 = getelementptr inbounds double, ptr %1011, i64 1
  store double 1.000000e-01, ptr %1012, align 8, !tbaa !11
  %1013 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %1014 = load ptr, ptr %1013, align 8, !tbaa !18
  %1015 = getelementptr inbounds double, ptr %1014, i64 1
  store double 1.000000e+01, ptr %1015, align 8, !tbaa !11
  %1016 = load double, ptr %57, align 8, !tbaa !11
  %1017 = fmul double 5.000000e-16, %1016
  %1018 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %1019 = load ptr, ptr %1018, align 8, !tbaa !18
  %1020 = getelementptr inbounds double, ptr %1019, i64 2
  store double %1017, ptr %1020, align 8, !tbaa !11
  %1021 = load double, ptr %57, align 8, !tbaa !11
  %1022 = fdiv double %1021, 5.000000e-16
  %1023 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %1024 = load ptr, ptr %1023, align 8, !tbaa !18
  %1025 = getelementptr inbounds double, ptr %1024, i64 2
  store double %1022, ptr %1025, align 8, !tbaa !11
  %1026 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %1027 = load ptr, ptr %1026, align 8, !tbaa !18
  %1028 = getelementptr inbounds double, ptr %1027, i64 4
  store double 1.000000e-01, ptr %1028, align 8, !tbaa !11
  %1029 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %1030 = load ptr, ptr %1029, align 8, !tbaa !18
  %1031 = getelementptr inbounds double, ptr %1030, i64 4
  store double 1.000000e+01, ptr %1031, align 8, !tbaa !11
  %1032 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %52, ptr noundef %46, ptr noundef %47, ptr noundef %1032)
  %1033 = load ptr, ptr %17, align 8, !tbaa !5
  %1034 = load ptr, ptr %18, align 8, !tbaa !5
  %1035 = load i64, ptr %19, align 8, !tbaa !9
  %1036 = load i8, ptr %22, align 1, !tbaa !13, !range !27, !noundef !28
  %1037 = trunc i8 %1036 to i1
  %1038 = load double, ptr %23, align 8, !tbaa !11
  %1039 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef %1033, ptr noundef %1034, i64 noundef %1035, i1 noundef zeroext %1037, double noundef %1038, ptr noundef %52, ptr noundef %53, ptr noundef %41, ptr noundef %56, ptr noundef %1039)
  %1040 = load ptr, ptr %31, align 8, !tbaa !5
  %1041 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %1040, i32 0, i32 1
  %1042 = load i64, ptr %1041, align 8, !tbaa !21
  %1043 = getelementptr inbounds %"struct.alglib_impl::minlmreport", ptr %53, i32 0, i32 0
  %1044 = load i64, ptr %1043, align 8, !tbaa !34
  %1045 = add nsw i64 %1042, %1044
  %1046 = load ptr, ptr %31, align 8, !tbaa !5
  %1047 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %1046, i32 0, i32 1
  store i64 %1045, ptr %1047, align 8, !tbaa !21
  %1048 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %1049 = load ptr, ptr %1048, align 8, !tbaa !18
  %1050 = getelementptr inbounds double, ptr %1049, i64 1
  store double 1.000000e-02, ptr %1050, align 8, !tbaa !11
  %1051 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %1052 = load ptr, ptr %1051, align 8, !tbaa !18
  %1053 = getelementptr inbounds double, ptr %1052, i64 1
  store double 1.000000e+02, ptr %1053, align 8, !tbaa !11
  %1054 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %52, ptr noundef %46, ptr noundef %47, ptr noundef %1054)
  %1055 = load ptr, ptr %17, align 8, !tbaa !5
  %1056 = load ptr, ptr %18, align 8, !tbaa !5
  %1057 = load i64, ptr %19, align 8, !tbaa !9
  %1058 = load i8, ptr %22, align 1, !tbaa !13, !range !27, !noundef !28
  %1059 = trunc i8 %1058 to i1
  %1060 = load double, ptr %23, align 8, !tbaa !11
  %1061 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef %1055, ptr noundef %1056, i64 noundef %1057, i1 noundef zeroext %1059, double noundef %1060, ptr noundef %52, ptr noundef %53, ptr noundef %41, ptr noundef %56, ptr noundef %1061)
  %1062 = load ptr, ptr %31, align 8, !tbaa !5
  %1063 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %1062, i32 0, i32 1
  %1064 = load i64, ptr %1063, align 8, !tbaa !21
  %1065 = getelementptr inbounds %"struct.alglib_impl::minlmreport", ptr %53, i32 0, i32 0
  %1066 = load i64, ptr %1065, align 8, !tbaa !34
  %1067 = add nsw i64 %1064, %1066
  %1068 = load ptr, ptr %31, align 8, !tbaa !5
  %1069 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %1068, i32 0, i32 1
  store i64 %1067, ptr %1069, align 8, !tbaa !21
  %1070 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %1071 = load ptr, ptr %1070, align 8, !tbaa !18
  %1072 = getelementptr inbounds double, ptr %1071, i64 1
  store double 1.000000e-03, ptr %1072, align 8, !tbaa !11
  %1073 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %1074 = load ptr, ptr %1073, align 8, !tbaa !18
  %1075 = getelementptr inbounds double, ptr %1074, i64 1
  store double 1.000000e+03, ptr %1075, align 8, !tbaa !11
  %1076 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %52, ptr noundef %46, ptr noundef %47, ptr noundef %1076)
  %1077 = load ptr, ptr %17, align 8, !tbaa !5
  %1078 = load ptr, ptr %18, align 8, !tbaa !5
  %1079 = load i64, ptr %19, align 8, !tbaa !9
  %1080 = load i8, ptr %22, align 1, !tbaa !13, !range !27, !noundef !28
  %1081 = trunc i8 %1080 to i1
  %1082 = load double, ptr %23, align 8, !tbaa !11
  %1083 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef %1077, ptr noundef %1078, i64 noundef %1079, i1 noundef zeroext %1081, double noundef %1082, ptr noundef %52, ptr noundef %53, ptr noundef %41, ptr noundef %56, ptr noundef %1083)
  %1084 = load ptr, ptr %31, align 8, !tbaa !5
  %1085 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %1084, i32 0, i32 1
  %1086 = load i64, ptr %1085, align 8, !tbaa !21
  %1087 = getelementptr inbounds %"struct.alglib_impl::minlmreport", ptr %53, i32 0, i32 0
  %1088 = load i64, ptr %1087, align 8, !tbaa !34
  %1089 = add nsw i64 %1086, %1088
  %1090 = load ptr, ptr %31, align 8, !tbaa !5
  %1091 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %1090, i32 0, i32 1
  store i64 %1089, ptr %1091, align 8, !tbaa !21
  %1092 = load double, ptr %56, align 8, !tbaa !11
  %1093 = load double, ptr %55, align 8, !tbaa !11
  %1094 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1092, double noundef %1093)
  br i1 %1094, label %1095, label %1122

1095:                                             ; preds = %1009
  %1096 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %1097 = load ptr, ptr %1096, align 8, !tbaa !18
  %1098 = getelementptr inbounds double, ptr %1097, i64 0
  %1099 = load double, ptr %1098, align 8, !tbaa !11
  %1100 = load ptr, ptr %26, align 8, !tbaa !5
  store double %1099, ptr %1100, align 8, !tbaa !11
  %1101 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %1102 = load ptr, ptr %1101, align 8, !tbaa !18
  %1103 = getelementptr inbounds double, ptr %1102, i64 1
  %1104 = load double, ptr %1103, align 8, !tbaa !11
  %1105 = load ptr, ptr %27, align 8, !tbaa !5
  store double %1104, ptr %1105, align 8, !tbaa !11
  %1106 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %1107 = load ptr, ptr %1106, align 8, !tbaa !18
  %1108 = getelementptr inbounds double, ptr %1107, i64 2
  %1109 = load double, ptr %1108, align 8, !tbaa !11
  %1110 = load ptr, ptr %28, align 8, !tbaa !5
  store double %1109, ptr %1110, align 8, !tbaa !11
  %1111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %1112 = load ptr, ptr %1111, align 8, !tbaa !18
  %1113 = getelementptr inbounds double, ptr %1112, i64 3
  %1114 = load double, ptr %1113, align 8, !tbaa !11
  %1115 = load ptr, ptr %29, align 8, !tbaa !5
  store double %1114, ptr %1115, align 8, !tbaa !11
  %1116 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %41, i32 0, i32 4
  %1117 = load ptr, ptr %1116, align 8, !tbaa !18
  %1118 = getelementptr inbounds double, ptr %1117, i64 4
  %1119 = load double, ptr %1118, align 8, !tbaa !11
  %1120 = load ptr, ptr %30, align 8, !tbaa !5
  store double %1119, ptr %1120, align 8, !tbaa !11
  %1121 = load double, ptr %56, align 8, !tbaa !11
  store double %1121, ptr %55, align 8, !tbaa !11
  br label %1122

1122:                                             ; preds = %1095, %1009
  br label %1237

1123:                                             ; preds = %988
  %1124 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %1125 = load ptr, ptr %1124, align 8, !tbaa !18
  %1126 = getelementptr inbounds double, ptr %1125, i64 1
  store double -1.000000e+01, ptr %1126, align 8, !tbaa !11
  %1127 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %1128 = load ptr, ptr %1127, align 8, !tbaa !18
  %1129 = getelementptr inbounds double, ptr %1128, i64 1
  store double -1.000000e-01, ptr %1129, align 8, !tbaa !11
  %1130 = load double, ptr %57, align 8, !tbaa !11
  %1131 = fmul double 5.000000e-16, %1130
  %1132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %1133 = load ptr, ptr %1132, align 8, !tbaa !18
  %1134 = getelementptr inbounds double, ptr %1133, i64 2
  store double %1131, ptr %1134, align 8, !tbaa !11
  %1135 = load double, ptr %57, align 8, !tbaa !11
  %1136 = fdiv double %1135, 5.000000e-16
  %1137 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %1138 = load ptr, ptr %1137, align 8, !tbaa !18
  %1139 = getelementptr inbounds double, ptr %1138, i64 2
  store double %1136, ptr %1139, align 8, !tbaa !11
  %1140 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %1141 = load ptr, ptr %1140, align 8, !tbaa !18
  %1142 = getelementptr inbounds double, ptr %1141, i64 4
  store double 1.000000e-01, ptr %1142, align 8, !tbaa !11
  %1143 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %1144 = load ptr, ptr %1143, align 8, !tbaa !18
  %1145 = getelementptr inbounds double, ptr %1144, i64 4
  store double 1.000000e+01, ptr %1145, align 8, !tbaa !11
  %1146 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %52, ptr noundef %48, ptr noundef %49, ptr noundef %1146)
  %1147 = load ptr, ptr %17, align 8, !tbaa !5
  %1148 = load ptr, ptr %18, align 8, !tbaa !5
  %1149 = load i64, ptr %19, align 8, !tbaa !9
  %1150 = load i8, ptr %22, align 1, !tbaa !13, !range !27, !noundef !28
  %1151 = trunc i8 %1150 to i1
  %1152 = load double, ptr %23, align 8, !tbaa !11
  %1153 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef %1147, ptr noundef %1148, i64 noundef %1149, i1 noundef zeroext %1151, double noundef %1152, ptr noundef %52, ptr noundef %53, ptr noundef %42, ptr noundef %56, ptr noundef %1153)
  %1154 = load ptr, ptr %31, align 8, !tbaa !5
  %1155 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %1154, i32 0, i32 1
  %1156 = load i64, ptr %1155, align 8, !tbaa !21
  %1157 = getelementptr inbounds %"struct.alglib_impl::minlmreport", ptr %53, i32 0, i32 0
  %1158 = load i64, ptr %1157, align 8, !tbaa !34
  %1159 = add nsw i64 %1156, %1158
  %1160 = load ptr, ptr %31, align 8, !tbaa !5
  %1161 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %1160, i32 0, i32 1
  store i64 %1159, ptr %1161, align 8, !tbaa !21
  %1162 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %1163 = load ptr, ptr %1162, align 8, !tbaa !18
  %1164 = getelementptr inbounds double, ptr %1163, i64 1
  store double -1.000000e+02, ptr %1164, align 8, !tbaa !11
  %1165 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %1166 = load ptr, ptr %1165, align 8, !tbaa !18
  %1167 = getelementptr inbounds double, ptr %1166, i64 1
  store double -1.000000e-02, ptr %1167, align 8, !tbaa !11
  %1168 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %52, ptr noundef %48, ptr noundef %49, ptr noundef %1168)
  %1169 = load ptr, ptr %17, align 8, !tbaa !5
  %1170 = load ptr, ptr %18, align 8, !tbaa !5
  %1171 = load i64, ptr %19, align 8, !tbaa !9
  %1172 = load i8, ptr %22, align 1, !tbaa !13, !range !27, !noundef !28
  %1173 = trunc i8 %1172 to i1
  %1174 = load double, ptr %23, align 8, !tbaa !11
  %1175 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef %1169, ptr noundef %1170, i64 noundef %1171, i1 noundef zeroext %1173, double noundef %1174, ptr noundef %52, ptr noundef %53, ptr noundef %42, ptr noundef %56, ptr noundef %1175)
  %1176 = load ptr, ptr %31, align 8, !tbaa !5
  %1177 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %1176, i32 0, i32 1
  %1178 = load i64, ptr %1177, align 8, !tbaa !21
  %1179 = getelementptr inbounds %"struct.alglib_impl::minlmreport", ptr %53, i32 0, i32 0
  %1180 = load i64, ptr %1179, align 8, !tbaa !34
  %1181 = add nsw i64 %1178, %1180
  %1182 = load ptr, ptr %31, align 8, !tbaa !5
  %1183 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %1182, i32 0, i32 1
  store i64 %1181, ptr %1183, align 8, !tbaa !21
  %1184 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %1185 = load ptr, ptr %1184, align 8, !tbaa !18
  %1186 = getelementptr inbounds double, ptr %1185, i64 1
  store double -1.000000e+03, ptr %1186, align 8, !tbaa !11
  %1187 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %1188 = load ptr, ptr %1187, align 8, !tbaa !18
  %1189 = getelementptr inbounds double, ptr %1188, i64 1
  store double -1.000000e-03, ptr %1189, align 8, !tbaa !11
  %1190 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %52, ptr noundef %48, ptr noundef %49, ptr noundef %1190)
  %1191 = load ptr, ptr %17, align 8, !tbaa !5
  %1192 = load ptr, ptr %18, align 8, !tbaa !5
  %1193 = load i64, ptr %19, align 8, !tbaa !9
  %1194 = load i8, ptr %22, align 1, !tbaa !13, !range !27, !noundef !28
  %1195 = trunc i8 %1194 to i1
  %1196 = load double, ptr %23, align 8, !tbaa !11
  %1197 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef %1191, ptr noundef %1192, i64 noundef %1193, i1 noundef zeroext %1195, double noundef %1196, ptr noundef %52, ptr noundef %53, ptr noundef %42, ptr noundef %56, ptr noundef %1197)
  %1198 = load ptr, ptr %31, align 8, !tbaa !5
  %1199 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %1198, i32 0, i32 1
  %1200 = load i64, ptr %1199, align 8, !tbaa !21
  %1201 = getelementptr inbounds %"struct.alglib_impl::minlmreport", ptr %53, i32 0, i32 0
  %1202 = load i64, ptr %1201, align 8, !tbaa !34
  %1203 = add nsw i64 %1200, %1202
  %1204 = load ptr, ptr %31, align 8, !tbaa !5
  %1205 = getelementptr inbounds %"struct.alglib_impl::lsfitreport", ptr %1204, i32 0, i32 1
  store i64 %1203, ptr %1205, align 8, !tbaa !21
  %1206 = load double, ptr %56, align 8, !tbaa !11
  %1207 = load double, ptr %55, align 8, !tbaa !11
  %1208 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1206, double noundef %1207)
  br i1 %1208, label %1209, label %1236

1209:                                             ; preds = %1123
  %1210 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %1211 = load ptr, ptr %1210, align 8, !tbaa !18
  %1212 = getelementptr inbounds double, ptr %1211, i64 0
  %1213 = load double, ptr %1212, align 8, !tbaa !11
  %1214 = load ptr, ptr %26, align 8, !tbaa !5
  store double %1213, ptr %1214, align 8, !tbaa !11
  %1215 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %1216 = load ptr, ptr %1215, align 8, !tbaa !18
  %1217 = getelementptr inbounds double, ptr %1216, i64 1
  %1218 = load double, ptr %1217, align 8, !tbaa !11
  %1219 = load ptr, ptr %27, align 8, !tbaa !5
  store double %1218, ptr %1219, align 8, !tbaa !11
  %1220 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %1221 = load ptr, ptr %1220, align 8, !tbaa !18
  %1222 = getelementptr inbounds double, ptr %1221, i64 2
  %1223 = load double, ptr %1222, align 8, !tbaa !11
  %1224 = load ptr, ptr %28, align 8, !tbaa !5
  store double %1223, ptr %1224, align 8, !tbaa !11
  %1225 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %1226 = load ptr, ptr %1225, align 8, !tbaa !18
  %1227 = getelementptr inbounds double, ptr %1226, i64 3
  %1228 = load double, ptr %1227, align 8, !tbaa !11
  %1229 = load ptr, ptr %29, align 8, !tbaa !5
  store double %1228, ptr %1229, align 8, !tbaa !11
  %1230 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %1231 = load ptr, ptr %1230, align 8, !tbaa !18
  %1232 = getelementptr inbounds double, ptr %1231, i64 4
  %1233 = load double, ptr %1232, align 8, !tbaa !11
  %1234 = load ptr, ptr %30, align 8, !tbaa !5
  store double %1233, ptr %1234, align 8, !tbaa !11
  %1235 = load double, ptr %56, align 8, !tbaa !11
  store double %1235, ptr %55, align 8, !tbaa !11
  br label %1236

1236:                                             ; preds = %1209, %1123
  br label %1237

1237:                                             ; preds = %1236, %1122
  br label %1238

1238:                                             ; preds = %1237
  %1239 = load i64, ptr %37, align 8, !tbaa !9
  %1240 = add nsw i64 %1239, 1
  store i64 %1240, ptr %37, align 8, !tbaa !9
  br label %697, !llvm.loop !37

1241:                                             ; preds = %697
  %1242 = load ptr, ptr %17, align 8, !tbaa !5
  %1243 = load ptr, ptr %18, align 8, !tbaa !5
  %1244 = load i64, ptr %19, align 8, !tbaa !9
  %1245 = load ptr, ptr %26, align 8, !tbaa !5
  %1246 = load double, ptr %1245, align 8, !tbaa !11
  %1247 = load ptr, ptr %27, align 8, !tbaa !5
  %1248 = load double, ptr %1247, align 8, !tbaa !11
  %1249 = load ptr, ptr %28, align 8, !tbaa !5
  %1250 = load double, ptr %1249, align 8, !tbaa !11
  %1251 = load ptr, ptr %29, align 8, !tbaa !5
  %1252 = load double, ptr %1251, align 8, !tbaa !11
  %1253 = load ptr, ptr %30, align 8, !tbaa !5
  %1254 = load double, ptr %1253, align 8, !tbaa !11
  %1255 = load ptr, ptr %31, align 8, !tbaa !5
  %1256 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfit45errorsEPNS_9ae_vectorES1_ldddddPNS_11lsfitreportEPNS_8ae_stateE(ptr noundef %1242, ptr noundef %1243, i64 noundef %1244, double noundef %1246, double noundef %1248, double noundef %1250, double noundef %1252, double noundef %1254, ptr noundef %1255, ptr noundef %1256)
  %1257 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1257)
  store i32 0, ptr %63, align 4
  br label %1258

1258:                                             ; preds = %1241, %674, %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %60) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %59) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 85408, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %51) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %50) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %49) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %48) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %44) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #5
  %1259 = load i32, ptr %63, align 4
  switch i32 %1259, label %1261 [
    i32 0, label %1260
    i32 1, label %1260
  ]

1260:                                             ; preds = %1258, %1258
  ret void

1261:                                             ; preds = %1258
  unreachable
}

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

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

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

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

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

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

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #2

declare noundef zeroext i1 @_ZN11alglib_impl8ae_isnanEdPNS_8ae_stateE(double noundef, ptr noundef) #2

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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_impl12tagsortfastrEPNS_9ae_vectorES1_S1_S1_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

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

declare void @_ZN11alglib_impl16_minlmstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl17_minlmreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl13minlmcreatevjEllPNS_9ae_vectorEPNS_10minlmstateEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl13minlmsetscaleEPNS_10minlmstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl12minlmsetcondEPNS_10minlmstateEdlPNS_8ae_stateE(ptr noundef, double noundef, i64 noundef, ptr noundef) #2

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

declare void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL25lsfit_logisticfit45errorsEPNS_9ae_vectorES1_ldddddPNS_11lsfitreportEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, double noundef, double noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl12minlmsetxrepEPNS_10minlmstateEbPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, ptr noundef) #2

declare noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

declare noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i1 noundef zeroext, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !14, i64 16, !17, i64 24, !7, i64 56}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !10, i64 8}
!22 = !{!"_ZTSN11alglib_impl11lsfitreportE", !12, i64 0, !10, i64 8, !10, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !23, i64 64, !16, i64 144, !16, i64 208, !16, i64 272, !12, i64 336}
!23 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !17, i64 40, !7, i64 72}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!30, !12, i64 24}
!30 = !{!"_ZTSN11alglib_impl8ae_stateE", !10, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !17, i64 40, !6, i64 72, !31, i64 80, !6, i64 88, !32, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!31 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!32 = !{!"long long", !7, i64 0}
!33 = !{!30, !12, i64 16}
!34 = !{!35, !10, i64 0}
!35 = !{!"_ZTSN11alglib_impl11minlmreportE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!36 = distinct !{!36, !20}
!37 = distinct !{!37, !20}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::minlmstate" = type { i64, i64, double, double, i64, i8, double, i64, i8, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, i8, i8, i8, i64, i8, i8, i8, %"struct.alglib_impl::ae_vector", double, %"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_matrix", i64, i64, double, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, i8, %"struct.alglib_impl::smoothnessmonitor", double, %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64, i64, %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::minlbfgsstate", %"struct.alglib_impl::minlbfgsreport", %"struct.alglib_impl::minqpstate", %"struct.alglib_impl::minqpreport", %"struct.alglib_impl::minlmstepfinder" }
%"struct.alglib_impl::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", i64, %"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, i8, i8, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"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::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::minlbfgsstate" = type { i64, i64, double, double, double, i64, i8, double, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", i64, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::precbuflbfgs", %"struct.alglib_impl::precbuflowrank", double, double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, double, %"struct.alglib_impl::rcommstate", i64, i64, i64, %"struct.alglib_impl::linminstate", i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::precbuflbfgs" = type { %"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::precbuflowrank" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::linminstate" = type { i8, i8, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"struct.alglib_impl::minlbfgsreport" = type { i64, i64, i64 }
%"struct.alglib_impl::minqpstate" = type { i64, %"struct.alglib_impl::qqpsettings", %"struct.alglib_impl::qpbleicsettings", %"struct.alglib_impl::qpdenseaulsettings", i8, i64, i64, %"struct.alglib_impl::convexquadraticmodel", %"struct.alglib_impl::sparsematrix", i8, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", 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", i8, %"struct.alglib_impl::ae_matrix", i64, i64, %"struct.alglib_impl::sparsematrix", i64, i64, %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::qpbleicbuffers", %"struct.alglib_impl::qqpbuffers", %"struct.alglib_impl::qpdenseaulbuffers" }
%"struct.alglib_impl::qqpsettings" = type { double, double, double, i64, i8, i8, i64, i64, i64, i64 }
%"struct.alglib_impl::qpbleicsettings" = type { double, double, double, i64 }
%"struct.alglib_impl::qpdenseaulsettings" = type { double, i64, double }
%"struct.alglib_impl::convexquadraticmodel" = type { i64, i64, double, double, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i8, i8, i8, i8 }
%"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::qpbleicbuffers" = type { %"struct.alglib_impl::minbleicstate", %"struct.alglib_impl::minbleicreport", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64 }
%"struct.alglib_impl::minbleicstate" = type { i64, i64, double, double, double, i64, i8, i8, double, double, %"struct.alglib_impl::sactiveset", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, i8, i8, i8, %"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", double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, i64, double, double, double, %"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, double, double, double, double, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::snnlssolver", double, double, double, double, double, double, double, double, double, i64, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::linminstate", double, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sactiveset" = type { i64, i64, %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::ae_vector", i64, i64, i8, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::snnlssolver", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::snnlssolver" = type { i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::minbleicreport" = type { i64, i64, i64, i64, double, double, double, double, i64, i64, i64, i64 }
%"struct.alglib_impl::qqpbuffers" = type { i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", i8, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sactiveset", %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::ae_matrix", %"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_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsebuffers", i64, i64, i64, i64 }
%"struct.alglib_impl::sparsebuffers" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix" }
%"struct.alglib_impl::qpdenseaulbuffers" = type { %"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_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::qqpsettings", %"struct.alglib_impl::qqpbuffers", %"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::convexquadraticmodel", %"struct.alglib_impl::sparsematrix", %"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", i64, i64, i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::minqpreport" = type { i64, i64, i64, i64, i64 }
%"struct.alglib_impl::minlmstepfinder" = type { i64, i64, double, i64, i64, i8, double, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::minqpstate", %"struct.alglib_impl::minqpreport", %"struct.alglib_impl::sparsematrix" }
%"struct.alglib_impl::minlmreport" = type { i64, i64, i64, i64, i64, i64, i64 }

@.str.457 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.458 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.459 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.460 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.461 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.462 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.463 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.464 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.465 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.466 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.467 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.468 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.469 = external hidden unnamed_addr constant [29 x i8], align 1

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

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

; Function Attrs: mustprogress 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) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14logisticfit45xEPNS_9ae_vectorES1_lddbddlPdS2_S2_S2_S2_PNS_11lsfitreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, double noundef %3, double noundef %4, i1 noundef zeroext %5, double noundef %6, double noundef %7, i64 noundef %8, ptr nocapture noundef %9, ptr nocapture noundef %10, ptr nocapture noundef %11, ptr nocapture noundef %12, ptr nocapture noundef %13, ptr noundef %14, ptr noundef %15) local_unnamed_addr #3 {
  %17 = alloca %"struct.alglib_impl::ae_frame", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca %"struct.alglib_impl::ae_vector", align 8
  %25 = alloca %"struct.alglib_impl::ae_vector", align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca %"struct.alglib_impl::ae_vector", align 8
  %30 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %31 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %32 = alloca %"struct.alglib_impl::minlmstate", align 8
  %33 = alloca %"struct.alglib_impl::minlmreport", align 8
  %34 = alloca double, align 8
  %35 = alloca %"struct.alglib_impl::ae_vector", align 8
  %36 = alloca %"struct.alglib_impl::ae_vector", align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %23) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %24) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %25) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %26) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %27) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %28) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %29) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %30) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #5
  call void @llvm.lifetime.start.p0(i64 85408, ptr nonnull %32) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %33) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %35) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %36) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %15, ptr noundef nonnull %17)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %24, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %25, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %26, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %27, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %28, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %29, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %30, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %31, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(85408) %32, i8 0, i64 85408, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %33, i8 0, i64 56, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %35, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %36, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %18, ptr noundef %0, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %19, ptr noundef %1, ptr noundef %15, i1 noundef zeroext true)
  store double 0.000000e+00, ptr %9, align 8, !tbaa !5
  store double 0.000000e+00, ptr %10, align 8, !tbaa !5
  store double 0.000000e+00, ptr %11, align 8, !tbaa !5
  store double 0.000000e+00, ptr %12, align 8, !tbaa !5
  store double 0.000000e+00, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_lsfitreport_clearEPv(ptr noundef %14)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %20, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %21, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %22, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %23, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %24, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %25, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %26, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %27, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %28, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %29, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %30, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %31, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl16_minlmstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %32, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl17_minlmreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %33, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %35, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %36, i64 noundef 0, i64 noundef 3, ptr noundef %15, i1 noundef zeroext true)
  %39 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %7, ptr noundef %15)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef nonnull @.str.457, ptr noundef %15)
  %40 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %6, ptr noundef %15)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef nonnull @.str.458, ptr noundef %15)
  %41 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %3, ptr noundef %15)
  br i1 %41, label %44, label %42

42:                                               ; preds = %16
  %43 = call noundef zeroext i1 @_ZN11alglib_impl8ae_isnanEdPNS_8ae_stateE(double noundef %3, ptr noundef %15)
  br label %44

44:                                               ; preds = %42, %16
  %45 = phi i1 [ true, %16 ], [ %43, %42 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %45, ptr noundef nonnull @.str.459, ptr noundef %15)
  %46 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %15)
  br i1 %46, label %49, label %47

47:                                               ; preds = %44
  %48 = call noundef zeroext i1 @_ZN11alglib_impl8ae_isnanEdPNS_8ae_stateE(double noundef %4, ptr noundef %15)
  br label %49

49:                                               ; preds = %47, %44
  %50 = phi i1 [ true, %44 ], [ %48, %47 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %50, ptr noundef nonnull @.str.460, ptr noundef %15)
  %51 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %6, double noundef 0.000000e+00)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %51, ptr noundef nonnull @.str.461, ptr noundef %15)
  %52 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef nonnull @.str.462, ptr noundef %15)
  %53 = icmp sgt i64 %8, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef nonnull @.str.463, ptr noundef %15)
  %54 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %7, double noundef 0.000000e+00)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %54, ptr noundef nonnull @.str.464, ptr noundef %15)
  %55 = load i64, ptr %18, align 8, !tbaa !9
  %56 = icmp sge i64 %55, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %56, ptr noundef nonnull @.str.465, ptr noundef %15)
  %57 = load i64, ptr %19, align 8, !tbaa !9
  %58 = icmp sge i64 %57, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %58, ptr noundef nonnull @.str.466, ptr noundef %15)
  %59 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %2, ptr noundef %15)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %59, ptr noundef nonnull @.str.467, ptr noundef %15)
  %60 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %2, ptr noundef %15)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %60, ptr noundef nonnull @.str.467, ptr noundef %15)
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef 2211, i64 noundef 1033044, ptr noundef nonnull %31, ptr noundef %15)
  call void @_ZN11alglib_implL17lsfit_clearreportEPNS_11lsfitreportEPNS_8ae_stateE(ptr noundef %14, ptr noundef %15)
  %61 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %7, double noundef 0.000000e+00)
  %.0438 = select i1 %61, double 1.000000e-10, double %7
  %62 = icmp eq i64 %8, 0
  %spec.store.select = select i1 %62, i64 4, i64 %8
  call void @_ZN11alglib_impl12tagsortfastrEPNS_9ae_vectorES1_S1_S1_lPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %35, ptr noundef nonnull %36, i64 noundef %2, ptr noundef %15)
  %63 = getelementptr inbounds i8, ptr %18, i64 56
  %64 = load ptr, ptr %63, align 8, !tbaa !15
  %65 = load double, ptr %64, align 8, !tbaa !5
  %66 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %65, double noundef 0.000000e+00)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %66, ptr noundef nonnull @.str.468, ptr noundef %15)
  br i1 %52, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %49, %71
  %.0434451 = phi i64 [ %72, %71 ], [ 0, %49 ]
  %67 = load ptr, ptr %63, align 8, !tbaa !15
  %68 = getelementptr inbounds double, ptr %67, i64 %.0434451
  %69 = load double, ptr %68, align 8, !tbaa !5
  %70 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %69, double noundef 0.000000e+00)
  br i1 %70, label %._crit_edge, label %71

71:                                               ; preds = %.lr.ph
  %72 = add nuw nsw i64 %.0434451, 1
  %exitcond.not = icmp eq i64 %72, %2
  br i1 %exitcond.not, label %._crit_edge.thread, label %.lr.ph, !llvm.loop !16

._crit_edge.thread:                               ; preds = %71, %49
  %73 = getelementptr inbounds i8, ptr %14, i64 8
  store i64 0, ptr %73, align 8, !tbaa !18
  br label %.preheader

._crit_edge:                                      ; preds = %.lr.ph
  %74 = add nsw i64 %2, -1
  %75 = getelementptr inbounds i8, ptr %14, i64 8
  store i64 0, ptr %75, align 8, !tbaa !18
  %76 = icmp eq i64 %.0434451, %2
  br i1 %76, label %.preheader, label %125

.preheader:                                       ; preds = %._crit_edge.thread, %._crit_edge
  br i1 %52, label %.lr.ph483, label %._crit_edge484

.lr.ph483:                                        ; preds = %.preheader
  %77 = getelementptr inbounds i8, ptr %19, i64 56
  %78 = load ptr, ptr %77, align 8, !tbaa !15
  %79 = add nsw i64 %2, -1
  %xtraiter521 = and i64 %2, 7
  %80 = icmp ult i64 %79, 7
  br i1 %80, label %._crit_edge484.loopexit.unr-lcssa, label %.lr.ph483.new

.lr.ph483.new:                                    ; preds = %.lr.ph483
  %unroll_iter525 = and i64 %2, 9223372036854775800
  br label %81

81:                                               ; preds = %81, %.lr.ph483.new
  %.0429482 = phi double [ 0.000000e+00, %.lr.ph483.new ], [ %112, %81 ]
  %.1435481 = phi i64 [ 0, %.lr.ph483.new ], [ %113, %81 ]
  %niter526 = phi i64 [ 0, %.lr.ph483.new ], [ %niter526.next.7, %81 ]
  %82 = getelementptr inbounds double, ptr %78, i64 %.1435481
  %83 = load double, ptr %82, align 8, !tbaa !5
  %84 = fadd double %.0429482, %83
  %85 = or disjoint i64 %.1435481, 1
  %86 = getelementptr inbounds double, ptr %78, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !5
  %88 = fadd double %84, %87
  %89 = or disjoint i64 %.1435481, 2
  %90 = getelementptr inbounds double, ptr %78, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !5
  %92 = fadd double %88, %91
  %93 = or disjoint i64 %.1435481, 3
  %94 = getelementptr inbounds double, ptr %78, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !5
  %96 = fadd double %92, %95
  %97 = or disjoint i64 %.1435481, 4
  %98 = getelementptr inbounds double, ptr %78, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !5
  %100 = fadd double %96, %99
  %101 = or disjoint i64 %.1435481, 5
  %102 = getelementptr inbounds double, ptr %78, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !5
  %104 = fadd double %100, %103
  %105 = or disjoint i64 %.1435481, 6
  %106 = getelementptr inbounds double, ptr %78, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !5
  %108 = fadd double %104, %107
  %109 = or disjoint i64 %.1435481, 7
  %110 = getelementptr inbounds double, ptr %78, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !5
  %112 = fadd double %108, %111
  %113 = add nuw nsw i64 %.1435481, 8
  %niter526.next.7 = add i64 %niter526, 8
  %niter526.ncmp.7 = icmp eq i64 %niter526.next.7, %unroll_iter525
  br i1 %niter526.ncmp.7, label %._crit_edge484.loopexit.unr-lcssa, label %81, !llvm.loop !21

._crit_edge484.loopexit.unr-lcssa:                ; preds = %81, %.lr.ph483
  %.lcssa.ph = phi double [ poison, %.lr.ph483 ], [ %112, %81 ]
  %.0429482.unr = phi double [ 0.000000e+00, %.lr.ph483 ], [ %112, %81 ]
  %.1435481.unr = phi i64 [ 0, %.lr.ph483 ], [ %113, %81 ]
  %lcmp.mod523.not = icmp eq i64 %xtraiter521, 0
  br i1 %lcmp.mod523.not, label %._crit_edge484, label %.epil.preheader520

.epil.preheader520:                               ; preds = %._crit_edge484.loopexit.unr-lcssa, %.epil.preheader520
  %.0429482.epil = phi double [ %116, %.epil.preheader520 ], [ %.0429482.unr, %._crit_edge484.loopexit.unr-lcssa ]
  %.1435481.epil = phi i64 [ %117, %.epil.preheader520 ], [ %.1435481.unr, %._crit_edge484.loopexit.unr-lcssa ]
  %epil.iter522 = phi i64 [ %epil.iter522.next, %.epil.preheader520 ], [ 0, %._crit_edge484.loopexit.unr-lcssa ]
  %114 = getelementptr inbounds double, ptr %78, i64 %.1435481.epil
  %115 = load double, ptr %114, align 8, !tbaa !5
  %116 = fadd double %.0429482.epil, %115
  %117 = add nuw nsw i64 %.1435481.epil, 1
  %epil.iter522.next = add i64 %epil.iter522, 1
  %epil.iter522.cmp.not = icmp eq i64 %epil.iter522.next, %xtraiter521
  br i1 %epil.iter522.cmp.not, label %._crit_edge484, label %.epil.preheader520, !llvm.loop !22

._crit_edge484:                                   ; preds = %._crit_edge484.loopexit.unr-lcssa, %.epil.preheader520, %.preheader
  %.0429.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %.lcssa.ph, %._crit_edge484.loopexit.unr-lcssa ], [ %116, %.epil.preheader520 ]
  %118 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %3, ptr noundef %15)
  %119 = sitofp i64 %2 to double
  %120 = fdiv double %.0429.lcssa, %119
  %storemerge = select i1 %118, double %3, double %120
  store double %storemerge, ptr %9, align 8, !tbaa !5
  store double 1.000000e+00, ptr %10, align 8, !tbaa !5
  store double 1.000000e+00, ptr %11, align 8, !tbaa !5
  %121 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %15)
  br i1 %121, label %124, label %122

122:                                              ; preds = %._crit_edge484
  %123 = load double, ptr %9, align 8, !tbaa !5
  br label %124

124:                                              ; preds = %._crit_edge484, %122
  %storemerge449 = phi double [ %123, %122 ], [ %4, %._crit_edge484 ]
  store double %storemerge449, ptr %12, align 8, !tbaa !5
  store double 1.000000e+00, ptr %13, align 8, !tbaa !5
  br label %._crit_edge479

125:                                              ; preds = %._crit_edge
  %126 = load ptr, ptr %63, align 8, !tbaa !15
  %127 = sub nsw i64 %2, %.0434451
  %128 = sdiv i64 %127, 2
  %129 = getelementptr double, ptr %126, i64 %.0434451
  %130 = getelementptr double, ptr %129, i64 %128
  %131 = load double, ptr %130, align 8, !tbaa !5
  %132 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %131, double noundef 0.000000e+00)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %132, ptr noundef nonnull @.str.469, ptr noundef %15)
  br i1 %52, label %.lr.ph458, label %._crit_edge459.thread

._crit_edge459.thread:                            ; preds = %125
  %133 = sitofp i64 %2 to double
  br label %._crit_edge466

.lr.ph458:                                        ; preds = %125
  %134 = getelementptr inbounds i8, ptr %19, i64 56
  %135 = load ptr, ptr %134, align 8, !tbaa !15
  %136 = add nsw i64 %2, -1
  %xtraiter = and i64 %2, 7
  %137 = icmp ult i64 %136, 7
  br i1 %137, label %._crit_edge459.unr-lcssa, label %.lr.ph458.new

.lr.ph458.new:                                    ; preds = %.lr.ph458
  %unroll_iter = and i64 %2, 9223372036854775800
  br label %138

138:                                              ; preds = %138, %.lr.ph458.new
  %.1430456 = phi double [ 0.000000e+00, %.lr.ph458.new ], [ %169, %138 ]
  %.2436455 = phi i64 [ 0, %.lr.ph458.new ], [ %170, %138 ]
  %niter = phi i64 [ 0, %.lr.ph458.new ], [ %niter.next.7, %138 ]
  %139 = getelementptr inbounds double, ptr %135, i64 %.2436455
  %140 = load double, ptr %139, align 8, !tbaa !5
  %141 = fadd double %.1430456, %140
  %142 = or disjoint i64 %.2436455, 1
  %143 = getelementptr inbounds double, ptr %135, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !5
  %145 = fadd double %141, %144
  %146 = or disjoint i64 %.2436455, 2
  %147 = getelementptr inbounds double, ptr %135, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !5
  %149 = fadd double %145, %148
  %150 = or disjoint i64 %.2436455, 3
  %151 = getelementptr inbounds double, ptr %135, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !5
  %153 = fadd double %149, %152
  %154 = or disjoint i64 %.2436455, 4
  %155 = getelementptr inbounds double, ptr %135, i64 %154
  %156 = load double, ptr %155, align 8, !tbaa !5
  %157 = fadd double %153, %156
  %158 = or disjoint i64 %.2436455, 5
  %159 = getelementptr inbounds double, ptr %135, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !5
  %161 = fadd double %157, %160
  %162 = or disjoint i64 %.2436455, 6
  %163 = getelementptr inbounds double, ptr %135, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !5
  %165 = fadd double %161, %164
  %166 = or disjoint i64 %.2436455, 7
  %167 = getelementptr inbounds double, ptr %135, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !5
  %169 = fadd double %165, %168
  %170 = add nuw nsw i64 %.2436455, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge459.unr-lcssa, label %138, !llvm.loop !24

._crit_edge459.unr-lcssa:                         ; preds = %138, %.lr.ph458
  %.lcssa517.ph = phi double [ poison, %.lr.ph458 ], [ %169, %138 ]
  %.1430456.unr = phi double [ 0.000000e+00, %.lr.ph458 ], [ %169, %138 ]
  %.2436455.unr = phi i64 [ 0, %.lr.ph458 ], [ %170, %138 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge459, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge459.unr-lcssa, %.epil.preheader
  %.1430456.epil = phi double [ %173, %.epil.preheader ], [ %.1430456.unr, %._crit_edge459.unr-lcssa ]
  %.2436455.epil = phi i64 [ %174, %.epil.preheader ], [ %.2436455.unr, %._crit_edge459.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge459.unr-lcssa ]
  %171 = getelementptr inbounds double, ptr %135, i64 %.2436455.epil
  %172 = load double, ptr %171, align 8, !tbaa !5
  %173 = fadd double %.1430456.epil, %172
  %174 = add nuw nsw i64 %.2436455.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge459, label %.epil.preheader, !llvm.loop !25

._crit_edge459:                                   ; preds = %.epil.preheader, %._crit_edge459.unr-lcssa
  %.lcssa517 = phi double [ %.lcssa517.ph, %._crit_edge459.unr-lcssa ], [ %173, %.epil.preheader ]
  %175 = sitofp i64 %2 to double
  %176 = fdiv double %.lcssa517, %175
  br i1 %52, label %.lr.ph465, label %._crit_edge466

.lr.ph465:                                        ; preds = %._crit_edge459
  %177 = getelementptr inbounds i8, ptr %19, i64 56
  br label %178

178:                                              ; preds = %.lr.ph465, %178
  %.0463 = phi double [ 0.000000e+00, %.lr.ph465 ], [ %184, %178 ]
  %.3437462 = phi i64 [ 0, %.lr.ph465 ], [ %185, %178 ]
  %179 = load ptr, ptr %177, align 8, !tbaa !15
  %180 = getelementptr inbounds double, ptr %179, i64 %.3437462
  %181 = load double, ptr %180, align 8, !tbaa !5
  %182 = fsub double %181, %176
  %183 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %182, ptr noundef %15)
  %184 = fadd double %.0463, %183
  %185 = add nuw nsw i64 %.3437462, 1
  %exitcond489.not = icmp eq i64 %185, %2
  br i1 %exitcond489.not, label %._crit_edge466, label %178, !llvm.loop !26

._crit_edge466:                                   ; preds = %178, %._crit_edge459.thread, %._crit_edge459
  %186 = phi double [ %175, %._crit_edge459 ], [ %133, %._crit_edge459.thread ], [ %175, %178 ]
  %.0.lcssa = phi double [ 0.000000e+00, %._crit_edge459 ], [ 0.000000e+00, %._crit_edge459.thread ], [ %184, %178 ]
  %187 = fdiv double %.0.lcssa, %186
  %188 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %187, ptr noundef %15)
  %189 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %188, double noundef 0.000000e+00)
  %.1 = select i1 %189, double 1.000000e+00, double %188
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef 5, ptr noundef %15)
  %190 = getelementptr inbounds i8, ptr %25, i64 56
  %191 = load ptr, ptr %190, align 8, !tbaa !15
  store double %.1, ptr %191, align 8, !tbaa !5
  %192 = load ptr, ptr %190, align 8, !tbaa !15
  %193 = getelementptr inbounds i8, ptr %192, i64 8
  store double 1.000000e-01, ptr %193, align 8, !tbaa !5
  %194 = load ptr, ptr %190, align 8, !tbaa !15
  %195 = getelementptr inbounds i8, ptr %194, i64 16
  store double %131, ptr %195, align 8, !tbaa !5
  %196 = load ptr, ptr %190, align 8, !tbaa !15
  %197 = getelementptr inbounds i8, ptr %196, i64 24
  store double %.1, ptr %197, align 8, !tbaa !5
  %198 = load ptr, ptr %190, align 8, !tbaa !15
  %199 = getelementptr inbounds i8, ptr %198, i64 32
  store double 1.000000e-01, ptr %199, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %20, i64 noundef 5, ptr noundef %15)
  %200 = getelementptr inbounds i8, ptr %20, i64 56
  %201 = load ptr, ptr %200, align 8, !tbaa !15
  store double 0.000000e+00, ptr %201, align 8, !tbaa !5
  %202 = load ptr, ptr %200, align 8, !tbaa !15
  %203 = getelementptr inbounds i8, ptr %202, i64 8
  store double 0.000000e+00, ptr %203, align 8, !tbaa !5
  %204 = load ptr, ptr %200, align 8, !tbaa !15
  %205 = getelementptr inbounds i8, ptr %204, i64 16
  store double 0.000000e+00, ptr %205, align 8, !tbaa !5
  %206 = load ptr, ptr %200, align 8, !tbaa !15
  %207 = getelementptr inbounds i8, ptr %206, i64 24
  store double 0.000000e+00, ptr %207, align 8, !tbaa !5
  %208 = load ptr, ptr %200, align 8, !tbaa !15
  %209 = getelementptr inbounds i8, ptr %208, i64 32
  store double 0.000000e+00, ptr %209, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %23, i64 noundef 5, ptr noundef %15)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %24, i64 noundef 5, ptr noundef %15)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %26, i64 noundef 5, ptr noundef %15)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %27, i64 noundef 5, ptr noundef %15)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %28, i64 noundef 5, ptr noundef %15)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %29, i64 noundef 5, ptr noundef %15)
  %210 = add nuw nsw i64 %2, 5
  call void @_ZN11alglib_impl13minlmcreatevjEllPNS_9ae_vectorEPNS_10minlmstateEPNS_8ae_stateE(i64 noundef 5, i64 noundef %210, ptr noundef nonnull %20, ptr noundef nonnull %32, ptr noundef %15)
  call void @_ZN11alglib_impl13minlmsetscaleEPNS_10minlmstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %25, ptr noundef %15)
  call void @_ZN11alglib_impl12minlmsetcondEPNS_10minlmstateEdlPNS_8ae_stateE(ptr noundef nonnull %32, double noundef %.0438, i64 noundef 1000, ptr noundef %15)
  call void @_ZN11alglib_impl12minlmsetxrepEPNS_10minlmstateEbPNS_8ae_stateE(ptr noundef nonnull %32, i1 noundef zeroext true, ptr noundef %15)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %21, i64 noundef 5, ptr noundef %15)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef 5, ptr noundef %15)
  store double 0.000000e+00, ptr %9, align 8, !tbaa !5
  store double 1.000000e+00, ptr %10, align 8, !tbaa !5
  store double 1.000000e+00, ptr %11, align 8, !tbaa !5
  store double 1.000000e+00, ptr %12, align 8, !tbaa !5
  store double 1.000000e+00, ptr %13, align 8, !tbaa !5
  %.not.not447474 = icmp sgt i64 %spec.store.select, 0
  br i1 %5, label %211, label %336

211:                                              ; preds = %._crit_edge466
  br i1 %.not.not447474, label %.lr.ph478, label %._crit_edge479

.lr.ph478:                                        ; preds = %211
  %212 = getelementptr inbounds i8, ptr %19, i64 56
  %213 = fmul double %.1, 1.500000e-01
  %214 = getelementptr inbounds i8, ptr %21, i64 56
  %215 = fmul double %.1, 2.500000e-01
  %216 = getelementptr inbounds i8, ptr %15, i64 24
  %217 = getelementptr inbounds i8, ptr %23, i64 56
  %218 = getelementptr inbounds i8, ptr %15, i64 16
  %219 = getelementptr inbounds i8, ptr %24, i64 56
  %220 = fmul double %131, 5.000000e-01
  %221 = fmul double %131, 2.000000e+00
  %222 = fmul double %6, 1.000000e+02
  %223 = fmul double %131, 5.000000e-16
  %224 = fdiv double %131, 5.000000e-16
  br label %225

225:                                              ; preds = %.lr.ph478, %334
  %.0427476 = phi double [ 1.000000e+300, %.lr.ph478 ], [ %.1428, %334 ]
  %.0432475 = phi i64 [ 0, %.lr.ph478 ], [ %335, %334 ]
  %226 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %3, ptr noundef %15)
  br i1 %226, label %233, label %227

227:                                              ; preds = %225
  %228 = load ptr, ptr %212, align 8, !tbaa !15
  %229 = load double, ptr %228, align 8, !tbaa !5
  %230 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef %15)
  %231 = fadd double %230, -5.000000e-01
  %232 = call double @llvm.fmuladd.f64(double %213, double %231, double %229)
  br label %233

233:                                              ; preds = %225, %227
  %.sink = phi double [ %232, %227 ], [ %3, %225 ]
  %234 = load ptr, ptr %214, align 8, !tbaa !15
  store double %.sink, ptr %234, align 8, !tbaa !5
  %235 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef %15)
  %236 = fadd double %235, 5.000000e-01
  %237 = load ptr, ptr %214, align 8, !tbaa !15
  %238 = getelementptr inbounds i8, ptr %237, i64 8
  store double %236, ptr %238, align 8, !tbaa !5
  %239 = load ptr, ptr %63, align 8, !tbaa !15
  %240 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %127, ptr noundef %15)
  %241 = getelementptr double, ptr %239, i64 %.0434451
  %242 = getelementptr double, ptr %241, i64 %240
  %243 = load double, ptr %242, align 8, !tbaa !5
  %244 = load ptr, ptr %214, align 8, !tbaa !15
  %245 = getelementptr inbounds i8, ptr %244, i64 16
  store double %243, ptr %245, align 8, !tbaa !5
  %246 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %15)
  br i1 %246, label %254, label %247

247:                                              ; preds = %233
  %248 = load ptr, ptr %212, align 8, !tbaa !15
  %249 = getelementptr inbounds double, ptr %248, i64 %74
  %250 = load double, ptr %249, align 8, !tbaa !5
  %251 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef %15)
  %252 = fadd double %251, -5.000000e-01
  %253 = call double @llvm.fmuladd.f64(double %215, double %252, double %250)
  br label %254

254:                                              ; preds = %233, %247
  %.sink500 = phi double [ %253, %247 ], [ %4, %233 ]
  %255 = load ptr, ptr %214, align 8, !tbaa !15
  %256 = getelementptr inbounds i8, ptr %255, i64 24
  store double %.sink500, ptr %256, align 8, !tbaa !5
  %257 = load ptr, ptr %214, align 8, !tbaa !15
  %258 = getelementptr inbounds i8, ptr %257, i64 32
  store double 1.000000e+00, ptr %258, align 8, !tbaa !5
  %259 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %3, ptr noundef %15)
  br i1 %259, label %260, label %262

260:                                              ; preds = %254
  %261 = load ptr, ptr %217, align 8, !tbaa !15
  store double %3, ptr %261, align 8, !tbaa !5
  br label %266

262:                                              ; preds = %254
  %263 = load double, ptr %216, align 8, !tbaa !27
  %264 = load ptr, ptr %217, align 8, !tbaa !15
  store double %263, ptr %264, align 8, !tbaa !5
  %265 = load double, ptr %218, align 8, !tbaa !31
  br label %266

266:                                              ; preds = %262, %260
  %.sink503 = phi double [ %265, %262 ], [ %3, %260 ]
  %267 = load ptr, ptr %219, align 8, !tbaa !15
  store double %.sink503, ptr %267, align 8, !tbaa !5
  %268 = load ptr, ptr %217, align 8, !tbaa !15
  %269 = getelementptr inbounds i8, ptr %268, i64 8
  store double 5.000000e-01, ptr %269, align 8, !tbaa !5
  %270 = load ptr, ptr %219, align 8, !tbaa !15
  %271 = getelementptr inbounds i8, ptr %270, i64 8
  store double 2.000000e+00, ptr %271, align 8, !tbaa !5
  %272 = load ptr, ptr %217, align 8, !tbaa !15
  %273 = getelementptr inbounds i8, ptr %272, i64 16
  store double %220, ptr %273, align 8, !tbaa !5
  %274 = load ptr, ptr %219, align 8, !tbaa !15
  %275 = getelementptr inbounds i8, ptr %274, i64 16
  store double %221, ptr %275, align 8, !tbaa !5
  %276 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %15)
  br i1 %276, label %277, label %280

277:                                              ; preds = %266
  %278 = load ptr, ptr %217, align 8, !tbaa !15
  %279 = getelementptr inbounds i8, ptr %278, i64 24
  store double %4, ptr %279, align 8, !tbaa !5
  br label %285

280:                                              ; preds = %266
  %281 = load double, ptr %216, align 8, !tbaa !27
  %282 = load ptr, ptr %217, align 8, !tbaa !15
  %283 = getelementptr inbounds i8, ptr %282, i64 24
  store double %281, ptr %283, align 8, !tbaa !5
  %284 = load double, ptr %218, align 8, !tbaa !31
  br label %285

285:                                              ; preds = %280, %277
  %.sink505 = phi double [ %284, %280 ], [ %4, %277 ]
  %286 = load ptr, ptr %219, align 8, !tbaa !15
  %287 = getelementptr inbounds i8, ptr %286, i64 24
  store double %.sink505, ptr %287, align 8, !tbaa !5
  %288 = load ptr, ptr %217, align 8, !tbaa !15
  %289 = getelementptr inbounds i8, ptr %288, i64 32
  store double 1.000000e+00, ptr %289, align 8, !tbaa !5
  %290 = load ptr, ptr %219, align 8, !tbaa !15
  %291 = getelementptr inbounds i8, ptr %290, i64 32
  store double 1.000000e+00, ptr %291, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %15)
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %2, i1 noundef zeroext true, double noundef %222, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %21, ptr noundef nonnull %34, ptr noundef %15)
  %292 = load i64, ptr %75, align 8, !tbaa !18
  %293 = load i64, ptr %33, align 8, !tbaa !32
  %294 = add nsw i64 %293, %292
  store i64 %294, ptr %75, align 8, !tbaa !18
  %295 = load ptr, ptr %217, align 8, !tbaa !15
  %296 = getelementptr inbounds i8, ptr %295, i64 8
  store double 1.000000e-01, ptr %296, align 8, !tbaa !5
  %297 = load ptr, ptr %219, align 8, !tbaa !15
  %298 = getelementptr inbounds i8, ptr %297, i64 8
  store double 1.000000e+01, ptr %298, align 8, !tbaa !5
  %299 = load ptr, ptr %217, align 8, !tbaa !15
  %300 = getelementptr inbounds i8, ptr %299, i64 16
  store double %223, ptr %300, align 8, !tbaa !5
  %301 = load ptr, ptr %219, align 8, !tbaa !15
  %302 = getelementptr inbounds i8, ptr %301, i64 16
  store double %224, ptr %302, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %15)
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %2, i1 noundef zeroext true, double noundef %6, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %21, ptr noundef nonnull %34, ptr noundef %15)
  %303 = load i64, ptr %75, align 8, !tbaa !18
  %304 = load i64, ptr %33, align 8, !tbaa !32
  %305 = add nsw i64 %304, %303
  store i64 %305, ptr %75, align 8, !tbaa !18
  %306 = load ptr, ptr %217, align 8, !tbaa !15
  %307 = getelementptr inbounds i8, ptr %306, i64 8
  store double 1.000000e-02, ptr %307, align 8, !tbaa !5
  %308 = load ptr, ptr %219, align 8, !tbaa !15
  %309 = getelementptr inbounds i8, ptr %308, i64 8
  store double 1.000000e+02, ptr %309, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %15)
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %2, i1 noundef zeroext true, double noundef %6, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %21, ptr noundef nonnull %34, ptr noundef %15)
  %310 = load i64, ptr %75, align 8, !tbaa !18
  %311 = load i64, ptr %33, align 8, !tbaa !32
  %312 = add nsw i64 %311, %310
  store i64 %312, ptr %75, align 8, !tbaa !18
  %313 = load ptr, ptr %217, align 8, !tbaa !15
  %314 = getelementptr inbounds i8, ptr %313, i64 8
  store double 1.000000e-03, ptr %314, align 8, !tbaa !5
  %315 = load ptr, ptr %219, align 8, !tbaa !15
  %316 = getelementptr inbounds i8, ptr %315, i64 8
  store double 1.000000e+03, ptr %316, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %15)
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %2, i1 noundef zeroext true, double noundef %6, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %21, ptr noundef nonnull %34, ptr noundef %15)
  %317 = load i64, ptr %75, align 8, !tbaa !18
  %318 = load i64, ptr %33, align 8, !tbaa !32
  %319 = add nsw i64 %318, %317
  store i64 %319, ptr %75, align 8, !tbaa !18
  %320 = load double, ptr %34, align 8, !tbaa !5
  %321 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %320, double noundef %.0427476)
  br i1 %321, label %322, label %334

322:                                              ; preds = %285
  %323 = load ptr, ptr %214, align 8, !tbaa !15
  %324 = load double, ptr %323, align 8, !tbaa !5
  store double %324, ptr %9, align 8, !tbaa !5
  %325 = getelementptr inbounds i8, ptr %323, i64 8
  %326 = load double, ptr %325, align 8, !tbaa !5
  store double %326, ptr %10, align 8, !tbaa !5
  %327 = getelementptr inbounds i8, ptr %323, i64 16
  %328 = load double, ptr %327, align 8, !tbaa !5
  store double %328, ptr %11, align 8, !tbaa !5
  %329 = getelementptr inbounds i8, ptr %323, i64 24
  %330 = load double, ptr %329, align 8, !tbaa !5
  store double %330, ptr %12, align 8, !tbaa !5
  %331 = getelementptr inbounds i8, ptr %323, i64 32
  %332 = load double, ptr %331, align 8, !tbaa !5
  store double %332, ptr %13, align 8, !tbaa !5
  %333 = load double, ptr %34, align 8, !tbaa !5
  br label %334

334:                                              ; preds = %285, %322
  %.1428 = phi double [ %333, %322 ], [ %.0427476, %285 ]
  %335 = add nuw nsw i64 %.0432475, 1
  %exitcond491.not = icmp eq i64 %335, %spec.store.select
  br i1 %exitcond491.not, label %._crit_edge479.loopexit, label %225, !llvm.loop !34

._crit_edge479.loopexit:                          ; preds = %334
  %.pre493 = load double, ptr %13, align 8, !tbaa !5
  br label %._crit_edge479

336:                                              ; preds = %._crit_edge466
  br i1 %.not.not447474, label %.lr.ph472, label %._crit_edge479

.lr.ph472:                                        ; preds = %336
  %337 = getelementptr inbounds i8, ptr %19, i64 56
  %338 = fmul double %.1, 1.500000e-01
  %339 = getelementptr inbounds i8, ptr %21, i64 56
  %340 = fmul double %.1, 2.500000e-01
  %341 = getelementptr inbounds i8, ptr %15, i64 24
  %342 = getelementptr inbounds i8, ptr %26, i64 56
  %343 = getelementptr inbounds i8, ptr %15, i64 16
  %344 = getelementptr inbounds i8, ptr %27, i64 56
  %345 = fmul double %131, 5.000000e-01
  %346 = fmul double %131, 2.000000e+00
  %347 = fmul double %6, 1.000000e+02
  %348 = getelementptr inbounds i8, ptr %22, i64 56
  %349 = getelementptr inbounds i8, ptr %28, i64 56
  %350 = getelementptr inbounds i8, ptr %29, i64 56
  %351 = fmul double %131, 5.000000e-16
  %352 = fdiv double %131, 5.000000e-16
  br label %353

353:                                              ; preds = %.lr.ph472, %580
  %.2470 = phi double [ 1.000000e+300, %.lr.ph472 ], [ %.3, %580 ]
  %.1433469 = phi i64 [ 0, %.lr.ph472 ], [ %581, %580 ]
  %354 = load ptr, ptr %337, align 8, !tbaa !15
  %355 = load double, ptr %354, align 8, !tbaa !5
  %356 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef %15)
  %357 = fadd double %356, -5.000000e-01
  %358 = call double @llvm.fmuladd.f64(double %338, double %357, double %355)
  %359 = load ptr, ptr %339, align 8, !tbaa !15
  store double %358, ptr %359, align 8, !tbaa !5
  %360 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef %15)
  %361 = fadd double %360, 5.000000e-01
  %362 = load ptr, ptr %339, align 8, !tbaa !15
  %363 = getelementptr inbounds i8, ptr %362, i64 8
  store double %361, ptr %363, align 8, !tbaa !5
  %364 = load ptr, ptr %63, align 8, !tbaa !15
  %365 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %127, ptr noundef %15)
  %366 = getelementptr double, ptr %364, i64 %.0434451
  %367 = getelementptr double, ptr %366, i64 %365
  %368 = load double, ptr %367, align 8, !tbaa !5
  %369 = load ptr, ptr %339, align 8, !tbaa !15
  %370 = getelementptr inbounds i8, ptr %369, i64 16
  store double %368, ptr %370, align 8, !tbaa !5
  %371 = load ptr, ptr %337, align 8, !tbaa !15
  %372 = getelementptr inbounds double, ptr %371, i64 %74
  %373 = load double, ptr %372, align 8, !tbaa !5
  %374 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef %15)
  %375 = fadd double %374, -5.000000e-01
  %376 = call double @llvm.fmuladd.f64(double %340, double %375, double %373)
  %377 = load ptr, ptr %339, align 8, !tbaa !15
  %378 = getelementptr inbounds i8, ptr %377, i64 24
  store double %376, ptr %378, align 8, !tbaa !5
  %379 = load ptr, ptr %339, align 8, !tbaa !15
  %380 = getelementptr inbounds i8, ptr %379, i64 32
  store double 1.000000e+00, ptr %380, align 8, !tbaa !5
  %381 = load double, ptr %341, align 8, !tbaa !27
  %382 = load ptr, ptr %342, align 8, !tbaa !15
  store double %381, ptr %382, align 8, !tbaa !5
  %383 = load double, ptr %343, align 8, !tbaa !31
  %384 = load ptr, ptr %344, align 8, !tbaa !15
  store double %383, ptr %384, align 8, !tbaa !5
  %385 = load ptr, ptr %342, align 8, !tbaa !15
  %386 = getelementptr inbounds i8, ptr %385, i64 8
  store double 5.000000e-01, ptr %386, align 8, !tbaa !5
  %387 = load ptr, ptr %344, align 8, !tbaa !15
  %388 = getelementptr inbounds i8, ptr %387, i64 8
  store double 2.000000e+00, ptr %388, align 8, !tbaa !5
  %389 = load ptr, ptr %342, align 8, !tbaa !15
  %390 = getelementptr inbounds i8, ptr %389, i64 16
  store double %345, ptr %390, align 8, !tbaa !5
  %391 = load ptr, ptr %344, align 8, !tbaa !15
  %392 = getelementptr inbounds i8, ptr %391, i64 16
  store double %346, ptr %392, align 8, !tbaa !5
  %393 = load double, ptr %341, align 8, !tbaa !27
  %394 = load ptr, ptr %342, align 8, !tbaa !15
  %395 = getelementptr inbounds i8, ptr %394, i64 24
  store double %393, ptr %395, align 8, !tbaa !5
  %396 = load double, ptr %343, align 8, !tbaa !31
  %397 = load ptr, ptr %344, align 8, !tbaa !15
  %398 = getelementptr inbounds i8, ptr %397, i64 24
  store double %396, ptr %398, align 8, !tbaa !5
  %399 = load ptr, ptr %342, align 8, !tbaa !15
  %400 = getelementptr inbounds i8, ptr %399, i64 32
  store double 5.000000e-01, ptr %400, align 8, !tbaa !5
  %401 = load ptr, ptr %344, align 8, !tbaa !15
  %402 = getelementptr inbounds i8, ptr %401, i64 32
  store double 2.000000e+00, ptr %402, align 8, !tbaa !5
  %403 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %3, ptr noundef %15)
  br i1 %403, label %404, label %408

404:                                              ; preds = %353
  %405 = load ptr, ptr %339, align 8, !tbaa !15
  store double %3, ptr %405, align 8, !tbaa !5
  %406 = load ptr, ptr %342, align 8, !tbaa !15
  store double %3, ptr %406, align 8, !tbaa !5
  %407 = load ptr, ptr %344, align 8, !tbaa !15
  store double %3, ptr %407, align 8, !tbaa !5
  br label %408

408:                                              ; preds = %404, %353
  %409 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef nonnull %15)
  br i1 %409, label %410, label %417

410:                                              ; preds = %408
  %411 = load ptr, ptr %339, align 8, !tbaa !15
  %412 = getelementptr inbounds i8, ptr %411, i64 24
  store double %4, ptr %412, align 8, !tbaa !5
  %413 = load ptr, ptr %342, align 8, !tbaa !15
  %414 = getelementptr inbounds i8, ptr %413, i64 24
  store double %4, ptr %414, align 8, !tbaa !5
  %415 = load ptr, ptr %344, align 8, !tbaa !15
  %416 = getelementptr inbounds i8, ptr %415, i64 24
  store double %4, ptr %416, align 8, !tbaa !5
  br label %417

417:                                              ; preds = %410, %408
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef nonnull %15)
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %2, i1 noundef zeroext false, double noundef %347, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %21, ptr noundef nonnull %37, ptr noundef nonnull %15)
  %418 = load i64, ptr %75, align 8, !tbaa !18
  %419 = load i64, ptr %33, align 8, !tbaa !32
  %420 = add nsw i64 %419, %418
  store i64 %420, ptr %75, align 8, !tbaa !18
  %421 = load ptr, ptr %337, align 8, !tbaa !15
  %422 = getelementptr inbounds double, ptr %421, i64 %74
  %423 = load double, ptr %422, align 8, !tbaa !5
  %424 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef nonnull %15)
  %425 = fadd double %424, -5.000000e-01
  %426 = call double @llvm.fmuladd.f64(double %338, double %425, double %423)
  %427 = load ptr, ptr %348, align 8, !tbaa !15
  store double %426, ptr %427, align 8, !tbaa !5
  %428 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef nonnull %15)
  %429 = fadd double %428, 5.000000e-01
  %430 = fneg double %429
  %431 = load ptr, ptr %348, align 8, !tbaa !15
  %432 = getelementptr inbounds i8, ptr %431, i64 8
  store double %430, ptr %432, align 8, !tbaa !5
  %433 = load ptr, ptr %63, align 8, !tbaa !15
  %434 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %127, ptr noundef nonnull %15)
  %435 = getelementptr double, ptr %433, i64 %.0434451
  %436 = getelementptr double, ptr %435, i64 %434
  %437 = load double, ptr %436, align 8, !tbaa !5
  %438 = load ptr, ptr %348, align 8, !tbaa !15
  %439 = getelementptr inbounds i8, ptr %438, i64 16
  store double %437, ptr %439, align 8, !tbaa !5
  %440 = load ptr, ptr %337, align 8, !tbaa !15
  %441 = load double, ptr %440, align 8, !tbaa !5
  %442 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef nonnull %15)
  %443 = fadd double %442, -5.000000e-01
  %444 = call double @llvm.fmuladd.f64(double %340, double %443, double %441)
  %445 = load ptr, ptr %348, align 8, !tbaa !15
  %446 = getelementptr inbounds i8, ptr %445, i64 24
  store double %444, ptr %446, align 8, !tbaa !5
  %447 = load ptr, ptr %348, align 8, !tbaa !15
  %448 = getelementptr inbounds i8, ptr %447, i64 32
  store double 1.000000e+00, ptr %448, align 8, !tbaa !5
  %449 = load double, ptr %341, align 8, !tbaa !27
  %450 = load ptr, ptr %349, align 8, !tbaa !15
  store double %449, ptr %450, align 8, !tbaa !5
  %451 = load double, ptr %343, align 8, !tbaa !31
  %452 = load ptr, ptr %350, align 8, !tbaa !15
  store double %451, ptr %452, align 8, !tbaa !5
  %453 = load ptr, ptr %349, align 8, !tbaa !15
  %454 = getelementptr inbounds i8, ptr %453, i64 8
  store double -2.000000e+00, ptr %454, align 8, !tbaa !5
  %455 = load ptr, ptr %350, align 8, !tbaa !15
  %456 = getelementptr inbounds i8, ptr %455, i64 8
  store double -5.000000e-01, ptr %456, align 8, !tbaa !5
  %457 = load ptr, ptr %349, align 8, !tbaa !15
  %458 = getelementptr inbounds i8, ptr %457, i64 16
  store double %345, ptr %458, align 8, !tbaa !5
  %459 = load ptr, ptr %350, align 8, !tbaa !15
  %460 = getelementptr inbounds i8, ptr %459, i64 16
  store double %346, ptr %460, align 8, !tbaa !5
  %461 = load double, ptr %341, align 8, !tbaa !27
  %462 = load ptr, ptr %349, align 8, !tbaa !15
  %463 = getelementptr inbounds i8, ptr %462, i64 24
  store double %461, ptr %463, align 8, !tbaa !5
  %464 = load double, ptr %343, align 8, !tbaa !31
  %465 = load ptr, ptr %350, align 8, !tbaa !15
  %466 = getelementptr inbounds i8, ptr %465, i64 24
  store double %464, ptr %466, align 8, !tbaa !5
  %467 = load ptr, ptr %349, align 8, !tbaa !15
  %468 = getelementptr inbounds i8, ptr %467, i64 32
  store double 5.000000e-01, ptr %468, align 8, !tbaa !5
  %469 = load ptr, ptr %350, align 8, !tbaa !15
  %470 = getelementptr inbounds i8, ptr %469, i64 32
  store double 2.000000e+00, ptr %470, align 8, !tbaa !5
  %471 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %3, ptr noundef nonnull %15)
  br i1 %471, label %472, label %479

472:                                              ; preds = %417
  %473 = load ptr, ptr %348, align 8, !tbaa !15
  %474 = getelementptr inbounds i8, ptr %473, i64 24
  store double %3, ptr %474, align 8, !tbaa !5
  %475 = load ptr, ptr %349, align 8, !tbaa !15
  %476 = getelementptr inbounds i8, ptr %475, i64 24
  store double %3, ptr %476, align 8, !tbaa !5
  %477 = load ptr, ptr %350, align 8, !tbaa !15
  %478 = getelementptr inbounds i8, ptr %477, i64 24
  store double %3, ptr %478, align 8, !tbaa !5
  br label %479

479:                                              ; preds = %472, %417
  %480 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef nonnull %15)
  br i1 %480, label %481, label %485

481:                                              ; preds = %479
  %482 = load ptr, ptr %348, align 8, !tbaa !15
  store double %4, ptr %482, align 8, !tbaa !5
  %483 = load ptr, ptr %349, align 8, !tbaa !15
  store double %4, ptr %483, align 8, !tbaa !5
  %484 = load ptr, ptr %350, align 8, !tbaa !15
  store double %4, ptr %484, align 8, !tbaa !5
  br label %485

485:                                              ; preds = %481, %479
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %15)
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %2, i1 noundef zeroext false, double noundef %347, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %22, ptr noundef nonnull %38, ptr noundef nonnull %15)
  %486 = load i64, ptr %75, align 8, !tbaa !18
  %487 = load i64, ptr %33, align 8, !tbaa !32
  %488 = add nsw i64 %487, %486
  store i64 %488, ptr %75, align 8, !tbaa !18
  %489 = load double, ptr %37, align 8, !tbaa !5
  %490 = load double, ptr %38, align 8, !tbaa !5
  %491 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %489, double noundef %490)
  br i1 %491, label %492, label %536

492:                                              ; preds = %485
  %493 = load ptr, ptr %342, align 8, !tbaa !15
  %494 = getelementptr inbounds i8, ptr %493, i64 8
  store double 1.000000e-01, ptr %494, align 8, !tbaa !5
  %495 = load ptr, ptr %344, align 8, !tbaa !15
  %496 = getelementptr inbounds i8, ptr %495, i64 8
  store double 1.000000e+01, ptr %496, align 8, !tbaa !5
  %497 = load ptr, ptr %342, align 8, !tbaa !15
  %498 = getelementptr inbounds i8, ptr %497, i64 16
  store double %351, ptr %498, align 8, !tbaa !5
  %499 = load ptr, ptr %344, align 8, !tbaa !15
  %500 = getelementptr inbounds i8, ptr %499, i64 16
  store double %352, ptr %500, align 8, !tbaa !5
  %501 = load ptr, ptr %342, align 8, !tbaa !15
  %502 = getelementptr inbounds i8, ptr %501, i64 32
  store double 1.000000e-01, ptr %502, align 8, !tbaa !5
  %503 = load ptr, ptr %344, align 8, !tbaa !15
  %504 = getelementptr inbounds i8, ptr %503, i64 32
  store double 1.000000e+01, ptr %504, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef nonnull %15)
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %2, i1 noundef zeroext false, double noundef %6, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %21, ptr noundef nonnull %34, ptr noundef nonnull %15)
  %505 = load i64, ptr %75, align 8, !tbaa !18
  %506 = load i64, ptr %33, align 8, !tbaa !32
  %507 = add nsw i64 %506, %505
  store i64 %507, ptr %75, align 8, !tbaa !18
  %508 = load ptr, ptr %342, align 8, !tbaa !15
  %509 = getelementptr inbounds i8, ptr %508, i64 8
  store double 1.000000e-02, ptr %509, align 8, !tbaa !5
  %510 = load ptr, ptr %344, align 8, !tbaa !15
  %511 = getelementptr inbounds i8, ptr %510, i64 8
  store double 1.000000e+02, ptr %511, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef nonnull %15)
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %2, i1 noundef zeroext false, double noundef %6, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %21, ptr noundef nonnull %34, ptr noundef nonnull %15)
  %512 = load i64, ptr %75, align 8, !tbaa !18
  %513 = load i64, ptr %33, align 8, !tbaa !32
  %514 = add nsw i64 %513, %512
  store i64 %514, ptr %75, align 8, !tbaa !18
  %515 = load ptr, ptr %342, align 8, !tbaa !15
  %516 = getelementptr inbounds i8, ptr %515, i64 8
  store double 1.000000e-03, ptr %516, align 8, !tbaa !5
  %517 = load ptr, ptr %344, align 8, !tbaa !15
  %518 = getelementptr inbounds i8, ptr %517, i64 8
  store double 1.000000e+03, ptr %518, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef nonnull %15)
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %2, i1 noundef zeroext false, double noundef %6, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %21, ptr noundef nonnull %34, ptr noundef nonnull %15)
  %519 = load i64, ptr %75, align 8, !tbaa !18
  %520 = load i64, ptr %33, align 8, !tbaa !32
  %521 = add nsw i64 %520, %519
  store i64 %521, ptr %75, align 8, !tbaa !18
  %522 = load double, ptr %34, align 8, !tbaa !5
  %523 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %522, double noundef %.2470)
  br i1 %523, label %524, label %580

524:                                              ; preds = %492
  %525 = load ptr, ptr %339, align 8, !tbaa !15
  %526 = load double, ptr %525, align 8, !tbaa !5
  store double %526, ptr %9, align 8, !tbaa !5
  %527 = getelementptr inbounds i8, ptr %525, i64 8
  %528 = load double, ptr %527, align 8, !tbaa !5
  store double %528, ptr %10, align 8, !tbaa !5
  %529 = getelementptr inbounds i8, ptr %525, i64 16
  %530 = load double, ptr %529, align 8, !tbaa !5
  store double %530, ptr %11, align 8, !tbaa !5
  %531 = getelementptr inbounds i8, ptr %525, i64 24
  %532 = load double, ptr %531, align 8, !tbaa !5
  store double %532, ptr %12, align 8, !tbaa !5
  %533 = getelementptr inbounds i8, ptr %525, i64 32
  %534 = load double, ptr %533, align 8, !tbaa !5
  store double %534, ptr %13, align 8, !tbaa !5
  %535 = load double, ptr %34, align 8, !tbaa !5
  br label %580

536:                                              ; preds = %485
  %537 = load ptr, ptr %349, align 8, !tbaa !15
  %538 = getelementptr inbounds i8, ptr %537, i64 8
  store double -1.000000e+01, ptr %538, align 8, !tbaa !5
  %539 = load ptr, ptr %350, align 8, !tbaa !15
  %540 = getelementptr inbounds i8, ptr %539, i64 8
  store double -1.000000e-01, ptr %540, align 8, !tbaa !5
  %541 = load ptr, ptr %349, align 8, !tbaa !15
  %542 = getelementptr inbounds i8, ptr %541, i64 16
  store double %351, ptr %542, align 8, !tbaa !5
  %543 = load ptr, ptr %350, align 8, !tbaa !15
  %544 = getelementptr inbounds i8, ptr %543, i64 16
  store double %352, ptr %544, align 8, !tbaa !5
  %545 = load ptr, ptr %349, align 8, !tbaa !15
  %546 = getelementptr inbounds i8, ptr %545, i64 32
  store double 1.000000e-01, ptr %546, align 8, !tbaa !5
  %547 = load ptr, ptr %350, align 8, !tbaa !15
  %548 = getelementptr inbounds i8, ptr %547, i64 32
  store double 1.000000e+01, ptr %548, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %15)
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %2, i1 noundef zeroext false, double noundef %6, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %22, ptr noundef nonnull %34, ptr noundef nonnull %15)
  %549 = load i64, ptr %75, align 8, !tbaa !18
  %550 = load i64, ptr %33, align 8, !tbaa !32
  %551 = add nsw i64 %550, %549
  store i64 %551, ptr %75, align 8, !tbaa !18
  %552 = load ptr, ptr %349, align 8, !tbaa !15
  %553 = getelementptr inbounds i8, ptr %552, i64 8
  store double -1.000000e+02, ptr %553, align 8, !tbaa !5
  %554 = load ptr, ptr %350, align 8, !tbaa !15
  %555 = getelementptr inbounds i8, ptr %554, i64 8
  store double -1.000000e-02, ptr %555, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %15)
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %2, i1 noundef zeroext false, double noundef %6, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %22, ptr noundef nonnull %34, ptr noundef nonnull %15)
  %556 = load i64, ptr %75, align 8, !tbaa !18
  %557 = load i64, ptr %33, align 8, !tbaa !32
  %558 = add nsw i64 %557, %556
  store i64 %558, ptr %75, align 8, !tbaa !18
  %559 = load ptr, ptr %349, align 8, !tbaa !15
  %560 = getelementptr inbounds i8, ptr %559, i64 8
  store double -1.000000e+03, ptr %560, align 8, !tbaa !5
  %561 = load ptr, ptr %350, align 8, !tbaa !15
  %562 = getelementptr inbounds i8, ptr %561, i64 8
  store double -1.000000e-03, ptr %562, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %15)
  call void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %2, i1 noundef zeroext false, double noundef %6, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef nonnull %22, ptr noundef nonnull %34, ptr noundef nonnull %15)
  %563 = load i64, ptr %75, align 8, !tbaa !18
  %564 = load i64, ptr %33, align 8, !tbaa !32
  %565 = add nsw i64 %564, %563
  store i64 %565, ptr %75, align 8, !tbaa !18
  %566 = load double, ptr %34, align 8, !tbaa !5
  %567 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %566, double noundef %.2470)
  br i1 %567, label %568, label %580

568:                                              ; preds = %536
  %569 = load ptr, ptr %348, align 8, !tbaa !15
  %570 = load double, ptr %569, align 8, !tbaa !5
  store double %570, ptr %9, align 8, !tbaa !5
  %571 = getelementptr inbounds i8, ptr %569, i64 8
  %572 = load double, ptr %571, align 8, !tbaa !5
  store double %572, ptr %10, align 8, !tbaa !5
  %573 = getelementptr inbounds i8, ptr %569, i64 16
  %574 = load double, ptr %573, align 8, !tbaa !5
  store double %574, ptr %11, align 8, !tbaa !5
  %575 = getelementptr inbounds i8, ptr %569, i64 24
  %576 = load double, ptr %575, align 8, !tbaa !5
  store double %576, ptr %12, align 8, !tbaa !5
  %577 = getelementptr inbounds i8, ptr %569, i64 32
  %578 = load double, ptr %577, align 8, !tbaa !5
  store double %578, ptr %13, align 8, !tbaa !5
  %579 = load double, ptr %34, align 8, !tbaa !5
  br label %580

580:                                              ; preds = %524, %492, %568, %536
  %.3 = phi double [ %535, %524 ], [ %.2470, %492 ], [ %579, %568 ], [ %.2470, %536 ]
  %581 = add nuw nsw i64 %.1433469, 1
  %exitcond490.not = icmp eq i64 %581, %spec.store.select
  br i1 %exitcond490.not, label %._crit_edge473.loopexit, label %353, !llvm.loop !35

._crit_edge473.loopexit:                          ; preds = %580
  %.pre = load double, ptr %13, align 8, !tbaa !5
  br label %._crit_edge479

._crit_edge479:                                   ; preds = %336, %._crit_edge473.loopexit, %211, %._crit_edge479.loopexit, %124
  %.sink512 = phi double [ 1.000000e+00, %124 ], [ %.pre493, %._crit_edge479.loopexit ], [ 1.000000e+00, %211 ], [ %.pre, %._crit_edge473.loopexit ], [ 1.000000e+00, %336 ]
  %582 = load double, ptr %9, align 8, !tbaa !5
  %583 = load double, ptr %10, align 8, !tbaa !5
  %584 = load double, ptr %11, align 8, !tbaa !5
  %585 = load double, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL25lsfit_logisticfit45errorsEPNS_9ae_vectorES1_ldddddPNS_11lsfitreportEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %2, double noundef %582, double noundef %583, double noundef %584, double noundef %585, double noundef %.sink512, ptr noundef %14, ptr noundef %15)
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %36) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %33) #5
  call void @llvm.lifetime.end.p0(i64 85408, ptr nonnull %32) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %30) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %28) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %27) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %26) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %25) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  ret void
}

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

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl8ae_isnanEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl12tagsortfastrEPNS_9ae_vectorES1_S1_S1_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl16_minlmstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl17_minlmreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl13minlmcreatevjEllPNS_9ae_vectorEPNS_10minlmstateEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl13minlmsetscaleEPNS_10minlmstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl10minlmsetbcEPNS_10minlmstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl12minlmsetcondEPNS_10minlmstateEdlPNS_8ae_stateE(ptr noundef, double noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL25lsfit_logisticfit45errorsEPNS_9ae_vectorES1_ldddddPNS_11lsfitreportEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, double noundef, double noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl12minlmsetxrepEPNS_10minlmstateEbPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL25lsfit_logisticfitinternalEPNS_9ae_vectorES1_lbdPNS_10minlmstateEPNS_11minlmreportES1_PdPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i1 noundef zeroext, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "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 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !12, i64 16, !13, i64 24, !7, i64 56}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !11, i64 8}
!19 = !{!"_ZTSN11alglib_impl11lsfitreportE", !6, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !20, i64 64, !10, i64 144, !10, i64 208, !10, i64 272, !6, i64 336}
!20 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 40, !7, i64 72}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !17}
!27 = !{!28, !6, i64 24}
!28 = !{!"_ZTSN11alglib_impl8ae_stateE", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !13, i64 40, !14, i64 72, !29, i64 80, !14, i64 88, !30, i64 96, !14, i64 104, !14, i64 112, !14, i64 120}
!29 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!30 = !{!"long long", !7, i64 0}
!31 = !{!28, !6, i64 16}
!32 = !{!33, !11, i64 0}
!33 = !{!"_ZTSN11alglib_impl11minlmreportE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!34 = distinct !{!34, !17}
!35 = distinct !{!35, !17}


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