; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z12quickqptestsPN11alglib_impl8ae_stateE)

; 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::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::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"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::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::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::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::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::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::hqrndstate" = type { i64, i64, i64 }
%"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.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.393 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.394 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.395 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.396 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.397 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.398 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.399 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.400 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.401 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.402 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.403 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.404 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.405 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.406 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.407 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.408 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.409 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.410 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.411 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.412 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.413 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.414 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.415 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.416 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.417 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.418 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.419 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.420 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.421 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.422 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.423 = external hidden unnamed_addr constant [22 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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #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_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #1

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

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

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

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

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

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

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

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) #1

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

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

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

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

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

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

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

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

declare noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

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

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

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

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

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #1

declare noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef, ptr noundef) #1

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

declare noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z12quickqptestsPN11alglib_impl8ae_stateE(ptr noundef %0) #4 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.alglib_impl::ae_frame", align 8
  %5 = alloca %"struct.alglib_impl::minqpstate", align 8
  %6 = alloca %"struct.alglib_impl::minqpreport", align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i8, align 1
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i64, align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca i64, align 8
  %23 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %24 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %25 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %26 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %27 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %28 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %29 = alloca %"struct.alglib_impl::ae_vector", align 8
  %30 = alloca %"struct.alglib_impl::ae_vector", align 8
  %31 = alloca %"struct.alglib_impl::ae_vector", align 8
  %32 = alloca %"struct.alglib_impl::ae_vector", align 8
  %33 = alloca %"struct.alglib_impl::ae_vector", align 8
  %34 = alloca %"struct.alglib_impl::ae_vector", align 8
  %35 = alloca %"struct.alglib_impl::ae_vector", align 8
  %36 = alloca %"struct.alglib_impl::ae_vector", align 8
  %37 = alloca %"struct.alglib_impl::ae_vector", align 8
  %38 = alloca %"struct.alglib_impl::ae_vector", align 8
  %39 = alloca %"struct.alglib_impl::ae_vector", align 8
  %40 = alloca %"struct.alglib_impl::ae_vector", align 8
  %41 = alloca double, align 8
  %42 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %43 = alloca i8, align 1
  %44 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 35232, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 64, 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 64, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %40) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %42) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %43) #5
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %45, ptr noundef %4)
  call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 35232, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 40, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %29, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 64, i1 false)
  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 %36, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %37, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %38, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %39, 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 %42, i8 0, i64 24, i1 false)
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_minqpstate_initEPvPNS_8ae_stateEb(ptr noundef %5, ptr noundef %46, i1 noundef zeroext true)
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl17_minqpreport_initEPvPNS_8ae_stateEb(ptr noundef %6, ptr noundef %47, i1 noundef zeroext true)
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 2, ptr noundef %48, i1 noundef zeroext true)
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %49, i1 noundef zeroext true)
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %24, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %50, i1 noundef zeroext true)
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %25, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %51, i1 noundef zeroext true)
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %26, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %52, i1 noundef zeroext true)
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %53, i1 noundef zeroext true)
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %28, ptr noundef %54, i1 noundef zeroext true)
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %29, i64 noundef 0, i64 noundef 2, ptr noundef %55, i1 noundef zeroext true)
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %30, i64 noundef 0, i64 noundef 3, ptr noundef %56, i1 noundef zeroext true)
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %31, i64 noundef 0, i64 noundef 3, ptr noundef %57, i1 noundef zeroext true)
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %32, i64 noundef 0, i64 noundef 3, ptr noundef %58, i1 noundef zeroext true)
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %33, i64 noundef 0, i64 noundef 3, ptr noundef %59, i1 noundef zeroext true)
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %34, i64 noundef 0, i64 noundef 3, ptr noundef %60, i1 noundef zeroext true)
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %35, i64 noundef 0, i64 noundef 3, ptr noundef %61, i1 noundef zeroext true)
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %36, i64 noundef 0, i64 noundef 3, ptr noundef %62, i1 noundef zeroext true)
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %37, i64 noundef 0, i64 noundef 3, ptr noundef %63, i1 noundef zeroext true)
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %38, i64 noundef 0, i64 noundef 3, ptr noundef %64, i1 noundef zeroext true)
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %39, i64 noundef 0, i64 noundef 3, ptr noundef %65, i1 noundef zeroext true)
  %66 = load ptr, ptr %3, 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 %66, i1 noundef zeroext true)
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %42, ptr noundef %67, i1 noundef zeroext true)
  store i8 0, ptr %43, align 1, !tbaa !9
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %68)
  store double 1.000000e-05, ptr %41, align 8, !tbaa !11
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %69

69:                                               ; preds = %321, %1
  %70 = load i64, ptr %7, align 8, !tbaa !13
  %71 = icmp sle i64 %70, 10
  br i1 %71, label %72, label %324

72:                                               ; preds = %69
  store i64 1, ptr %8, align 8, !tbaa !13
  br label %73

73:                                               ; preds = %317, %72
  %74 = load i64, ptr %8, align 8, !tbaa !13
  %75 = icmp sle i64 %74, 10
  br i1 %75, label %76, label %320

76:                                               ; preds = %73
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %42, i64 noundef 2, ptr noundef %77)
  store i64 %78, ptr %16, align 8, !tbaa !13
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %42, i64 noundef 2, ptr noundef %79)
  store i64 %80, ptr %17, align 8, !tbaa !13
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %81)
  %83 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %82, double noundef 5.000000e-01)
  %84 = zext i1 %83 to i8
  store i8 %84, ptr %18, align 1, !tbaa !9
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %85)
  %87 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %86, double noundef 5.000000e-01)
  %88 = zext i1 %87 to i8
  store i8 %88, ptr %19, align 1, !tbaa !9
  %89 = load i64, ptr %7, align 8, !tbaa !13
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %89, double noundef 1.000000e+03, ptr noundef %25, ptr noundef %90)
  %91 = load i64, ptr %7, align 8, !tbaa !13
  %92 = load i64, ptr %7, align 8, !tbaa !13
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %26, i64 noundef %91, i64 noundef %92, ptr noundef %93)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %94

94:                                               ; preds = %151, %76
  %95 = load i64, ptr %9, align 8, !tbaa !13
  %96 = load i64, ptr %7, align 8, !tbaa !13
  %97 = sub nsw i64 %96, 1
  %98 = icmp sle i64 %95, %97
  br i1 %98, label %99, label %154

99:                                               ; preds = %94
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %100

100:                                              ; preds = %147, %99
  %101 = load i64, ptr %10, align 8, !tbaa !13
  %102 = load i64, ptr %7, align 8, !tbaa !13
  %103 = sub nsw i64 %102, 1
  %104 = icmp sle i64 %101, %103
  br i1 %104, label %105, label %150

105:                                              ; preds = %100
  %106 = load i64, ptr %10, align 8, !tbaa !13
  %107 = load i64, ptr %9, align 8, !tbaa !13
  %108 = icmp sge i64 %106, %107
  br i1 %108, label %109, label %112

109:                                              ; preds = %105
  %110 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %111 = trunc i8 %110 to i1
  br i1 %111, label %119, label %112

112:                                              ; preds = %109, %105
  %113 = load i64, ptr %10, align 8, !tbaa !13
  %114 = load i64, ptr %9, align 8, !tbaa !13
  %115 = icmp sle i64 %113, %114
  br i1 %115, label %116, label %135

116:                                              ; preds = %112
  %117 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %118 = trunc i8 %117 to i1
  br i1 %118, label %135, label %119

119:                                              ; preds = %116, %109
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 6
  %121 = load ptr, ptr %120, align 8, !tbaa !17
  %122 = load i64, ptr %9, align 8, !tbaa !13
  %123 = getelementptr inbounds ptr, ptr %121, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = load i64, ptr %10, align 8, !tbaa !13
  %126 = getelementptr inbounds double, ptr %124, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !11
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %26, i32 0, i32 6
  %129 = load ptr, ptr %128, align 8, !tbaa !17
  %130 = load i64, ptr %9, align 8, !tbaa !13
  %131 = getelementptr inbounds ptr, ptr %129, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = load i64, ptr %10, align 8, !tbaa !13
  %134 = getelementptr inbounds double, ptr %132, i64 %133
  store double %127, ptr %134, align 8, !tbaa !11
  br label %146

135:                                              ; preds = %116, %112
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %136)
  %138 = fsub double %137, 5.000000e-01
  %139 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %26, i32 0, i32 6
  %140 = load ptr, ptr %139, align 8, !tbaa !17
  %141 = load i64, ptr %9, align 8, !tbaa !13
  %142 = getelementptr inbounds ptr, ptr %140, i64 %141
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = load i64, ptr %10, align 8, !tbaa !13
  %145 = getelementptr inbounds double, ptr %143, i64 %144
  store double %138, ptr %145, align 8, !tbaa !11
  br label %146

146:                                              ; preds = %135, %119
  br label %147

147:                                              ; preds = %146
  %148 = load i64, ptr %10, align 8, !tbaa !13
  %149 = add nsw i64 %148, 1
  store i64 %149, ptr %10, align 8, !tbaa !13
  br label %100, !llvm.loop !18

150:                                              ; preds = %100
  br label %151

151:                                              ; preds = %150
  %152 = load i64, ptr %9, align 8, !tbaa !13
  %153 = add nsw i64 %152, 1
  store i64 %153, ptr %9, align 8, !tbaa !13
  br label %94, !llvm.loop !20

154:                                              ; preds = %94
  %155 = load i64, ptr %7, align 8, !tbaa !13
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL27testminqpunit_densetosparsePN11alglib_impl9ae_matrixElPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %26, i64 noundef %155, ptr noundef %28, ptr noundef %156)
  %157 = load i64, ptr %7, align 8, !tbaa !13
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %157, ptr noundef %158)
  %159 = load i64, ptr %7, align 8, !tbaa !13
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %34, i64 noundef %159, ptr noundef %160)
  %161 = load i64, ptr %7, align 8, !tbaa !13
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %38, i64 noundef %161, ptr noundef %162)
  %163 = load i64, ptr %7, align 8, !tbaa !13
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %40, i64 noundef %163, ptr noundef %164)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %165

165:                                              ; preds = %215, %154
  %166 = load i64, ptr %9, align 8, !tbaa !13
  %167 = load i64, ptr %7, align 8, !tbaa !13
  %168 = sub nsw i64 %167, 1
  %169 = icmp sle i64 %166, %168
  br i1 %169, label %170, label %218

170:                                              ; preds = %165
  %171 = load ptr, ptr %3, align 8, !tbaa !5
  %172 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %171)
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %174 = load ptr, ptr %173, align 8, !tbaa !17
  %175 = load i64, ptr %9, align 8, !tbaa !13
  %176 = getelementptr inbounds double, ptr %174, i64 %175
  store double %172, ptr %176, align 8, !tbaa !11
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %177)
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !17
  %181 = load i64, ptr %9, align 8, !tbaa !13
  %182 = getelementptr inbounds double, ptr %180, i64 %181
  store double %178, ptr %182, align 8, !tbaa !11
  %183 = load i64, ptr %16, align 8, !tbaa !13
  %184 = icmp eq i64 %183, 0
  br i1 %184, label %185, label %190

185:                                              ; preds = %170
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %38, i32 0, i32 4
  %187 = load ptr, ptr %186, align 8, !tbaa !17
  %188 = load i64, ptr %9, align 8, !tbaa !13
  %189 = getelementptr inbounds double, ptr %187, i64 %188
  store double 0.000000e+00, ptr %189, align 8, !tbaa !11
  br label %197

190:                                              ; preds = %170
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %191)
  %193 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %38, i32 0, i32 4
  %194 = load ptr, ptr %193, align 8, !tbaa !17
  %195 = load i64, ptr %9, align 8, !tbaa !13
  %196 = getelementptr inbounds double, ptr %194, i64 %195
  store double %192, ptr %196, align 8, !tbaa !11
  br label %197

197:                                              ; preds = %190, %185
  %198 = load i64, ptr %17, align 8, !tbaa !13
  %199 = icmp eq i64 %198, 0
  br i1 %199, label %200, label %205

200:                                              ; preds = %197
  %201 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %202 = load ptr, ptr %201, align 8, !tbaa !17
  %203 = load i64, ptr %9, align 8, !tbaa !13
  %204 = getelementptr inbounds double, ptr %202, i64 %203
  store double 1.000000e+00, ptr %204, align 8, !tbaa !11
  br label %214

205:                                              ; preds = %197
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %206)
  %208 = load ptr, ptr %3, align 8, !tbaa !5
  %209 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %207, ptr noundef %208)
  %210 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !17
  %212 = load i64, ptr %9, align 8, !tbaa !13
  %213 = getelementptr inbounds double, ptr %211, i64 %212
  store double %209, ptr %213, align 8, !tbaa !11
  br label %214

214:                                              ; preds = %205, %200
  br label %215

215:                                              ; preds = %214
  %216 = load i64, ptr %9, align 8, !tbaa !13
  %217 = add nsw i64 %216, 1
  store i64 %217, ptr %9, align 8, !tbaa !13
  br label %165, !llvm.loop !21

218:                                              ; preds = %165
  %219 = load i64, ptr %7, align 8, !tbaa !13
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %219, ptr noundef %5, ptr noundef %220)
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  %222 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %221)
  %223 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %222, double noundef 5.000000e-01)
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, i1 noundef zeroext %223, ptr noundef %224)
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %30, ptr noundef %225)
  %226 = load i8, ptr %19, align 1, !tbaa !9, !range !15, !noundef !16
  %227 = trunc i8 %226 to i1
  br i1 %227, label %228, label %232

228:                                              ; preds = %218
  %229 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %230 = trunc i8 %229 to i1
  %231 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %28, i1 noundef zeroext %230, ptr noundef %231)
  br label %236

232:                                              ; preds = %218
  %233 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %234 = trunc i8 %233 to i1
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %26, i1 noundef zeroext %234, ptr noundef %235)
  br label %236

236:                                              ; preds = %232, %228
  %237 = load i64, ptr %16, align 8, !tbaa !13
  %238 = icmp ne i64 %237, 0
  br i1 %238, label %239, label %241

239:                                              ; preds = %236
  %240 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14minqpsetoriginEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %38, ptr noundef %240)
  br label %241

241:                                              ; preds = %239, %236
  %242 = load i64, ptr %17, align 8, !tbaa !13
  %243 = icmp ne i64 %242, 0
  br i1 %243, label %244, label %246

244:                                              ; preds = %241
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpsetscaleEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %40, ptr noundef %245)
  br label %246

246:                                              ; preds = %244, %241
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %247)
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %35, ptr noundef %6, ptr noundef %248)
  %249 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %250 = load i64, ptr %249, align 8, !tbaa !22
  %251 = icmp sle i64 %250, 0
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %251, ptr noundef @.str.8, i32 noundef 41182, ptr noundef @.str.393)
  %252 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %253 = load i64, ptr %252, align 8, !tbaa !22
  %254 = icmp sle i64 %253, 0
  br i1 %254, label %255, label %259

255:                                              ; preds = %246
  %256 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %256)
  %257 = load i8, ptr %43, align 1, !tbaa !9, !range !15, !noundef !16
  %258 = trunc i8 %257 to i1
  store i1 %258, ptr %2, align 1
  store i32 1, ptr %44, align 4
  br label %2277

259:                                              ; preds = %246
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %260

260:                                              ; preds = %307, %259
  %261 = load i64, ptr %9, align 8, !tbaa !13
  %262 = load i64, ptr %7, align 8, !tbaa !13
  %263 = sub nsw i64 %262, 1
  %264 = icmp sle i64 %261, %263
  br i1 %264, label %265, label %310

265:                                              ; preds = %260
  %266 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %267 = load ptr, ptr %266, align 8, !tbaa !17
  %268 = load i64, ptr %9, align 8, !tbaa !13
  %269 = getelementptr inbounds double, ptr %267, i64 %268
  %270 = load double, ptr %269, align 8, !tbaa !11
  store double %270, ptr %13, align 8, !tbaa !11
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %271

271:                                              ; preds = %298, %265
  %272 = load i64, ptr %10, align 8, !tbaa !13
  %273 = load i64, ptr %7, align 8, !tbaa !13
  %274 = sub nsw i64 %273, 1
  %275 = icmp sle i64 %272, %274
  br i1 %275, label %276, label %301

276:                                              ; preds = %271
  %277 = load double, ptr %13, align 8, !tbaa !11
  %278 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 6
  %279 = load ptr, ptr %278, align 8, !tbaa !17
  %280 = load i64, ptr %9, align 8, !tbaa !13
  %281 = getelementptr inbounds ptr, ptr %279, i64 %280
  %282 = load ptr, ptr %281, align 8, !tbaa !5
  %283 = load i64, ptr %10, align 8, !tbaa !13
  %284 = getelementptr inbounds double, ptr %282, i64 %283
  %285 = load double, ptr %284, align 8, !tbaa !11
  %286 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %287 = load ptr, ptr %286, align 8, !tbaa !17
  %288 = load i64, ptr %10, align 8, !tbaa !13
  %289 = getelementptr inbounds double, ptr %287, i64 %288
  %290 = load double, ptr %289, align 8, !tbaa !11
  %291 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %38, i32 0, i32 4
  %292 = load ptr, ptr %291, align 8, !tbaa !17
  %293 = load i64, ptr %10, align 8, !tbaa !13
  %294 = getelementptr inbounds double, ptr %292, i64 %293
  %295 = load double, ptr %294, align 8, !tbaa !11
  %296 = fsub double %290, %295
  %297 = call double @llvm.fmuladd.f64(double %285, double %296, double %277)
  store double %297, ptr %13, align 8, !tbaa !11
  br label %298

298:                                              ; preds = %276
  %299 = load i64, ptr %10, align 8, !tbaa !13
  %300 = add nsw i64 %299, 1
  store i64 %300, ptr %10, align 8, !tbaa !13
  br label %271, !llvm.loop !24

301:                                              ; preds = %271
  %302 = load double, ptr %14, align 8, !tbaa !11
  %303 = load double, ptr %13, align 8, !tbaa !11
  %304 = load ptr, ptr %3, align 8, !tbaa !5
  %305 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %303, ptr noundef %304)
  %306 = fadd double %302, %305
  store double %306, ptr %14, align 8, !tbaa !11
  br label %307

307:                                              ; preds = %301
  %308 = load i64, ptr %9, align 8, !tbaa !13
  %309 = add nsw i64 %308, 1
  store i64 %309, ptr %9, align 8, !tbaa !13
  br label %260, !llvm.loop !25

310:                                              ; preds = %260
  %311 = load double, ptr %14, align 8, !tbaa !11
  %312 = load ptr, ptr %3, align 8, !tbaa !5
  %313 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %311, ptr noundef %312)
  store double %313, ptr %14, align 8, !tbaa !11
  %314 = load double, ptr %14, align 8, !tbaa !11
  %315 = load double, ptr %41, align 8, !tbaa !11
  %316 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %314, double noundef %315)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %316, ptr noundef @.str.8, i32 noundef 41204, ptr noundef @.str.394)
  br label %317

317:                                              ; preds = %310
  %318 = load i64, ptr %8, align 8, !tbaa !13
  %319 = add nsw i64 %318, 1
  store i64 %319, ptr %8, align 8, !tbaa !13
  br label %73, !llvm.loop !26

320:                                              ; preds = %73
  br label %321

321:                                              ; preds = %320
  %322 = load i64, ptr %7, align 8, !tbaa !13
  %323 = add nsw i64 %322, 1
  store i64 %323, ptr %7, align 8, !tbaa !13
  br label %69, !llvm.loop !27

324:                                              ; preds = %69
  store double 1.000000e-05, ptr %41, align 8, !tbaa !11
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %325

325:                                              ; preds = %738, %324
  %326 = load i64, ptr %7, align 8, !tbaa !13
  %327 = icmp sle i64 %326, 10
  br i1 %327, label %328, label %741

328:                                              ; preds = %325
  store i64 1, ptr %8, align 8, !tbaa !13
  br label %329

329:                                              ; preds = %734, %328
  %330 = load i64, ptr %8, align 8, !tbaa !13
  %331 = icmp sle i64 %330, 10
  br i1 %331, label %332, label %737

332:                                              ; preds = %329
  %333 = load ptr, ptr %3, align 8, !tbaa !5
  %334 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %42, i64 noundef 2, ptr noundef %333)
  store i64 %334, ptr %16, align 8, !tbaa !13
  %335 = load ptr, ptr %3, align 8, !tbaa !5
  %336 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %42, i64 noundef 2, ptr noundef %335)
  store i64 %336, ptr %17, align 8, !tbaa !13
  %337 = load ptr, ptr %3, align 8, !tbaa !5
  %338 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %337)
  %339 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %338, double noundef 5.000000e-01)
  %340 = zext i1 %339 to i8
  store i8 %340, ptr %18, align 1, !tbaa !9
  %341 = load ptr, ptr %3, align 8, !tbaa !5
  %342 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %341)
  %343 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %342, double noundef 5.000000e-01)
  %344 = zext i1 %343 to i8
  store i8 %344, ptr %19, align 1, !tbaa !9
  %345 = load i64, ptr %7, align 8, !tbaa !13
  %346 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %345, double noundef 1.000000e+03, ptr noundef %25, ptr noundef %346)
  %347 = load i64, ptr %7, align 8, !tbaa !13
  %348 = load i64, ptr %7, align 8, !tbaa !13
  %349 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %26, i64 noundef %347, i64 noundef %348, ptr noundef %349)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %350

350:                                              ; preds = %407, %332
  %351 = load i64, ptr %9, align 8, !tbaa !13
  %352 = load i64, ptr %7, align 8, !tbaa !13
  %353 = sub nsw i64 %352, 1
  %354 = icmp sle i64 %351, %353
  br i1 %354, label %355, label %410

355:                                              ; preds = %350
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %356

356:                                              ; preds = %403, %355
  %357 = load i64, ptr %10, align 8, !tbaa !13
  %358 = load i64, ptr %7, align 8, !tbaa !13
  %359 = sub nsw i64 %358, 1
  %360 = icmp sle i64 %357, %359
  br i1 %360, label %361, label %406

361:                                              ; preds = %356
  %362 = load i64, ptr %10, align 8, !tbaa !13
  %363 = load i64, ptr %9, align 8, !tbaa !13
  %364 = icmp sge i64 %362, %363
  br i1 %364, label %365, label %368

365:                                              ; preds = %361
  %366 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %367 = trunc i8 %366 to i1
  br i1 %367, label %375, label %368

368:                                              ; preds = %365, %361
  %369 = load i64, ptr %10, align 8, !tbaa !13
  %370 = load i64, ptr %9, align 8, !tbaa !13
  %371 = icmp sle i64 %369, %370
  br i1 %371, label %372, label %391

372:                                              ; preds = %368
  %373 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %374 = trunc i8 %373 to i1
  br i1 %374, label %391, label %375

375:                                              ; preds = %372, %365
  %376 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 6
  %377 = load ptr, ptr %376, align 8, !tbaa !17
  %378 = load i64, ptr %9, align 8, !tbaa !13
  %379 = getelementptr inbounds ptr, ptr %377, i64 %378
  %380 = load ptr, ptr %379, align 8, !tbaa !5
  %381 = load i64, ptr %10, align 8, !tbaa !13
  %382 = getelementptr inbounds double, ptr %380, i64 %381
  %383 = load double, ptr %382, align 8, !tbaa !11
  %384 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %26, i32 0, i32 6
  %385 = load ptr, ptr %384, align 8, !tbaa !17
  %386 = load i64, ptr %9, align 8, !tbaa !13
  %387 = getelementptr inbounds ptr, ptr %385, i64 %386
  %388 = load ptr, ptr %387, align 8, !tbaa !5
  %389 = load i64, ptr %10, align 8, !tbaa !13
  %390 = getelementptr inbounds double, ptr %388, i64 %389
  store double %383, ptr %390, align 8, !tbaa !11
  br label %402

391:                                              ; preds = %372, %368
  %392 = load ptr, ptr %3, align 8, !tbaa !5
  %393 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %392)
  %394 = fsub double %393, 5.000000e-01
  %395 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %26, i32 0, i32 6
  %396 = load ptr, ptr %395, align 8, !tbaa !17
  %397 = load i64, ptr %9, align 8, !tbaa !13
  %398 = getelementptr inbounds ptr, ptr %396, i64 %397
  %399 = load ptr, ptr %398, align 8, !tbaa !5
  %400 = load i64, ptr %10, align 8, !tbaa !13
  %401 = getelementptr inbounds double, ptr %399, i64 %400
  store double %394, ptr %401, align 8, !tbaa !11
  br label %402

402:                                              ; preds = %391, %375
  br label %403

403:                                              ; preds = %402
  %404 = load i64, ptr %10, align 8, !tbaa !13
  %405 = add nsw i64 %404, 1
  store i64 %405, ptr %10, align 8, !tbaa !13
  br label %356, !llvm.loop !28

406:                                              ; preds = %356
  br label %407

407:                                              ; preds = %406
  %408 = load i64, ptr %9, align 8, !tbaa !13
  %409 = add nsw i64 %408, 1
  store i64 %409, ptr %9, align 8, !tbaa !13
  br label %350, !llvm.loop !29

410:                                              ; preds = %350
  %411 = load i64, ptr %7, align 8, !tbaa !13
  %412 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL27testminqpunit_densetosparsePN11alglib_impl9ae_matrixElPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %26, i64 noundef %411, ptr noundef %28, ptr noundef %412)
  %413 = load i64, ptr %7, align 8, !tbaa !13
  %414 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %413, ptr noundef %414)
  %415 = load i64, ptr %7, align 8, !tbaa !13
  %416 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %415, ptr noundef %416)
  %417 = load i64, ptr %7, align 8, !tbaa !13
  %418 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %33, i64 noundef %417, ptr noundef %418)
  %419 = load i64, ptr %7, align 8, !tbaa !13
  %420 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %34, i64 noundef %419, ptr noundef %420)
  %421 = load i64, ptr %7, align 8, !tbaa !13
  %422 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %38, i64 noundef %421, ptr noundef %422)
  %423 = load i64, ptr %7, align 8, !tbaa !13
  %424 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %40, i64 noundef %423, ptr noundef %424)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %425

425:                                              ; preds = %577, %410
  %426 = load i64, ptr %9, align 8, !tbaa !13
  %427 = load i64, ptr %7, align 8, !tbaa !13
  %428 = sub nsw i64 %427, 1
  %429 = icmp sle i64 %426, %428
  br i1 %429, label %430, label %580

430:                                              ; preds = %425
  %431 = load ptr, ptr %3, align 8, !tbaa !5
  %432 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %431)
  %433 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %434 = load ptr, ptr %433, align 8, !tbaa !17
  %435 = load i64, ptr %9, align 8, !tbaa !13
  %436 = getelementptr inbounds double, ptr %434, i64 %435
  store double %432, ptr %436, align 8, !tbaa !11
  %437 = load ptr, ptr %3, align 8, !tbaa !5
  %438 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %437, i32 0, i32 3
  %439 = load double, ptr %438, align 8, !tbaa !30
  %440 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %441 = load ptr, ptr %440, align 8, !tbaa !17
  %442 = load i64, ptr %9, align 8, !tbaa !13
  %443 = getelementptr inbounds double, ptr %441, i64 %442
  store double %439, ptr %443, align 8, !tbaa !11
  %444 = load ptr, ptr %3, align 8, !tbaa !5
  %445 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %444, i32 0, i32 2
  %446 = load double, ptr %445, align 8, !tbaa !35
  %447 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %448 = load ptr, ptr %447, align 8, !tbaa !17
  %449 = load i64, ptr %9, align 8, !tbaa !13
  %450 = getelementptr inbounds double, ptr %448, i64 %449
  store double %446, ptr %450, align 8, !tbaa !11
  %451 = load ptr, ptr %3, align 8, !tbaa !5
  %452 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %451)
  %453 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %454 = load ptr, ptr %453, align 8, !tbaa !17
  %455 = load i64, ptr %9, align 8, !tbaa !13
  %456 = getelementptr inbounds double, ptr %454, i64 %455
  store double %452, ptr %456, align 8, !tbaa !11
  %457 = load i64, ptr %16, align 8, !tbaa !13
  %458 = icmp eq i64 %457, 0
  br i1 %458, label %459, label %464

459:                                              ; preds = %430
  %460 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %38, i32 0, i32 4
  %461 = load ptr, ptr %460, align 8, !tbaa !17
  %462 = load i64, ptr %9, align 8, !tbaa !13
  %463 = getelementptr inbounds double, ptr %461, i64 %462
  store double 0.000000e+00, ptr %463, align 8, !tbaa !11
  br label %471

464:                                              ; preds = %430
  %465 = load ptr, ptr %3, align 8, !tbaa !5
  %466 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %465)
  %467 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %38, i32 0, i32 4
  %468 = load ptr, ptr %467, align 8, !tbaa !17
  %469 = load i64, ptr %9, align 8, !tbaa !13
  %470 = getelementptr inbounds double, ptr %468, i64 %469
  store double %466, ptr %470, align 8, !tbaa !11
  br label %471

471:                                              ; preds = %464, %459
  %472 = load i64, ptr %17, align 8, !tbaa !13
  %473 = icmp eq i64 %472, 0
  br i1 %473, label %474, label %479

474:                                              ; preds = %471
  %475 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %476 = load ptr, ptr %475, align 8, !tbaa !17
  %477 = load i64, ptr %9, align 8, !tbaa !13
  %478 = getelementptr inbounds double, ptr %476, i64 %477
  store double 1.000000e+00, ptr %478, align 8, !tbaa !11
  br label %488

479:                                              ; preds = %471
  %480 = load ptr, ptr %3, align 8, !tbaa !5
  %481 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %480)
  %482 = load ptr, ptr %3, align 8, !tbaa !5
  %483 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %481, ptr noundef %482)
  %484 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %485 = load ptr, ptr %484, align 8, !tbaa !17
  %486 = load i64, ptr %9, align 8, !tbaa !13
  %487 = getelementptr inbounds double, ptr %485, i64 %486
  store double %483, ptr %487, align 8, !tbaa !11
  br label %488

488:                                              ; preds = %479, %474
  %489 = load ptr, ptr %3, align 8, !tbaa !5
  %490 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %42, i64 noundef 5, ptr noundef %489)
  store i64 %490, ptr %10, align 8, !tbaa !13
  %491 = load i64, ptr %10, align 8, !tbaa !13
  %492 = icmp eq i64 %491, 0
  br i1 %492, label %493, label %509

493:                                              ; preds = %488
  %494 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %495 = load ptr, ptr %494, align 8, !tbaa !17
  %496 = load i64, ptr %9, align 8, !tbaa !13
  %497 = getelementptr inbounds double, ptr %495, i64 %496
  store double 0.000000e+00, ptr %497, align 8, !tbaa !11
  %498 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %499 = load ptr, ptr %498, align 8, !tbaa !17
  %500 = load i64, ptr %9, align 8, !tbaa !13
  %501 = getelementptr inbounds double, ptr %499, i64 %500
  %502 = load double, ptr %501, align 8, !tbaa !11
  %503 = load ptr, ptr %3, align 8, !tbaa !5
  %504 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %502, ptr noundef %503)
  %505 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %506 = load ptr, ptr %505, align 8, !tbaa !17
  %507 = load i64, ptr %9, align 8, !tbaa !13
  %508 = getelementptr inbounds double, ptr %506, i64 %507
  store double %504, ptr %508, align 8, !tbaa !11
  br label %509

509:                                              ; preds = %493, %488
  %510 = load i64, ptr %10, align 8, !tbaa !13
  %511 = icmp eq i64 %510, 1
  br i1 %511, label %512, label %529

512:                                              ; preds = %509
  %513 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %514 = load ptr, ptr %513, align 8, !tbaa !17
  %515 = load i64, ptr %9, align 8, !tbaa !13
  %516 = getelementptr inbounds double, ptr %514, i64 %515
  store double 0.000000e+00, ptr %516, align 8, !tbaa !11
  %517 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %518 = load ptr, ptr %517, align 8, !tbaa !17
  %519 = load i64, ptr %9, align 8, !tbaa !13
  %520 = getelementptr inbounds double, ptr %518, i64 %519
  %521 = load double, ptr %520, align 8, !tbaa !11
  %522 = load ptr, ptr %3, align 8, !tbaa !5
  %523 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %521, ptr noundef %522)
  %524 = fneg double %523
  %525 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %526 = load ptr, ptr %525, align 8, !tbaa !17
  %527 = load i64, ptr %9, align 8, !tbaa !13
  %528 = getelementptr inbounds double, ptr %526, i64 %527
  store double %524, ptr %528, align 8, !tbaa !11
  br label %529

529:                                              ; preds = %512, %509
  %530 = load i64, ptr %10, align 8, !tbaa !13
  %531 = icmp eq i64 %530, 2
  br i1 %531, label %532, label %557

532:                                              ; preds = %529
  %533 = load ptr, ptr %3, align 8, !tbaa !5
  %534 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %533)
  %535 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %536 = load ptr, ptr %535, align 8, !tbaa !17
  %537 = load i64, ptr %9, align 8, !tbaa !13
  %538 = getelementptr inbounds double, ptr %536, i64 %537
  store double %534, ptr %538, align 8, !tbaa !11
  %539 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %540 = load ptr, ptr %539, align 8, !tbaa !17
  %541 = load i64, ptr %9, align 8, !tbaa !13
  %542 = getelementptr inbounds double, ptr %540, i64 %541
  %543 = load double, ptr %542, align 8, !tbaa !11
  %544 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %545 = load ptr, ptr %544, align 8, !tbaa !17
  %546 = load i64, ptr %9, align 8, !tbaa !13
  %547 = getelementptr inbounds double, ptr %545, i64 %546
  store double %543, ptr %547, align 8, !tbaa !11
  %548 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %549 = load ptr, ptr %548, align 8, !tbaa !17
  %550 = load i64, ptr %9, align 8, !tbaa !13
  %551 = getelementptr inbounds double, ptr %549, i64 %550
  %552 = load double, ptr %551, align 8, !tbaa !11
  %553 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %554 = load ptr, ptr %553, align 8, !tbaa !17
  %555 = load i64, ptr %9, align 8, !tbaa !13
  %556 = getelementptr inbounds double, ptr %554, i64 %555
  store double %552, ptr %556, align 8, !tbaa !11
  br label %557

557:                                              ; preds = %532, %529
  %558 = load i64, ptr %10, align 8, !tbaa !13
  %559 = icmp eq i64 %558, 3
  br i1 %559, label %560, label %576

560:                                              ; preds = %557
  %561 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %562 = load ptr, ptr %561, align 8, !tbaa !17
  %563 = load i64, ptr %9, align 8, !tbaa !13
  %564 = getelementptr inbounds double, ptr %562, i64 %563
  store double -1.000000e-01, ptr %564, align 8, !tbaa !11
  %565 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %566 = load ptr, ptr %565, align 8, !tbaa !17
  %567 = load i64, ptr %9, align 8, !tbaa !13
  %568 = getelementptr inbounds double, ptr %566, i64 %567
  store double 1.000000e-01, ptr %568, align 8, !tbaa !11
  %569 = load ptr, ptr %3, align 8, !tbaa !5
  %570 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %569)
  %571 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %570, double -1.000000e-01)
  %572 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %573 = load ptr, ptr %572, align 8, !tbaa !17
  %574 = load i64, ptr %9, align 8, !tbaa !13
  %575 = getelementptr inbounds double, ptr %573, i64 %574
  store double %571, ptr %575, align 8, !tbaa !11
  br label %576

576:                                              ; preds = %560, %557
  br label %577

577:                                              ; preds = %576
  %578 = load i64, ptr %9, align 8, !tbaa !13
  %579 = add nsw i64 %578, 1
  store i64 %579, ptr %9, align 8, !tbaa !13
  br label %425, !llvm.loop !36

580:                                              ; preds = %425
  %581 = load i64, ptr %7, align 8, !tbaa !13
  %582 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %581, ptr noundef %5, ptr noundef %582)
  %583 = load ptr, ptr %3, align 8, !tbaa !5
  %584 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %583)
  %585 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %584, double noundef 5.000000e-01)
  %586 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, i1 noundef zeroext %585, ptr noundef %586)
  %587 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %30, ptr noundef %587)
  %588 = load i8, ptr %19, align 1, !tbaa !9, !range !15, !noundef !16
  %589 = trunc i8 %588 to i1
  br i1 %589, label %590, label %594

590:                                              ; preds = %580
  %591 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %592 = trunc i8 %591 to i1
  %593 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %28, i1 noundef zeroext %592, ptr noundef %593)
  br label %598

594:                                              ; preds = %580
  %595 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %596 = trunc i8 %595 to i1
  %597 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %26, i1 noundef zeroext %596, ptr noundef %597)
  br label %598

598:                                              ; preds = %594, %590
  %599 = load i64, ptr %16, align 8, !tbaa !13
  %600 = icmp ne i64 %599, 0
  br i1 %600, label %601, label %603

601:                                              ; preds = %598
  %602 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14minqpsetoriginEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %38, ptr noundef %602)
  br label %603

603:                                              ; preds = %601, %598
  %604 = load i64, ptr %17, align 8, !tbaa !13
  %605 = icmp ne i64 %604, 0
  br i1 %605, label %606, label %608

606:                                              ; preds = %603
  %607 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpsetscaleEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %40, ptr noundef %607)
  br label %608

608:                                              ; preds = %606, %603
  %609 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %32, ptr noundef %33, ptr noundef %609)
  %610 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %610)
  %611 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %35, ptr noundef %6, ptr noundef %611)
  %612 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %613 = load i64, ptr %612, align 8, !tbaa !22
  %614 = icmp sle i64 %613, 0
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %614, ptr noundef @.str.8, i32 noundef 41328, ptr noundef @.str.395)
  %615 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %616 = load i64, ptr %615, align 8, !tbaa !22
  %617 = icmp sle i64 %616, 0
  br i1 %617, label %618, label %622

618:                                              ; preds = %608
  %619 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %619)
  %620 = load i8, ptr %43, align 1, !tbaa !9, !range !15, !noundef !16
  %621 = trunc i8 %620 to i1
  store i1 %621, ptr %2, align 1
  store i32 1, ptr %44, align 4
  br label %2277

622:                                              ; preds = %608
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %623

623:                                              ; preds = %724, %622
  %624 = load i64, ptr %9, align 8, !tbaa !13
  %625 = load i64, ptr %7, align 8, !tbaa !13
  %626 = sub nsw i64 %625, 1
  %627 = icmp sle i64 %624, %626
  br i1 %627, label %628, label %727

628:                                              ; preds = %623
  %629 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %630 = load ptr, ptr %629, align 8, !tbaa !17
  %631 = load i64, ptr %9, align 8, !tbaa !13
  %632 = getelementptr inbounds double, ptr %630, i64 %631
  %633 = load double, ptr %632, align 8, !tbaa !11
  store double %633, ptr %13, align 8, !tbaa !11
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %634

634:                                              ; preds = %661, %628
  %635 = load i64, ptr %10, align 8, !tbaa !13
  %636 = load i64, ptr %7, align 8, !tbaa !13
  %637 = sub nsw i64 %636, 1
  %638 = icmp sle i64 %635, %637
  br i1 %638, label %639, label %664

639:                                              ; preds = %634
  %640 = load double, ptr %13, align 8, !tbaa !11
  %641 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 6
  %642 = load ptr, ptr %641, align 8, !tbaa !17
  %643 = load i64, ptr %9, align 8, !tbaa !13
  %644 = getelementptr inbounds ptr, ptr %642, i64 %643
  %645 = load ptr, ptr %644, align 8, !tbaa !5
  %646 = load i64, ptr %10, align 8, !tbaa !13
  %647 = getelementptr inbounds double, ptr %645, i64 %646
  %648 = load double, ptr %647, align 8, !tbaa !11
  %649 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %650 = load ptr, ptr %649, align 8, !tbaa !17
  %651 = load i64, ptr %10, align 8, !tbaa !13
  %652 = getelementptr inbounds double, ptr %650, i64 %651
  %653 = load double, ptr %652, align 8, !tbaa !11
  %654 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %38, i32 0, i32 4
  %655 = load ptr, ptr %654, align 8, !tbaa !17
  %656 = load i64, ptr %10, align 8, !tbaa !13
  %657 = getelementptr inbounds double, ptr %655, i64 %656
  %658 = load double, ptr %657, align 8, !tbaa !11
  %659 = fsub double %653, %658
  %660 = call double @llvm.fmuladd.f64(double %648, double %659, double %640)
  store double %660, ptr %13, align 8, !tbaa !11
  br label %661

661:                                              ; preds = %639
  %662 = load i64, ptr %10, align 8, !tbaa !13
  %663 = add nsw i64 %662, 1
  store i64 %663, ptr %10, align 8, !tbaa !13
  br label %634, !llvm.loop !37

664:                                              ; preds = %634
  %665 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %666 = load ptr, ptr %665, align 8, !tbaa !17
  %667 = load i64, ptr %9, align 8, !tbaa !13
  %668 = getelementptr inbounds double, ptr %666, i64 %667
  %669 = load double, ptr %668, align 8, !tbaa !11
  %670 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %671 = load ptr, ptr %670, align 8, !tbaa !17
  %672 = load i64, ptr %9, align 8, !tbaa !13
  %673 = getelementptr inbounds double, ptr %671, i64 %672
  %674 = load double, ptr %673, align 8, !tbaa !11
  %675 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %669, double noundef %674)
  br i1 %675, label %676, label %680

676:                                              ; preds = %664
  %677 = load double, ptr %13, align 8, !tbaa !11
  %678 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %677, double noundef 0.000000e+00)
  br i1 %678, label %679, label %680

679:                                              ; preds = %676
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  br label %680

680:                                              ; preds = %679, %676, %664
  %681 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %682 = load ptr, ptr %681, align 8, !tbaa !17
  %683 = load i64, ptr %9, align 8, !tbaa !13
  %684 = getelementptr inbounds double, ptr %682, i64 %683
  %685 = load double, ptr %684, align 8, !tbaa !11
  %686 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %687 = load ptr, ptr %686, align 8, !tbaa !17
  %688 = load i64, ptr %9, align 8, !tbaa !13
  %689 = getelementptr inbounds double, ptr %687, i64 %688
  %690 = load double, ptr %689, align 8, !tbaa !11
  %691 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %685, double noundef %690)
  br i1 %691, label %692, label %696

692:                                              ; preds = %680
  %693 = load double, ptr %13, align 8, !tbaa !11
  %694 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %693, double noundef 0.000000e+00)
  br i1 %694, label %695, label %696

695:                                              ; preds = %692
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  br label %696

696:                                              ; preds = %695, %692, %680
  %697 = load double, ptr %14, align 8, !tbaa !11
  %698 = load double, ptr %13, align 8, !tbaa !11
  %699 = load ptr, ptr %3, align 8, !tbaa !5
  %700 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %698, ptr noundef %699)
  %701 = fadd double %697, %700
  store double %701, ptr %14, align 8, !tbaa !11
  %702 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %703 = load ptr, ptr %702, align 8, !tbaa !17
  %704 = load i64, ptr %9, align 8, !tbaa !13
  %705 = getelementptr inbounds double, ptr %703, i64 %704
  %706 = load double, ptr %705, align 8, !tbaa !11
  %707 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %708 = load ptr, ptr %707, align 8, !tbaa !17
  %709 = load i64, ptr %9, align 8, !tbaa !13
  %710 = getelementptr inbounds double, ptr %708, i64 %709
  %711 = load double, ptr %710, align 8, !tbaa !11
  %712 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %706, double noundef %711)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %712, ptr noundef @.str.8, i32 noundef 41356, ptr noundef @.str.396)
  %713 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %714 = load ptr, ptr %713, align 8, !tbaa !17
  %715 = load i64, ptr %9, align 8, !tbaa !13
  %716 = getelementptr inbounds double, ptr %714, i64 %715
  %717 = load double, ptr %716, align 8, !tbaa !11
  %718 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %719 = load ptr, ptr %718, align 8, !tbaa !17
  %720 = load i64, ptr %9, align 8, !tbaa !13
  %721 = getelementptr inbounds double, ptr %719, i64 %720
  %722 = load double, ptr %721, align 8, !tbaa !11
  %723 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %717, double noundef %722)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %723, ptr noundef @.str.8, i32 noundef 41357, ptr noundef @.str.397)
  br label %724

724:                                              ; preds = %696
  %725 = load i64, ptr %9, align 8, !tbaa !13
  %726 = add nsw i64 %725, 1
  store i64 %726, ptr %9, align 8, !tbaa !13
  br label %623, !llvm.loop !38

727:                                              ; preds = %623
  %728 = load double, ptr %14, align 8, !tbaa !11
  %729 = load ptr, ptr %3, align 8, !tbaa !5
  %730 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %728, ptr noundef %729)
  store double %730, ptr %14, align 8, !tbaa !11
  %731 = load double, ptr %14, align 8, !tbaa !11
  %732 = load double, ptr %41, align 8, !tbaa !11
  %733 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %731, double noundef %732)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %733, ptr noundef @.str.8, i32 noundef 41360, ptr noundef @.str.398)
  br label %734

734:                                              ; preds = %727
  %735 = load i64, ptr %8, align 8, !tbaa !13
  %736 = add nsw i64 %735, 1
  store i64 %736, ptr %8, align 8, !tbaa !13
  br label %329, !llvm.loop !39

737:                                              ; preds = %329
  br label %738

738:                                              ; preds = %737
  %739 = load i64, ptr %7, align 8, !tbaa !13
  %740 = add nsw i64 %739, 1
  store i64 %740, ptr %7, align 8, !tbaa !13
  br label %325, !llvm.loop !40

741:                                              ; preds = %325
  store double 1.000000e-05, ptr %41, align 8, !tbaa !11
  store i64 2, ptr %7, align 8, !tbaa !13
  br label %742

742:                                              ; preds = %1024, %741
  %743 = load i64, ptr %7, align 8, !tbaa !13
  %744 = icmp sle i64 %743, 10
  br i1 %744, label %745, label %1027

745:                                              ; preds = %742
  store i64 1, ptr %8, align 8, !tbaa !13
  br label %746

746:                                              ; preds = %1020, %745
  %747 = load i64, ptr %8, align 8, !tbaa !13
  %748 = icmp sle i64 %747, 10
  br i1 %748, label %749, label %1023

749:                                              ; preds = %746
  %750 = load i64, ptr %7, align 8, !tbaa !13
  %751 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %750, double noundef 1.000000e+03, ptr noundef %25, ptr noundef %751)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %752

752:                                              ; preds = %774, %749
  %753 = load i64, ptr %9, align 8, !tbaa !13
  %754 = load i64, ptr %7, align 8, !tbaa !13
  %755 = sub nsw i64 %754, 1
  %756 = icmp sle i64 %753, %755
  br i1 %756, label %757, label %777

757:                                              ; preds = %752
  %758 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 6
  %759 = load ptr, ptr %758, align 8, !tbaa !17
  %760 = load i64, ptr %9, align 8, !tbaa !13
  %761 = getelementptr inbounds ptr, ptr %759, i64 %760
  %762 = load ptr, ptr %761, align 8, !tbaa !5
  %763 = load i64, ptr %9, align 8, !tbaa !13
  %764 = getelementptr inbounds double, ptr %762, i64 %763
  %765 = load double, ptr %764, align 8, !tbaa !11
  %766 = fsub double %765, 5.000000e-01
  %767 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 6
  %768 = load ptr, ptr %767, align 8, !tbaa !17
  %769 = load i64, ptr %9, align 8, !tbaa !13
  %770 = getelementptr inbounds ptr, ptr %768, i64 %769
  %771 = load ptr, ptr %770, align 8, !tbaa !5
  %772 = load i64, ptr %9, align 8, !tbaa !13
  %773 = getelementptr inbounds double, ptr %771, i64 %772
  store double %766, ptr %773, align 8, !tbaa !11
  br label %774

774:                                              ; preds = %757
  %775 = load i64, ptr %9, align 8, !tbaa !13
  %776 = add nsw i64 %775, 1
  store i64 %776, ptr %9, align 8, !tbaa !13
  br label %752, !llvm.loop !41

777:                                              ; preds = %752
  %778 = load ptr, ptr %3, align 8, !tbaa !5
  %779 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %778)
  %780 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %779, double noundef 5.000000e-01)
  %781 = zext i1 %780 to i8
  store i8 %781, ptr %18, align 1, !tbaa !9
  %782 = load i64, ptr %7, align 8, !tbaa !13
  %783 = load i64, ptr %7, align 8, !tbaa !13
  %784 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %26, i64 noundef %782, i64 noundef %783, ptr noundef %784)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %785

785:                                              ; preds = %842, %777
  %786 = load i64, ptr %9, align 8, !tbaa !13
  %787 = load i64, ptr %7, align 8, !tbaa !13
  %788 = sub nsw i64 %787, 1
  %789 = icmp sle i64 %786, %788
  br i1 %789, label %790, label %845

790:                                              ; preds = %785
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %791

791:                                              ; preds = %838, %790
  %792 = load i64, ptr %10, align 8, !tbaa !13
  %793 = load i64, ptr %7, align 8, !tbaa !13
  %794 = sub nsw i64 %793, 1
  %795 = icmp sle i64 %792, %794
  br i1 %795, label %796, label %841

796:                                              ; preds = %791
  %797 = load i64, ptr %10, align 8, !tbaa !13
  %798 = load i64, ptr %9, align 8, !tbaa !13
  %799 = icmp sge i64 %797, %798
  br i1 %799, label %800, label %803

800:                                              ; preds = %796
  %801 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %802 = trunc i8 %801 to i1
  br i1 %802, label %810, label %803

803:                                              ; preds = %800, %796
  %804 = load i64, ptr %10, align 8, !tbaa !13
  %805 = load i64, ptr %9, align 8, !tbaa !13
  %806 = icmp sle i64 %804, %805
  br i1 %806, label %807, label %826

807:                                              ; preds = %803
  %808 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %809 = trunc i8 %808 to i1
  br i1 %809, label %826, label %810

810:                                              ; preds = %807, %800
  %811 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 6
  %812 = load ptr, ptr %811, align 8, !tbaa !17
  %813 = load i64, ptr %9, align 8, !tbaa !13
  %814 = getelementptr inbounds ptr, ptr %812, i64 %813
  %815 = load ptr, ptr %814, align 8, !tbaa !5
  %816 = load i64, ptr %10, align 8, !tbaa !13
  %817 = getelementptr inbounds double, ptr %815, i64 %816
  %818 = load double, ptr %817, align 8, !tbaa !11
  %819 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %26, i32 0, i32 6
  %820 = load ptr, ptr %819, align 8, !tbaa !17
  %821 = load i64, ptr %9, align 8, !tbaa !13
  %822 = getelementptr inbounds ptr, ptr %820, i64 %821
  %823 = load ptr, ptr %822, align 8, !tbaa !5
  %824 = load i64, ptr %10, align 8, !tbaa !13
  %825 = getelementptr inbounds double, ptr %823, i64 %824
  store double %818, ptr %825, align 8, !tbaa !11
  br label %837

826:                                              ; preds = %807, %803
  %827 = load ptr, ptr %3, align 8, !tbaa !5
  %828 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %827)
  %829 = fsub double %828, 5.000000e-01
  %830 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %26, i32 0, i32 6
  %831 = load ptr, ptr %830, align 8, !tbaa !17
  %832 = load i64, ptr %9, align 8, !tbaa !13
  %833 = getelementptr inbounds ptr, ptr %831, i64 %832
  %834 = load ptr, ptr %833, align 8, !tbaa !5
  %835 = load i64, ptr %10, align 8, !tbaa !13
  %836 = getelementptr inbounds double, ptr %834, i64 %835
  store double %829, ptr %836, align 8, !tbaa !11
  br label %837

837:                                              ; preds = %826, %810
  br label %838

838:                                              ; preds = %837
  %839 = load i64, ptr %10, align 8, !tbaa !13
  %840 = add nsw i64 %839, 1
  store i64 %840, ptr %10, align 8, !tbaa !13
  br label %791, !llvm.loop !42

841:                                              ; preds = %791
  br label %842

842:                                              ; preds = %841
  %843 = load i64, ptr %9, align 8, !tbaa !13
  %844 = add nsw i64 %843, 1
  store i64 %844, ptr %9, align 8, !tbaa !13
  br label %785, !llvm.loop !43

845:                                              ; preds = %785
  %846 = load i64, ptr %7, align 8, !tbaa !13
  %847 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL27testminqpunit_densetosparsePN11alglib_impl9ae_matrixElPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %26, i64 noundef %846, ptr noundef %28, ptr noundef %847)
  %848 = load i64, ptr %7, align 8, !tbaa !13
  %849 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %848, ptr noundef %849)
  %850 = load i64, ptr %7, align 8, !tbaa !13
  %851 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %850, ptr noundef %851)
  %852 = load i64, ptr %7, align 8, !tbaa !13
  %853 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %33, i64 noundef %852, ptr noundef %853)
  %854 = load i64, ptr %7, align 8, !tbaa !13
  %855 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %34, i64 noundef %854, ptr noundef %855)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %856

856:                                              ; preds = %883, %845
  %857 = load i64, ptr %9, align 8, !tbaa !13
  %858 = load i64, ptr %7, align 8, !tbaa !13
  %859 = sub nsw i64 %858, 1
  %860 = icmp sle i64 %857, %859
  br i1 %860, label %861, label %886

861:                                              ; preds = %856
  %862 = load ptr, ptr %3, align 8, !tbaa !5
  %863 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %862)
  %864 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %865 = load ptr, ptr %864, align 8, !tbaa !17
  %866 = load i64, ptr %9, align 8, !tbaa !13
  %867 = getelementptr inbounds double, ptr %865, i64 %866
  store double %863, ptr %867, align 8, !tbaa !11
  %868 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %869 = load ptr, ptr %868, align 8, !tbaa !17
  %870 = load i64, ptr %9, align 8, !tbaa !13
  %871 = getelementptr inbounds double, ptr %869, i64 %870
  store double -1.000000e+00, ptr %871, align 8, !tbaa !11
  %872 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %873 = load ptr, ptr %872, align 8, !tbaa !17
  %874 = load i64, ptr %9, align 8, !tbaa !13
  %875 = getelementptr inbounds double, ptr %873, i64 %874
  store double 1.000000e+00, ptr %875, align 8, !tbaa !11
  %876 = load ptr, ptr %3, align 8, !tbaa !5
  %877 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %876)
  %878 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %877, double -1.000000e+00)
  %879 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %880 = load ptr, ptr %879, align 8, !tbaa !17
  %881 = load i64, ptr %9, align 8, !tbaa !13
  %882 = getelementptr inbounds double, ptr %880, i64 %881
  store double %878, ptr %882, align 8, !tbaa !11
  br label %883

883:                                              ; preds = %861
  %884 = load i64, ptr %9, align 8, !tbaa !13
  %885 = add nsw i64 %884, 1
  store i64 %885, ptr %9, align 8, !tbaa !13
  br label %856, !llvm.loop !44

886:                                              ; preds = %856
  %887 = load i64, ptr %7, align 8, !tbaa !13
  %888 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %887, ptr noundef %5, ptr noundef %888)
  %889 = load ptr, ptr %3, align 8, !tbaa !5
  %890 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %889)
  %891 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %890, double noundef 5.000000e-01)
  %892 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, i1 noundef zeroext %891, ptr noundef %892)
  %893 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %30, ptr noundef %893)
  %894 = load ptr, ptr %3, align 8, !tbaa !5
  %895 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %894)
  %896 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %895, double noundef 0.000000e+00)
  br i1 %896, label %897, label %901

897:                                              ; preds = %886
  %898 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %899 = trunc i8 %898 to i1
  %900 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %26, i1 noundef zeroext %899, ptr noundef %900)
  br label %905

901:                                              ; preds = %886
  %902 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %903 = trunc i8 %902 to i1
  %904 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %28, i1 noundef zeroext %903, ptr noundef %904)
  br label %905

905:                                              ; preds = %901, %897
  %906 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %906)
  %907 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %35, ptr noundef %6, ptr noundef %907)
  %908 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %909 = load i64, ptr %908, align 8, !tbaa !22
  %910 = icmp ne i64 %909, -4
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %910, ptr noundef @.str.8, i32 noundef 41442, ptr noundef @.str.399)
  %911 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %32, ptr noundef %33, ptr noundef %911)
  %912 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %912)
  %913 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %35, ptr noundef %6, ptr noundef %913)
  %914 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %915 = load i64, ptr %914, align 8, !tbaa !22
  %916 = icmp sle i64 %915, 0
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %916, ptr noundef @.str.8, i32 noundef 41446, ptr noundef @.str.400)
  %917 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %918 = load i64, ptr %917, align 8, !tbaa !22
  %919 = icmp sle i64 %918, 0
  br i1 %919, label %920, label %924

920:                                              ; preds = %905
  %921 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %921)
  %922 = load i8, ptr %43, align 1, !tbaa !9, !range !15, !noundef !16
  %923 = trunc i8 %922 to i1
  store i1 %923, ptr %2, align 1
  store i32 1, ptr %44, align 4
  br label %2277

924:                                              ; preds = %905
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %925

925:                                              ; preds = %1010, %924
  %926 = load i64, ptr %9, align 8, !tbaa !13
  %927 = load i64, ptr %7, align 8, !tbaa !13
  %928 = sub nsw i64 %927, 1
  %929 = icmp sle i64 %926, %928
  br i1 %929, label %930, label %1013

930:                                              ; preds = %925
  %931 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 6
  %932 = load ptr, ptr %931, align 8, !tbaa !17
  %933 = load i64, ptr %9, align 8, !tbaa !13
  %934 = getelementptr inbounds ptr, ptr %932, i64 %933
  %935 = load ptr, ptr %934, align 8, !tbaa !5
  %936 = getelementptr inbounds double, ptr %935, i64 0
  %937 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %938 = load ptr, ptr %937, align 8, !tbaa !17
  %939 = getelementptr inbounds double, ptr %938, i64 0
  %940 = load i64, ptr %7, align 8, !tbaa !13
  %941 = sub nsw i64 %940, 1
  %942 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %941)
  %943 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %936, i64 noundef 1, ptr noundef %939, i64 noundef 1, i64 noundef %942)
  store double %943, ptr %12, align 8, !tbaa !11
  %944 = load double, ptr %12, align 8, !tbaa !11
  %945 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %946 = load ptr, ptr %945, align 8, !tbaa !17
  %947 = load i64, ptr %9, align 8, !tbaa !13
  %948 = getelementptr inbounds double, ptr %946, i64 %947
  %949 = load double, ptr %948, align 8, !tbaa !11
  %950 = fadd double %944, %949
  store double %950, ptr %13, align 8, !tbaa !11
  %951 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %952 = load ptr, ptr %951, align 8, !tbaa !17
  %953 = load i64, ptr %9, align 8, !tbaa !13
  %954 = getelementptr inbounds double, ptr %952, i64 %953
  %955 = load double, ptr %954, align 8, !tbaa !11
  %956 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %957 = load ptr, ptr %956, align 8, !tbaa !17
  %958 = load i64, ptr %9, align 8, !tbaa !13
  %959 = getelementptr inbounds double, ptr %957, i64 %958
  %960 = load double, ptr %959, align 8, !tbaa !11
  %961 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %955, double noundef %960)
  br i1 %961, label %962, label %966

962:                                              ; preds = %930
  %963 = load double, ptr %13, align 8, !tbaa !11
  %964 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %963, double noundef 0.000000e+00)
  br i1 %964, label %965, label %966

965:                                              ; preds = %962
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  br label %966

966:                                              ; preds = %965, %962, %930
  %967 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %968 = load ptr, ptr %967, align 8, !tbaa !17
  %969 = load i64, ptr %9, align 8, !tbaa !13
  %970 = getelementptr inbounds double, ptr %968, i64 %969
  %971 = load double, ptr %970, align 8, !tbaa !11
  %972 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %973 = load ptr, ptr %972, align 8, !tbaa !17
  %974 = load i64, ptr %9, align 8, !tbaa !13
  %975 = getelementptr inbounds double, ptr %973, i64 %974
  %976 = load double, ptr %975, align 8, !tbaa !11
  %977 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %971, double noundef %976)
  br i1 %977, label %978, label %982

978:                                              ; preds = %966
  %979 = load double, ptr %13, align 8, !tbaa !11
  %980 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %979, double noundef 0.000000e+00)
  br i1 %980, label %981, label %982

981:                                              ; preds = %978
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  br label %982

982:                                              ; preds = %981, %978, %966
  %983 = load double, ptr %14, align 8, !tbaa !11
  %984 = load double, ptr %13, align 8, !tbaa !11
  %985 = load ptr, ptr %3, align 8, !tbaa !5
  %986 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %984, ptr noundef %985)
  %987 = fadd double %983, %986
  store double %987, ptr %14, align 8, !tbaa !11
  %988 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %989 = load ptr, ptr %988, align 8, !tbaa !17
  %990 = load i64, ptr %9, align 8, !tbaa !13
  %991 = getelementptr inbounds double, ptr %989, i64 %990
  %992 = load double, ptr %991, align 8, !tbaa !11
  %993 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %994 = load ptr, ptr %993, align 8, !tbaa !17
  %995 = load i64, ptr %9, align 8, !tbaa !13
  %996 = getelementptr inbounds double, ptr %994, i64 %995
  %997 = load double, ptr %996, align 8, !tbaa !11
  %998 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %992, double noundef %997)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %998, ptr noundef @.str.8, i32 noundef 41471, ptr noundef @.str.401)
  %999 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %1000 = load ptr, ptr %999, align 8, !tbaa !17
  %1001 = load i64, ptr %9, align 8, !tbaa !13
  %1002 = getelementptr inbounds double, ptr %1000, i64 %1001
  %1003 = load double, ptr %1002, align 8, !tbaa !11
  %1004 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %1005 = load ptr, ptr %1004, align 8, !tbaa !17
  %1006 = load i64, ptr %9, align 8, !tbaa !13
  %1007 = getelementptr inbounds double, ptr %1005, i64 %1006
  %1008 = load double, ptr %1007, align 8, !tbaa !11
  %1009 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1003, double noundef %1008)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1009, ptr noundef @.str.8, i32 noundef 41472, ptr noundef @.str.402)
  br label %1010

1010:                                             ; preds = %982
  %1011 = load i64, ptr %9, align 8, !tbaa !13
  %1012 = add nsw i64 %1011, 1
  store i64 %1012, ptr %9, align 8, !tbaa !13
  br label %925, !llvm.loop !45

1013:                                             ; preds = %925
  %1014 = load double, ptr %14, align 8, !tbaa !11
  %1015 = load ptr, ptr %3, align 8, !tbaa !5
  %1016 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %1014, ptr noundef %1015)
  store double %1016, ptr %14, align 8, !tbaa !11
  %1017 = load double, ptr %14, align 8, !tbaa !11
  %1018 = load double, ptr %41, align 8, !tbaa !11
  %1019 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1017, double noundef %1018)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1019, ptr noundef @.str.8, i32 noundef 41475, ptr noundef @.str.403)
  br label %1020

1020:                                             ; preds = %1013
  %1021 = load i64, ptr %8, align 8, !tbaa !13
  %1022 = add nsw i64 %1021, 1
  store i64 %1022, ptr %8, align 8, !tbaa !13
  br label %746, !llvm.loop !46

1023:                                             ; preds = %746
  br label %1024

1024:                                             ; preds = %1023
  %1025 = load i64, ptr %7, align 8, !tbaa !13
  %1026 = add nsw i64 %1025, 1
  store i64 %1026, ptr %7, align 8, !tbaa !13
  br label %742, !llvm.loop !47

1027:                                             ; preds = %742
  %1028 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef 12, ptr noundef %1028)
  %1029 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %1030 = load ptr, ptr %1029, align 8, !tbaa !17
  %1031 = getelementptr inbounds i64, ptr %1030, i64 0
  store i64 2, ptr %1031, align 8, !tbaa !13
  %1032 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %1033 = load ptr, ptr %1032, align 8, !tbaa !17
  %1034 = getelementptr inbounds i64, ptr %1033, i64 1
  store i64 3, ptr %1034, align 8, !tbaa !13
  %1035 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %1036 = load ptr, ptr %1035, align 8, !tbaa !17
  %1037 = getelementptr inbounds i64, ptr %1036, i64 2
  store i64 4, ptr %1037, align 8, !tbaa !13
  %1038 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %1039 = load ptr, ptr %1038, align 8, !tbaa !17
  %1040 = getelementptr inbounds i64, ptr %1039, i64 3
  store i64 5, ptr %1040, align 8, !tbaa !13
  %1041 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %1042 = load ptr, ptr %1041, align 8, !tbaa !17
  %1043 = getelementptr inbounds i64, ptr %1042, i64 4
  store i64 6, ptr %1043, align 8, !tbaa !13
  %1044 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %1045 = load ptr, ptr %1044, align 8, !tbaa !17
  %1046 = getelementptr inbounds i64, ptr %1045, i64 5
  store i64 7, ptr %1046, align 8, !tbaa !13
  %1047 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %1048 = load ptr, ptr %1047, align 8, !tbaa !17
  %1049 = getelementptr inbounds i64, ptr %1048, i64 6
  store i64 8, ptr %1049, align 8, !tbaa !13
  %1050 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %1051 = load ptr, ptr %1050, align 8, !tbaa !17
  %1052 = getelementptr inbounds i64, ptr %1051, i64 7
  store i64 9, ptr %1052, align 8, !tbaa !13
  %1053 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %1054 = load ptr, ptr %1053, align 8, !tbaa !17
  %1055 = getelementptr inbounds i64, ptr %1054, i64 8
  store i64 10, ptr %1055, align 8, !tbaa !13
  %1056 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %1057 = load ptr, ptr %1056, align 8, !tbaa !17
  %1058 = getelementptr inbounds i64, ptr %1057, i64 9
  store i64 20, ptr %1058, align 8, !tbaa !13
  %1059 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %1060 = load ptr, ptr %1059, align 8, !tbaa !17
  %1061 = getelementptr inbounds i64, ptr %1060, i64 10
  store i64 40, ptr %1061, align 8, !tbaa !13
  %1062 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %1063 = load ptr, ptr %1062, align 8, !tbaa !17
  %1064 = getelementptr inbounds i64, ptr %1063, i64 11
  store i64 80, ptr %1064, align 8, !tbaa !13
  store double 1.000000e-05, ptr %41, align 8, !tbaa !11
  store i64 0, ptr %22, align 8, !tbaa !13
  br label %1065

1065:                                             ; preds = %1314, %1027
  %1066 = load i64, ptr %22, align 8, !tbaa !13
  %1067 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 0
  %1068 = load i64, ptr %1067, align 8, !tbaa !48
  %1069 = sub nsw i64 %1068, 1
  %1070 = icmp sle i64 %1066, %1069
  br i1 %1070, label %1071, label %1317

1071:                                             ; preds = %1065
  store i64 1, ptr %8, align 8, !tbaa !13
  br label %1072

1072:                                             ; preds = %1310, %1071
  %1073 = load i64, ptr %8, align 8, !tbaa !13
  %1074 = icmp sle i64 %1073, 10
  br i1 %1074, label %1075, label %1313

1075:                                             ; preds = %1072
  %1076 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %1077 = load ptr, ptr %1076, align 8, !tbaa !17
  %1078 = load i64, ptr %22, align 8, !tbaa !13
  %1079 = getelementptr inbounds i64, ptr %1077, i64 %1078
  %1080 = load i64, ptr %1079, align 8, !tbaa !13
  store i64 %1080, ptr %7, align 8, !tbaa !13
  %1081 = load i64, ptr %7, align 8, !tbaa !13
  %1082 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %1081, ptr noundef %1082)
  %1083 = load i64, ptr %7, align 8, !tbaa !13
  %1084 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %1083, ptr noundef %1084)
  %1085 = load i64, ptr %7, align 8, !tbaa !13
  %1086 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %33, i64 noundef %1085, ptr noundef %1086)
  %1087 = load i64, ptr %7, align 8, !tbaa !13
  %1088 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %34, i64 noundef %1087, ptr noundef %1088)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %1089

1089:                                             ; preds = %1125, %1075
  %1090 = load i64, ptr %9, align 8, !tbaa !13
  %1091 = load i64, ptr %7, align 8, !tbaa !13
  %1092 = sub nsw i64 %1091, 1
  %1093 = icmp sle i64 %1090, %1092
  br i1 %1093, label %1094, label %1128

1094:                                             ; preds = %1089
  br label %1095

1095:                                             ; preds = %1102, %1094
  %1096 = load ptr, ptr %3, align 8, !tbaa !5
  %1097 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1096)
  %1098 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1099 = load ptr, ptr %1098, align 8, !tbaa !17
  %1100 = load i64, ptr %9, align 8, !tbaa !13
  %1101 = getelementptr inbounds double, ptr %1099, i64 %1100
  store double %1097, ptr %1101, align 8, !tbaa !11
  br label %1102

1102:                                             ; preds = %1095
  %1103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1104 = load ptr, ptr %1103, align 8, !tbaa !17
  %1105 = load i64, ptr %9, align 8, !tbaa !13
  %1106 = getelementptr inbounds double, ptr %1104, i64 %1105
  %1107 = load double, ptr %1106, align 8, !tbaa !11
  %1108 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %1107, double noundef 0.000000e+00)
  br i1 %1108, label %1095, label %1109, !llvm.loop !50

1109:                                             ; preds = %1102
  %1110 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1111 = load ptr, ptr %1110, align 8, !tbaa !17
  %1112 = load i64, ptr %9, align 8, !tbaa !13
  %1113 = getelementptr inbounds double, ptr %1111, i64 %1112
  store double -1.000000e+00, ptr %1113, align 8, !tbaa !11
  %1114 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %1115 = load ptr, ptr %1114, align 8, !tbaa !17
  %1116 = load i64, ptr %9, align 8, !tbaa !13
  %1117 = getelementptr inbounds double, ptr %1115, i64 %1116
  store double 1.000000e+00, ptr %1117, align 8, !tbaa !11
  %1118 = load ptr, ptr %3, align 8, !tbaa !5
  %1119 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1118)
  %1120 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %1119, double -1.000000e+00)
  %1121 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %1122 = load ptr, ptr %1121, align 8, !tbaa !17
  %1123 = load i64, ptr %9, align 8, !tbaa !13
  %1124 = getelementptr inbounds double, ptr %1122, i64 %1123
  store double %1120, ptr %1124, align 8, !tbaa !11
  br label %1125

1125:                                             ; preds = %1109
  %1126 = load i64, ptr %9, align 8, !tbaa !13
  %1127 = add nsw i64 %1126, 1
  store i64 %1127, ptr %9, align 8, !tbaa !13
  br label %1089, !llvm.loop !51

1128:                                             ; preds = %1089
  %1129 = load i64, ptr %7, align 8, !tbaa !13
  %1130 = load i64, ptr %7, align 8, !tbaa !13
  %1131 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %23, i64 noundef %1129, i64 noundef %1130, ptr noundef %1131)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %1132

1132:                                             ; preds = %1155, %1128
  %1133 = load i64, ptr %9, align 8, !tbaa !13
  %1134 = load i64, ptr %7, align 8, !tbaa !13
  %1135 = sub nsw i64 %1134, 1
  %1136 = icmp sle i64 %1133, %1135
  br i1 %1136, label %1137, label %1158

1137:                                             ; preds = %1132
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %1138

1138:                                             ; preds = %1151, %1137
  %1139 = load i64, ptr %10, align 8, !tbaa !13
  %1140 = load i64, ptr %7, align 8, !tbaa !13
  %1141 = sub nsw i64 %1140, 1
  %1142 = icmp sle i64 %1139, %1141
  br i1 %1142, label %1143, label %1154

1143:                                             ; preds = %1138
  %1144 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %1145 = load ptr, ptr %1144, align 8, !tbaa !17
  %1146 = load i64, ptr %9, align 8, !tbaa !13
  %1147 = getelementptr inbounds ptr, ptr %1145, i64 %1146
  %1148 = load ptr, ptr %1147, align 8, !tbaa !5
  %1149 = load i64, ptr %10, align 8, !tbaa !13
  %1150 = getelementptr inbounds double, ptr %1148, i64 %1149
  store double 1.000000e+00, ptr %1150, align 8, !tbaa !11
  br label %1151

1151:                                             ; preds = %1143
  %1152 = load i64, ptr %10, align 8, !tbaa !13
  %1153 = add nsw i64 %1152, 1
  store i64 %1153, ptr %10, align 8, !tbaa !13
  br label %1138, !llvm.loop !52

1154:                                             ; preds = %1138
  br label %1155

1155:                                             ; preds = %1154
  %1156 = load i64, ptr %9, align 8, !tbaa !13
  %1157 = add nsw i64 %1156, 1
  store i64 %1157, ptr %9, align 8, !tbaa !13
  br label %1132, !llvm.loop !53

1158:                                             ; preds = %1132
  %1159 = load i64, ptr %7, align 8, !tbaa !13
  %1160 = load ptr, ptr %3, align 8, !tbaa !5
  %1161 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %42, i64 noundef %1159, ptr noundef %1160)
  store i64 %1161, ptr %10, align 8, !tbaa !13
  %1162 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %1163 = load ptr, ptr %1162, align 8, !tbaa !17
  %1164 = load i64, ptr %10, align 8, !tbaa !13
  %1165 = getelementptr inbounds ptr, ptr %1163, i64 %1164
  %1166 = load ptr, ptr %1165, align 8, !tbaa !5
  %1167 = load i64, ptr %10, align 8, !tbaa !13
  %1168 = getelementptr inbounds double, ptr %1166, i64 %1167
  store double -1.000000e+00, ptr %1168, align 8, !tbaa !11
  %1169 = load i64, ptr %7, align 8, !tbaa !13
  %1170 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL27testminqpunit_densetosparsePN11alglib_impl9ae_matrixElPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %23, i64 noundef %1169, ptr noundef %28, ptr noundef %1170)
  %1171 = load i64, ptr %7, align 8, !tbaa !13
  %1172 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %1171, ptr noundef %5, ptr noundef %1172)
  %1173 = load ptr, ptr %3, align 8, !tbaa !5
  %1174 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1173)
  %1175 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1174, double noundef 5.000000e-01)
  %1176 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, i1 noundef zeroext %1175, ptr noundef %1176)
  %1177 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %30, ptr noundef %1177)
  %1178 = load ptr, ptr %3, align 8, !tbaa !5
  %1179 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1178)
  %1180 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1179, double noundef 0.000000e+00)
  br i1 %1180, label %1181, label %1183

1181:                                             ; preds = %1158
  %1182 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %23, i1 noundef zeroext true, ptr noundef %1182)
  br label %1185

1183:                                             ; preds = %1158
  %1184 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %28, i1 noundef zeroext true, ptr noundef %1184)
  br label %1185

1185:                                             ; preds = %1183, %1181
  %1186 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %1186)
  %1187 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %35, ptr noundef %6, ptr noundef %1187)
  %1188 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %1189 = load i64, ptr %1188, align 8, !tbaa !22
  %1190 = icmp ne i64 %1189, -4
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1190, ptr noundef @.str.8, i32 noundef 41571, ptr noundef @.str.404)
  %1191 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %32, ptr noundef %33, ptr noundef %1191)
  %1192 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %1192)
  %1193 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %35, ptr noundef %6, ptr noundef %1193)
  %1194 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %1195 = load i64, ptr %1194, align 8, !tbaa !22
  %1196 = icmp sle i64 %1195, 0
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1196, ptr noundef @.str.8, i32 noundef 41575, ptr noundef @.str.405)
  %1197 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %1198 = load i64, ptr %1197, align 8, !tbaa !22
  %1199 = icmp sle i64 %1198, 0
  br i1 %1199, label %1200, label %1204

1200:                                             ; preds = %1185
  %1201 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1201)
  %1202 = load i8, ptr %43, align 1, !tbaa !9, !range !15, !noundef !16
  %1203 = trunc i8 %1202 to i1
  store i1 %1203, ptr %2, align 1
  store i32 1, ptr %44, align 4
  br label %2277

1204:                                             ; preds = %1185
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %1205

1205:                                             ; preds = %1300, %1204
  %1206 = load i64, ptr %9, align 8, !tbaa !13
  %1207 = load i64, ptr %7, align 8, !tbaa !13
  %1208 = sub nsw i64 %1207, 1
  %1209 = icmp sle i64 %1206, %1208
  br i1 %1209, label %1210, label %1303

1210:                                             ; preds = %1205
  %1211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1212 = load ptr, ptr %1211, align 8, !tbaa !17
  %1213 = load i64, ptr %9, align 8, !tbaa !13
  %1214 = getelementptr inbounds double, ptr %1212, i64 %1213
  %1215 = load double, ptr %1214, align 8, !tbaa !11
  store double %1215, ptr %13, align 8, !tbaa !11
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %1216

1216:                                             ; preds = %1237, %1210
  %1217 = load i64, ptr %10, align 8, !tbaa !13
  %1218 = load i64, ptr %7, align 8, !tbaa !13
  %1219 = sub nsw i64 %1218, 1
  %1220 = icmp sle i64 %1217, %1219
  br i1 %1220, label %1221, label %1240

1221:                                             ; preds = %1216
  %1222 = load double, ptr %13, align 8, !tbaa !11
  %1223 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %1224 = load ptr, ptr %1223, align 8, !tbaa !17
  %1225 = load i64, ptr %9, align 8, !tbaa !13
  %1226 = getelementptr inbounds ptr, ptr %1224, i64 %1225
  %1227 = load ptr, ptr %1226, align 8, !tbaa !5
  %1228 = load i64, ptr %10, align 8, !tbaa !13
  %1229 = getelementptr inbounds double, ptr %1227, i64 %1228
  %1230 = load double, ptr %1229, align 8, !tbaa !11
  %1231 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %1232 = load ptr, ptr %1231, align 8, !tbaa !17
  %1233 = load i64, ptr %10, align 8, !tbaa !13
  %1234 = getelementptr inbounds double, ptr %1232, i64 %1233
  %1235 = load double, ptr %1234, align 8, !tbaa !11
  %1236 = call double @llvm.fmuladd.f64(double %1230, double %1235, double %1222)
  store double %1236, ptr %13, align 8, !tbaa !11
  br label %1237

1237:                                             ; preds = %1221
  %1238 = load i64, ptr %10, align 8, !tbaa !13
  %1239 = add nsw i64 %1238, 1
  store i64 %1239, ptr %10, align 8, !tbaa !13
  br label %1216, !llvm.loop !54

1240:                                             ; preds = %1216
  %1241 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %1242 = load ptr, ptr %1241, align 8, !tbaa !17
  %1243 = load i64, ptr %9, align 8, !tbaa !13
  %1244 = getelementptr inbounds double, ptr %1242, i64 %1243
  %1245 = load double, ptr %1244, align 8, !tbaa !11
  %1246 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1247 = load ptr, ptr %1246, align 8, !tbaa !17
  %1248 = load i64, ptr %9, align 8, !tbaa !13
  %1249 = getelementptr inbounds double, ptr %1247, i64 %1248
  %1250 = load double, ptr %1249, align 8, !tbaa !11
  %1251 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %1245, double noundef %1250)
  br i1 %1251, label %1252, label %1256

1252:                                             ; preds = %1240
  %1253 = load double, ptr %13, align 8, !tbaa !11
  %1254 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1253, double noundef 0.000000e+00)
  br i1 %1254, label %1255, label %1256

1255:                                             ; preds = %1252
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  br label %1256

1256:                                             ; preds = %1255, %1252, %1240
  %1257 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %1258 = load ptr, ptr %1257, align 8, !tbaa !17
  %1259 = load i64, ptr %9, align 8, !tbaa !13
  %1260 = getelementptr inbounds double, ptr %1258, i64 %1259
  %1261 = load double, ptr %1260, align 8, !tbaa !11
  %1262 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %1263 = load ptr, ptr %1262, align 8, !tbaa !17
  %1264 = load i64, ptr %9, align 8, !tbaa !13
  %1265 = getelementptr inbounds double, ptr %1263, i64 %1264
  %1266 = load double, ptr %1265, align 8, !tbaa !11
  %1267 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %1261, double noundef %1266)
  br i1 %1267, label %1268, label %1272

1268:                                             ; preds = %1256
  %1269 = load double, ptr %13, align 8, !tbaa !11
  %1270 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1269, double noundef 0.000000e+00)
  br i1 %1270, label %1271, label %1272

1271:                                             ; preds = %1268
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  br label %1272

1272:                                             ; preds = %1271, %1268, %1256
  %1273 = load double, ptr %14, align 8, !tbaa !11
  %1274 = load double, ptr %13, align 8, !tbaa !11
  %1275 = load ptr, ptr %3, align 8, !tbaa !5
  %1276 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1274, ptr noundef %1275)
  %1277 = fadd double %1273, %1276
  store double %1277, ptr %14, align 8, !tbaa !11
  %1278 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %1279 = load ptr, ptr %1278, align 8, !tbaa !17
  %1280 = load i64, ptr %9, align 8, !tbaa !13
  %1281 = getelementptr inbounds double, ptr %1279, i64 %1280
  %1282 = load double, ptr %1281, align 8, !tbaa !11
  %1283 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1284 = load ptr, ptr %1283, align 8, !tbaa !17
  %1285 = load i64, ptr %9, align 8, !tbaa !13
  %1286 = getelementptr inbounds double, ptr %1284, i64 %1285
  %1287 = load double, ptr %1286, align 8, !tbaa !11
  %1288 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1282, double noundef %1287)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1288, ptr noundef @.str.8, i32 noundef 41603, ptr noundef @.str.406)
  %1289 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %1290 = load ptr, ptr %1289, align 8, !tbaa !17
  %1291 = load i64, ptr %9, align 8, !tbaa !13
  %1292 = getelementptr inbounds double, ptr %1290, i64 %1291
  %1293 = load double, ptr %1292, align 8, !tbaa !11
  %1294 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %1295 = load ptr, ptr %1294, align 8, !tbaa !17
  %1296 = load i64, ptr %9, align 8, !tbaa !13
  %1297 = getelementptr inbounds double, ptr %1295, i64 %1296
  %1298 = load double, ptr %1297, align 8, !tbaa !11
  %1299 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1293, double noundef %1298)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1299, ptr noundef @.str.8, i32 noundef 41604, ptr noundef @.str.407)
  br label %1300

1300:                                             ; preds = %1272
  %1301 = load i64, ptr %9, align 8, !tbaa !13
  %1302 = add nsw i64 %1301, 1
  store i64 %1302, ptr %9, align 8, !tbaa !13
  br label %1205, !llvm.loop !55

1303:                                             ; preds = %1205
  %1304 = load double, ptr %14, align 8, !tbaa !11
  %1305 = load ptr, ptr %3, align 8, !tbaa !5
  %1306 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %1304, ptr noundef %1305)
  store double %1306, ptr %14, align 8, !tbaa !11
  %1307 = load double, ptr %14, align 8, !tbaa !11
  %1308 = load double, ptr %41, align 8, !tbaa !11
  %1309 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1307, double noundef %1308)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1309, ptr noundef @.str.8, i32 noundef 41607, ptr noundef @.str.408)
  br label %1310

1310:                                             ; preds = %1303
  %1311 = load i64, ptr %8, align 8, !tbaa !13
  %1312 = add nsw i64 %1311, 1
  store i64 %1312, ptr %8, align 8, !tbaa !13
  br label %1072, !llvm.loop !56

1313:                                             ; preds = %1072
  br label %1314

1314:                                             ; preds = %1313
  %1315 = load i64, ptr %22, align 8, !tbaa !13
  %1316 = add nsw i64 %1315, 1
  store i64 %1316, ptr %22, align 8, !tbaa !13
  br label %1065, !llvm.loop !57

1317:                                             ; preds = %1065
  store double 1.000000e-05, ptr %41, align 8, !tbaa !11
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %1318

1318:                                             ; preds = %1490, %1317
  %1319 = load i64, ptr %7, align 8, !tbaa !13
  %1320 = icmp sle i64 %1319, 10
  br i1 %1320, label %1321, label %1493

1321:                                             ; preds = %1318
  store i64 1, ptr %8, align 8, !tbaa !13
  br label %1322

1322:                                             ; preds = %1486, %1321
  %1323 = load i64, ptr %8, align 8, !tbaa !13
  %1324 = icmp sle i64 %1323, 10
  br i1 %1324, label %1325, label %1489

1325:                                             ; preds = %1322
  %1326 = load i64, ptr %7, align 8, !tbaa !13
  %1327 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %1326, ptr noundef %1327)
  %1328 = load i64, ptr %7, align 8, !tbaa !13
  %1329 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %1328, ptr noundef %1329)
  %1330 = load i64, ptr %7, align 8, !tbaa !13
  %1331 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %33, i64 noundef %1330, ptr noundef %1331)
  %1332 = load i64, ptr %7, align 8, !tbaa !13
  %1333 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %34, i64 noundef %1332, ptr noundef %1333)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %1334

1334:                                             ; preds = %1370, %1325
  %1335 = load i64, ptr %9, align 8, !tbaa !13
  %1336 = load i64, ptr %7, align 8, !tbaa !13
  %1337 = sub nsw i64 %1336, 1
  %1338 = icmp sle i64 %1335, %1337
  br i1 %1338, label %1339, label %1373

1339:                                             ; preds = %1334
  br label %1340

1340:                                             ; preds = %1347, %1339
  %1341 = load ptr, ptr %3, align 8, !tbaa !5
  %1342 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1341)
  %1343 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1344 = load ptr, ptr %1343, align 8, !tbaa !17
  %1345 = load i64, ptr %9, align 8, !tbaa !13
  %1346 = getelementptr inbounds double, ptr %1344, i64 %1345
  store double %1342, ptr %1346, align 8, !tbaa !11
  br label %1347

1347:                                             ; preds = %1340
  %1348 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1349 = load ptr, ptr %1348, align 8, !tbaa !17
  %1350 = load i64, ptr %9, align 8, !tbaa !13
  %1351 = getelementptr inbounds double, ptr %1349, i64 %1350
  %1352 = load double, ptr %1351, align 8, !tbaa !11
  %1353 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %1352, double noundef 0.000000e+00)
  br i1 %1353, label %1340, label %1354, !llvm.loop !58

1354:                                             ; preds = %1347
  %1355 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1356 = load ptr, ptr %1355, align 8, !tbaa !17
  %1357 = load i64, ptr %9, align 8, !tbaa !13
  %1358 = getelementptr inbounds double, ptr %1356, i64 %1357
  store double -1.000000e+00, ptr %1358, align 8, !tbaa !11
  %1359 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %1360 = load ptr, ptr %1359, align 8, !tbaa !17
  %1361 = load i64, ptr %9, align 8, !tbaa !13
  %1362 = getelementptr inbounds double, ptr %1360, i64 %1361
  store double 1.000000e+00, ptr %1362, align 8, !tbaa !11
  %1363 = load ptr, ptr %3, align 8, !tbaa !5
  %1364 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1363)
  %1365 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %1364, double -1.000000e+00)
  %1366 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %1367 = load ptr, ptr %1366, align 8, !tbaa !17
  %1368 = load i64, ptr %9, align 8, !tbaa !13
  %1369 = getelementptr inbounds double, ptr %1367, i64 %1368
  store double %1365, ptr %1369, align 8, !tbaa !11
  br label %1370

1370:                                             ; preds = %1354
  %1371 = load i64, ptr %9, align 8, !tbaa !13
  %1372 = add nsw i64 %1371, 1
  store i64 %1372, ptr %9, align 8, !tbaa !13
  br label %1334, !llvm.loop !59

1373:                                             ; preds = %1334
  %1374 = load i64, ptr %7, align 8, !tbaa !13
  %1375 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %1374, ptr noundef %5, ptr noundef %1375)
  %1376 = load ptr, ptr %3, align 8, !tbaa !5
  %1377 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1376)
  %1378 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1377, double noundef 5.000000e-01)
  %1379 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, i1 noundef zeroext %1378, ptr noundef %1379)
  %1380 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %30, ptr noundef %1380)
  %1381 = load ptr, ptr %3, align 8, !tbaa !5
  %1382 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1381)
  %1383 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1382, double noundef 0.000000e+00)
  br i1 %1383, label %1384, label %1416

1384:                                             ; preds = %1373
  %1385 = load i64, ptr %7, align 8, !tbaa !13
  %1386 = load i64, ptr %7, align 8, !tbaa !13
  %1387 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %23, i64 noundef %1385, i64 noundef %1386, ptr noundef %1387)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %1388

1388:                                             ; preds = %1411, %1384
  %1389 = load i64, ptr %9, align 8, !tbaa !13
  %1390 = load i64, ptr %7, align 8, !tbaa !13
  %1391 = sub nsw i64 %1390, 1
  %1392 = icmp sle i64 %1389, %1391
  br i1 %1392, label %1393, label %1414

1393:                                             ; preds = %1388
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %1394

1394:                                             ; preds = %1407, %1393
  %1395 = load i64, ptr %10, align 8, !tbaa !13
  %1396 = load i64, ptr %7, align 8, !tbaa !13
  %1397 = sub nsw i64 %1396, 1
  %1398 = icmp sle i64 %1395, %1397
  br i1 %1398, label %1399, label %1410

1399:                                             ; preds = %1394
  %1400 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %1401 = load ptr, ptr %1400, align 8, !tbaa !17
  %1402 = load i64, ptr %9, align 8, !tbaa !13
  %1403 = getelementptr inbounds ptr, ptr %1401, i64 %1402
  %1404 = load ptr, ptr %1403, align 8, !tbaa !5
  %1405 = load i64, ptr %10, align 8, !tbaa !13
  %1406 = getelementptr inbounds double, ptr %1404, i64 %1405
  store double 0.000000e+00, ptr %1406, align 8, !tbaa !11
  br label %1407

1407:                                             ; preds = %1399
  %1408 = load i64, ptr %10, align 8, !tbaa !13
  %1409 = add nsw i64 %1408, 1
  store i64 %1409, ptr %10, align 8, !tbaa !13
  br label %1394, !llvm.loop !60

1410:                                             ; preds = %1394
  br label %1411

1411:                                             ; preds = %1410
  %1412 = load i64, ptr %9, align 8, !tbaa !13
  %1413 = add nsw i64 %1412, 1
  store i64 %1413, ptr %9, align 8, !tbaa !13
  br label %1388, !llvm.loop !61

1414:                                             ; preds = %1388
  %1415 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %23, i1 noundef zeroext true, ptr noundef %1415)
  br label %1416

1416:                                             ; preds = %1414, %1373
  %1417 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %1417)
  %1418 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %35, ptr noundef %6, ptr noundef %1418)
  %1419 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %1420 = load i64, ptr %1419, align 8, !tbaa !22
  %1421 = icmp ne i64 %1420, -4
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1421, ptr noundef @.str.8, i32 noundef 41674, ptr noundef @.str.409)
  %1422 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %32, ptr noundef %33, ptr noundef %1422)
  %1423 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %1423)
  %1424 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %35, ptr noundef %6, ptr noundef %1424)
  %1425 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %1426 = load i64, ptr %1425, align 8, !tbaa !22
  %1427 = icmp sle i64 %1426, 0
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1427, ptr noundef @.str.8, i32 noundef 41678, ptr noundef @.str.410)
  %1428 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %1429 = load i64, ptr %1428, align 8, !tbaa !22
  %1430 = icmp sle i64 %1429, 0
  br i1 %1430, label %1431, label %1435

1431:                                             ; preds = %1416
  %1432 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1432)
  %1433 = load i8, ptr %43, align 1, !tbaa !9, !range !15, !noundef !16
  %1434 = trunc i8 %1433 to i1
  store i1 %1434, ptr %2, align 1
  store i32 1, ptr %44, align 4
  br label %2277

1435:                                             ; preds = %1416
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %1436

1436:                                             ; preds = %1482, %1435
  %1437 = load i64, ptr %9, align 8, !tbaa !13
  %1438 = load i64, ptr %7, align 8, !tbaa !13
  %1439 = sub nsw i64 %1438, 1
  %1440 = icmp sle i64 %1437, %1439
  br i1 %1440, label %1441, label %1485

1441:                                             ; preds = %1436
  %1442 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1443 = load ptr, ptr %1442, align 8, !tbaa !17
  %1444 = load i64, ptr %9, align 8, !tbaa !13
  %1445 = getelementptr inbounds double, ptr %1443, i64 %1444
  %1446 = load double, ptr %1445, align 8, !tbaa !11
  %1447 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1446, double noundef 0.000000e+00)
  br i1 %1447, label %1448, label %1460

1448:                                             ; preds = %1441
  %1449 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %1450 = load ptr, ptr %1449, align 8, !tbaa !17
  %1451 = load i64, ptr %9, align 8, !tbaa !13
  %1452 = getelementptr inbounds double, ptr %1450, i64 %1451
  %1453 = load double, ptr %1452, align 8, !tbaa !11
  %1454 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1455 = load ptr, ptr %1454, align 8, !tbaa !17
  %1456 = load i64, ptr %9, align 8, !tbaa !13
  %1457 = getelementptr inbounds double, ptr %1455, i64 %1456
  %1458 = load double, ptr %1457, align 8, !tbaa !11
  %1459 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1453, double noundef %1458)
  br label %1460

1460:                                             ; preds = %1448, %1441
  %1461 = phi i1 [ false, %1441 ], [ %1459, %1448 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1461, ptr noundef @.str.8, i32 noundef 41691, ptr noundef @.str.411)
  %1462 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1463 = load ptr, ptr %1462, align 8, !tbaa !17
  %1464 = load i64, ptr %9, align 8, !tbaa !13
  %1465 = getelementptr inbounds double, ptr %1463, i64 %1464
  %1466 = load double, ptr %1465, align 8, !tbaa !11
  %1467 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1466, double noundef 0.000000e+00)
  br i1 %1467, label %1468, label %1480

1468:                                             ; preds = %1460
  %1469 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %1470 = load ptr, ptr %1469, align 8, !tbaa !17
  %1471 = load i64, ptr %9, align 8, !tbaa !13
  %1472 = getelementptr inbounds double, ptr %1470, i64 %1471
  %1473 = load double, ptr %1472, align 8, !tbaa !11
  %1474 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %1475 = load ptr, ptr %1474, align 8, !tbaa !17
  %1476 = load i64, ptr %9, align 8, !tbaa !13
  %1477 = getelementptr inbounds double, ptr %1475, i64 %1476
  %1478 = load double, ptr %1477, align 8, !tbaa !11
  %1479 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1473, double noundef %1478)
  br label %1480

1480:                                             ; preds = %1468, %1460
  %1481 = phi i1 [ false, %1460 ], [ %1479, %1468 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1481, ptr noundef @.str.8, i32 noundef 41692, ptr noundef @.str.412)
  br label %1482

1482:                                             ; preds = %1480
  %1483 = load i64, ptr %9, align 8, !tbaa !13
  %1484 = add nsw i64 %1483, 1
  store i64 %1484, ptr %9, align 8, !tbaa !13
  br label %1436, !llvm.loop !62

1485:                                             ; preds = %1436
  br label %1486

1486:                                             ; preds = %1485
  %1487 = load i64, ptr %8, align 8, !tbaa !13
  %1488 = add nsw i64 %1487, 1
  store i64 %1488, ptr %8, align 8, !tbaa !13
  br label %1322, !llvm.loop !63

1489:                                             ; preds = %1322
  br label %1490

1490:                                             ; preds = %1489
  %1491 = load i64, ptr %7, align 8, !tbaa !13
  %1492 = add nsw i64 %1491, 1
  store i64 %1492, ptr %7, align 8, !tbaa !13
  br label %1318, !llvm.loop !64

1493:                                             ; preds = %1318
  store double 1.000000e-05, ptr %41, align 8, !tbaa !11
  store i64 1, ptr %8, align 8, !tbaa !13
  br label %1494

1494:                                             ; preds = %1709, %1493
  %1495 = load i64, ptr %8, align 8, !tbaa !13
  %1496 = icmp sle i64 %1495, 10
  br i1 %1496, label %1497, label %1712

1497:                                             ; preds = %1494
  %1498 = load ptr, ptr %3, align 8, !tbaa !5
  %1499 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %42, i64 noundef 51, ptr noundef %1498)
  %1500 = add nsw i64 50, %1499
  store i64 %1500, ptr %7, align 8, !tbaa !13
  %1501 = load i64, ptr %7, align 8, !tbaa !13
  %1502 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %1501, double noundef 1.000000e+03, ptr noundef %23, ptr noundef %1502)
  %1503 = load i64, ptr %7, align 8, !tbaa !13
  %1504 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL27testminqpunit_densetosparsePN11alglib_impl9ae_matrixElPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %23, i64 noundef %1503, ptr noundef %28, ptr noundef %1504)
  %1505 = load i64, ptr %7, align 8, !tbaa !13
  %1506 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %1505, ptr noundef %1506)
  %1507 = load i64, ptr %7, align 8, !tbaa !13
  %1508 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %1507, ptr noundef %1508)
  %1509 = load i64, ptr %7, align 8, !tbaa !13
  %1510 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %33, i64 noundef %1509, ptr noundef %1510)
  %1511 = load i64, ptr %7, align 8, !tbaa !13
  %1512 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %34, i64 noundef %1511, ptr noundef %1512)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %1513

1513:                                             ; preds = %1566, %1497
  %1514 = load i64, ptr %9, align 8, !tbaa !13
  %1515 = load i64, ptr %7, align 8, !tbaa !13
  %1516 = sub nsw i64 %1515, 1
  %1517 = icmp sle i64 %1514, %1516
  br i1 %1517, label %1518, label %1569

1518:                                             ; preds = %1513
  %1519 = load ptr, ptr %3, align 8, !tbaa !5
  %1520 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1519)
  %1521 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1522 = load ptr, ptr %1521, align 8, !tbaa !17
  %1523 = load i64, ptr %9, align 8, !tbaa !13
  %1524 = getelementptr inbounds double, ptr %1522, i64 %1523
  store double %1520, ptr %1524, align 8, !tbaa !11
  %1525 = load ptr, ptr %3, align 8, !tbaa !5
  %1526 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1525)
  %1527 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %1528 = load ptr, ptr %1527, align 8, !tbaa !17
  %1529 = load i64, ptr %9, align 8, !tbaa !13
  %1530 = getelementptr inbounds double, ptr %1528, i64 %1529
  store double %1526, ptr %1530, align 8, !tbaa !11
  %1531 = load ptr, ptr %3, align 8, !tbaa !5
  %1532 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1531)
  %1533 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1532, double noundef 0.000000e+00)
  br i1 %1533, label %1534, label %1549

1534:                                             ; preds = %1518
  %1535 = load ptr, ptr %3, align 8, !tbaa !5
  %1536 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %1535, i32 0, i32 3
  %1537 = load double, ptr %1536, align 8, !tbaa !30
  %1538 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1539 = load ptr, ptr %1538, align 8, !tbaa !17
  %1540 = load i64, ptr %9, align 8, !tbaa !13
  %1541 = getelementptr inbounds double, ptr %1539, i64 %1540
  store double %1537, ptr %1541, align 8, !tbaa !11
  %1542 = load ptr, ptr %3, align 8, !tbaa !5
  %1543 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %1542, i32 0, i32 2
  %1544 = load double, ptr %1543, align 8, !tbaa !35
  %1545 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %1546 = load ptr, ptr %1545, align 8, !tbaa !17
  %1547 = load i64, ptr %9, align 8, !tbaa !13
  %1548 = getelementptr inbounds double, ptr %1546, i64 %1547
  store double %1544, ptr %1548, align 8, !tbaa !11
  br label %1565

1549:                                             ; preds = %1518
  %1550 = load ptr, ptr %3, align 8, !tbaa !5
  %1551 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1550)
  %1552 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1553 = load ptr, ptr %1552, align 8, !tbaa !17
  %1554 = load i64, ptr %9, align 8, !tbaa !13
  %1555 = getelementptr inbounds double, ptr %1553, i64 %1554
  store double %1551, ptr %1555, align 8, !tbaa !11
  %1556 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1557 = load ptr, ptr %1556, align 8, !tbaa !17
  %1558 = load i64, ptr %9, align 8, !tbaa !13
  %1559 = getelementptr inbounds double, ptr %1557, i64 %1558
  %1560 = load double, ptr %1559, align 8, !tbaa !11
  %1561 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %1562 = load ptr, ptr %1561, align 8, !tbaa !17
  %1563 = load i64, ptr %9, align 8, !tbaa !13
  %1564 = getelementptr inbounds double, ptr %1562, i64 %1563
  store double %1560, ptr %1564, align 8, !tbaa !11
  br label %1565

1565:                                             ; preds = %1549, %1534
  br label %1566

1566:                                             ; preds = %1565
  %1567 = load i64, ptr %9, align 8, !tbaa !13
  %1568 = add nsw i64 %1567, 1
  store i64 %1568, ptr %9, align 8, !tbaa !13
  br label %1513, !llvm.loop !65

1569:                                             ; preds = %1513
  %1570 = load i64, ptr %7, align 8, !tbaa !13
  %1571 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %1570, ptr noundef %5, ptr noundef %1571)
  %1572 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 1, i1 noundef zeroext true, ptr noundef %1572)
  %1573 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %5, i32 0, i32 1
  %1574 = getelementptr inbounds %"struct.alglib_impl::qqpsettings", ptr %1573, i32 0, i32 4
  store i8 0, ptr %1574, align 8, !tbaa !66
  %1575 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %30, ptr noundef %1575)
  %1576 = load ptr, ptr %3, align 8, !tbaa !5
  %1577 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1576)
  %1578 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1577, double noundef 0.000000e+00)
  br i1 %1578, label %1579, label %1584

1579:                                             ; preds = %1569
  %1580 = load ptr, ptr %3, align 8, !tbaa !5
  %1581 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1580)
  %1582 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1581, double noundef 0.000000e+00)
  %1583 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %23, i1 noundef zeroext %1582, ptr noundef %1583)
  br label %1589

1584:                                             ; preds = %1569
  %1585 = load ptr, ptr %3, align 8, !tbaa !5
  %1586 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1585)
  %1587 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1586, double noundef 0.000000e+00)
  %1588 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %28, i1 noundef zeroext %1587, ptr noundef %1588)
  br label %1589

1589:                                             ; preds = %1584, %1579
  %1590 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %32, ptr noundef %33, ptr noundef %1590)
  %1591 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %1591)
  %1592 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %35, ptr noundef %6, ptr noundef %1592)
  %1593 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %1594 = load i64, ptr %1593, align 8, !tbaa !22
  %1595 = icmp sle i64 %1594, 0
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1595, ptr noundef @.str.8, i32 noundef 41758, ptr noundef @.str.413)
  %1596 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %1597 = load i64, ptr %1596, align 8, !tbaa !22
  %1598 = icmp sle i64 %1597, 0
  br i1 %1598, label %1599, label %1603

1599:                                             ; preds = %1589
  %1600 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1600)
  %1601 = load i8, ptr %43, align 1, !tbaa !9, !range !15, !noundef !16
  %1602 = trunc i8 %1601 to i1
  store i1 %1602, ptr %2, align 1
  store i32 1, ptr %44, align 4
  br label %2277

1603:                                             ; preds = %1589
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %1604

1604:                                             ; preds = %1699, %1603
  %1605 = load i64, ptr %9, align 8, !tbaa !13
  %1606 = load i64, ptr %7, align 8, !tbaa !13
  %1607 = sub nsw i64 %1606, 1
  %1608 = icmp sle i64 %1605, %1607
  br i1 %1608, label %1609, label %1702

1609:                                             ; preds = %1604
  %1610 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1611 = load ptr, ptr %1610, align 8, !tbaa !17
  %1612 = load i64, ptr %9, align 8, !tbaa !13
  %1613 = getelementptr inbounds double, ptr %1611, i64 %1612
  %1614 = load double, ptr %1613, align 8, !tbaa !11
  store double %1614, ptr %13, align 8, !tbaa !11
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %1615

1615:                                             ; preds = %1636, %1609
  %1616 = load i64, ptr %10, align 8, !tbaa !13
  %1617 = load i64, ptr %7, align 8, !tbaa !13
  %1618 = sub nsw i64 %1617, 1
  %1619 = icmp sle i64 %1616, %1618
  br i1 %1619, label %1620, label %1639

1620:                                             ; preds = %1615
  %1621 = load double, ptr %13, align 8, !tbaa !11
  %1622 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %1623 = load ptr, ptr %1622, align 8, !tbaa !17
  %1624 = load i64, ptr %9, align 8, !tbaa !13
  %1625 = getelementptr inbounds ptr, ptr %1623, i64 %1624
  %1626 = load ptr, ptr %1625, align 8, !tbaa !5
  %1627 = load i64, ptr %10, align 8, !tbaa !13
  %1628 = getelementptr inbounds double, ptr %1626, i64 %1627
  %1629 = load double, ptr %1628, align 8, !tbaa !11
  %1630 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %1631 = load ptr, ptr %1630, align 8, !tbaa !17
  %1632 = load i64, ptr %10, align 8, !tbaa !13
  %1633 = getelementptr inbounds double, ptr %1631, i64 %1632
  %1634 = load double, ptr %1633, align 8, !tbaa !11
  %1635 = call double @llvm.fmuladd.f64(double %1629, double %1634, double %1621)
  store double %1635, ptr %13, align 8, !tbaa !11
  br label %1636

1636:                                             ; preds = %1620
  %1637 = load i64, ptr %10, align 8, !tbaa !13
  %1638 = add nsw i64 %1637, 1
  store i64 %1638, ptr %10, align 8, !tbaa !13
  br label %1615, !llvm.loop !89

1639:                                             ; preds = %1615
  %1640 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %1641 = load ptr, ptr %1640, align 8, !tbaa !17
  %1642 = load i64, ptr %9, align 8, !tbaa !13
  %1643 = getelementptr inbounds double, ptr %1641, i64 %1642
  %1644 = load double, ptr %1643, align 8, !tbaa !11
  %1645 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1646 = load ptr, ptr %1645, align 8, !tbaa !17
  %1647 = load i64, ptr %9, align 8, !tbaa !13
  %1648 = getelementptr inbounds double, ptr %1646, i64 %1647
  %1649 = load double, ptr %1648, align 8, !tbaa !11
  %1650 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %1644, double noundef %1649)
  br i1 %1650, label %1651, label %1655

1651:                                             ; preds = %1639
  %1652 = load double, ptr %13, align 8, !tbaa !11
  %1653 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1652, double noundef 0.000000e+00)
  br i1 %1653, label %1654, label %1655

1654:                                             ; preds = %1651
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  br label %1655

1655:                                             ; preds = %1654, %1651, %1639
  %1656 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %1657 = load ptr, ptr %1656, align 8, !tbaa !17
  %1658 = load i64, ptr %9, align 8, !tbaa !13
  %1659 = getelementptr inbounds double, ptr %1657, i64 %1658
  %1660 = load double, ptr %1659, align 8, !tbaa !11
  %1661 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %1662 = load ptr, ptr %1661, align 8, !tbaa !17
  %1663 = load i64, ptr %9, align 8, !tbaa !13
  %1664 = getelementptr inbounds double, ptr %1662, i64 %1663
  %1665 = load double, ptr %1664, align 8, !tbaa !11
  %1666 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %1660, double noundef %1665)
  br i1 %1666, label %1667, label %1671

1667:                                             ; preds = %1655
  %1668 = load double, ptr %13, align 8, !tbaa !11
  %1669 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1668, double noundef 0.000000e+00)
  br i1 %1669, label %1670, label %1671

1670:                                             ; preds = %1667
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  br label %1671

1671:                                             ; preds = %1670, %1667, %1655
  %1672 = load double, ptr %14, align 8, !tbaa !11
  %1673 = load double, ptr %13, align 8, !tbaa !11
  %1674 = load ptr, ptr %3, align 8, !tbaa !5
  %1675 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1673, ptr noundef %1674)
  %1676 = fadd double %1672, %1675
  store double %1676, ptr %14, align 8, !tbaa !11
  %1677 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %1678 = load ptr, ptr %1677, align 8, !tbaa !17
  %1679 = load i64, ptr %9, align 8, !tbaa !13
  %1680 = getelementptr inbounds double, ptr %1678, i64 %1679
  %1681 = load double, ptr %1680, align 8, !tbaa !11
  %1682 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1683 = load ptr, ptr %1682, align 8, !tbaa !17
  %1684 = load i64, ptr %9, align 8, !tbaa !13
  %1685 = getelementptr inbounds double, ptr %1683, i64 %1684
  %1686 = load double, ptr %1685, align 8, !tbaa !11
  %1687 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1681, double noundef %1686)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1687, ptr noundef @.str.8, i32 noundef 41786, ptr noundef @.str.414)
  %1688 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %1689 = load ptr, ptr %1688, align 8, !tbaa !17
  %1690 = load i64, ptr %9, align 8, !tbaa !13
  %1691 = getelementptr inbounds double, ptr %1689, i64 %1690
  %1692 = load double, ptr %1691, align 8, !tbaa !11
  %1693 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %1694 = load ptr, ptr %1693, align 8, !tbaa !17
  %1695 = load i64, ptr %9, align 8, !tbaa !13
  %1696 = getelementptr inbounds double, ptr %1694, i64 %1695
  %1697 = load double, ptr %1696, align 8, !tbaa !11
  %1698 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1692, double noundef %1697)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1698, ptr noundef @.str.8, i32 noundef 41787, ptr noundef @.str.415)
  br label %1699

1699:                                             ; preds = %1671
  %1700 = load i64, ptr %9, align 8, !tbaa !13
  %1701 = add nsw i64 %1700, 1
  store i64 %1701, ptr %9, align 8, !tbaa !13
  br label %1604, !llvm.loop !90

1702:                                             ; preds = %1604
  %1703 = load double, ptr %14, align 8, !tbaa !11
  %1704 = load ptr, ptr %3, align 8, !tbaa !5
  %1705 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %1703, ptr noundef %1704)
  store double %1705, ptr %14, align 8, !tbaa !11
  %1706 = load double, ptr %14, align 8, !tbaa !11
  %1707 = load double, ptr %41, align 8, !tbaa !11
  %1708 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1706, double noundef %1707)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1708, ptr noundef @.str.8, i32 noundef 41790, ptr noundef @.str.416)
  br label %1709

1709:                                             ; preds = %1702
  %1710 = load i64, ptr %8, align 8, !tbaa !13
  %1711 = add nsw i64 %1710, 1
  store i64 %1711, ptr %8, align 8, !tbaa !13
  br label %1494, !llvm.loop !91

1712:                                             ; preds = %1494
  store double 1.000000e-05, ptr %41, align 8, !tbaa !11
  store i64 1, ptr %8, align 8, !tbaa !13
  br label %1713

1713:                                             ; preds = %1858, %1712
  %1714 = load i64, ptr %8, align 8, !tbaa !13
  %1715 = icmp sle i64 %1714, 10
  br i1 %1715, label %1716, label %1861

1716:                                             ; preds = %1713
  %1717 = load ptr, ptr %3, align 8, !tbaa !5
  %1718 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %42, i64 noundef 20, ptr noundef %1717)
  %1719 = add nsw i64 20, %1718
  store i64 %1719, ptr %7, align 8, !tbaa !13
  %1720 = load i64, ptr %7, align 8, !tbaa !13
  %1721 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %1720, double noundef 1.000000e+05, ptr noundef %23, ptr noundef %1721)
  %1722 = load i64, ptr %7, align 8, !tbaa !13
  %1723 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL27testminqpunit_densetosparsePN11alglib_impl9ae_matrixElPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %23, i64 noundef %1722, ptr noundef %28, ptr noundef %1723)
  %1724 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %28, ptr noundef %1724)
  %1725 = load i64, ptr %7, align 8, !tbaa !13
  %1726 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %1725, ptr noundef %1726)
  %1727 = load i64, ptr %7, align 8, !tbaa !13
  %1728 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %1727, ptr noundef %1728)
  %1729 = load i64, ptr %7, align 8, !tbaa !13
  %1730 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %33, i64 noundef %1729, ptr noundef %1730)
  %1731 = load i64, ptr %7, align 8, !tbaa !13
  %1732 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %34, i64 noundef %1731, ptr noundef %1732)
  %1733 = load i64, ptr %7, align 8, !tbaa !13
  %1734 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %39, i64 noundef %1733, ptr noundef %1734)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %1735

1735:                                             ; preds = %1766, %1716
  %1736 = load i64, ptr %9, align 8, !tbaa !13
  %1737 = load i64, ptr %7, align 8, !tbaa !13
  %1738 = sub nsw i64 %1737, 1
  %1739 = icmp sle i64 %1736, %1738
  br i1 %1739, label %1740, label %1769

1740:                                             ; preds = %1735
  %1741 = load ptr, ptr %3, align 8, !tbaa !5
  %1742 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1741)
  %1743 = fsub double %1742, 5.000000e-01
  %1744 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %39, i32 0, i32 4
  %1745 = load ptr, ptr %1744, align 8, !tbaa !17
  %1746 = load i64, ptr %9, align 8, !tbaa !13
  %1747 = getelementptr inbounds double, ptr %1745, i64 %1746
  store double %1743, ptr %1747, align 8, !tbaa !11
  %1748 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %1749 = load ptr, ptr %1748, align 8, !tbaa !17
  %1750 = load i64, ptr %9, align 8, !tbaa !13
  %1751 = getelementptr inbounds double, ptr %1749, i64 %1750
  store double 1.000000e+02, ptr %1751, align 8, !tbaa !11
  %1752 = load ptr, ptr %3, align 8, !tbaa !5
  %1753 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %1752, i32 0, i32 3
  %1754 = load double, ptr %1753, align 8, !tbaa !30
  %1755 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1756 = load ptr, ptr %1755, align 8, !tbaa !17
  %1757 = load i64, ptr %9, align 8, !tbaa !13
  %1758 = getelementptr inbounds double, ptr %1756, i64 %1757
  store double %1754, ptr %1758, align 8, !tbaa !11
  %1759 = load ptr, ptr %3, align 8, !tbaa !5
  %1760 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %1759, i32 0, i32 2
  %1761 = load double, ptr %1760, align 8, !tbaa !35
  %1762 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %1763 = load ptr, ptr %1762, align 8, !tbaa !17
  %1764 = load i64, ptr %9, align 8, !tbaa !13
  %1765 = getelementptr inbounds double, ptr %1763, i64 %1764
  store double %1761, ptr %1765, align 8, !tbaa !11
  br label %1766

1766:                                             ; preds = %1740
  %1767 = load i64, ptr %9, align 8, !tbaa !13
  %1768 = add nsw i64 %1767, 1
  store i64 %1768, ptr %9, align 8, !tbaa !13
  br label %1735, !llvm.loop !92

1769:                                             ; preds = %1735
  %1770 = load i64, ptr %7, align 8, !tbaa !13
  %1771 = load ptr, ptr %3, align 8, !tbaa !5
  %1772 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %42, i64 noundef %1770, ptr noundef %1771)
  store i64 %1772, ptr %11, align 8, !tbaa !13
  %1773 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %1774 = load ptr, ptr %1773, align 8, !tbaa !17
  %1775 = load i64, ptr %11, align 8, !tbaa !13
  %1776 = getelementptr inbounds double, ptr %1774, i64 %1775
  store double 5.000010e+00, ptr %1776, align 8, !tbaa !11
  %1777 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1778 = load ptr, ptr %1777, align 8, !tbaa !17
  %1779 = load i64, ptr %11, align 8, !tbaa !13
  %1780 = getelementptr inbounds double, ptr %1778, i64 %1779
  store double 5.000000e+00, ptr %1780, align 8, !tbaa !11
  %1781 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %28, ptr noundef %39, ptr noundef %30, ptr noundef %1781)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %1782

1782:                                             ; preds = %1798, %1769
  %1783 = load i64, ptr %9, align 8, !tbaa !13
  %1784 = load i64, ptr %7, align 8, !tbaa !13
  %1785 = sub nsw i64 %1784, 1
  %1786 = icmp sle i64 %1783, %1785
  br i1 %1786, label %1787, label %1801

1787:                                             ; preds = %1782
  %1788 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1789 = load ptr, ptr %1788, align 8, !tbaa !17
  %1790 = load i64, ptr %9, align 8, !tbaa !13
  %1791 = getelementptr inbounds double, ptr %1789, i64 %1790
  %1792 = load double, ptr %1791, align 8, !tbaa !11
  %1793 = fneg double %1792
  %1794 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %1795 = load ptr, ptr %1794, align 8, !tbaa !17
  %1796 = load i64, ptr %9, align 8, !tbaa !13
  %1797 = getelementptr inbounds double, ptr %1795, i64 %1796
  store double %1793, ptr %1797, align 8, !tbaa !11
  br label %1798

1798:                                             ; preds = %1787
  %1799 = load i64, ptr %9, align 8, !tbaa !13
  %1800 = add nsw i64 %1799, 1
  store i64 %1800, ptr %9, align 8, !tbaa !13
  br label %1782, !llvm.loop !93

1801:                                             ; preds = %1782
  %1802 = load i64, ptr %7, align 8, !tbaa !13
  %1803 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %1802, ptr noundef %5, ptr noundef %1803)
  %1804 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 1, i1 noundef zeroext true, ptr noundef %1804)
  %1805 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %30, ptr noundef %1805)
  %1806 = load ptr, ptr %3, align 8, !tbaa !5
  %1807 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1806)
  %1808 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1807, double noundef 0.000000e+00)
  %1809 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %23, i1 noundef zeroext %1808, ptr noundef %1809)
  %1810 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %32, ptr noundef %33, ptr noundef %1810)
  %1811 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetstartingpointEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %34, ptr noundef %1811)
  %1812 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %5, i32 0, i32 1
  %1813 = getelementptr inbounds %"struct.alglib_impl::qqpsettings", ptr %1812, i32 0, i32 4
  store i8 0, ptr %1813, align 8, !tbaa !66
  %1814 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %5, i32 0, i32 1
  %1815 = getelementptr inbounds %"struct.alglib_impl::qqpsettings", ptr %1814, i32 0, i32 5
  store i8 1, ptr %1815, align 1, !tbaa !94
  %1816 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %5, i32 0, i32 1
  %1817 = getelementptr inbounds %"struct.alglib_impl::qqpsettings", ptr %1816, i32 0, i32 8
  store i64 0, ptr %1817, align 8, !tbaa !95
  %1818 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %1818)
  %1819 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %35, ptr noundef %6, ptr noundef %1819)
  %1820 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %1821 = load i64, ptr %1820, align 8, !tbaa !22
  %1822 = icmp sle i64 %1821, 0
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1822, ptr noundef @.str.8, i32 noundef 41872, ptr noundef @.str.417)
  %1823 = load i8, ptr %43, align 1, !tbaa !9, !range !15, !noundef !16
  %1824 = trunc i8 %1823 to i1
  br i1 %1824, label %1825, label %1829

1825:                                             ; preds = %1801
  %1826 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1826)
  %1827 = load i8, ptr %43, align 1, !tbaa !9, !range !15, !noundef !16
  %1828 = trunc i8 %1827 to i1
  store i1 %1828, ptr %2, align 1
  store i32 1, ptr %44, align 4
  br label %2277

1829:                                             ; preds = %1801
  store i8 0, ptr %15, align 1, !tbaa !9
  %1830 = load i64, ptr %7, align 8, !tbaa !13
  %1831 = load double, ptr %41, align 8, !tbaa !11
  %1832 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL38testminqpunit_testbcgradandfeasibilityPN11alglib_impl9ae_matrixEPNS_9ae_vectorES3_S3_lS3_dPbPNS_8ae_stateE(ptr noundef %23, ptr noundef %30, ptr noundef %32, ptr noundef %33, i64 noundef %1830, ptr noundef %35, double noundef %1831, ptr noundef %15, ptr noundef %1832)
  %1833 = load i8, ptr %15, align 1, !tbaa !9, !range !15, !noundef !16
  %1834 = trunc i8 %1833 to i1
  %1835 = xor i1 %1834, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1835, ptr noundef @.str.8, i32 noundef 41880, ptr noundef @.str.418)
  %1836 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %5, i32 0, i32 1
  %1837 = getelementptr inbounds %"struct.alglib_impl::qqpsettings", ptr %1836, i32 0, i32 4
  store i8 0, ptr %1837, align 8, !tbaa !66
  %1838 = load i64, ptr %7, align 8, !tbaa !13
  %1839 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %5, i32 0, i32 1
  %1840 = getelementptr inbounds %"struct.alglib_impl::qqpsettings", ptr %1839, i32 0, i32 8
  store i64 %1838, ptr %1840, align 8, !tbaa !95
  %1841 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %1841)
  %1842 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %35, ptr noundef %6, ptr noundef %1842)
  %1843 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %1844 = load i64, ptr %1843, align 8, !tbaa !22
  %1845 = icmp sle i64 %1844, 0
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1845, ptr noundef @.str.8, i32 noundef 41889, ptr noundef @.str.419)
  %1846 = load i8, ptr %43, align 1, !tbaa !9, !range !15, !noundef !16
  %1847 = trunc i8 %1846 to i1
  br i1 %1847, label %1848, label %1852

1848:                                             ; preds = %1829
  %1849 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1849)
  %1850 = load i8, ptr %43, align 1, !tbaa !9, !range !15, !noundef !16
  %1851 = trunc i8 %1850 to i1
  store i1 %1851, ptr %2, align 1
  store i32 1, ptr %44, align 4
  br label %2277

1852:                                             ; preds = %1829
  store i8 0, ptr %15, align 1, !tbaa !9
  %1853 = load i64, ptr %7, align 8, !tbaa !13
  %1854 = load double, ptr %41, align 8, !tbaa !11
  %1855 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL38testminqpunit_testbcgradandfeasibilityPN11alglib_impl9ae_matrixEPNS_9ae_vectorES3_S3_lS3_dPbPNS_8ae_stateE(ptr noundef %23, ptr noundef %30, ptr noundef %32, ptr noundef %33, i64 noundef %1853, ptr noundef %35, double noundef %1854, ptr noundef %15, ptr noundef %1855)
  %1856 = load i8, ptr %15, align 1, !tbaa !9, !range !15, !noundef !16
  %1857 = trunc i8 %1856 to i1
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1857, ptr noundef @.str.8, i32 noundef 41897, ptr noundef @.str.420)
  br label %1858

1858:                                             ; preds = %1852
  %1859 = load i64, ptr %8, align 8, !tbaa !13
  %1860 = add nsw i64 %1859, 1
  store i64 %1860, ptr %8, align 8, !tbaa !13
  br label %1713, !llvm.loop !96

1861:                                             ; preds = %1713
  %1862 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %27, i64 noundef 1, i64 noundef 3, ptr noundef %1862)
  %1863 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %29, i64 noundef 1, ptr noundef %1863)
  %1864 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %27, i32 0, i32 6
  %1865 = load ptr, ptr %1864, align 8, !tbaa !17
  %1866 = getelementptr inbounds ptr, ptr %1865, i64 0
  %1867 = load ptr, ptr %1866, align 8, !tbaa !5
  %1868 = getelementptr inbounds double, ptr %1867, i64 0
  store double 1.000000e+00, ptr %1868, align 8, !tbaa !11
  %1869 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %27, i32 0, i32 6
  %1870 = load ptr, ptr %1869, align 8, !tbaa !17
  %1871 = getelementptr inbounds ptr, ptr %1870, i64 0
  %1872 = load ptr, ptr %1871, align 8, !tbaa !5
  %1873 = getelementptr inbounds double, ptr %1872, i64 1
  store double 1.000000e+00, ptr %1873, align 8, !tbaa !11
  %1874 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %27, i32 0, i32 6
  %1875 = load ptr, ptr %1874, align 8, !tbaa !17
  %1876 = getelementptr inbounds ptr, ptr %1875, i64 0
  %1877 = load ptr, ptr %1876, align 8, !tbaa !5
  %1878 = getelementptr inbounds double, ptr %1877, i64 2
  store double 2.000000e+00, ptr %1878, align 8, !tbaa !11
  %1879 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %1880 = load ptr, ptr %1879, align 8, !tbaa !17
  %1881 = getelementptr inbounds i64, ptr %1880, i64 0
  store i64 0, ptr %1881, align 8, !tbaa !13
  %1882 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef 2, ptr noundef %5, ptr noundef %1882)
  %1883 = load ptr, ptr %3, align 8, !tbaa !5
  %1884 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %1883)
  %1885 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1884, double noundef 5.000000e-01)
  %1886 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, i1 noundef zeroext %1885, ptr noundef %1886)
  %1887 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minqpsetlcEPNS_10minqpstateEPNS_9ae_matrixEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %5, ptr noundef %27, ptr noundef %29, i64 noundef 1, ptr noundef %1887)
  %1888 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %1888)
  %1889 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %35, ptr noundef %6, ptr noundef %1889)
  %1890 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %6, i32 0, i32 4
  %1891 = load i64, ptr %1890, align 8, !tbaa !22
  %1892 = icmp ne i64 %1891, -5
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %1892, ptr noundef @.str.8, i32 noundef 41915, ptr noundef @.str.421)
  store double 1.000000e-03, ptr %41, align 8, !tbaa !11
  store i64 1, ptr %20, align 8, !tbaa !13
  store i64 20, ptr %7, align 8, !tbaa !13
  %1893 = load ptr, ptr %3, align 8, !tbaa !5
  %1894 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1893)
  %1895 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1894, double noundef 5.000000e-01)
  %1896 = zext i1 %1895 to i8
  store i8 %1896, ptr %18, align 1, !tbaa !9
  %1897 = load i64, ptr %7, align 8, !tbaa !13
  %1898 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %1897, double noundef 1.000000e+03, ptr noundef %24, ptr noundef %1898)
  %1899 = load i64, ptr %7, align 8, !tbaa !13
  %1900 = load i64, ptr %7, align 8, !tbaa !13
  %1901 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %1899, i64 noundef %1900, i64 noundef 0, ptr noundef %28, ptr noundef %1901)
  %1902 = load i64, ptr %7, align 8, !tbaa !13
  %1903 = load i64, ptr %7, align 8, !tbaa !13
  %1904 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %23, i64 noundef %1902, i64 noundef %1903, ptr noundef %1904)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %1905

1905:                                             ; preds = %1989, %1861
  %1906 = load i64, ptr %9, align 8, !tbaa !13
  %1907 = load i64, ptr %7, align 8, !tbaa !13
  %1908 = sub nsw i64 %1907, 1
  %1909 = icmp sle i64 %1906, %1908
  br i1 %1909, label %1910, label %1992

1910:                                             ; preds = %1905
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %1911

1911:                                             ; preds = %1985, %1910
  %1912 = load i64, ptr %10, align 8, !tbaa !13
  %1913 = load i64, ptr %7, align 8, !tbaa !13
  %1914 = sub nsw i64 %1913, 1
  %1915 = icmp sle i64 %1912, %1914
  br i1 %1915, label %1916, label %1988

1916:                                             ; preds = %1911
  %1917 = load i64, ptr %10, align 8, !tbaa !13
  %1918 = load i64, ptr %9, align 8, !tbaa !13
  %1919 = icmp sge i64 %1917, %1918
  br i1 %1919, label %1920, label %1950

1920:                                             ; preds = %1916
  %1921 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %1922 = trunc i8 %1921 to i1
  br i1 %1922, label %1923, label %1950

1923:                                             ; preds = %1920
  %1924 = load i64, ptr %9, align 8, !tbaa !13
  %1925 = load i64, ptr %10, align 8, !tbaa !13
  %1926 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %1927 = load ptr, ptr %1926, align 8, !tbaa !17
  %1928 = load i64, ptr %9, align 8, !tbaa !13
  %1929 = getelementptr inbounds ptr, ptr %1927, i64 %1928
  %1930 = load ptr, ptr %1929, align 8, !tbaa !5
  %1931 = load i64, ptr %10, align 8, !tbaa !13
  %1932 = getelementptr inbounds double, ptr %1930, i64 %1931
  %1933 = load double, ptr %1932, align 8, !tbaa !11
  %1934 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %28, i64 noundef %1924, i64 noundef %1925, double noundef %1933, ptr noundef %1934)
  %1935 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %1936 = load ptr, ptr %1935, align 8, !tbaa !17
  %1937 = load i64, ptr %9, align 8, !tbaa !13
  %1938 = getelementptr inbounds ptr, ptr %1936, i64 %1937
  %1939 = load ptr, ptr %1938, align 8, !tbaa !5
  %1940 = load i64, ptr %10, align 8, !tbaa !13
  %1941 = getelementptr inbounds double, ptr %1939, i64 %1940
  %1942 = load double, ptr %1941, align 8, !tbaa !11
  %1943 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %1944 = load ptr, ptr %1943, align 8, !tbaa !17
  %1945 = load i64, ptr %9, align 8, !tbaa !13
  %1946 = getelementptr inbounds ptr, ptr %1944, i64 %1945
  %1947 = load ptr, ptr %1946, align 8, !tbaa !5
  %1948 = load i64, ptr %10, align 8, !tbaa !13
  %1949 = getelementptr inbounds double, ptr %1947, i64 %1948
  store double %1942, ptr %1949, align 8, !tbaa !11
  br label %1950

1950:                                             ; preds = %1923, %1920, %1916
  %1951 = load i64, ptr %10, align 8, !tbaa !13
  %1952 = load i64, ptr %9, align 8, !tbaa !13
  %1953 = icmp sle i64 %1951, %1952
  br i1 %1953, label %1954, label %1984

1954:                                             ; preds = %1950
  %1955 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %1956 = trunc i8 %1955 to i1
  br i1 %1956, label %1984, label %1957

1957:                                             ; preds = %1954
  %1958 = load i64, ptr %9, align 8, !tbaa !13
  %1959 = load i64, ptr %10, align 8, !tbaa !13
  %1960 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %1961 = load ptr, ptr %1960, align 8, !tbaa !17
  %1962 = load i64, ptr %9, align 8, !tbaa !13
  %1963 = getelementptr inbounds ptr, ptr %1961, i64 %1962
  %1964 = load ptr, ptr %1963, align 8, !tbaa !5
  %1965 = load i64, ptr %10, align 8, !tbaa !13
  %1966 = getelementptr inbounds double, ptr %1964, i64 %1965
  %1967 = load double, ptr %1966, align 8, !tbaa !11
  %1968 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %28, i64 noundef %1958, i64 noundef %1959, double noundef %1967, ptr noundef %1968)
  %1969 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %1970 = load ptr, ptr %1969, align 8, !tbaa !17
  %1971 = load i64, ptr %9, align 8, !tbaa !13
  %1972 = getelementptr inbounds ptr, ptr %1970, i64 %1971
  %1973 = load ptr, ptr %1972, align 8, !tbaa !5
  %1974 = load i64, ptr %10, align 8, !tbaa !13
  %1975 = getelementptr inbounds double, ptr %1973, i64 %1974
  %1976 = load double, ptr %1975, align 8, !tbaa !11
  %1977 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %1978 = load ptr, ptr %1977, align 8, !tbaa !17
  %1979 = load i64, ptr %9, align 8, !tbaa !13
  %1980 = getelementptr inbounds ptr, ptr %1978, i64 %1979
  %1981 = load ptr, ptr %1980, align 8, !tbaa !5
  %1982 = load i64, ptr %10, align 8, !tbaa !13
  %1983 = getelementptr inbounds double, ptr %1981, i64 %1982
  store double %1976, ptr %1983, align 8, !tbaa !11
  br label %1984

1984:                                             ; preds = %1957, %1954, %1950
  br label %1985

1985:                                             ; preds = %1984
  %1986 = load i64, ptr %10, align 8, !tbaa !13
  %1987 = add nsw i64 %1986, 1
  store i64 %1987, ptr %10, align 8, !tbaa !13
  br label %1911, !llvm.loop !97

1988:                                             ; preds = %1911
  br label %1989

1989:                                             ; preds = %1988
  %1990 = load i64, ptr %9, align 8, !tbaa !13
  %1991 = add nsw i64 %1990, 1
  store i64 %1991, ptr %9, align 8, !tbaa !13
  br label %1905, !llvm.loop !98

1992:                                             ; preds = %1905
  %1993 = load i64, ptr %7, align 8, !tbaa !13
  %1994 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %1993, ptr noundef %1994)
  %1995 = load i64, ptr %7, align 8, !tbaa !13
  %1996 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %40, i64 noundef %1995, ptr noundef %1996)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %1997

1997:                                             ; preds = %2018, %1992
  %1998 = load i64, ptr %9, align 8, !tbaa !13
  %1999 = load i64, ptr %7, align 8, !tbaa !13
  %2000 = sub nsw i64 %1999, 1
  %2001 = icmp sle i64 %1998, %2000
  br i1 %2001, label %2002, label %2021

2002:                                             ; preds = %1997
  %2003 = load ptr, ptr %3, align 8, !tbaa !5
  %2004 = call noundef double @_ZN11alglib_impl12randomnormalEPNS_8ae_stateE(ptr noundef %2003)
  %2005 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %2006 = load ptr, ptr %2005, align 8, !tbaa !17
  %2007 = load i64, ptr %9, align 8, !tbaa !13
  %2008 = getelementptr inbounds double, ptr %2006, i64 %2007
  store double %2004, ptr %2008, align 8, !tbaa !11
  %2009 = load ptr, ptr %3, align 8, !tbaa !5
  %2010 = call noundef double @_ZN11alglib_impl12randomnormalEPNS_8ae_stateE(ptr noundef %2009)
  %2011 = fdiv double %2010, 1.000000e+01
  %2012 = load ptr, ptr %3, align 8, !tbaa !5
  %2013 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 1.000000e+01, double noundef %2011, ptr noundef %2012)
  %2014 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2015 = load ptr, ptr %2014, align 8, !tbaa !17
  %2016 = load i64, ptr %9, align 8, !tbaa !13
  %2017 = getelementptr inbounds double, ptr %2015, i64 %2016
  store double %2013, ptr %2017, align 8, !tbaa !11
  br label %2018

2018:                                             ; preds = %2002
  %2019 = load i64, ptr %9, align 8, !tbaa !13
  %2020 = add nsw i64 %2019, 1
  store i64 %2020, ptr %9, align 8, !tbaa !13
  br label %1997, !llvm.loop !99

2021:                                             ; preds = %1997
  %2022 = load i64, ptr %7, align 8, !tbaa !13
  %2023 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %2022, ptr noundef %5, ptr noundef %2023)
  %2024 = load i64, ptr %20, align 8, !tbaa !13
  %2025 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef %2024, i1 noundef zeroext false, ptr noundef %2025)
  %2026 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpsetscaleEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %40, ptr noundef %2026)
  %2027 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %30, ptr noundef %2027)
  %2028 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %2029 = trunc i8 %2028 to i1
  %2030 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %23, i1 noundef zeroext %2029, ptr noundef %2030)
  %2031 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %2031)
  %2032 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %36, ptr noundef %6, ptr noundef %2032)
  %2033 = load i64, ptr %7, align 8, !tbaa !13
  %2034 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %2033, ptr noundef %5, ptr noundef %2034)
  %2035 = load i64, ptr %20, align 8, !tbaa !13
  %2036 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef %2035, i1 noundef zeroext false, ptr noundef %2036)
  %2037 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpsetscaleEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %40, ptr noundef %2037)
  %2038 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %30, ptr noundef %2038)
  %2039 = load i8, ptr %18, align 1, !tbaa !9, !range !15, !noundef !16
  %2040 = trunc i8 %2039 to i1
  %2041 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %28, i1 noundef zeroext %2040, ptr noundef %2041)
  %2042 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %2042)
  %2043 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %37, ptr noundef %6, ptr noundef %2043)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %2044

2044:                                             ; preds = %2065, %2021
  %2045 = load i64, ptr %9, align 8, !tbaa !13
  %2046 = load i64, ptr %7, align 8, !tbaa !13
  %2047 = sub nsw i64 %2046, 1
  %2048 = icmp sle i64 %2045, %2047
  br i1 %2048, label %2049, label %2068

2049:                                             ; preds = %2044
  %2050 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %2051 = load ptr, ptr %2050, align 8, !tbaa !17
  %2052 = load i64, ptr %9, align 8, !tbaa !13
  %2053 = getelementptr inbounds double, ptr %2051, i64 %2052
  %2054 = load double, ptr %2053, align 8, !tbaa !11
  %2055 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %2056 = load ptr, ptr %2055, align 8, !tbaa !17
  %2057 = load i64, ptr %9, align 8, !tbaa !13
  %2058 = getelementptr inbounds double, ptr %2056, i64 %2057
  %2059 = load double, ptr %2058, align 8, !tbaa !11
  %2060 = fsub double %2054, %2059
  %2061 = load ptr, ptr %3, align 8, !tbaa !5
  %2062 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2060, ptr noundef %2061)
  %2063 = load double, ptr %41, align 8, !tbaa !11
  %2064 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2062, double noundef %2063)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %2064, ptr noundef @.str.8, i32 noundef 41976, ptr noundef @.str.422)
  br label %2065

2065:                                             ; preds = %2049
  %2066 = load i64, ptr %9, align 8, !tbaa !13
  %2067 = add nsw i64 %2066, 1
  store i64 %2067, ptr %9, align 8, !tbaa !13
  br label %2044, !llvm.loop !100

2068:                                             ; preds = %2044
  store double 1.000000e-03, ptr %41, align 8, !tbaa !11
  store i64 1, ptr %20, align 8, !tbaa !13
  store i64 100, ptr %7, align 8, !tbaa !13
  %2069 = load i64, ptr %7, align 8, !tbaa !13
  %2070 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %40, i64 noundef %2069, ptr noundef %2070)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %2071

2071:                                             ; preds = %2086, %2068
  %2072 = load i64, ptr %9, align 8, !tbaa !13
  %2073 = load i64, ptr %7, align 8, !tbaa !13
  %2074 = sub nsw i64 %2073, 1
  %2075 = icmp sle i64 %2072, %2074
  br i1 %2075, label %2076, label %2089

2076:                                             ; preds = %2071
  %2077 = load ptr, ptr %3, align 8, !tbaa !5
  %2078 = call noundef double @_ZN11alglib_impl12randomnormalEPNS_8ae_stateE(ptr noundef %2077)
  %2079 = fdiv double %2078, 1.000000e+01
  %2080 = load ptr, ptr %3, align 8, !tbaa !5
  %2081 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 1.000000e+01, double noundef %2079, ptr noundef %2080)
  %2082 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2083 = load ptr, ptr %2082, align 8, !tbaa !17
  %2084 = load i64, ptr %9, align 8, !tbaa !13
  %2085 = getelementptr inbounds double, ptr %2083, i64 %2084
  store double %2081, ptr %2085, align 8, !tbaa !11
  br label %2086

2086:                                             ; preds = %2076
  %2087 = load i64, ptr %9, align 8, !tbaa !13
  %2088 = add nsw i64 %2087, 1
  store i64 %2088, ptr %9, align 8, !tbaa !13
  br label %2071, !llvm.loop !101

2089:                                             ; preds = %2071
  %2090 = load i64, ptr %7, align 8, !tbaa !13
  %2091 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %2090, double noundef 1.000000e+03, ptr noundef %23, ptr noundef %2091)
  %2092 = load i64, ptr %7, align 8, !tbaa !13
  %2093 = load i64, ptr %7, align 8, !tbaa !13
  %2094 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %24, i64 noundef %2092, i64 noundef %2093, ptr noundef %2094)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %2095

2095:                                             ; preds = %2138, %2089
  %2096 = load i64, ptr %9, align 8, !tbaa !13
  %2097 = load i64, ptr %7, align 8, !tbaa !13
  %2098 = sub nsw i64 %2097, 1
  %2099 = icmp sle i64 %2096, %2098
  br i1 %2099, label %2100, label %2141

2100:                                             ; preds = %2095
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %2101

2101:                                             ; preds = %2134, %2100
  %2102 = load i64, ptr %10, align 8, !tbaa !13
  %2103 = load i64, ptr %7, align 8, !tbaa !13
  %2104 = sub nsw i64 %2103, 1
  %2105 = icmp sle i64 %2102, %2104
  br i1 %2105, label %2106, label %2137

2106:                                             ; preds = %2101
  %2107 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %2108 = load ptr, ptr %2107, align 8, !tbaa !17
  %2109 = load i64, ptr %9, align 8, !tbaa !13
  %2110 = getelementptr inbounds ptr, ptr %2108, i64 %2109
  %2111 = load ptr, ptr %2110, align 8, !tbaa !5
  %2112 = load i64, ptr %10, align 8, !tbaa !13
  %2113 = getelementptr inbounds double, ptr %2111, i64 %2112
  %2114 = load double, ptr %2113, align 8, !tbaa !11
  %2115 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2116 = load ptr, ptr %2115, align 8, !tbaa !17
  %2117 = load i64, ptr %9, align 8, !tbaa !13
  %2118 = getelementptr inbounds double, ptr %2116, i64 %2117
  %2119 = load double, ptr %2118, align 8, !tbaa !11
  %2120 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2121 = load ptr, ptr %2120, align 8, !tbaa !17
  %2122 = load i64, ptr %10, align 8, !tbaa !13
  %2123 = getelementptr inbounds double, ptr %2121, i64 %2122
  %2124 = load double, ptr %2123, align 8, !tbaa !11
  %2125 = fmul double %2119, %2124
  %2126 = fdiv double %2114, %2125
  %2127 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %2128 = load ptr, ptr %2127, align 8, !tbaa !17
  %2129 = load i64, ptr %9, align 8, !tbaa !13
  %2130 = getelementptr inbounds ptr, ptr %2128, i64 %2129
  %2131 = load ptr, ptr %2130, align 8, !tbaa !5
  %2132 = load i64, ptr %10, align 8, !tbaa !13
  %2133 = getelementptr inbounds double, ptr %2131, i64 %2132
  store double %2126, ptr %2133, align 8, !tbaa !11
  br label %2134

2134:                                             ; preds = %2106
  %2135 = load i64, ptr %10, align 8, !tbaa !13
  %2136 = add nsw i64 %2135, 1
  store i64 %2136, ptr %10, align 8, !tbaa !13
  br label %2101, !llvm.loop !102

2137:                                             ; preds = %2101
  br label %2138

2138:                                             ; preds = %2137
  %2139 = load i64, ptr %9, align 8, !tbaa !13
  %2140 = add nsw i64 %2139, 1
  store i64 %2140, ptr %9, align 8, !tbaa !13
  br label %2095, !llvm.loop !103

2141:                                             ; preds = %2095
  %2142 = load i64, ptr %7, align 8, !tbaa !13
  %2143 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %2142, ptr noundef %2143)
  %2144 = load i64, ptr %7, align 8, !tbaa !13
  %2145 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %2144, ptr noundef %2145)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %2146

2146:                                             ; preds = %2173, %2141
  %2147 = load i64, ptr %9, align 8, !tbaa !13
  %2148 = load i64, ptr %7, align 8, !tbaa !13
  %2149 = sub nsw i64 %2148, 1
  %2150 = icmp sle i64 %2147, %2149
  br i1 %2150, label %2151, label %2176

2151:                                             ; preds = %2146
  %2152 = load ptr, ptr %3, align 8, !tbaa !5
  %2153 = call noundef double @_ZN11alglib_impl12randomnormalEPNS_8ae_stateE(ptr noundef %2152)
  %2154 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %2155 = load ptr, ptr %2154, align 8, !tbaa !17
  %2156 = load i64, ptr %9, align 8, !tbaa !13
  %2157 = getelementptr inbounds double, ptr %2155, i64 %2156
  store double %2153, ptr %2157, align 8, !tbaa !11
  %2158 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %2159 = load ptr, ptr %2158, align 8, !tbaa !17
  %2160 = load i64, ptr %9, align 8, !tbaa !13
  %2161 = getelementptr inbounds double, ptr %2159, i64 %2160
  %2162 = load double, ptr %2161, align 8, !tbaa !11
  %2163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2164 = load ptr, ptr %2163, align 8, !tbaa !17
  %2165 = load i64, ptr %9, align 8, !tbaa !13
  %2166 = getelementptr inbounds double, ptr %2164, i64 %2165
  %2167 = load double, ptr %2166, align 8, !tbaa !11
  %2168 = fdiv double %2162, %2167
  %2169 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2170 = load ptr, ptr %2169, align 8, !tbaa !17
  %2171 = load i64, ptr %9, align 8, !tbaa !13
  %2172 = getelementptr inbounds double, ptr %2170, i64 %2171
  store double %2168, ptr %2172, align 8, !tbaa !11
  br label %2173

2173:                                             ; preds = %2151
  %2174 = load i64, ptr %9, align 8, !tbaa !13
  %2175 = add nsw i64 %2174, 1
  store i64 %2175, ptr %9, align 8, !tbaa !13
  br label %2146, !llvm.loop !104

2176:                                             ; preds = %2146
  %2177 = load i64, ptr %7, align 8, !tbaa !13
  %2178 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %2177, ptr noundef %5, ptr noundef %2178)
  %2179 = load i64, ptr %20, align 8, !tbaa !13
  %2180 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef %2179, i1 noundef zeroext false, ptr noundef %2180)
  %2181 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %30, ptr noundef %2181)
  %2182 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %23, i1 noundef zeroext true, ptr noundef %2182)
  %2183 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %2183)
  %2184 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %36, ptr noundef %6, ptr noundef %2184)
  %2185 = load i64, ptr %7, align 8, !tbaa !13
  %2186 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %2185, ptr noundef %5, ptr noundef %2186)
  %2187 = load i64, ptr %20, align 8, !tbaa !13
  %2188 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef %2187, i1 noundef zeroext false, ptr noundef %2188)
  %2189 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %31, ptr noundef %2189)
  %2190 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %24, i1 noundef zeroext true, ptr noundef %2190)
  %2191 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpsetscaleEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %40, ptr noundef %2191)
  %2192 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %2192)
  %2193 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %37, ptr noundef %6, ptr noundef %2193)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %2194

2194:                                             ; preds = %2221, %2176
  %2195 = load i64, ptr %9, align 8, !tbaa !13
  %2196 = load i64, ptr %7, align 8, !tbaa !13
  %2197 = sub nsw i64 %2196, 1
  %2198 = icmp sle i64 %2195, %2197
  br i1 %2198, label %2199, label %2224

2199:                                             ; preds = %2194
  %2200 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2201 = load ptr, ptr %2200, align 8, !tbaa !17
  %2202 = load i64, ptr %9, align 8, !tbaa !13
  %2203 = getelementptr inbounds double, ptr %2201, i64 %2202
  %2204 = load double, ptr %2203, align 8, !tbaa !11
  %2205 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %2206 = load ptr, ptr %2205, align 8, !tbaa !17
  %2207 = load i64, ptr %9, align 8, !tbaa !13
  %2208 = getelementptr inbounds double, ptr %2206, i64 %2207
  %2209 = load double, ptr %2208, align 8, !tbaa !11
  %2210 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %2211 = load ptr, ptr %2210, align 8, !tbaa !17
  %2212 = load i64, ptr %9, align 8, !tbaa !13
  %2213 = getelementptr inbounds double, ptr %2211, i64 %2212
  %2214 = load double, ptr %2213, align 8, !tbaa !11
  %2215 = fneg double %2214
  %2216 = call double @llvm.fmuladd.f64(double %2204, double %2209, double %2215)
  %2217 = load ptr, ptr %3, align 8, !tbaa !5
  %2218 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2216, ptr noundef %2217)
  %2219 = load double, ptr %41, align 8, !tbaa !11
  %2220 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2218, double noundef %2219)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %43, i1 noundef zeroext %2220, ptr noundef @.str.8, i32 noundef 42041, ptr noundef @.str.423)
  br label %2221

2221:                                             ; preds = %2199
  %2222 = load i64, ptr %9, align 8, !tbaa !13
  %2223 = add nsw i64 %2222, 1
  store i64 %2223, ptr %9, align 8, !tbaa !13
  br label %2194, !llvm.loop !105

2224:                                             ; preds = %2194
  store i64 40000, ptr %7, align 8, !tbaa !13
  %2225 = load i64, ptr %7, align 8, !tbaa !13
  %2226 = load i64, ptr %7, align 8, !tbaa !13
  %2227 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %2225, i64 noundef %2226, i64 noundef 0, ptr noundef %28, ptr noundef %2227)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %2228

2228:                                             ; preds = %2242, %2224
  %2229 = load i64, ptr %9, align 8, !tbaa !13
  %2230 = load i64, ptr %7, align 8, !tbaa !13
  %2231 = sub nsw i64 %2230, 1
  %2232 = icmp sle i64 %2229, %2231
  br i1 %2232, label %2233, label %2245

2233:                                             ; preds = %2228
  %2234 = load i64, ptr %9, align 8, !tbaa !13
  %2235 = load i64, ptr %9, align 8, !tbaa !13
  %2236 = load ptr, ptr %3, align 8, !tbaa !5
  %2237 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2236)
  %2238 = fmul double -3.000000e+00, %2237
  %2239 = load ptr, ptr %3, align 8, !tbaa !5
  %2240 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 1.000000e+01, double noundef %2238, ptr noundef %2239)
  %2241 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %28, i64 noundef %2234, i64 noundef %2235, double noundef %2240, ptr noundef %2241)
  br label %2242

2242:                                             ; preds = %2233
  %2243 = load i64, ptr %9, align 8, !tbaa !13
  %2244 = add nsw i64 %2243, 1
  store i64 %2244, ptr %9, align 8, !tbaa !13
  br label %2228, !llvm.loop !106

2245:                                             ; preds = %2228
  %2246 = load i64, ptr %7, align 8, !tbaa !13
  %2247 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %2246, ptr noundef %2247)
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %2248

2248:                                             ; preds = %2260, %2245
  %2249 = load i64, ptr %9, align 8, !tbaa !13
  %2250 = load i64, ptr %7, align 8, !tbaa !13
  %2251 = sub nsw i64 %2250, 1
  %2252 = icmp sle i64 %2249, %2251
  br i1 %2252, label %2253, label %2263

2253:                                             ; preds = %2248
  %2254 = load ptr, ptr %3, align 8, !tbaa !5
  %2255 = call noundef double @_ZN11alglib_impl12randomnormalEPNS_8ae_stateE(ptr noundef %2254)
  %2256 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %2257 = load ptr, ptr %2256, align 8, !tbaa !17
  %2258 = load i64, ptr %9, align 8, !tbaa !13
  %2259 = getelementptr inbounds double, ptr %2257, i64 %2258
  store double %2255, ptr %2259, align 8, !tbaa !11
  br label %2260

2260:                                             ; preds = %2253
  %2261 = load i64, ptr %9, align 8, !tbaa !13
  %2262 = add nsw i64 %2261, 1
  store i64 %2262, ptr %9, align 8, !tbaa !13
  br label %2248, !llvm.loop !107

2263:                                             ; preds = %2248
  %2264 = load i64, ptr %7, align 8, !tbaa !13
  %2265 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %2264, ptr noundef %5, ptr noundef %2265)
  %2266 = load ptr, ptr %3, align 8, !tbaa !5
  %2267 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %42, ptr noundef %2266)
  %2268 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2267, double noundef 5.000000e-01)
  %2269 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 10, i1 noundef zeroext %2268, ptr noundef %2269)
  %2270 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %30, ptr noundef %2270)
  %2271 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %28, i1 noundef zeroext true, ptr noundef %2271)
  %2272 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %2272)
  %2273 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %36, ptr noundef %6, ptr noundef %2273)
  %2274 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %2274)
  %2275 = load i8, ptr %43, align 1, !tbaa !9, !range !15, !noundef !16
  %2276 = trunc i8 %2275 to i1
  store i1 %2276, ptr %2, align 1
  store i32 1, ptr %44, align 4
  br label %2277

2277:                                             ; preds = %2263, %1848, %1825, %1599, %1431, %1200, %920, %618, %255
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 64, 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 64, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 35232, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  %2278 = load i1, ptr %2, align 1
  ret i1 %2278
}

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef, double noundef, double noundef, double noundef, i64 noundef, i1 noundef zeroext, ptr noundef) #1

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

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

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

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

declare noundef double @_ZN11alglib_impl12randomnormalEPNS_8ae_stateE(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = !{!23, !14, i64 32}
!23 = !{!"_ZTSN11alglib_impl11minqpreportE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19}
!29 = distinct !{!29, !19}
!30 = !{!31, !12, i64 24}
!31 = !{!"_ZTSN11alglib_impl8ae_stateE", !14, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !32, i64 40, !6, i64 72, !33, i64 80, !6, i64 88, !34, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!32 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!33 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!34 = !{!"long long", !7, i64 0}
!35 = !{!31, !12, i64 16}
!36 = distinct !{!36, !19}
!37 = distinct !{!37, !19}
!38 = distinct !{!38, !19}
!39 = distinct !{!39, !19}
!40 = distinct !{!40, !19}
!41 = distinct !{!41, !19}
!42 = distinct !{!42, !19}
!43 = distinct !{!43, !19}
!44 = distinct !{!44, !19}
!45 = distinct !{!45, !19}
!46 = distinct !{!46, !19}
!47 = distinct !{!47, !19}
!48 = !{!49, !14, i64 0}
!49 = !{!"_ZTSN11alglib_impl9ae_vectorE", !14, i64 0, !14, i64 8, !10, i64 16, !32, i64 24, !7, i64 56}
!50 = distinct !{!50, !19}
!51 = distinct !{!51, !19}
!52 = distinct !{!52, !19}
!53 = distinct !{!53, !19}
!54 = distinct !{!54, !19}
!55 = distinct !{!55, !19}
!56 = distinct !{!56, !19}
!57 = distinct !{!57, !19}
!58 = distinct !{!58, !19}
!59 = distinct !{!59, !19}
!60 = distinct !{!60, !19}
!61 = distinct !{!61, !19}
!62 = distinct !{!62, !19}
!63 = distinct !{!63, !19}
!64 = distinct !{!64, !19}
!65 = distinct !{!65, !19}
!66 = !{!67, !10, i64 40}
!67 = !{!"_ZTSN11alglib_impl10minqpstateE", !14, i64 0, !68, i64 8, !69, i64 80, !70, i64 112, !10, i64 136, !14, i64 144, !14, i64 152, !71, i64 160, !73, i64 1848, !10, i64 2216, !12, i64 2224, !12, i64 2232, !12, i64 2240, !49, i64 2248, !49, i64 2312, !49, i64 2376, !14, i64 2440, !49, i64 2448, !49, i64 2512, !49, i64 2576, !49, i64 2640, !49, i64 2704, !10, i64 2768, !72, i64 2776, !14, i64 2856, !14, i64 2864, !73, i64 2872, !14, i64 3240, !14, i64 3248, !49, i64 3256, !14, i64 3320, !14, i64 3328, !14, i64 3336, !14, i64 3344, !14, i64 3352, !49, i64 3360, !49, i64 3424, !72, i64 3488, !72, i64 3568, !10, i64 3648, !74, i64 3656, !86, i64 16496, !88, i64 23800}
!68 = !{!"_ZTSN11alglib_impl11qqpsettingsE", !12, i64 0, !12, i64 8, !12, i64 16, !14, i64 24, !10, i64 32, !10, i64 33, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64}
!69 = !{!"_ZTSN11alglib_impl15qpbleicsettingsE", !12, i64 0, !12, i64 8, !12, i64 16, !14, i64 24}
!70 = !{!"_ZTSN11alglib_impl18qpdenseaulsettingsE", !12, i64 0, !14, i64 8, !12, i64 16}
!71 = !{!"_ZTSN11alglib_impl20convexquadraticmodelE", !14, i64 0, !14, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !72, i64 40, !72, i64 120, !49, i64 200, !49, i64 264, !49, i64 328, !49, i64 392, !49, i64 456, !72, i64 520, !72, i64 600, !49, i64 680, !49, i64 744, !49, i64 808, !12, i64 872, !12, i64 880, !49, i64 888, !49, i64 952, !14, i64 1016, !14, i64 1024, !72, i64 1032, !72, i64 1112, !72, i64 1192, !49, i64 1272, !49, i64 1336, !12, i64 1400, !49, i64 1408, !49, i64 1472, !49, i64 1536, !72, i64 1600, !10, i64 1680, !10, i64 1681, !10, i64 1682, !10, i64 1683}
!72 = !{!"_ZTSN11alglib_impl9ae_matrixE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !10, i64 32, !32, i64 40, !7, i64 72}
!73 = !{!"_ZTSN11alglib_impl12sparsematrixE", !49, i64 0, !49, i64 64, !49, i64 128, !49, i64 192, !49, i64 256, !14, i64 320, !14, i64 328, !14, i64 336, !14, i64 344, !14, i64 352, !14, i64 360}
!74 = !{!"_ZTSN11alglib_impl14qpbleicbuffersE", !75, i64 0, !85, i64 12536, !49, i64 12632, !49, i64 12696, !49, i64 12760, !14, i64 12824, !14, i64 12832}
!75 = !{!"_ZTSN11alglib_impl13minbleicstateE", !14, i64 0, !14, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !14, i64 40, !10, i64 48, !10, i64 49, !12, i64 56, !12, i64 64, !76, i64 72, !49, i64 4416, !14, i64 4480, !49, i64 4488, !49, i64 4552, !12, i64 4616, !49, i64 4624, !10, i64 4688, !10, i64 4689, !10, i64 4690, !10, i64 4691, !10, i64 4692, !10, i64 4693, !10, i64 4694, !78, i64 4696, !49, i64 4960, !49, i64 5024, !49, i64 5088, !49, i64 5152, !49, i64 5216, !49, i64 5280, !12, i64 5344, !12, i64 5352, !12, i64 5360, !49, i64 5368, !72, i64 5432, !14, i64 5512, !14, i64 5520, !12, i64 5528, !12, i64 5536, !12, i64 5544, !49, i64 5552, !49, i64 5616, !49, i64 5680, !49, i64 5744, !14, i64 5808, !14, i64 5816, !14, i64 5824, !14, i64 5832, !14, i64 5840, !12, i64 5848, !12, i64 5856, !12, i64 5864, !12, i64 5872, !14, i64 5880, !14, i64 5888, !49, i64 5896, !77, i64 5960, !12, i64 7600, !12, i64 7608, !12, i64 7616, !12, i64 7624, !12, i64 7632, !12, i64 7640, !12, i64 7648, !12, i64 7656, !12, i64 7664, !14, i64 7672, !12, i64 7680, !49, i64 7688, !49, i64 7752, !14, i64 7816, !14, i64 7824, !12, i64 7832, !12, i64 7840, !12, i64 7848, !49, i64 7856, !80, i64 7920, !12, i64 8112, !14, i64 8120, !72, i64 8128, !72, i64 8208, !49, i64 8288, !49, i64 8352, !14, i64 8416, !12, i64 8424, !14, i64 8432, !81, i64 8440, !49, i64 12408, !49, i64 12472}
!76 = !{!"_ZTSN11alglib_impl10sactivesetE", !14, i64 0, !14, i64 8, !49, i64 16, !10, i64 80, !49, i64 88, !49, i64 152, !49, i64 216, !10, i64 280, !72, i64 288, !72, i64 368, !72, i64 448, !14, i64 528, !49, i64 536, !14, i64 600, !14, i64 608, !10, i64 616, !10, i64 617, !49, i64 624, !49, i64 688, !49, i64 752, !49, i64 816, !72, i64 880, !14, i64 960, !14, i64 968, !49, i64 976, !49, i64 1040, !49, i64 1104, !49, i64 1168, !49, i64 1232, !49, i64 1296, !77, i64 1360, !49, i64 3000, !49, i64 3064, !49, i64 3128, !72, i64 3192, !49, i64 3272, !49, i64 3336, !49, i64 3400, !72, i64 3464, !72, i64 3544, !49, i64 3624, !49, i64 3688, !49, i64 3752, !72, i64 3816, !49, i64 3896, !49, i64 3960, !49, i64 4024, !49, i64 4088, !49, i64 4152, !49, i64 4216, !49, i64 4280}
!77 = !{!"_ZTSN11alglib_impl11snnlssolverE", !14, i64 0, !14, i64 8, !14, i64 16, !72, i64 24, !49, i64 104, !49, i64 168, !12, i64 232, !14, i64 240, !49, i64 248, !49, i64 312, !72, i64 376, !72, i64 456, !72, i64 536, !49, i64 616, !49, i64 680, !49, i64 744, !49, i64 808, !49, i64 872, !49, i64 936, !49, i64 1000, !49, i64 1064, !49, i64 1128, !49, i64 1192, !49, i64 1256, !49, i64 1320, !49, i64 1384, !49, i64 1448, !49, i64 1512, !49, i64 1576}
!78 = !{!"_ZTSN11alglib_impl10rcommstateE", !79, i64 0, !49, i64 8, !49, i64 72, !49, i64 136, !49, i64 200}
!79 = !{!"int", !7, i64 0}
!80 = !{!"_ZTSN11alglib_impl11linminstateE", !10, i64 0, !10, i64 1, !14, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184}
!81 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !14, i64 0, !14, i64 8, !10, i64 16, !49, i64 24, !14, i64 88, !49, i64 96, !49, i64 160, !49, i64 224, !72, i64 288, !49, i64 368, !49, i64 432, !14, i64 496, !10, i64 504, !10, i64 505, !12, i64 512, !12, i64 520, !10, i64 528, !82, i64 536, !12, i64 832, !12, i64 840, !83, i64 848, !83, i64 1152, !12, i64 1456, !12, i64 1464, !84, i64 1472, !84, i64 1784, !10, i64 2096, !49, i64 2104, !49, i64 2168, !72, i64 2232, !78, i64 2312, !49, i64 2576, !49, i64 2640, !49, i64 2704, !49, i64 2768, !49, i64 2832, !49, i64 2896, !49, i64 2960, !49, i64 3024, !72, i64 3088, !72, i64 3168, !49, i64 3248, !49, i64 3312, !49, i64 3376, !49, i64 3440, !49, i64 3504, !49, i64 3568, !49, i64 3632, !49, i64 3696, !49, i64 3760, !49, i64 3824, !72, i64 3888}
!82 = !{!"_ZTSN11alglib_impl14optguardreportE", !10, i64 0, !10, i64 1, !14, i64 8, !12, i64 16, !10, i64 24, !10, i64 25, !10, i64 26, !14, i64 32, !12, i64 40, !10, i64 48, !14, i64 56, !14, i64 64, !49, i64 72, !72, i64 136, !72, i64 216}
!83 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !10, i64 0, !14, i64 8, !49, i64 16, !49, i64 80, !14, i64 144, !49, i64 152, !49, i64 216, !14, i64 280, !14, i64 288, !14, i64 296}
!84 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !10, i64 0, !14, i64 8, !14, i64 16, !49, i64 24, !49, i64 88, !14, i64 152, !49, i64 160, !49, i64 224, !14, i64 288, !14, i64 296, !14, i64 304}
!85 = !{!"_ZTSN11alglib_impl14minbleicreportE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88}
!86 = !{!"_ZTSN11alglib_impl10qqpbuffersE", !14, i64 0, !14, i64 8, !72, i64 16, !73, i64 96, !10, i64 464, !12, i64 472, !12, i64 480, !12, i64 488, !49, i64 496, !49, i64 560, !49, i64 624, !49, i64 688, !49, i64 752, !49, i64 816, !49, i64 880, !49, i64 944, !49, i64 1008, !49, i64 1072, !49, i64 1136, !49, i64 1200, !49, i64 1264, !76, i64 1328, !49, i64 5672, !14, i64 5736, !14, i64 5744, !72, i64 5752, !73, i64 5832, !49, i64 6200, !49, i64 6264, !49, i64 6328, !49, i64 6392, !49, i64 6456, !49, i64 6520, !49, i64 6584, !49, i64 6648, !49, i64 6712, !87, i64 6776, !14, i64 7272, !14, i64 7280, !14, i64 7288, !14, i64 7296}
!87 = !{!"_ZTSN11alglib_impl13sparsebuffersE", !49, i64 0, !49, i64 64, !73, i64 128}
!88 = !{!"_ZTSN11alglib_impl17qpdenseaulbuffersE", !49, i64 0, !72, i64 64, !49, i64 144, !49, i64 208, !49, i64 272, !49, i64 336, !49, i64 400, !49, i64 464, !72, i64 528, !72, i64 608, !49, i64 688, !49, i64 752, !49, i64 816, !49, i64 880, !49, i64 944, !49, i64 1008, !68, i64 1072, !86, i64 1144, !49, i64 8448, !49, i64 8512, !72, i64 8576, !49, i64 8656, !49, i64 8720, !49, i64 8784, !71, i64 8848, !73, i64 10536, !72, i64 10904, !49, i64 10984, !49, i64 11048, !49, i64 11112, !49, i64 11176, !49, i64 11240, !49, i64 11304, !14, i64 11368, !14, i64 11376, !14, i64 11384, !14, i64 11392, !14, i64 11400, !14, i64 11408, !14, i64 11416, !14, i64 11424}
!89 = distinct !{!89, !19}
!90 = distinct !{!90, !19}
!91 = distinct !{!91, !19}
!92 = distinct !{!92, !19}
!93 = distinct !{!93, !19}
!94 = !{!67, !10, i64 41}
!95 = !{!67, !14, i64 64}
!96 = distinct !{!96, !19}
!97 = distinct !{!97, !19}
!98 = distinct !{!98, !19}
!99 = distinct !{!99, !19}
!100 = distinct !{!100, !19}
!101 = distinct !{!101, !19}
!102 = distinct !{!102, !19}
!103 = distinct !{!103, !19}
!104 = distinct !{!104, !19}
!105 = distinct !{!105, !19}
!106 = distinct !{!106, !19}
!107 = distinct !{!107, !19}


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

@.str.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.393 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.394 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.395 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.396 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.397 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.398 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.399 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.400 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.401 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.402 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.403 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.404 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.405 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.406 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.407 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.408 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.409 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.410 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.411 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.412 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.413 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.414 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.415 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.416 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.417 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.418 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.419 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.420 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.421 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.422 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.423 = external hidden unnamed_addr constant [22 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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #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_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

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

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

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

declare void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

declare void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef, i1 noundef zeroext, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

declare noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

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

declare noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z12quickqptestsPN11alglib_impl8ae_stateE(ptr noundef %0) local_unnamed_addr #4 {
  %2 = alloca %"struct.alglib_impl::ae_frame", align 8
  %3 = alloca %"struct.alglib_impl::minqpstate", align 8
  %4 = alloca %"struct.alglib_impl::minqpreport", align 8
  %5 = alloca i8, align 1
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %11 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %12 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", 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::hqrndstate", align 8
  %26 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 35232, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %26) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %0, ptr noundef nonnull %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(35232) %3, i8 0, i64 35232, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %4, i8 0, i64 40, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %7, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %11, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %12, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %17, i8 0, i64 64, i1 false)
  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(24) %25, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_impl16_minqpstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl17_minqpreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %4, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 2, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %12, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 2, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %19, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %20, i64 noundef 0, i64 noundef 3, ptr noundef %0, 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 %0, 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 %0, 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 %0, 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 %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %25, ptr noundef %0, i1 noundef zeroext true)
  store i8 0, ptr %26, align 1, !tbaa !5
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %27 = getelementptr inbounds i8, ptr %9, i64 72
  %28 = getelementptr inbounds i8, ptr %10, i64 72
  %29 = getelementptr inbounds i8, ptr %14, i64 56
  %30 = getelementptr inbounds i8, ptr %18, i64 56
  %31 = getelementptr inbounds i8, ptr %22, i64 56
  %32 = getelementptr inbounds i8, ptr %24, i64 56
  %33 = getelementptr inbounds i8, ptr %4, i64 32
  %34 = getelementptr inbounds i8, ptr %19, i64 56
  br label %.preheader920

.preheader920:                                    ; preds = %1, %144
  %indvar = phi i64 [ 0, %1 ], [ %indvar.next, %144 ]
  %.0800931 = phi i64 [ 1, %1 ], [ %145, %144 ]
  %xtraiter = and i64 %.0800931, 1
  %35 = icmp eq i64 %indvar, 0
  %unroll_iter = and i64 %.0800931, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %40

.preheader917:                                    ; preds = %144
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  %37 = getelementptr inbounds i8, ptr %16, i64 56
  %38 = getelementptr inbounds i8, ptr %0, i64 16
  %39 = getelementptr inbounds i8, ptr %17, i64 56
  br label %.preheader916

40:                                               ; preds = %.preheader920, %140
  %.0827930 = phi i64 [ 1, %.preheader920 ], [ %143, %140 ]
  %41 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef 2, ptr noundef %0)
  %42 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef 2, ptr noundef %0)
  %43 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %44 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %43, double noundef 5.000000e-01)
  %45 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %46 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %45, double noundef 5.000000e-01)
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %.0800931, double noundef 1.000000e+03, ptr noundef nonnull %9, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.0800931, i64 noundef %.0800931, ptr noundef %0)
  %.not883 = xor i1 %44, true
  br label %.preheader918

.preheader918:                                    ; preds = %40, %63
  %.0815924 = phi i64 [ 0, %40 ], [ %64, %63 ]
  br label %47

47:                                               ; preds = %.preheader918, %57
  %.0804923 = phi i64 [ 0, %.preheader918 ], [ %62, %57 ]
  %.not881 = icmp ult i64 %.0804923, %.0815924
  %brmerge = or i1 %.not881, %.not883
  %.not882 = icmp ugt i64 %.0804923, %.0815924
  %brmerge884 = or i1 %44, %.not882
  %or.cond = and i1 %brmerge, %brmerge884
  br i1 %or.cond, label %54, label %48

48:                                               ; preds = %47
  %49 = load ptr, ptr %27, align 8, !tbaa !9
  %50 = getelementptr inbounds ptr, ptr %49, i64 %.0815924
  %51 = load ptr, ptr %50, align 8, !tbaa !10
  %52 = getelementptr inbounds double, ptr %51, i64 %.0804923
  %53 = load double, ptr %52, align 8, !tbaa !12
  br label %57

54:                                               ; preds = %47
  %55 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %56 = fadd double %55, -5.000000e-01
  br label %57

57:                                               ; preds = %48, %54
  %.sink = phi double [ %53, %48 ], [ %56, %54 ]
  %58 = load ptr, ptr %28, align 8, !tbaa !9
  %59 = getelementptr inbounds ptr, ptr %58, i64 %.0815924
  %60 = load ptr, ptr %59, align 8, !tbaa !10
  %61 = getelementptr inbounds double, ptr %60, i64 %.0804923
  store double %.sink, ptr %61, align 8, !tbaa !12
  %62 = add nuw nsw i64 %.0804923, 1
  %exitcond.not = icmp eq i64 %62, %.0800931
  br i1 %exitcond.not, label %63, label %47, !llvm.loop !14

63:                                               ; preds = %57
  %64 = add nuw nsw i64 %.0815924, 1
  %exitcond1035.not = icmp eq i64 %64, %.0800931
  br i1 %exitcond1035.not, label %65, label %.preheader918, !llvm.loop !16

65:                                               ; preds = %63
  call void @_ZL27testminqpunit_densetosparsePN11alglib_impl9ae_matrixElPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.0800931, ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %.0800931, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %.0800931, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef %.0800931, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %24, i64 noundef %.0800931, ptr noundef %0)
  %66 = icmp eq i64 %41, 0
  %67 = icmp eq i64 %42, 0
  br label %68

68:                                               ; preds = %65, %83
  %.1816925 = phi i64 [ 0, %65 ], [ %86, %83 ]
  %69 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %70 = load ptr, ptr %29, align 8, !tbaa !9
  %71 = getelementptr inbounds double, ptr %70, i64 %.1816925
  store double %69, ptr %71, align 8, !tbaa !12
  %72 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %73 = load ptr, ptr %30, align 8, !tbaa !9
  %74 = getelementptr inbounds double, ptr %73, i64 %.1816925
  store double %72, ptr %74, align 8, !tbaa !12
  br i1 %66, label %77, label %75

75:                                               ; preds = %68
  %76 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  br label %77

77:                                               ; preds = %68, %75
  %.sink1103 = phi double [ %76, %75 ], [ 0.000000e+00, %68 ]
  %78 = load ptr, ptr %31, align 8, !tbaa !9
  %79 = getelementptr inbounds double, ptr %78, i64 %.1816925
  store double %.sink1103, ptr %79, align 8, !tbaa !12
  br i1 %67, label %83, label %80

80:                                               ; preds = %77
  %81 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %82 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %81, ptr noundef %0)
  br label %83

83:                                               ; preds = %77, %80
  %.sink1106 = phi double [ %82, %80 ], [ 1.000000e+00, %77 ]
  %84 = load ptr, ptr %32, align 8, !tbaa !9
  %85 = getelementptr inbounds double, ptr %84, i64 %.1816925
  store double %.sink1106, ptr %85, align 8, !tbaa !12
  %86 = add nuw nsw i64 %.1816925, 1
  %exitcond1036.not = icmp eq i64 %86, %.0800931
  br i1 %exitcond1036.not, label %87, label %68, !llvm.loop !17

87:                                               ; preds = %83
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %.0800931, ptr noundef nonnull %3, ptr noundef %0)
  %88 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %89 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %88, double noundef 5.000000e-01)
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, i1 noundef zeroext %89, ptr noundef %0)
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef %0)
  br i1 %46, label %90, label %91

90:                                               ; preds = %87
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %12, i1 noundef zeroext %44, ptr noundef %0)
  br label %92

91:                                               ; preds = %87
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %10, i1 noundef zeroext %44, ptr noundef %0)
  br label %92

92:                                               ; preds = %91, %90
  br i1 %66, label %94, label %93

93:                                               ; preds = %92
  call void @_ZN11alglib_impl14minqpsetoriginEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %22, ptr noundef %0)
  br label %94

94:                                               ; preds = %93, %92
  br i1 %67, label %96, label %95

95:                                               ; preds = %94
  call void @_ZN11alglib_impl13minqpsetscaleEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %24, ptr noundef %0)
  br label %96

96:                                               ; preds = %95, %94
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %19, ptr noundef nonnull %4, ptr noundef %0)
  %97 = load i64, ptr %33, align 8, !tbaa !18
  %98 = icmp slt i64 %97, 1
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %98, ptr noundef nonnull @.str.8, i32 noundef 41182, ptr noundef nonnull @.str.393)
  %99 = load i64, ptr %33, align 8, !tbaa !18
  %100 = icmp slt i64 %99, 1
  br i1 %100, label %101, label %.preheader919

101:                                              ; preds = %96
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  br label %1100

.preheader919:                                    ; preds = %96, %136
  %.0793929 = phi double [ %138, %136 ], [ 0.000000e+00, %96 ]
  %.2817928 = phi i64 [ %139, %136 ], [ 0, %96 ]
  %102 = load ptr, ptr %29, align 8, !tbaa !9
  %103 = getelementptr inbounds double, ptr %102, i64 %.2817928
  %104 = load double, ptr %103, align 8, !tbaa !12
  %105 = load ptr, ptr %27, align 8, !tbaa !9
  %106 = getelementptr inbounds ptr, ptr %105, i64 %.2817928
  %107 = load ptr, ptr %106, align 8, !tbaa !10
  %108 = load ptr, ptr %34, align 8, !tbaa !9
  %109 = load ptr, ptr %31, align 8, !tbaa !9
  br i1 %35, label %.unr-lcssa, label %.preheader919.new

.preheader919.new:                                ; preds = %.preheader919, %.preheader919.new
  %.0794927 = phi double [ %126, %.preheader919.new ], [ %104, %.preheader919 ]
  %.1805926 = phi i64 [ %127, %.preheader919.new ], [ 0, %.preheader919 ]
  %niter = phi i64 [ %niter.next.1, %.preheader919.new ], [ 0, %.preheader919 ]
  %110 = getelementptr inbounds double, ptr %107, i64 %.1805926
  %111 = load double, ptr %110, align 8, !tbaa !12
  %112 = getelementptr inbounds double, ptr %108, i64 %.1805926
  %113 = load double, ptr %112, align 8, !tbaa !12
  %114 = getelementptr inbounds double, ptr %109, i64 %.1805926
  %115 = load double, ptr %114, align 8, !tbaa !12
  %116 = fsub double %113, %115
  %117 = call double @llvm.fmuladd.f64(double %111, double %116, double %.0794927)
  %118 = or disjoint i64 %.1805926, 1
  %119 = getelementptr inbounds double, ptr %107, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !12
  %121 = getelementptr inbounds double, ptr %108, i64 %118
  %122 = load double, ptr %121, align 8, !tbaa !12
  %123 = getelementptr inbounds double, ptr %109, i64 %118
  %124 = load double, ptr %123, align 8, !tbaa !12
  %125 = fsub double %122, %124
  %126 = call double @llvm.fmuladd.f64(double %120, double %125, double %117)
  %127 = add nuw nsw i64 %.1805926, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.unr-lcssa, label %.preheader919.new, !llvm.loop !21

.unr-lcssa:                                       ; preds = %.preheader919.new, %.preheader919
  %.lcssa1148.ph = phi double [ poison, %.preheader919 ], [ %126, %.preheader919.new ]
  %.0794927.unr = phi double [ %104, %.preheader919 ], [ %126, %.preheader919.new ]
  %.1805926.unr = phi i64 [ 0, %.preheader919 ], [ %127, %.preheader919.new ]
  br i1 %lcmp.mod.not, label %136, label %.epilog-lcssa

.epilog-lcssa:                                    ; preds = %.unr-lcssa
  %128 = getelementptr inbounds double, ptr %107, i64 %.1805926.unr
  %129 = load double, ptr %128, align 8, !tbaa !12
  %130 = getelementptr inbounds double, ptr %108, i64 %.1805926.unr
  %131 = load double, ptr %130, align 8, !tbaa !12
  %132 = getelementptr inbounds double, ptr %109, i64 %.1805926.unr
  %133 = load double, ptr %132, align 8, !tbaa !12
  %134 = fsub double %131, %133
  %135 = call double @llvm.fmuladd.f64(double %129, double %134, double %.0794927.unr)
  br label %136

136:                                              ; preds = %.unr-lcssa, %.epilog-lcssa
  %.lcssa1148 = phi double [ %.lcssa1148.ph, %.unr-lcssa ], [ %135, %.epilog-lcssa ]
  %137 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %.lcssa1148, ptr noundef %0)
  %138 = fadd double %.0793929, %137
  %139 = add nuw nsw i64 %.2817928, 1
  %exitcond1038.not = icmp eq i64 %139, %.0800931
  br i1 %exitcond1038.not, label %140, label %.preheader919, !llvm.loop !22

140:                                              ; preds = %136
  %141 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %138, ptr noundef %0)
  %142 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %141, double noundef 1.000000e-05)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %142, ptr noundef nonnull @.str.8, i32 noundef 41204, ptr noundef nonnull @.str.394)
  %143 = add nuw nsw i64 %.0827930, 1
  %exitcond1039.not = icmp eq i64 %143, 11
  br i1 %exitcond1039.not, label %144, label %40, !llvm.loop !23

144:                                              ; preds = %140
  %145 = add nuw nsw i64 %.0800931, 1
  %exitcond1040.not = icmp eq i64 %145, 11
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond1040.not, label %.preheader917, label %.preheader920, !llvm.loop !24

.preheader916:                                    ; preds = %.preheader917, %330
  %indvar1153 = phi i64 [ 0, %.preheader917 ], [ %indvar.next1154, %330 ]
  %.1801940 = phi i64 [ 1, %.preheader917 ], [ %331, %330 ]
  %xtraiter1155 = and i64 %.1801940, 1
  %146 = icmp eq i64 %indvar1153, 0
  %unroll_iter1159 = and i64 %.1801940, 9223372036854775806
  %lcmp.mod1156.not = icmp eq i64 %xtraiter1155, 0
  br label %147

147:                                              ; preds = %.preheader916, %326
  %.1828939 = phi i64 [ 1, %.preheader916 ], [ %329, %326 ]
  %148 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef 2, ptr noundef %0)
  %149 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef 2, ptr noundef %0)
  %150 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %151 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %150, double noundef 5.000000e-01)
  %152 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %153 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %152, double noundef 5.000000e-01)
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %.1801940, double noundef 1.000000e+03, ptr noundef nonnull %9, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.1801940, i64 noundef %.1801940, ptr noundef %0)
  %.not885 = xor i1 %151, true
  br label %.preheader914

.preheader914:                                    ; preds = %147, %170
  %.3818933 = phi i64 [ 0, %147 ], [ %171, %170 ]
  br label %154

154:                                              ; preds = %.preheader914, %164
  %.2806932 = phi i64 [ 0, %.preheader914 ], [ %169, %164 ]
  %.not872 = icmp ult i64 %.2806932, %.3818933
  %brmerge886 = or i1 %.not872, %.not885
  %.not873 = icmp ugt i64 %.2806932, %.3818933
  %brmerge887 = or i1 %151, %.not873
  %or.cond894 = and i1 %brmerge886, %brmerge887
  br i1 %or.cond894, label %161, label %155

155:                                              ; preds = %154
  %156 = load ptr, ptr %27, align 8, !tbaa !9
  %157 = getelementptr inbounds ptr, ptr %156, i64 %.3818933
  %158 = load ptr, ptr %157, align 8, !tbaa !10
  %159 = getelementptr inbounds double, ptr %158, i64 %.2806932
  %160 = load double, ptr %159, align 8, !tbaa !12
  br label %164

161:                                              ; preds = %154
  %162 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %163 = fadd double %162, -5.000000e-01
  br label %164

164:                                              ; preds = %155, %161
  %.sink1109 = phi double [ %160, %155 ], [ %163, %161 ]
  %165 = load ptr, ptr %28, align 8, !tbaa !9
  %166 = getelementptr inbounds ptr, ptr %165, i64 %.3818933
  %167 = load ptr, ptr %166, align 8, !tbaa !10
  %168 = getelementptr inbounds double, ptr %167, i64 %.2806932
  store double %.sink1109, ptr %168, align 8, !tbaa !12
  %169 = add nuw nsw i64 %.2806932, 1
  %exitcond1041.not = icmp eq i64 %169, %.1801940
  br i1 %exitcond1041.not, label %170, label %154, !llvm.loop !25

170:                                              ; preds = %164
  %171 = add nuw nsw i64 %.3818933, 1
  %exitcond1042.not = icmp eq i64 %171, %.1801940
  br i1 %exitcond1042.not, label %172, label %.preheader914, !llvm.loop !26

172:                                              ; preds = %170
  call void @_ZL27testminqpunit_densetosparsePN11alglib_impl9ae_matrixElPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.1801940, ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %.1801940, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %.1801940, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %.1801940, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %.1801940, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef %.1801940, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %24, i64 noundef %.1801940, ptr noundef %0)
  %173 = icmp eq i64 %148, 0
  %174 = icmp eq i64 %149, 0
  br label %175

175:                                              ; preds = %172, %236
  %.4819934 = phi i64 [ 0, %172 ], [ %237, %236 ]
  %176 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %177 = load ptr, ptr %29, align 8, !tbaa !9
  %178 = getelementptr inbounds double, ptr %177, i64 %.4819934
  store double %176, ptr %178, align 8, !tbaa !12
  %179 = load double, ptr %36, align 8, !tbaa !27
  %180 = load ptr, ptr %37, align 8, !tbaa !9
  %181 = getelementptr inbounds double, ptr %180, i64 %.4819934
  store double %179, ptr %181, align 8, !tbaa !12
  %182 = load double, ptr %38, align 8, !tbaa !32
  %183 = load ptr, ptr %39, align 8, !tbaa !9
  %184 = getelementptr inbounds double, ptr %183, i64 %.4819934
  store double %182, ptr %184, align 8, !tbaa !12
  %185 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %186 = load ptr, ptr %30, align 8, !tbaa !9
  %187 = getelementptr inbounds double, ptr %186, i64 %.4819934
  store double %185, ptr %187, align 8, !tbaa !12
  br i1 %173, label %190, label %188

188:                                              ; preds = %175
  %189 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef nonnull %0)
  br label %190

190:                                              ; preds = %175, %188
  %.sink1114 = phi double [ %189, %188 ], [ 0.000000e+00, %175 ]
  %191 = load ptr, ptr %31, align 8, !tbaa !9
  %192 = getelementptr inbounds double, ptr %191, i64 %.4819934
  store double %.sink1114, ptr %192, align 8, !tbaa !12
  br i1 %174, label %196, label %193

193:                                              ; preds = %190
  %194 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef nonnull %0)
  %195 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %194, ptr noundef nonnull %0)
  br label %196

196:                                              ; preds = %190, %193
  %.sink1117 = phi double [ %195, %193 ], [ 1.000000e+00, %190 ]
  %197 = load ptr, ptr %32, align 8, !tbaa !9
  %198 = getelementptr inbounds double, ptr %197, i64 %.4819934
  store double %.sink1117, ptr %198, align 8, !tbaa !12
  %199 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef 5, ptr noundef nonnull %0)
  switch i64 %199, label %236 [
    i64 0, label %200
    i64 1, label %207
    i64 2, label %215
    i64 3, label %227
  ]

200:                                              ; preds = %196
  %201 = load ptr, ptr %37, align 8, !tbaa !9
  %202 = getelementptr inbounds double, ptr %201, i64 %.4819934
  store double 0.000000e+00, ptr %202, align 8, !tbaa !12
  %203 = load ptr, ptr %30, align 8, !tbaa !9
  %204 = getelementptr inbounds double, ptr %203, i64 %.4819934
  %205 = load double, ptr %204, align 8, !tbaa !12
  %206 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %205, ptr noundef nonnull %0)
  br label %.sink.split

207:                                              ; preds = %196
  %208 = load ptr, ptr %39, align 8, !tbaa !9
  %209 = getelementptr inbounds double, ptr %208, i64 %.4819934
  store double 0.000000e+00, ptr %209, align 8, !tbaa !12
  %210 = load ptr, ptr %30, align 8, !tbaa !9
  %211 = getelementptr inbounds double, ptr %210, i64 %.4819934
  %212 = load double, ptr %211, align 8, !tbaa !12
  %213 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %212, ptr noundef nonnull %0)
  %214 = fneg double %213
  br label %.sink.split

215:                                              ; preds = %196
  %216 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef nonnull %0)
  %217 = load ptr, ptr %37, align 8, !tbaa !9
  %218 = getelementptr inbounds double, ptr %217, i64 %.4819934
  store double %216, ptr %218, align 8, !tbaa !12
  %219 = load ptr, ptr %37, align 8, !tbaa !9
  %220 = getelementptr inbounds double, ptr %219, i64 %.4819934
  %221 = load double, ptr %220, align 8, !tbaa !12
  %222 = load ptr, ptr %39, align 8, !tbaa !9
  %223 = getelementptr inbounds double, ptr %222, i64 %.4819934
  store double %221, ptr %223, align 8, !tbaa !12
  %224 = load ptr, ptr %37, align 8, !tbaa !9
  %225 = getelementptr inbounds double, ptr %224, i64 %.4819934
  %226 = load double, ptr %225, align 8, !tbaa !12
  br label %.sink.split

227:                                              ; preds = %196
  %228 = load ptr, ptr %37, align 8, !tbaa !9
  %229 = getelementptr inbounds double, ptr %228, i64 %.4819934
  store double -1.000000e-01, ptr %229, align 8, !tbaa !12
  %230 = load ptr, ptr %39, align 8, !tbaa !9
  %231 = getelementptr inbounds double, ptr %230, i64 %.4819934
  store double 1.000000e-01, ptr %231, align 8, !tbaa !12
  %232 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef nonnull %0)
  %233 = call double @llvm.fmuladd.f64(double %232, double 2.000000e-01, double -1.000000e-01)
  br label %.sink.split

.sink.split:                                      ; preds = %227, %200, %207, %215
  %.sink1120 = phi double [ %226, %215 ], [ %214, %207 ], [ %206, %200 ], [ %233, %227 ]
  %234 = load ptr, ptr %30, align 8, !tbaa !9
  %235 = getelementptr inbounds double, ptr %234, i64 %.4819934
  store double %.sink1120, ptr %235, align 8, !tbaa !12
  br label %236

236:                                              ; preds = %.sink.split, %196
  %237 = add nuw nsw i64 %.4819934, 1
  %exitcond1043.not = icmp eq i64 %237, %.1801940
  br i1 %exitcond1043.not, label %238, label %175, !llvm.loop !33

238:                                              ; preds = %236
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %.1801940, ptr noundef nonnull %3, ptr noundef nonnull %0)
  %239 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef nonnull %0)
  %240 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %239, double noundef 5.000000e-01)
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, i1 noundef zeroext %240, ptr noundef nonnull %0)
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef nonnull %0)
  br i1 %153, label %241, label %242

241:                                              ; preds = %238
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %12, i1 noundef zeroext %151, ptr noundef nonnull %0)
  br label %243

242:                                              ; preds = %238
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %10, i1 noundef zeroext %151, ptr noundef nonnull %0)
  br label %243

243:                                              ; preds = %242, %241
  br i1 %173, label %245, label %244

244:                                              ; preds = %243
  call void @_ZN11alglib_impl14minqpsetoriginEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %22, ptr noundef nonnull %0)
  br label %245

245:                                              ; preds = %244, %243
  br i1 %174, label %247, label %246

246:                                              ; preds = %245
  call void @_ZN11alglib_impl13minqpsetscaleEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %24, ptr noundef nonnull %0)
  br label %247

247:                                              ; preds = %246, %245
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %0)
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %19, ptr noundef nonnull %4, ptr noundef nonnull %0)
  %248 = load i64, ptr %33, align 8, !tbaa !18
  %249 = icmp slt i64 %248, 1
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %249, ptr noundef nonnull @.str.8, i32 noundef 41328, ptr noundef nonnull @.str.395)
  %250 = load i64, ptr %33, align 8, !tbaa !18
  %251 = icmp slt i64 %250, 1
  br i1 %251, label %252, label %.preheader915

252:                                              ; preds = %247
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef nonnull %0)
  br label %1100

.preheader915:                                    ; preds = %247, %308
  %.1938 = phi double [ %310, %308 ], [ 0.000000e+00, %247 ]
  %.5820937 = phi i64 [ %325, %308 ], [ 0, %247 ]
  %253 = load ptr, ptr %29, align 8, !tbaa !9
  %254 = getelementptr inbounds double, ptr %253, i64 %.5820937
  %255 = load double, ptr %254, align 8, !tbaa !12
  %256 = load ptr, ptr %27, align 8, !tbaa !9
  %257 = getelementptr inbounds ptr, ptr %256, i64 %.5820937
  %258 = load ptr, ptr %257, align 8, !tbaa !10
  %259 = load ptr, ptr %34, align 8, !tbaa !9
  %260 = load ptr, ptr %31, align 8, !tbaa !9
  br i1 %146, label %.unr-lcssa1151, label %.preheader915.new

.preheader915.new:                                ; preds = %.preheader915, %.preheader915.new
  %.1795936 = phi double [ %277, %.preheader915.new ], [ %255, %.preheader915 ]
  %.3807935 = phi i64 [ %278, %.preheader915.new ], [ 0, %.preheader915 ]
  %niter1160 = phi i64 [ %niter1160.next.1, %.preheader915.new ], [ 0, %.preheader915 ]
  %261 = getelementptr inbounds double, ptr %258, i64 %.3807935
  %262 = load double, ptr %261, align 8, !tbaa !12
  %263 = getelementptr inbounds double, ptr %259, i64 %.3807935
  %264 = load double, ptr %263, align 8, !tbaa !12
  %265 = getelementptr inbounds double, ptr %260, i64 %.3807935
  %266 = load double, ptr %265, align 8, !tbaa !12
  %267 = fsub double %264, %266
  %268 = call double @llvm.fmuladd.f64(double %262, double %267, double %.1795936)
  %269 = or disjoint i64 %.3807935, 1
  %270 = getelementptr inbounds double, ptr %258, i64 %269
  %271 = load double, ptr %270, align 8, !tbaa !12
  %272 = getelementptr inbounds double, ptr %259, i64 %269
  %273 = load double, ptr %272, align 8, !tbaa !12
  %274 = getelementptr inbounds double, ptr %260, i64 %269
  %275 = load double, ptr %274, align 8, !tbaa !12
  %276 = fsub double %273, %275
  %277 = call double @llvm.fmuladd.f64(double %271, double %276, double %268)
  %278 = add nuw nsw i64 %.3807935, 2
  %niter1160.next.1 = add i64 %niter1160, 2
  %niter1160.ncmp.1 = icmp eq i64 %niter1160.next.1, %unroll_iter1159
  br i1 %niter1160.ncmp.1, label %.unr-lcssa1151, label %.preheader915.new, !llvm.loop !34

.unr-lcssa1151:                                   ; preds = %.preheader915.new, %.preheader915
  %.lcssa1146.ph = phi double [ poison, %.preheader915 ], [ %277, %.preheader915.new ]
  %.1795936.unr = phi double [ %255, %.preheader915 ], [ %277, %.preheader915.new ]
  %.3807935.unr = phi i64 [ 0, %.preheader915 ], [ %278, %.preheader915.new ]
  br i1 %lcmp.mod1156.not, label %287, label %.epilog-lcssa1157

.epilog-lcssa1157:                                ; preds = %.unr-lcssa1151
  %279 = getelementptr inbounds double, ptr %258, i64 %.3807935.unr
  %280 = load double, ptr %279, align 8, !tbaa !12
  %281 = getelementptr inbounds double, ptr %259, i64 %.3807935.unr
  %282 = load double, ptr %281, align 8, !tbaa !12
  %283 = getelementptr inbounds double, ptr %260, i64 %.3807935.unr
  %284 = load double, ptr %283, align 8, !tbaa !12
  %285 = fsub double %282, %284
  %286 = call double @llvm.fmuladd.f64(double %280, double %285, double %.1795936.unr)
  br label %287

287:                                              ; preds = %.unr-lcssa1151, %.epilog-lcssa1157
  %.lcssa1146 = phi double [ %.lcssa1146.ph, %.unr-lcssa1151 ], [ %286, %.epilog-lcssa1157 ]
  %288 = getelementptr inbounds double, ptr %259, i64 %.5820937
  %289 = load double, ptr %288, align 8, !tbaa !12
  %290 = load ptr, ptr %37, align 8, !tbaa !9
  %291 = getelementptr inbounds double, ptr %290, i64 %.5820937
  %292 = load double, ptr %291, align 8, !tbaa !12
  %293 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %289, double noundef %292)
  br i1 %293, label %294, label %297

294:                                              ; preds = %287
  %295 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.lcssa1146, double noundef 0.000000e+00)
  br i1 %295, label %296, label %297

296:                                              ; preds = %294
  br label %297

297:                                              ; preds = %296, %294, %287
  %.2796 = phi double [ 0.000000e+00, %296 ], [ %.lcssa1146, %294 ], [ %.lcssa1146, %287 ]
  %298 = load ptr, ptr %34, align 8, !tbaa !9
  %299 = getelementptr inbounds double, ptr %298, i64 %.5820937
  %300 = load double, ptr %299, align 8, !tbaa !12
  %301 = load ptr, ptr %39, align 8, !tbaa !9
  %302 = getelementptr inbounds double, ptr %301, i64 %.5820937
  %303 = load double, ptr %302, align 8, !tbaa !12
  %304 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %300, double noundef %303)
  br i1 %304, label %305, label %308

305:                                              ; preds = %297
  %306 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %.2796, double noundef 0.000000e+00)
  br i1 %306, label %307, label %308

307:                                              ; preds = %305
  br label %308

308:                                              ; preds = %307, %305, %297
  %.3797 = phi double [ 0.000000e+00, %307 ], [ %.2796, %305 ], [ %.2796, %297 ]
  %309 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %.3797, ptr noundef %0)
  %310 = fadd double %.1938, %309
  %311 = load ptr, ptr %34, align 8, !tbaa !9
  %312 = getelementptr inbounds double, ptr %311, i64 %.5820937
  %313 = load double, ptr %312, align 8, !tbaa !12
  %314 = load ptr, ptr %37, align 8, !tbaa !9
  %315 = getelementptr inbounds double, ptr %314, i64 %.5820937
  %316 = load double, ptr %315, align 8, !tbaa !12
  %317 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %313, double noundef %316)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %317, ptr noundef nonnull @.str.8, i32 noundef 41356, ptr noundef nonnull @.str.396)
  %318 = load ptr, ptr %34, align 8, !tbaa !9
  %319 = getelementptr inbounds double, ptr %318, i64 %.5820937
  %320 = load double, ptr %319, align 8, !tbaa !12
  %321 = load ptr, ptr %39, align 8, !tbaa !9
  %322 = getelementptr inbounds double, ptr %321, i64 %.5820937
  %323 = load double, ptr %322, align 8, !tbaa !12
  %324 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %320, double noundef %323)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %324, ptr noundef nonnull @.str.8, i32 noundef 41357, ptr noundef nonnull @.str.397)
  %325 = add nuw nsw i64 %.5820937, 1
  %exitcond1045.not = icmp eq i64 %325, %.1801940
  br i1 %exitcond1045.not, label %326, label %.preheader915, !llvm.loop !35

326:                                              ; preds = %308
  %327 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %310, ptr noundef %0)
  %328 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %327, double noundef 1.000000e-05)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %328, ptr noundef nonnull @.str.8, i32 noundef 41360, ptr noundef nonnull @.str.398)
  %329 = add nuw nsw i64 %.1828939, 1
  %exitcond1046.not = icmp eq i64 %329, 11
  br i1 %exitcond1046.not, label %330, label %147, !llvm.loop !36

330:                                              ; preds = %326
  %331 = add nuw nsw i64 %.1801940, 1
  %exitcond1047.not = icmp eq i64 %331, 11
  %indvar.next1154 = add i64 %indvar1153, 1
  br i1 %exitcond1047.not, label %.preheader912, label %.preheader916, !llvm.loop !37

.preheader912:                                    ; preds = %330, %458
  %indvar1163 = phi i64 [ %indvar.next1164, %458 ], [ 0, %330 ]
  %.2802948 = phi i64 [ %459, %458 ], [ 2, %330 ]
  %332 = add nsw i64 %.2802948, -1
  %xtraiter1165 = and i64 %.2802948, 1
  %333 = icmp eq i64 %indvar1163, -1
  %unroll_iter1168 = and i64 %.2802948, 9223372036854775806
  %lcmp.mod1166.not = icmp eq i64 %xtraiter1165, 0
  br label %334

334:                                              ; preds = %.preheader912, %454
  %.2829947 = phi i64 [ 1, %.preheader912 ], [ %457, %454 ]
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %.2802948, double noundef 1.000000e+03, ptr noundef nonnull %9, ptr noundef %0)
  br i1 %333, label %.unr-lcssa1161, label %.new

.new:                                             ; preds = %334, %.new
  %.6821941 = phi i64 [ %348, %.new ], [ 0, %334 ]
  %niter1169 = phi i64 [ %niter1169.next.1, %.new ], [ 0, %334 ]
  %335 = load ptr, ptr %27, align 8, !tbaa !9
  %336 = getelementptr inbounds ptr, ptr %335, i64 %.6821941
  %337 = load ptr, ptr %336, align 8, !tbaa !10
  %338 = getelementptr inbounds double, ptr %337, i64 %.6821941
  %339 = load double, ptr %338, align 8, !tbaa !12
  %340 = fadd double %339, -5.000000e-01
  store double %340, ptr %338, align 8, !tbaa !12
  %341 = or disjoint i64 %.6821941, 1
  %342 = load ptr, ptr %27, align 8, !tbaa !9
  %343 = getelementptr inbounds ptr, ptr %342, i64 %341
  %344 = load ptr, ptr %343, align 8, !tbaa !10
  %345 = getelementptr inbounds double, ptr %344, i64 %341
  %346 = load double, ptr %345, align 8, !tbaa !12
  %347 = fadd double %346, -5.000000e-01
  store double %347, ptr %345, align 8, !tbaa !12
  %348 = add nuw nsw i64 %.6821941, 2
  %niter1169.next.1 = add i64 %niter1169, 2
  %niter1169.ncmp.1 = icmp eq i64 %niter1169.next.1, %unroll_iter1168
  br i1 %niter1169.ncmp.1, label %.unr-lcssa1161, label %.new, !llvm.loop !38

.unr-lcssa1161:                                   ; preds = %.new, %334
  %.6821941.unr = phi i64 [ 0, %334 ], [ %348, %.new ]
  br i1 %lcmp.mod1166.not, label %355, label %.epilog-lcssa1167

.epilog-lcssa1167:                                ; preds = %.unr-lcssa1161
  %349 = load ptr, ptr %27, align 8, !tbaa !9
  %350 = getelementptr inbounds ptr, ptr %349, i64 %.6821941.unr
  %351 = load ptr, ptr %350, align 8, !tbaa !10
  %352 = getelementptr inbounds double, ptr %351, i64 %.6821941.unr
  %353 = load double, ptr %352, align 8, !tbaa !12
  %354 = fadd double %353, -5.000000e-01
  store double %354, ptr %352, align 8, !tbaa !12
  br label %355

355:                                              ; preds = %.unr-lcssa1161, %.epilog-lcssa1167
  %356 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %357 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %356, double noundef 5.000000e-01)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.2802948, i64 noundef %.2802948, ptr noundef %0)
  %.not888 = xor i1 %357, true
  br label %.preheader910

.preheader910:                                    ; preds = %355, %374
  %.7822943 = phi i64 [ 0, %355 ], [ %375, %374 ]
  br label %358

358:                                              ; preds = %.preheader910, %368
  %.4808942 = phi i64 [ 0, %.preheader910 ], [ %373, %368 ]
  %.not863 = icmp ult i64 %.4808942, %.7822943
  %brmerge889 = or i1 %.not863, %.not888
  %.not864 = icmp ugt i64 %.4808942, %.7822943
  %brmerge890 = or i1 %357, %.not864
  %or.cond895 = and i1 %brmerge889, %brmerge890
  br i1 %or.cond895, label %365, label %359

359:                                              ; preds = %358
  %360 = load ptr, ptr %27, align 8, !tbaa !9
  %361 = getelementptr inbounds ptr, ptr %360, i64 %.7822943
  %362 = load ptr, ptr %361, align 8, !tbaa !10
  %363 = getelementptr inbounds double, ptr %362, i64 %.4808942
  %364 = load double, ptr %363, align 8, !tbaa !12
  br label %368

365:                                              ; preds = %358
  %366 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %367 = fadd double %366, -5.000000e-01
  br label %368

368:                                              ; preds = %359, %365
  %.sink1123 = phi double [ %364, %359 ], [ %367, %365 ]
  %369 = load ptr, ptr %28, align 8, !tbaa !9
  %370 = getelementptr inbounds ptr, ptr %369, i64 %.7822943
  %371 = load ptr, ptr %370, align 8, !tbaa !10
  %372 = getelementptr inbounds double, ptr %371, i64 %.4808942
  store double %.sink1123, ptr %372, align 8, !tbaa !12
  %373 = add nuw nsw i64 %.4808942, 1
  %exitcond1049.not = icmp eq i64 %373, %.2802948
  br i1 %exitcond1049.not, label %374, label %358, !llvm.loop !39

374:                                              ; preds = %368
  %375 = add nuw nsw i64 %.7822943, 1
  %exitcond1050.not = icmp eq i64 %375, %.2802948
  br i1 %exitcond1050.not, label %376, label %.preheader910, !llvm.loop !40

376:                                              ; preds = %374
  call void @_ZL27testminqpunit_densetosparsePN11alglib_impl9ae_matrixElPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.2802948, ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %.2802948, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %.2802948, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %.2802948, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %.2802948, ptr noundef %0)
  br label %377

377:                                              ; preds = %376, %377
  %.8823944 = phi i64 [ 0, %376 ], [ %389, %377 ]
  %378 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %379 = load ptr, ptr %29, align 8, !tbaa !9
  %380 = getelementptr inbounds double, ptr %379, i64 %.8823944
  store double %378, ptr %380, align 8, !tbaa !12
  %381 = load ptr, ptr %37, align 8, !tbaa !9
  %382 = getelementptr inbounds double, ptr %381, i64 %.8823944
  store double -1.000000e+00, ptr %382, align 8, !tbaa !12
  %383 = load ptr, ptr %39, align 8, !tbaa !9
  %384 = getelementptr inbounds double, ptr %383, i64 %.8823944
  store double 1.000000e+00, ptr %384, align 8, !tbaa !12
  %385 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %386 = call double @llvm.fmuladd.f64(double %385, double 2.000000e+00, double -1.000000e+00)
  %387 = load ptr, ptr %30, align 8, !tbaa !9
  %388 = getelementptr inbounds double, ptr %387, i64 %.8823944
  store double %386, ptr %388, align 8, !tbaa !12
  %389 = add nuw nsw i64 %.8823944, 1
  %exitcond1051.not = icmp eq i64 %389, %.2802948
  br i1 %exitcond1051.not, label %390, label %377, !llvm.loop !41

390:                                              ; preds = %377
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %.2802948, ptr noundef nonnull %3, ptr noundef %0)
  %391 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %392 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %391, double noundef 5.000000e-01)
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, i1 noundef zeroext %392, ptr noundef %0)
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef %0)
  %393 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %394 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %393, double noundef 0.000000e+00)
  br i1 %394, label %395, label %396

395:                                              ; preds = %390
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %10, i1 noundef zeroext %357, ptr noundef %0)
  br label %397

396:                                              ; preds = %390
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %12, i1 noundef zeroext %357, ptr noundef %0)
  br label %397

397:                                              ; preds = %396, %395
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %19, ptr noundef nonnull %4, ptr noundef %0)
  %398 = load i64, ptr %33, align 8, !tbaa !18
  %399 = icmp ne i64 %398, -4
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %399, ptr noundef nonnull @.str.8, i32 noundef 41442, ptr noundef nonnull @.str.399)
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %19, ptr noundef nonnull %4, ptr noundef %0)
  %400 = load i64, ptr %33, align 8, !tbaa !18
  %401 = icmp slt i64 %400, 1
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %401, ptr noundef nonnull @.str.8, i32 noundef 41446, ptr noundef nonnull @.str.400)
  %402 = load i64, ptr %33, align 8, !tbaa !18
  %403 = icmp slt i64 %402, 1
  br i1 %403, label %404, label %.preheader911

404:                                              ; preds = %397
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  br label %1100

.preheader911:                                    ; preds = %397, %436
  %.2946 = phi double [ %438, %436 ], [ 0.000000e+00, %397 ]
  %.9824945 = phi i64 [ %453, %436 ], [ 0, %397 ]
  %405 = load ptr, ptr %27, align 8, !tbaa !9
  %406 = getelementptr inbounds ptr, ptr %405, i64 %.9824945
  %407 = load ptr, ptr %406, align 8, !tbaa !10
  %408 = load ptr, ptr %34, align 8, !tbaa !9
  %409 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %332)
  %410 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %407, i64 noundef 1, ptr noundef %408, i64 noundef 1, i64 noundef %409)
  %411 = load ptr, ptr %29, align 8, !tbaa !9
  %412 = getelementptr inbounds double, ptr %411, i64 %.9824945
  %413 = load double, ptr %412, align 8, !tbaa !12
  %414 = fadd double %410, %413
  %415 = load ptr, ptr %34, align 8, !tbaa !9
  %416 = getelementptr inbounds double, ptr %415, i64 %.9824945
  %417 = load double, ptr %416, align 8, !tbaa !12
  %418 = load ptr, ptr %37, align 8, !tbaa !9
  %419 = getelementptr inbounds double, ptr %418, i64 %.9824945
  %420 = load double, ptr %419, align 8, !tbaa !12
  %421 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %417, double noundef %420)
  br i1 %421, label %422, label %425

422:                                              ; preds = %.preheader911
  %423 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %414, double noundef 0.000000e+00)
  br i1 %423, label %424, label %425

424:                                              ; preds = %422
  br label %425

425:                                              ; preds = %424, %422, %.preheader911
  %.4798 = phi double [ 0.000000e+00, %424 ], [ %414, %422 ], [ %414, %.preheader911 ]
  %426 = load ptr, ptr %34, align 8, !tbaa !9
  %427 = getelementptr inbounds double, ptr %426, i64 %.9824945
  %428 = load double, ptr %427, align 8, !tbaa !12
  %429 = load ptr, ptr %39, align 8, !tbaa !9
  %430 = getelementptr inbounds double, ptr %429, i64 %.9824945
  %431 = load double, ptr %430, align 8, !tbaa !12
  %432 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %428, double noundef %431)
  br i1 %432, label %433, label %436

433:                                              ; preds = %425
  %434 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %.4798, double noundef 0.000000e+00)
  br i1 %434, label %435, label %436

435:                                              ; preds = %433
  br label %436

436:                                              ; preds = %435, %433, %425
  %.5 = phi double [ 0.000000e+00, %435 ], [ %.4798, %433 ], [ %.4798, %425 ]
  %437 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %.5, ptr noundef %0)
  %438 = fadd double %.2946, %437
  %439 = load ptr, ptr %34, align 8, !tbaa !9
  %440 = getelementptr inbounds double, ptr %439, i64 %.9824945
  %441 = load double, ptr %440, align 8, !tbaa !12
  %442 = load ptr, ptr %37, align 8, !tbaa !9
  %443 = getelementptr inbounds double, ptr %442, i64 %.9824945
  %444 = load double, ptr %443, align 8, !tbaa !12
  %445 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %441, double noundef %444)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %445, ptr noundef nonnull @.str.8, i32 noundef 41471, ptr noundef nonnull @.str.401)
  %446 = load ptr, ptr %34, align 8, !tbaa !9
  %447 = getelementptr inbounds double, ptr %446, i64 %.9824945
  %448 = load double, ptr %447, align 8, !tbaa !12
  %449 = load ptr, ptr %39, align 8, !tbaa !9
  %450 = getelementptr inbounds double, ptr %449, i64 %.9824945
  %451 = load double, ptr %450, align 8, !tbaa !12
  %452 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %448, double noundef %451)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %452, ptr noundef nonnull @.str.8, i32 noundef 41472, ptr noundef nonnull @.str.402)
  %453 = add nuw nsw i64 %.9824945, 1
  %exitcond1052.not = icmp eq i64 %453, %.2802948
  br i1 %exitcond1052.not, label %454, label %.preheader911, !llvm.loop !42

454:                                              ; preds = %436
  %455 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %438, ptr noundef %0)
  %456 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %455, double noundef 1.000000e-05)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %456, ptr noundef nonnull @.str.8, i32 noundef 41475, ptr noundef nonnull @.str.403)
  %457 = add nuw nsw i64 %.2829947, 1
  %exitcond1053.not = icmp eq i64 %457, 11
  br i1 %exitcond1053.not, label %458, label %334, !llvm.loop !43

458:                                              ; preds = %454
  %459 = add nuw nsw i64 %.2802948, 1
  %exitcond1054.not = icmp eq i64 %459, 11
  %indvar.next1164 = add i64 %indvar1163, 1
  br i1 %exitcond1054.not, label %460, label %.preheader912, !llvm.loop !44

460:                                              ; preds = %458
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 12, ptr noundef %0)
  %461 = getelementptr inbounds i8, ptr %6, i64 56
  %462 = load ptr, ptr %461, align 8, !tbaa !9
  store i64 2, ptr %462, align 8, !tbaa !45
  %463 = load ptr, ptr %461, align 8, !tbaa !9
  %464 = getelementptr inbounds i8, ptr %463, i64 8
  store i64 3, ptr %464, align 8, !tbaa !45
  %465 = load ptr, ptr %461, align 8, !tbaa !9
  %466 = getelementptr inbounds i8, ptr %465, i64 16
  store i64 4, ptr %466, align 8, !tbaa !45
  %467 = load ptr, ptr %461, align 8, !tbaa !9
  %468 = getelementptr inbounds i8, ptr %467, i64 24
  store i64 5, ptr %468, align 8, !tbaa !45
  %469 = load ptr, ptr %461, align 8, !tbaa !9
  %470 = getelementptr inbounds i8, ptr %469, i64 32
  store i64 6, ptr %470, align 8, !tbaa !45
  %471 = load ptr, ptr %461, align 8, !tbaa !9
  %472 = getelementptr inbounds i8, ptr %471, i64 40
  store i64 7, ptr %472, align 8, !tbaa !45
  %473 = load ptr, ptr %461, align 8, !tbaa !9
  %474 = getelementptr inbounds i8, ptr %473, i64 48
  store i64 8, ptr %474, align 8, !tbaa !45
  %475 = load ptr, ptr %461, align 8, !tbaa !9
  %476 = getelementptr inbounds i8, ptr %475, i64 56
  store i64 9, ptr %476, align 8, !tbaa !45
  %477 = load ptr, ptr %461, align 8, !tbaa !9
  %478 = getelementptr inbounds i8, ptr %477, i64 64
  store i64 10, ptr %478, align 8, !tbaa !45
  %479 = getelementptr inbounds i8, ptr %477, i64 72
  store i64 20, ptr %479, align 8, !tbaa !45
  %480 = getelementptr inbounds i8, ptr %477, i64 80
  store i64 40, ptr %480, align 8, !tbaa !45
  %481 = getelementptr inbounds i8, ptr %477, i64 88
  store i64 80, ptr %481, align 8, !tbaa !45
  %482 = load i64, ptr %6, align 8, !tbaa !46
  %.not.not969 = icmp sgt i64 %482, 0
  br i1 %.not.not969, label %.preheader909.lr.ph, label %.preheader905

.preheader909.lr.ph:                              ; preds = %460
  %483 = getelementptr inbounds i8, ptr %7, i64 72
  br label %.preheader909

.preheader909:                                    ; preds = %.preheader909.lr.ph, %632
  %.0970 = phi i64 [ 0, %.preheader909.lr.ph ], [ %633, %632 ]
  br label %485

.preheader905:                                    ; preds = %632, %460
  %484 = getelementptr inbounds i8, ptr %7, i64 72
  br label %.preheader904

485:                                              ; preds = %.preheader909, %._crit_edge966
  %.3830968 = phi i64 [ 1, %.preheader909 ], [ %631, %._crit_edge966 ]
  %486 = load ptr, ptr %461, align 8, !tbaa !9
  %487 = getelementptr inbounds i64, ptr %486, i64 %.0970
  %488 = load i64, ptr %487, align 8, !tbaa !45
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %488, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %488, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %488, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %488, ptr noundef %0)
  %.not853.not949 = icmp sgt i64 %488, 0
  br i1 %.not853.not949, label %.preheader907, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %485
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %488, i64 noundef %488, ptr noundef %0)
  br label %._crit_edge956.split.us

.preheader907:                                    ; preds = %485, %497
  %.10825950 = phi i64 [ %506, %497 ], [ 0, %485 ]
  br label %489

489:                                              ; preds = %.preheader907, %489
  %490 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %491 = load ptr, ptr %29, align 8, !tbaa !9
  %492 = getelementptr inbounds double, ptr %491, i64 %.10825950
  store double %490, ptr %492, align 8, !tbaa !12
  %493 = load ptr, ptr %29, align 8, !tbaa !9
  %494 = getelementptr inbounds double, ptr %493, i64 %.10825950
  %495 = load double, ptr %494, align 8, !tbaa !12
  %496 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %495, double noundef 0.000000e+00)
  br i1 %496, label %489, label %497, !llvm.loop !48

497:                                              ; preds = %489
  %498 = load ptr, ptr %37, align 8, !tbaa !9
  %499 = getelementptr inbounds double, ptr %498, i64 %.10825950
  store double -1.000000e+00, ptr %499, align 8, !tbaa !12
  %500 = load ptr, ptr %39, align 8, !tbaa !9
  %501 = getelementptr inbounds double, ptr %500, i64 %.10825950
  store double 1.000000e+00, ptr %501, align 8, !tbaa !12
  %502 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %503 = call double @llvm.fmuladd.f64(double %502, double 2.000000e+00, double -1.000000e+00)
  %504 = load ptr, ptr %30, align 8, !tbaa !9
  %505 = getelementptr inbounds double, ptr %504, i64 %.10825950
  store double %503, ptr %505, align 8, !tbaa !12
  %506 = add nuw nsw i64 %.10825950, 1
  %exitcond1055.not = icmp eq i64 %506, %488
  br i1 %exitcond1055.not, label %._crit_edge, label %.preheader907, !llvm.loop !49

._crit_edge:                                      ; preds = %497
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %488, i64 noundef %488, ptr noundef %0)
  br i1 %.not853.not949, label %.preheader906.us.preheader, label %._crit_edge956.split.us

.preheader906.us.preheader:                       ; preds = %._crit_edge
  %xtraiter1171 = and i64 %488, 3
  %507 = icmp ult i64 %488, 4
  %unroll_iter1173 = and i64 %488, 9223372036854775804
  %lcmp.mod1172.not = icmp eq i64 %xtraiter1171, 0
  br label %.preheader906.us

.preheader906.us:                                 ; preds = %.preheader906.us.preheader, %._crit_edge953.us
  %.11826955.us = phi i64 [ %533, %._crit_edge953.us ], [ 0, %.preheader906.us.preheader ]
  br i1 %507, label %._crit_edge953.us.unr-lcssa, label %.preheader906.us.new

.preheader906.us.new:                             ; preds = %.preheader906.us, %.preheader906.us.new
  %.5809952.us = phi i64 [ %527, %.preheader906.us.new ], [ 0, %.preheader906.us ]
  %niter1174 = phi i64 [ %niter1174.next.3, %.preheader906.us.new ], [ 0, %.preheader906.us ]
  %508 = load ptr, ptr %483, align 8, !tbaa !9
  %509 = getelementptr inbounds ptr, ptr %508, i64 %.11826955.us
  %510 = load ptr, ptr %509, align 8, !tbaa !10
  %511 = getelementptr inbounds double, ptr %510, i64 %.5809952.us
  store double 1.000000e+00, ptr %511, align 8, !tbaa !12
  %512 = or disjoint i64 %.5809952.us, 1
  %513 = load ptr, ptr %483, align 8, !tbaa !9
  %514 = getelementptr inbounds ptr, ptr %513, i64 %.11826955.us
  %515 = load ptr, ptr %514, align 8, !tbaa !10
  %516 = getelementptr inbounds double, ptr %515, i64 %512
  store double 1.000000e+00, ptr %516, align 8, !tbaa !12
  %517 = or disjoint i64 %.5809952.us, 2
  %518 = load ptr, ptr %483, align 8, !tbaa !9
  %519 = getelementptr inbounds ptr, ptr %518, i64 %.11826955.us
  %520 = load ptr, ptr %519, align 8, !tbaa !10
  %521 = getelementptr inbounds double, ptr %520, i64 %517
  store double 1.000000e+00, ptr %521, align 8, !tbaa !12
  %522 = or disjoint i64 %.5809952.us, 3
  %523 = load ptr, ptr %483, align 8, !tbaa !9
  %524 = getelementptr inbounds ptr, ptr %523, i64 %.11826955.us
  %525 = load ptr, ptr %524, align 8, !tbaa !10
  %526 = getelementptr inbounds double, ptr %525, i64 %522
  store double 1.000000e+00, ptr %526, align 8, !tbaa !12
  %527 = add nuw nsw i64 %.5809952.us, 4
  %niter1174.next.3 = add i64 %niter1174, 4
  %niter1174.ncmp.3 = icmp eq i64 %niter1174.next.3, %unroll_iter1173
  br i1 %niter1174.ncmp.3, label %._crit_edge953.us.unr-lcssa, label %.preheader906.us.new, !llvm.loop !50

._crit_edge953.us.unr-lcssa:                      ; preds = %.preheader906.us.new, %.preheader906.us
  %.5809952.us.unr = phi i64 [ 0, %.preheader906.us ], [ %527, %.preheader906.us.new ]
  br i1 %lcmp.mod1172.not, label %._crit_edge953.us, label %.epil.preheader1170

.epil.preheader1170:                              ; preds = %._crit_edge953.us.unr-lcssa, %.epil.preheader1170
  %.5809952.us.epil = phi i64 [ %532, %.epil.preheader1170 ], [ %.5809952.us.unr, %._crit_edge953.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader1170 ], [ 0, %._crit_edge953.us.unr-lcssa ]
  %528 = load ptr, ptr %483, align 8, !tbaa !9
  %529 = getelementptr inbounds ptr, ptr %528, i64 %.11826955.us
  %530 = load ptr, ptr %529, align 8, !tbaa !10
  %531 = getelementptr inbounds double, ptr %530, i64 %.5809952.us.epil
  store double 1.000000e+00, ptr %531, align 8, !tbaa !12
  %532 = add nuw nsw i64 %.5809952.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter1171
  br i1 %epil.iter.cmp.not, label %._crit_edge953.us, label %.epil.preheader1170, !llvm.loop !51

._crit_edge953.us:                                ; preds = %.epil.preheader1170, %._crit_edge953.us.unr-lcssa
  %533 = add nuw nsw i64 %.11826955.us, 1
  %exitcond1057.not = icmp eq i64 %533, %488
  br i1 %exitcond1057.not, label %._crit_edge956.split.us, label %.preheader906.us, !llvm.loop !53

._crit_edge956.split.us:                          ; preds = %._crit_edge953.us, %._crit_edge.thread, %._crit_edge
  %534 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef %488, ptr noundef %0)
  %535 = load ptr, ptr %483, align 8, !tbaa !9
  %536 = getelementptr inbounds ptr, ptr %535, i64 %534
  %537 = load ptr, ptr %536, align 8, !tbaa !10
  %538 = getelementptr inbounds double, ptr %537, i64 %534
  store double -1.000000e+00, ptr %538, align 8, !tbaa !12
  call void @_ZL27testminqpunit_densetosparsePN11alglib_impl9ae_matrixElPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %488, ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %488, ptr noundef nonnull %3, ptr noundef %0)
  %539 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %540 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %539, double noundef 5.000000e-01)
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, i1 noundef zeroext %540, ptr noundef %0)
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef %0)
  %541 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %542 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %541, double noundef 0.000000e+00)
  br i1 %542, label %543, label %544

543:                                              ; preds = %._crit_edge956.split.us
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %7, i1 noundef zeroext true, ptr noundef %0)
  br label %545

544:                                              ; preds = %._crit_edge956.split.us
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %12, i1 noundef zeroext true, ptr noundef %0)
  br label %545

545:                                              ; preds = %544, %543
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %19, ptr noundef nonnull %4, ptr noundef %0)
  %546 = load i64, ptr %33, align 8, !tbaa !18
  %547 = icmp ne i64 %546, -4
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %547, ptr noundef nonnull @.str.8, i32 noundef 41571, ptr noundef nonnull @.str.404)
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %19, ptr noundef nonnull %4, ptr noundef %0)
  %548 = load i64, ptr %33, align 8, !tbaa !18
  %549 = icmp slt i64 %548, 1
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %549, ptr noundef nonnull @.str.8, i32 noundef 41575, ptr noundef nonnull @.str.405)
  %550 = load i64, ptr %33, align 8, !tbaa !18
  %551 = icmp slt i64 %550, 1
  br i1 %551, label %553, label %.preheader908

.preheader908:                                    ; preds = %545
  br i1 %.not853.not949, label %.lr.ph965.preheader, label %._crit_edge966

.lr.ph965.preheader:                              ; preds = %.preheader908
  %xtraiter1176 = and i64 %488, 3
  %552 = icmp ult i64 %488, 4
  %unroll_iter1180 = and i64 %488, 9223372036854775804
  %lcmp.mod1178.not = icmp eq i64 %xtraiter1176, 0
  br label %.lr.ph965

553:                                              ; preds = %545
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  br label %1100

.lr.ph965:                                        ; preds = %.lr.ph965.preheader, %611
  %.3964 = phi double [ %613, %611 ], [ 0.000000e+00, %.lr.ph965.preheader ]
  %.12963 = phi i64 [ %628, %611 ], [ 0, %.lr.ph965.preheader ]
  %554 = load ptr, ptr %29, align 8, !tbaa !9
  %555 = getelementptr inbounds double, ptr %554, i64 %.12963
  %556 = load double, ptr %555, align 8, !tbaa !12
  %557 = load ptr, ptr %483, align 8, !tbaa !9
  %558 = getelementptr inbounds ptr, ptr %557, i64 %.12963
  %559 = load ptr, ptr %558, align 8, !tbaa !10
  %560 = load ptr, ptr %34, align 8, !tbaa !9
  br i1 %552, label %._crit_edge961.unr-lcssa, label %.lr.ph965.new

.lr.ph965.new:                                    ; preds = %.lr.ph965, %.lr.ph965.new
  %.6959 = phi double [ %583, %.lr.ph965.new ], [ %556, %.lr.ph965 ]
  %.6810958 = phi i64 [ %584, %.lr.ph965.new ], [ 0, %.lr.ph965 ]
  %niter1181 = phi i64 [ %niter1181.next.3, %.lr.ph965.new ], [ 0, %.lr.ph965 ]
  %561 = getelementptr inbounds double, ptr %559, i64 %.6810958
  %562 = load double, ptr %561, align 8, !tbaa !12
  %563 = getelementptr inbounds double, ptr %560, i64 %.6810958
  %564 = load double, ptr %563, align 8, !tbaa !12
  %565 = call double @llvm.fmuladd.f64(double %562, double %564, double %.6959)
  %566 = or disjoint i64 %.6810958, 1
  %567 = getelementptr inbounds double, ptr %559, i64 %566
  %568 = load double, ptr %567, align 8, !tbaa !12
  %569 = getelementptr inbounds double, ptr %560, i64 %566
  %570 = load double, ptr %569, align 8, !tbaa !12
  %571 = call double @llvm.fmuladd.f64(double %568, double %570, double %565)
  %572 = or disjoint i64 %.6810958, 2
  %573 = getelementptr inbounds double, ptr %559, i64 %572
  %574 = load double, ptr %573, align 8, !tbaa !12
  %575 = getelementptr inbounds double, ptr %560, i64 %572
  %576 = load double, ptr %575, align 8, !tbaa !12
  %577 = call double @llvm.fmuladd.f64(double %574, double %576, double %571)
  %578 = or disjoint i64 %.6810958, 3
  %579 = getelementptr inbounds double, ptr %559, i64 %578
  %580 = load double, ptr %579, align 8, !tbaa !12
  %581 = getelementptr inbounds double, ptr %560, i64 %578
  %582 = load double, ptr %581, align 8, !tbaa !12
  %583 = call double @llvm.fmuladd.f64(double %580, double %582, double %577)
  %584 = add nuw nsw i64 %.6810958, 4
  %niter1181.next.3 = add i64 %niter1181, 4
  %niter1181.ncmp.3 = icmp eq i64 %niter1181.next.3, %unroll_iter1180
  br i1 %niter1181.ncmp.3, label %._crit_edge961.unr-lcssa, label %.lr.ph965.new, !llvm.loop !54

._crit_edge961.unr-lcssa:                         ; preds = %.lr.ph965.new, %.lr.ph965
  %.lcssa1143.ph = phi double [ poison, %.lr.ph965 ], [ %583, %.lr.ph965.new ]
  %.6959.unr = phi double [ %556, %.lr.ph965 ], [ %583, %.lr.ph965.new ]
  %.6810958.unr = phi i64 [ 0, %.lr.ph965 ], [ %584, %.lr.ph965.new ]
  br i1 %lcmp.mod1178.not, label %._crit_edge961, label %.epil.preheader1175

.epil.preheader1175:                              ; preds = %._crit_edge961.unr-lcssa, %.epil.preheader1175
  %.6959.epil = phi double [ %589, %.epil.preheader1175 ], [ %.6959.unr, %._crit_edge961.unr-lcssa ]
  %.6810958.epil = phi i64 [ %590, %.epil.preheader1175 ], [ %.6810958.unr, %._crit_edge961.unr-lcssa ]
  %epil.iter1177 = phi i64 [ %epil.iter1177.next, %.epil.preheader1175 ], [ 0, %._crit_edge961.unr-lcssa ]
  %585 = getelementptr inbounds double, ptr %559, i64 %.6810958.epil
  %586 = load double, ptr %585, align 8, !tbaa !12
  %587 = getelementptr inbounds double, ptr %560, i64 %.6810958.epil
  %588 = load double, ptr %587, align 8, !tbaa !12
  %589 = call double @llvm.fmuladd.f64(double %586, double %588, double %.6959.epil)
  %590 = add nuw nsw i64 %.6810958.epil, 1
  %epil.iter1177.next = add i64 %epil.iter1177, 1
  %epil.iter1177.cmp.not = icmp eq i64 %epil.iter1177.next, %xtraiter1176
  br i1 %epil.iter1177.cmp.not, label %._crit_edge961, label %.epil.preheader1175, !llvm.loop !55

._crit_edge961:                                   ; preds = %.epil.preheader1175, %._crit_edge961.unr-lcssa
  %.lcssa1143 = phi double [ %.lcssa1143.ph, %._crit_edge961.unr-lcssa ], [ %589, %.epil.preheader1175 ]
  %591 = getelementptr inbounds double, ptr %560, i64 %.12963
  %592 = load double, ptr %591, align 8, !tbaa !12
  %593 = load ptr, ptr %37, align 8, !tbaa !9
  %594 = getelementptr inbounds double, ptr %593, i64 %.12963
  %595 = load double, ptr %594, align 8, !tbaa !12
  %596 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %592, double noundef %595)
  br i1 %596, label %597, label %600

597:                                              ; preds = %._crit_edge961
  %598 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.lcssa1143, double noundef 0.000000e+00)
  br i1 %598, label %599, label %600

599:                                              ; preds = %597
  br label %600

600:                                              ; preds = %599, %597, %._crit_edge961
  %.7 = phi double [ 0.000000e+00, %599 ], [ %.lcssa1143, %597 ], [ %.lcssa1143, %._crit_edge961 ]
  %601 = load ptr, ptr %34, align 8, !tbaa !9
  %602 = getelementptr inbounds double, ptr %601, i64 %.12963
  %603 = load double, ptr %602, align 8, !tbaa !12
  %604 = load ptr, ptr %39, align 8, !tbaa !9
  %605 = getelementptr inbounds double, ptr %604, i64 %.12963
  %606 = load double, ptr %605, align 8, !tbaa !12
  %607 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %603, double noundef %606)
  br i1 %607, label %608, label %611

608:                                              ; preds = %600
  %609 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %.7, double noundef 0.000000e+00)
  br i1 %609, label %610, label %611

610:                                              ; preds = %608
  br label %611

611:                                              ; preds = %610, %608, %600
  %.8 = phi double [ 0.000000e+00, %610 ], [ %.7, %608 ], [ %.7, %600 ]
  %612 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %.8, ptr noundef %0)
  %613 = fadd double %.3964, %612
  %614 = load ptr, ptr %34, align 8, !tbaa !9
  %615 = getelementptr inbounds double, ptr %614, i64 %.12963
  %616 = load double, ptr %615, align 8, !tbaa !12
  %617 = load ptr, ptr %37, align 8, !tbaa !9
  %618 = getelementptr inbounds double, ptr %617, i64 %.12963
  %619 = load double, ptr %618, align 8, !tbaa !12
  %620 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %616, double noundef %619)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %620, ptr noundef nonnull @.str.8, i32 noundef 41603, ptr noundef nonnull @.str.406)
  %621 = load ptr, ptr %34, align 8, !tbaa !9
  %622 = getelementptr inbounds double, ptr %621, i64 %.12963
  %623 = load double, ptr %622, align 8, !tbaa !12
  %624 = load ptr, ptr %39, align 8, !tbaa !9
  %625 = getelementptr inbounds double, ptr %624, i64 %.12963
  %626 = load double, ptr %625, align 8, !tbaa !12
  %627 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %623, double noundef %626)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %627, ptr noundef nonnull @.str.8, i32 noundef 41604, ptr noundef nonnull @.str.407)
  %628 = add nuw nsw i64 %.12963, 1
  %exitcond1059.not = icmp eq i64 %628, %488
  br i1 %exitcond1059.not, label %._crit_edge966, label %.lr.ph965, !llvm.loop !56

._crit_edge966:                                   ; preds = %611, %.preheader908
  %.3.lcssa = phi double [ 0.000000e+00, %.preheader908 ], [ %613, %611 ]
  %629 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %.3.lcssa, ptr noundef %0)
  %630 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %629, double noundef 1.000000e-05)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %630, ptr noundef nonnull @.str.8, i32 noundef 41607, ptr noundef nonnull @.str.408)
  %631 = add nuw nsw i64 %.3830968, 1
  %exitcond1060.not = icmp eq i64 %631, 11
  br i1 %exitcond1060.not, label %632, label %485, !llvm.loop !57

632:                                              ; preds = %._crit_edge966
  %633 = add nuw nsw i64 %.0970, 1
  %634 = load i64, ptr %6, align 8, !tbaa !46
  %.not.not = icmp slt i64 %633, %634
  br i1 %.not.not, label %.preheader909, label %.preheader905, !llvm.loop !58

.preheader904:                                    ; preds = %.preheader905, %728
  %indvar1184 = phi i64 [ 0, %.preheader905 ], [ %indvar.next1185, %728 ]
  %.3803976 = phi i64 [ 1, %.preheader905 ], [ %729, %728 ]
  %xtraiter1186 = and i64 %.3803976, 3
  %635 = icmp ult i64 %indvar1184, 3
  %unroll_iter1190 = and i64 %.3803976, 9223372036854775804
  %lcmp.mod1188.not = icmp eq i64 %xtraiter1186, 0
  br label %637

.preheader900:                                    ; preds = %728
  %636 = getelementptr inbounds i8, ptr %3, i64 40
  br label %733

637:                                              ; preds = %.preheader904, %726
  %.4831975 = phi i64 [ 1, %.preheader904 ], [ %727, %726 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %.3803976, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %.3803976, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %.3803976, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %.3803976, ptr noundef %0)
  br label %.preheader902

.preheader902:                                    ; preds = %637, %646
  %.13971 = phi i64 [ 0, %637 ], [ %655, %646 ]
  br label %638

638:                                              ; preds = %.preheader902, %638
  %639 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %640 = load ptr, ptr %29, align 8, !tbaa !9
  %641 = getelementptr inbounds double, ptr %640, i64 %.13971
  store double %639, ptr %641, align 8, !tbaa !12
  %642 = load ptr, ptr %29, align 8, !tbaa !9
  %643 = getelementptr inbounds double, ptr %642, i64 %.13971
  %644 = load double, ptr %643, align 8, !tbaa !12
  %645 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %644, double noundef 0.000000e+00)
  br i1 %645, label %638, label %646, !llvm.loop !59

646:                                              ; preds = %638
  %647 = load ptr, ptr %37, align 8, !tbaa !9
  %648 = getelementptr inbounds double, ptr %647, i64 %.13971
  store double -1.000000e+00, ptr %648, align 8, !tbaa !12
  %649 = load ptr, ptr %39, align 8, !tbaa !9
  %650 = getelementptr inbounds double, ptr %649, i64 %.13971
  store double 1.000000e+00, ptr %650, align 8, !tbaa !12
  %651 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %652 = call double @llvm.fmuladd.f64(double %651, double 2.000000e+00, double -1.000000e+00)
  %653 = load ptr, ptr %30, align 8, !tbaa !9
  %654 = getelementptr inbounds double, ptr %653, i64 %.13971
  store double %652, ptr %654, align 8, !tbaa !12
  %655 = add nuw nsw i64 %.13971, 1
  %exitcond1061.not = icmp eq i64 %655, %.3803976
  br i1 %exitcond1061.not, label %656, label %.preheader902, !llvm.loop !60

656:                                              ; preds = %646
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %.3803976, ptr noundef nonnull %3, ptr noundef %0)
  %657 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %658 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %657, double noundef 5.000000e-01)
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, i1 noundef zeroext %658, ptr noundef %0)
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef %0)
  %659 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %660 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %659, double noundef 0.000000e+00)
  br i1 %660, label %661, label %689

661:                                              ; preds = %656
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.3803976, i64 noundef %.3803976, ptr noundef %0)
  br label %.preheader901

.preheader901:                                    ; preds = %661, %.epilog-lcssa1189
  %.14973 = phi i64 [ 0, %661 ], [ %687, %.epilog-lcssa1189 ]
  br i1 %635, label %.unr-lcssa1182, label %.preheader901.new

.preheader901.new:                                ; preds = %.preheader901, %.preheader901.new
  %.7811972 = phi i64 [ %681, %.preheader901.new ], [ 0, %.preheader901 ]
  %niter1191 = phi i64 [ %niter1191.next.3, %.preheader901.new ], [ 0, %.preheader901 ]
  %662 = load ptr, ptr %484, align 8, !tbaa !9
  %663 = getelementptr inbounds ptr, ptr %662, i64 %.14973
  %664 = load ptr, ptr %663, align 8, !tbaa !10
  %665 = getelementptr inbounds double, ptr %664, i64 %.7811972
  store double 0.000000e+00, ptr %665, align 8, !tbaa !12
  %666 = or disjoint i64 %.7811972, 1
  %667 = load ptr, ptr %484, align 8, !tbaa !9
  %668 = getelementptr inbounds ptr, ptr %667, i64 %.14973
  %669 = load ptr, ptr %668, align 8, !tbaa !10
  %670 = getelementptr inbounds double, ptr %669, i64 %666
  store double 0.000000e+00, ptr %670, align 8, !tbaa !12
  %671 = or disjoint i64 %.7811972, 2
  %672 = load ptr, ptr %484, align 8, !tbaa !9
  %673 = getelementptr inbounds ptr, ptr %672, i64 %.14973
  %674 = load ptr, ptr %673, align 8, !tbaa !10
  %675 = getelementptr inbounds double, ptr %674, i64 %671
  store double 0.000000e+00, ptr %675, align 8, !tbaa !12
  %676 = or disjoint i64 %.7811972, 3
  %677 = load ptr, ptr %484, align 8, !tbaa !9
  %678 = getelementptr inbounds ptr, ptr %677, i64 %.14973
  %679 = load ptr, ptr %678, align 8, !tbaa !10
  %680 = getelementptr inbounds double, ptr %679, i64 %676
  store double 0.000000e+00, ptr %680, align 8, !tbaa !12
  %681 = add nuw nsw i64 %.7811972, 4
  %niter1191.next.3 = add i64 %niter1191, 4
  %niter1191.ncmp.3 = icmp eq i64 %niter1191.next.3, %unroll_iter1190
  br i1 %niter1191.ncmp.3, label %.unr-lcssa1182, label %.preheader901.new, !llvm.loop !61

.unr-lcssa1182:                                   ; preds = %.preheader901.new, %.preheader901
  %.7811972.unr = phi i64 [ 0, %.preheader901 ], [ %681, %.preheader901.new ]
  br i1 %lcmp.mod1188.not, label %.epilog-lcssa1189, label %.epil.preheader1183

.epil.preheader1183:                              ; preds = %.unr-lcssa1182, %.epil.preheader1183
  %.7811972.epil = phi i64 [ %686, %.epil.preheader1183 ], [ %.7811972.unr, %.unr-lcssa1182 ]
  %epil.iter1187 = phi i64 [ %epil.iter1187.next, %.epil.preheader1183 ], [ 0, %.unr-lcssa1182 ]
  %682 = load ptr, ptr %484, align 8, !tbaa !9
  %683 = getelementptr inbounds ptr, ptr %682, i64 %.14973
  %684 = load ptr, ptr %683, align 8, !tbaa !10
  %685 = getelementptr inbounds double, ptr %684, i64 %.7811972.epil
  store double 0.000000e+00, ptr %685, align 8, !tbaa !12
  %686 = add nuw nsw i64 %.7811972.epil, 1
  %epil.iter1187.next = add i64 %epil.iter1187, 1
  %epil.iter1187.cmp.not = icmp eq i64 %epil.iter1187.next, %xtraiter1186
  br i1 %epil.iter1187.cmp.not, label %.epilog-lcssa1189, label %.epil.preheader1183, !llvm.loop !62

.epilog-lcssa1189:                                ; preds = %.epil.preheader1183, %.unr-lcssa1182
  %687 = add nuw nsw i64 %.14973, 1
  %exitcond1063.not = icmp eq i64 %687, %.3803976
  br i1 %exitcond1063.not, label %688, label %.preheader901, !llvm.loop !63

688:                                              ; preds = %.epilog-lcssa1189
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %7, i1 noundef zeroext true, ptr noundef %0)
  br label %689

689:                                              ; preds = %688, %656
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %19, ptr noundef nonnull %4, ptr noundef %0)
  %690 = load i64, ptr %33, align 8, !tbaa !18
  %691 = icmp ne i64 %690, -4
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %691, ptr noundef nonnull @.str.8, i32 noundef 41674, ptr noundef nonnull @.str.409)
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %19, ptr noundef nonnull %4, ptr noundef %0)
  %692 = load i64, ptr %33, align 8, !tbaa !18
  %693 = icmp slt i64 %692, 1
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %693, ptr noundef nonnull @.str.8, i32 noundef 41678, ptr noundef nonnull @.str.410)
  %694 = load i64, ptr %33, align 8, !tbaa !18
  %695 = icmp slt i64 %694, 1
  br i1 %695, label %696, label %.preheader903

696:                                              ; preds = %689
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  br label %1100

.preheader903:                                    ; preds = %689, %723
  %.15974 = phi i64 [ %725, %723 ], [ 0, %689 ]
  %697 = load ptr, ptr %29, align 8, !tbaa !9
  %698 = getelementptr inbounds double, ptr %697, i64 %.15974
  %699 = load double, ptr %698, align 8, !tbaa !12
  %700 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %699, double noundef 0.000000e+00)
  br i1 %700, label %701, label %709

701:                                              ; preds = %.preheader903
  %702 = load ptr, ptr %34, align 8, !tbaa !9
  %703 = getelementptr inbounds double, ptr %702, i64 %.15974
  %704 = load double, ptr %703, align 8, !tbaa !12
  %705 = load ptr, ptr %37, align 8, !tbaa !9
  %706 = getelementptr inbounds double, ptr %705, i64 %.15974
  %707 = load double, ptr %706, align 8, !tbaa !12
  %708 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %704, double noundef %707)
  br label %709

709:                                              ; preds = %701, %.preheader903
  %710 = phi i1 [ false, %.preheader903 ], [ %708, %701 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %710, ptr noundef nonnull @.str.8, i32 noundef 41691, ptr noundef nonnull @.str.411)
  %711 = load ptr, ptr %29, align 8, !tbaa !9
  %712 = getelementptr inbounds double, ptr %711, i64 %.15974
  %713 = load double, ptr %712, align 8, !tbaa !12
  %714 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %713, double noundef 0.000000e+00)
  br i1 %714, label %715, label %723

715:                                              ; preds = %709
  %716 = load ptr, ptr %34, align 8, !tbaa !9
  %717 = getelementptr inbounds double, ptr %716, i64 %.15974
  %718 = load double, ptr %717, align 8, !tbaa !12
  %719 = load ptr, ptr %39, align 8, !tbaa !9
  %720 = getelementptr inbounds double, ptr %719, i64 %.15974
  %721 = load double, ptr %720, align 8, !tbaa !12
  %722 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %718, double noundef %721)
  br label %723

723:                                              ; preds = %715, %709
  %724 = phi i1 [ false, %709 ], [ %722, %715 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %724, ptr noundef nonnull @.str.8, i32 noundef 41692, ptr noundef nonnull @.str.412)
  %725 = add nuw nsw i64 %.15974, 1
  %exitcond1064.not = icmp eq i64 %725, %.3803976
  br i1 %exitcond1064.not, label %726, label %.preheader903, !llvm.loop !64

726:                                              ; preds = %723
  %727 = add nuw nsw i64 %.4831975, 1
  %exitcond1065.not = icmp eq i64 %727, 11
  br i1 %exitcond1065.not, label %728, label %637, !llvm.loop !65

728:                                              ; preds = %726
  %729 = add nuw nsw i64 %.3803976, 1
  %exitcond1066.not = icmp eq i64 %729, 11
  %indvar.next1185 = add i64 %indvar1184, 1
  br i1 %exitcond1066.not, label %.preheader900, label %.preheader904, !llvm.loop !66

.preheader898:                                    ; preds = %._crit_edge994
  %730 = getelementptr inbounds i8, ptr %23, i64 56
  %731 = getelementptr inbounds i8, ptr %3, i64 41
  %732 = getelementptr inbounds i8, ptr %3, i64 64
  br label %852

733:                                              ; preds = %.preheader900, %._crit_edge994
  %.5832996 = phi i64 [ 1, %.preheader900 ], [ %851, %._crit_edge994 ]
  %734 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef 51, ptr noundef %0)
  %735 = add nsw i64 %734, 50
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %735, double noundef 1.000000e+03, ptr noundef nonnull %7, ptr noundef %0)
  call void @_ZL27testminqpunit_densetosparsePN11alglib_impl9ae_matrixElPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %735, ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %735, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %735, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %735, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %735, ptr noundef %0)
  %736 = add i64 %734, 49
  %.not846977 = icmp slt i64 %734, -49
  br i1 %.not846977, label %._crit_edge981, label %.lr.ph980.preheader

.lr.ph980.preheader:                              ; preds = %733
  %smax = call i64 @llvm.smax.i64(i64 %736, i64 0)
  br label %.lr.ph980

.lr.ph980:                                        ; preds = %.lr.ph980.preheader, %755
  %.16978 = phi i64 [ %759, %755 ], [ 0, %.lr.ph980.preheader ]
  %737 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %738 = load ptr, ptr %29, align 8, !tbaa !9
  %739 = getelementptr inbounds double, ptr %738, i64 %.16978
  store double %737, ptr %739, align 8, !tbaa !12
  %740 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %741 = load ptr, ptr %30, align 8, !tbaa !9
  %742 = getelementptr inbounds double, ptr %741, i64 %.16978
  store double %740, ptr %742, align 8, !tbaa !12
  %743 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %744 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %743, double noundef 0.000000e+00)
  br i1 %744, label %745, label %749

745:                                              ; preds = %.lr.ph980
  %746 = load double, ptr %36, align 8, !tbaa !27
  %747 = load ptr, ptr %37, align 8, !tbaa !9
  %748 = getelementptr inbounds double, ptr %747, i64 %.16978
  store double %746, ptr %748, align 8, !tbaa !12
  br label %755

749:                                              ; preds = %.lr.ph980
  %750 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %751 = load ptr, ptr %37, align 8, !tbaa !9
  %752 = getelementptr inbounds double, ptr %751, i64 %.16978
  store double %750, ptr %752, align 8, !tbaa !12
  %753 = load ptr, ptr %37, align 8, !tbaa !9
  %754 = getelementptr inbounds double, ptr %753, i64 %.16978
  br label %755

755:                                              ; preds = %745, %749
  %.sink1131 = phi ptr [ %38, %745 ], [ %754, %749 ]
  %756 = load double, ptr %.sink1131, align 8, !tbaa !12
  %757 = load ptr, ptr %39, align 8, !tbaa !9
  %758 = getelementptr inbounds double, ptr %757, i64 %.16978
  store double %756, ptr %758, align 8, !tbaa !12
  %759 = add nuw i64 %.16978, 1
  %exitcond1067.not = icmp eq i64 %.16978, %smax
  br i1 %exitcond1067.not, label %._crit_edge981, label %.lr.ph980, !llvm.loop !67

._crit_edge981:                                   ; preds = %755, %733
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %735, ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 1, i1 noundef zeroext true, ptr noundef %0)
  store i8 0, ptr %636, align 8, !tbaa !68
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef %0)
  %760 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %761 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %760, double noundef 0.000000e+00)
  %762 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %763 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %762, double noundef 0.000000e+00)
  br i1 %761, label %764, label %765

764:                                              ; preds = %._crit_edge981
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %7, i1 noundef zeroext %763, ptr noundef %0)
  br label %766

765:                                              ; preds = %._crit_edge981
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %12, i1 noundef zeroext %763, ptr noundef %0)
  br label %766

766:                                              ; preds = %765, %764
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %19, ptr noundef nonnull %4, ptr noundef %0)
  %767 = load i64, ptr %33, align 8, !tbaa !18
  %768 = icmp slt i64 %767, 1
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %768, ptr noundef nonnull @.str.8, i32 noundef 41758, ptr noundef nonnull @.str.413)
  %769 = load i64, ptr %33, align 8, !tbaa !18
  %770 = icmp slt i64 %769, 1
  br i1 %770, label %773, label %.preheader899

.preheader899:                                    ; preds = %766
  br i1 %.not846977, label %._crit_edge994, label %.lr.ph993.preheader

.lr.ph993.preheader:                              ; preds = %.preheader899
  %smax1068 = call i64 @llvm.smax.i64(i64 %736, i64 0)
  %771 = add nuw i64 %smax1068, 1
  %xtraiter1193 = and i64 %771, 3
  %772 = icmp slt i64 %736, 3
  %unroll_iter1197 = and i64 %771, -4
  %lcmp.mod1195.not = icmp eq i64 %xtraiter1193, 0
  br label %.lr.ph993

773:                                              ; preds = %766
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  br label %1100

.lr.ph993:                                        ; preds = %.lr.ph993.preheader, %831
  %.4992 = phi double [ %833, %831 ], [ 0.000000e+00, %.lr.ph993.preheader ]
  %.17991 = phi i64 [ %848, %831 ], [ 0, %.lr.ph993.preheader ]
  %774 = load ptr, ptr %29, align 8, !tbaa !9
  %775 = getelementptr inbounds double, ptr %774, i64 %.17991
  %776 = load double, ptr %775, align 8, !tbaa !12
  %777 = load ptr, ptr %484, align 8, !tbaa !9
  %778 = getelementptr inbounds ptr, ptr %777, i64 %.17991
  %779 = load ptr, ptr %778, align 8, !tbaa !10
  %780 = load ptr, ptr %34, align 8, !tbaa !9
  br i1 %772, label %._crit_edge988.unr-lcssa, label %.lr.ph993.new

.lr.ph993.new:                                    ; preds = %.lr.ph993, %.lr.ph993.new
  %.9985 = phi double [ %803, %.lr.ph993.new ], [ %776, %.lr.ph993 ]
  %.8812984 = phi i64 [ %804, %.lr.ph993.new ], [ 0, %.lr.ph993 ]
  %niter1198 = phi i64 [ %niter1198.next.3, %.lr.ph993.new ], [ 0, %.lr.ph993 ]
  %781 = getelementptr inbounds double, ptr %779, i64 %.8812984
  %782 = load double, ptr %781, align 8, !tbaa !12
  %783 = getelementptr inbounds double, ptr %780, i64 %.8812984
  %784 = load double, ptr %783, align 8, !tbaa !12
  %785 = call double @llvm.fmuladd.f64(double %782, double %784, double %.9985)
  %786 = or disjoint i64 %.8812984, 1
  %787 = getelementptr inbounds double, ptr %779, i64 %786
  %788 = load double, ptr %787, align 8, !tbaa !12
  %789 = getelementptr inbounds double, ptr %780, i64 %786
  %790 = load double, ptr %789, align 8, !tbaa !12
  %791 = call double @llvm.fmuladd.f64(double %788, double %790, double %785)
  %792 = or disjoint i64 %.8812984, 2
  %793 = getelementptr inbounds double, ptr %779, i64 %792
  %794 = load double, ptr %793, align 8, !tbaa !12
  %795 = getelementptr inbounds double, ptr %780, i64 %792
  %796 = load double, ptr %795, align 8, !tbaa !12
  %797 = call double @llvm.fmuladd.f64(double %794, double %796, double %791)
  %798 = or disjoint i64 %.8812984, 3
  %799 = getelementptr inbounds double, ptr %779, i64 %798
  %800 = load double, ptr %799, align 8, !tbaa !12
  %801 = getelementptr inbounds double, ptr %780, i64 %798
  %802 = load double, ptr %801, align 8, !tbaa !12
  %803 = call double @llvm.fmuladd.f64(double %800, double %802, double %797)
  %804 = add nuw i64 %.8812984, 4
  %niter1198.next.3 = add i64 %niter1198, 4
  %niter1198.ncmp.3 = icmp eq i64 %niter1198.next.3, %unroll_iter1197
  br i1 %niter1198.ncmp.3, label %._crit_edge988.unr-lcssa, label %.lr.ph993.new, !llvm.loop !91

._crit_edge988.unr-lcssa:                         ; preds = %.lr.ph993.new, %.lr.ph993
  %.lcssa.ph = phi double [ poison, %.lr.ph993 ], [ %803, %.lr.ph993.new ]
  %.9985.unr = phi double [ %776, %.lr.ph993 ], [ %803, %.lr.ph993.new ]
  %.8812984.unr = phi i64 [ 0, %.lr.ph993 ], [ %804, %.lr.ph993.new ]
  br i1 %lcmp.mod1195.not, label %._crit_edge988, label %.epil.preheader1192

.epil.preheader1192:                              ; preds = %._crit_edge988.unr-lcssa, %.epil.preheader1192
  %.9985.epil = phi double [ %809, %.epil.preheader1192 ], [ %.9985.unr, %._crit_edge988.unr-lcssa ]
  %.8812984.epil = phi i64 [ %810, %.epil.preheader1192 ], [ %.8812984.unr, %._crit_edge988.unr-lcssa ]
  %epil.iter1194 = phi i64 [ %epil.iter1194.next, %.epil.preheader1192 ], [ 0, %._crit_edge988.unr-lcssa ]
  %805 = getelementptr inbounds double, ptr %779, i64 %.8812984.epil
  %806 = load double, ptr %805, align 8, !tbaa !12
  %807 = getelementptr inbounds double, ptr %780, i64 %.8812984.epil
  %808 = load double, ptr %807, align 8, !tbaa !12
  %809 = call double @llvm.fmuladd.f64(double %806, double %808, double %.9985.epil)
  %810 = add nuw i64 %.8812984.epil, 1
  %epil.iter1194.next = add i64 %epil.iter1194, 1
  %epil.iter1194.cmp.not = icmp eq i64 %epil.iter1194.next, %xtraiter1193
  br i1 %epil.iter1194.cmp.not, label %._crit_edge988, label %.epil.preheader1192, !llvm.loop !92

._crit_edge988:                                   ; preds = %.epil.preheader1192, %._crit_edge988.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge988.unr-lcssa ], [ %809, %.epil.preheader1192 ]
  %811 = getelementptr inbounds double, ptr %780, i64 %.17991
  %812 = load double, ptr %811, align 8, !tbaa !12
  %813 = load ptr, ptr %37, align 8, !tbaa !9
  %814 = getelementptr inbounds double, ptr %813, i64 %.17991
  %815 = load double, ptr %814, align 8, !tbaa !12
  %816 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %812, double noundef %815)
  br i1 %816, label %817, label %820

817:                                              ; preds = %._crit_edge988
  %818 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.lcssa, double noundef 0.000000e+00)
  br i1 %818, label %819, label %820

819:                                              ; preds = %817
  br label %820

820:                                              ; preds = %819, %817, %._crit_edge988
  %.10 = phi double [ 0.000000e+00, %819 ], [ %.lcssa, %817 ], [ %.lcssa, %._crit_edge988 ]
  %821 = load ptr, ptr %34, align 8, !tbaa !9
  %822 = getelementptr inbounds double, ptr %821, i64 %.17991
  %823 = load double, ptr %822, align 8, !tbaa !12
  %824 = load ptr, ptr %39, align 8, !tbaa !9
  %825 = getelementptr inbounds double, ptr %824, i64 %.17991
  %826 = load double, ptr %825, align 8, !tbaa !12
  %827 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %823, double noundef %826)
  br i1 %827, label %828, label %831

828:                                              ; preds = %820
  %829 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %.10, double noundef 0.000000e+00)
  br i1 %829, label %830, label %831

830:                                              ; preds = %828
  br label %831

831:                                              ; preds = %830, %828, %820
  %.11 = phi double [ 0.000000e+00, %830 ], [ %.10, %828 ], [ %.10, %820 ]
  %832 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %.11, ptr noundef %0)
  %833 = fadd double %.4992, %832
  %834 = load ptr, ptr %34, align 8, !tbaa !9
  %835 = getelementptr inbounds double, ptr %834, i64 %.17991
  %836 = load double, ptr %835, align 8, !tbaa !12
  %837 = load ptr, ptr %37, align 8, !tbaa !9
  %838 = getelementptr inbounds double, ptr %837, i64 %.17991
  %839 = load double, ptr %838, align 8, !tbaa !12
  %840 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %836, double noundef %839)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %840, ptr noundef nonnull @.str.8, i32 noundef 41786, ptr noundef nonnull @.str.414)
  %841 = load ptr, ptr %34, align 8, !tbaa !9
  %842 = getelementptr inbounds double, ptr %841, i64 %.17991
  %843 = load double, ptr %842, align 8, !tbaa !12
  %844 = load ptr, ptr %39, align 8, !tbaa !9
  %845 = getelementptr inbounds double, ptr %844, i64 %.17991
  %846 = load double, ptr %845, align 8, !tbaa !12
  %847 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %843, double noundef %846)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %847, ptr noundef nonnull @.str.8, i32 noundef 41787, ptr noundef nonnull @.str.415)
  %848 = add nuw i64 %.17991, 1
  %exitcond1070.not = icmp eq i64 %.17991, %smax1068
  br i1 %exitcond1070.not, label %._crit_edge994, label %.lr.ph993, !llvm.loop !93

._crit_edge994:                                   ; preds = %831, %.preheader899
  %.4.lcssa = phi double [ 0.000000e+00, %.preheader899 ], [ %833, %831 ]
  %849 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %.4.lcssa, ptr noundef %0)
  %850 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %849, double noundef 1.000000e-05)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %850, ptr noundef nonnull @.str.8, i32 noundef 41790, ptr noundef nonnull @.str.416)
  %851 = add nuw nsw i64 %.5832996, 1
  %exitcond1071.not = icmp eq i64 %851, 11
  br i1 %exitcond1071.not, label %.preheader898, label %733, !llvm.loop !94

852:                                              ; preds = %.preheader898, %922
  %.68331008 = phi i64 [ 1, %.preheader898 ], [ %925, %922 ]
  %853 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef 20, ptr noundef %0)
  %854 = add nsw i64 %853, 20
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %854, double noundef 1.000000e+05, ptr noundef nonnull %7, ptr noundef %0)
  call void @_ZL27testminqpunit_densetosparsePN11alglib_impl9ae_matrixElPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %854, ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %854, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %854, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %854, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %854, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %23, i64 noundef %854, ptr noundef %0)
  %.not844997 = icmp slt i64 %853, -19
  br i1 %.not844997, label %._crit_edge1007.critedge, label %.lr.ph1000.preheader

.lr.ph1000.preheader:                             ; preds = %852
  %855 = add i64 %853, 19
  %smax1072 = call i64 @llvm.smax.i64(i64 %855, i64 0)
  br label %.lr.ph1000

.lr.ph1000:                                       ; preds = %.lr.ph1000.preheader, %.lr.ph1000
  %.18998 = phi i64 [ %868, %.lr.ph1000 ], [ 0, %.lr.ph1000.preheader ]
  %856 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %857 = fadd double %856, -5.000000e-01
  %858 = load ptr, ptr %730, align 8, !tbaa !9
  %859 = getelementptr inbounds double, ptr %858, i64 %.18998
  store double %857, ptr %859, align 8, !tbaa !12
  %860 = load ptr, ptr %30, align 8, !tbaa !9
  %861 = getelementptr inbounds double, ptr %860, i64 %.18998
  store double 1.000000e+02, ptr %861, align 8, !tbaa !12
  %862 = load double, ptr %36, align 8, !tbaa !27
  %863 = load ptr, ptr %37, align 8, !tbaa !9
  %864 = getelementptr inbounds double, ptr %863, i64 %.18998
  store double %862, ptr %864, align 8, !tbaa !12
  %865 = load double, ptr %38, align 8, !tbaa !32
  %866 = load ptr, ptr %39, align 8, !tbaa !9
  %867 = getelementptr inbounds double, ptr %866, i64 %.18998
  store double %865, ptr %867, align 8, !tbaa !12
  %868 = add nuw i64 %.18998, 1
  %exitcond1073.not = icmp eq i64 %.18998, %smax1072
  br i1 %exitcond1073.not, label %._crit_edge1001, label %.lr.ph1000, !llvm.loop !95

._crit_edge1001:                                  ; preds = %.lr.ph1000
  %869 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef %854, ptr noundef %0)
  %870 = load ptr, ptr %30, align 8, !tbaa !9
  %871 = getelementptr inbounds double, ptr %870, i64 %869
  store double 5.000010e+00, ptr %871, align 8, !tbaa !12
  %872 = load ptr, ptr %37, align 8, !tbaa !9
  %873 = getelementptr inbounds double, ptr %872, i64 %869
  store double 5.000000e+00, ptr %873, align 8, !tbaa !12
  call void @_ZN11alglib_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef nonnull %23, ptr noundef nonnull %14, ptr noundef %0)
  br i1 %.not844997, label %._crit_edge1007, label %.lr.ph1006.preheader

.lr.ph1006.preheader:                             ; preds = %._crit_edge1001
  %874 = add nuw i64 %smax1072, 1
  %xtraiter1199 = and i64 %874, 3
  %875 = icmp slt i64 %855, 3
  br i1 %875, label %._crit_edge1007.loopexit.unr-lcssa, label %.lr.ph1006.preheader.new

.lr.ph1006.preheader.new:                         ; preds = %.lr.ph1006.preheader
  %unroll_iter1202 = and i64 %874, -4
  br label %.lr.ph1006

.lr.ph1006:                                       ; preds = %.lr.ph1006, %.lr.ph1006.preheader.new
  %.191004 = phi i64 [ 0, %.lr.ph1006.preheader.new ], [ %895, %.lr.ph1006 ]
  %niter1203 = phi i64 [ 0, %.lr.ph1006.preheader.new ], [ %niter1203.next.3, %.lr.ph1006 ]
  %876 = load ptr, ptr %29, align 8, !tbaa !9
  %877 = getelementptr inbounds double, ptr %876, i64 %.191004
  %878 = load double, ptr %877, align 8, !tbaa !12
  %879 = fneg double %878
  store double %879, ptr %877, align 8, !tbaa !12
  %880 = or disjoint i64 %.191004, 1
  %881 = load ptr, ptr %29, align 8, !tbaa !9
  %882 = getelementptr inbounds double, ptr %881, i64 %880
  %883 = load double, ptr %882, align 8, !tbaa !12
  %884 = fneg double %883
  store double %884, ptr %882, align 8, !tbaa !12
  %885 = or disjoint i64 %.191004, 2
  %886 = load ptr, ptr %29, align 8, !tbaa !9
  %887 = getelementptr inbounds double, ptr %886, i64 %885
  %888 = load double, ptr %887, align 8, !tbaa !12
  %889 = fneg double %888
  store double %889, ptr %887, align 8, !tbaa !12
  %890 = or disjoint i64 %.191004, 3
  %891 = load ptr, ptr %29, align 8, !tbaa !9
  %892 = getelementptr inbounds double, ptr %891, i64 %890
  %893 = load double, ptr %892, align 8, !tbaa !12
  %894 = fneg double %893
  store double %894, ptr %892, align 8, !tbaa !12
  %895 = add nuw i64 %.191004, 4
  %niter1203.next.3 = add i64 %niter1203, 4
  %niter1203.ncmp.3 = icmp eq i64 %niter1203.next.3, %unroll_iter1202
  br i1 %niter1203.ncmp.3, label %._crit_edge1007.loopexit.unr-lcssa, label %.lr.ph1006, !llvm.loop !96

._crit_edge1007.critedge:                         ; preds = %852
  %896 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef %854, ptr noundef %0)
  %897 = load ptr, ptr %30, align 8, !tbaa !9
  %898 = getelementptr inbounds double, ptr %897, i64 %896
  store double 5.000010e+00, ptr %898, align 8, !tbaa !12
  %899 = load ptr, ptr %37, align 8, !tbaa !9
  %900 = getelementptr inbounds double, ptr %899, i64 %896
  store double 5.000000e+00, ptr %900, align 8, !tbaa !12
  call void @_ZN11alglib_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef nonnull %23, ptr noundef nonnull %14, ptr noundef %0)
  br label %._crit_edge1007

._crit_edge1007.loopexit.unr-lcssa:               ; preds = %.lr.ph1006, %.lr.ph1006.preheader
  %.191004.unr = phi i64 [ 0, %.lr.ph1006.preheader ], [ %895, %.lr.ph1006 ]
  %lcmp.mod1201.not = icmp eq i64 %xtraiter1199, 0
  br i1 %lcmp.mod1201.not, label %._crit_edge1007, label %.lr.ph1006.epil

.lr.ph1006.epil:                                  ; preds = %._crit_edge1007.loopexit.unr-lcssa, %.lr.ph1006.epil
  %.191004.epil = phi i64 [ %905, %.lr.ph1006.epil ], [ %.191004.unr, %._crit_edge1007.loopexit.unr-lcssa ]
  %epil.iter1200 = phi i64 [ %epil.iter1200.next, %.lr.ph1006.epil ], [ 0, %._crit_edge1007.loopexit.unr-lcssa ]
  %901 = load ptr, ptr %29, align 8, !tbaa !9
  %902 = getelementptr inbounds double, ptr %901, i64 %.191004.epil
  %903 = load double, ptr %902, align 8, !tbaa !12
  %904 = fneg double %903
  store double %904, ptr %902, align 8, !tbaa !12
  %905 = add nuw i64 %.191004.epil, 1
  %epil.iter1200.next = add i64 %epil.iter1200, 1
  %epil.iter1200.cmp.not = icmp eq i64 %epil.iter1200.next, %xtraiter1199
  br i1 %epil.iter1200.cmp.not, label %._crit_edge1007, label %.lr.ph1006.epil, !llvm.loop !97

._crit_edge1007:                                  ; preds = %._crit_edge1007.loopexit.unr-lcssa, %.lr.ph1006.epil, %._crit_edge1007.critedge, %._crit_edge1001
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %854, ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 1, i1 noundef zeroext true, ptr noundef %0)
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef %0)
  %906 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %907 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %906, double noundef 0.000000e+00)
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %7, i1 noundef zeroext %907, ptr noundef %0)
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %0)
  call void @_ZN11alglib_impl21minqpsetstartingpointEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %18, ptr noundef %0)
  store i8 0, ptr %636, align 8, !tbaa !68
  store i8 1, ptr %731, align 1, !tbaa !98
  store i64 0, ptr %732, align 8, !tbaa !99
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %19, ptr noundef nonnull %4, ptr noundef %0)
  %908 = load i64, ptr %33, align 8, !tbaa !18
  %909 = icmp slt i64 %908, 1
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %909, ptr noundef nonnull @.str.8, i32 noundef 41872, ptr noundef nonnull @.str.417)
  %910 = load i8, ptr %26, align 1, !tbaa !5, !range !100, !noundef !101
  %911 = trunc nuw i8 %910 to i1
  br i1 %911, label %912, label %913

912:                                              ; preds = %._crit_edge1007
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  br label %1100

913:                                              ; preds = %._crit_edge1007
  store i8 0, ptr %5, align 1, !tbaa !5
  call void @_ZL38testminqpunit_testbcgradandfeasibilityPN11alglib_impl9ae_matrixEPNS_9ae_vectorES3_S3_lS3_dPbPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef nonnull %14, ptr noundef nonnull %16, ptr noundef nonnull %17, i64 noundef %854, ptr noundef nonnull %19, double noundef 1.000000e-05, ptr noundef nonnull %5, ptr noundef %0)
  %914 = load i8, ptr %5, align 1, !tbaa !5, !range !100, !noundef !101
  %915 = trunc nuw i8 %914 to i1
  %916 = xor i1 %915, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %916, ptr noundef nonnull @.str.8, i32 noundef 41880, ptr noundef nonnull @.str.418)
  store i8 0, ptr %636, align 8, !tbaa !68
  store i64 %854, ptr %732, align 8, !tbaa !99
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %19, ptr noundef nonnull %4, ptr noundef %0)
  %917 = load i64, ptr %33, align 8, !tbaa !18
  %918 = icmp slt i64 %917, 1
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %918, ptr noundef nonnull @.str.8, i32 noundef 41889, ptr noundef nonnull @.str.419)
  %919 = load i8, ptr %26, align 1, !tbaa !5, !range !100, !noundef !101
  %920 = trunc nuw i8 %919 to i1
  br i1 %920, label %921, label %922

921:                                              ; preds = %913
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  br label %1100

922:                                              ; preds = %913
  store i8 0, ptr %5, align 1, !tbaa !5
  call void @_ZL38testminqpunit_testbcgradandfeasibilityPN11alglib_impl9ae_matrixEPNS_9ae_vectorES3_S3_lS3_dPbPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef nonnull %14, ptr noundef nonnull %16, ptr noundef nonnull %17, i64 noundef %854, ptr noundef nonnull %19, double noundef 1.000000e-05, ptr noundef nonnull %5, ptr noundef %0)
  %923 = load i8, ptr %5, align 1, !tbaa !5, !range !100, !noundef !101
  %924 = trunc nuw i8 %923 to i1
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %924, ptr noundef nonnull @.str.8, i32 noundef 41897, ptr noundef nonnull @.str.420)
  %925 = add nuw nsw i64 %.68331008, 1
  %exitcond1076.not = icmp eq i64 %925, 11
  br i1 %exitcond1076.not, label %926, label %852, !llvm.loop !102

926:                                              ; preds = %922
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef 1, i64 noundef 3, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef 1, ptr noundef %0)
  %927 = getelementptr inbounds i8, ptr %11, i64 72
  %928 = load ptr, ptr %927, align 8, !tbaa !9
  %929 = load ptr, ptr %928, align 8, !tbaa !10
  store double 1.000000e+00, ptr %929, align 8, !tbaa !12
  %930 = load ptr, ptr %927, align 8, !tbaa !9
  %931 = load ptr, ptr %930, align 8, !tbaa !10
  %932 = getelementptr inbounds i8, ptr %931, i64 8
  store double 1.000000e+00, ptr %932, align 8, !tbaa !12
  %933 = load ptr, ptr %927, align 8, !tbaa !9
  %934 = load ptr, ptr %933, align 8, !tbaa !10
  %935 = getelementptr inbounds i8, ptr %934, i64 16
  store double 2.000000e+00, ptr %935, align 8, !tbaa !12
  %936 = getelementptr inbounds i8, ptr %13, i64 56
  %937 = load ptr, ptr %936, align 8, !tbaa !9
  store i64 0, ptr %937, align 8, !tbaa !45
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef 2, ptr noundef nonnull %3, ptr noundef %0)
  %938 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %939 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %938, double noundef 5.000000e-01)
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, i1 noundef zeroext %939, ptr noundef %0)
  call void @_ZN11alglib_impl10minqpsetlcEPNS_10minqpstateEPNS_9ae_matrixEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %11, ptr noundef nonnull %13, i64 noundef 1, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %19, ptr noundef nonnull %4, ptr noundef %0)
  %940 = load i64, ptr %33, align 8, !tbaa !18
  %941 = icmp ne i64 %940, -5
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %941, ptr noundef nonnull @.str.8, i32 noundef 41915, ptr noundef nonnull @.str.421)
  %942 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %943 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %942, double noundef 5.000000e-01)
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 20, double noundef 1.000000e+03, ptr noundef nonnull %8, ptr noundef %0)
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef 20, i64 noundef 20, i64 noundef 0, ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef 20, i64 noundef 20, ptr noundef %0)
  %944 = getelementptr inbounds i8, ptr %8, i64 72
  br i1 %943, label %.preheader897.us, label %.preheader897

.preheader897.us:                                 ; preds = %926, %.split.us1012
  %.201010.us = phi i64 [ %945, %.split.us1012 ], [ 0, %926 ]
  br label %946

.split.us1012:                                    ; preds = %962
  %945 = add nuw nsw i64 %.201010.us, 1
  %exitcond1080.not = icmp eq i64 %945, 20
  br i1 %exitcond1080.not, label %.split1016.us, label %.preheader897.us, !llvm.loop !103

946:                                              ; preds = %.preheader897.us, %962
  %.98131009.us1013 = phi i64 [ 0, %.preheader897.us ], [ %963, %962 ]
  %.not.us.not = icmp ult i64 %.98131009.us1013, %.201010.us
  br i1 %.not.us.not, label %962, label %947

947:                                              ; preds = %946
  %948 = load ptr, ptr %944, align 8, !tbaa !9
  %949 = getelementptr inbounds ptr, ptr %948, i64 %.201010.us
  %950 = load ptr, ptr %949, align 8, !tbaa !10
  %951 = getelementptr inbounds double, ptr %950, i64 %.98131009.us1013
  %952 = load double, ptr %951, align 8, !tbaa !12
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.201010.us, i64 noundef %.98131009.us1013, double noundef %952, ptr noundef %0)
  %953 = load ptr, ptr %944, align 8, !tbaa !9
  %954 = getelementptr inbounds ptr, ptr %953, i64 %.201010.us
  %955 = load ptr, ptr %954, align 8, !tbaa !10
  %956 = getelementptr inbounds double, ptr %955, i64 %.98131009.us1013
  %957 = load double, ptr %956, align 8, !tbaa !12
  %958 = load ptr, ptr %484, align 8, !tbaa !9
  %959 = getelementptr inbounds ptr, ptr %958, i64 %.201010.us
  %960 = load ptr, ptr %959, align 8, !tbaa !10
  %961 = getelementptr inbounds double, ptr %960, i64 %.98131009.us1013
  store double %957, ptr %961, align 8, !tbaa !12
  br label %962

962:                                              ; preds = %947, %946
  %963 = add nuw nsw i64 %.98131009.us1013, 1
  %exitcond1079.not = icmp eq i64 %963, 20
  br i1 %exitcond1079.not, label %.split.us1012, label %946, !llvm.loop !104

.preheader897:                                    ; preds = %926, %.split.us
  %.201010 = phi i64 [ %982, %.split.us ], [ 0, %926 ]
  br label %964

964:                                              ; preds = %980, %.preheader897
  %.98131009.us = phi i64 [ 0, %.preheader897 ], [ %981, %980 ]
  %.not843.us = icmp ugt i64 %.98131009.us, %.201010
  br i1 %.not843.us, label %980, label %965

965:                                              ; preds = %964
  %966 = load ptr, ptr %944, align 8, !tbaa !9
  %967 = getelementptr inbounds ptr, ptr %966, i64 %.201010
  %968 = load ptr, ptr %967, align 8, !tbaa !10
  %969 = getelementptr inbounds double, ptr %968, i64 %.98131009.us
  %970 = load double, ptr %969, align 8, !tbaa !12
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.201010, i64 noundef %.98131009.us, double noundef %970, ptr noundef %0)
  %971 = load ptr, ptr %944, align 8, !tbaa !9
  %972 = getelementptr inbounds ptr, ptr %971, i64 %.201010
  %973 = load ptr, ptr %972, align 8, !tbaa !10
  %974 = getelementptr inbounds double, ptr %973, i64 %.98131009.us
  %975 = load double, ptr %974, align 8, !tbaa !12
  %976 = load ptr, ptr %484, align 8, !tbaa !9
  %977 = getelementptr inbounds ptr, ptr %976, i64 %.201010
  %978 = load ptr, ptr %977, align 8, !tbaa !10
  %979 = getelementptr inbounds double, ptr %978, i64 %.98131009.us
  store double %975, ptr %979, align 8, !tbaa !12
  br label %980

980:                                              ; preds = %965, %964
  %981 = add nuw nsw i64 %.98131009.us, 1
  %exitcond1077.not = icmp eq i64 %981, 20
  br i1 %exitcond1077.not, label %.split.us, label %964, !llvm.loop !104

.split.us:                                        ; preds = %980
  %982 = add nuw nsw i64 %.201010, 1
  %exitcond1078.not = icmp eq i64 %982, 20
  br i1 %exitcond1078.not, label %.split1016.us, label %.preheader897, !llvm.loop !103

.split1016.us:                                    ; preds = %.split.us, %.split.us1012
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef 20, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %24, i64 noundef 20, ptr noundef %0)
  br label %983

983:                                              ; preds = %.split1016.us, %983
  %.211017 = phi i64 [ 0, %.split1016.us ], [ %992, %983 ]
  %984 = call noundef double @_ZN11alglib_impl12randomnormalEPNS_8ae_stateE(ptr noundef %0)
  %985 = load ptr, ptr %29, align 8, !tbaa !9
  %986 = getelementptr inbounds double, ptr %985, i64 %.211017
  store double %984, ptr %986, align 8, !tbaa !12
  %987 = call noundef double @_ZN11alglib_impl12randomnormalEPNS_8ae_stateE(ptr noundef %0)
  %988 = fdiv double %987, 1.000000e+01
  %989 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 1.000000e+01, double noundef %988, ptr noundef %0)
  %990 = load ptr, ptr %32, align 8, !tbaa !9
  %991 = getelementptr inbounds double, ptr %990, i64 %.211017
  store double %989, ptr %991, align 8, !tbaa !12
  %992 = add nuw nsw i64 %.211017, 1
  %exitcond1081.not = icmp eq i64 %992, 20
  br i1 %exitcond1081.not, label %993, label %983, !llvm.loop !105

993:                                              ; preds = %983
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef 20, ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 1, i1 noundef zeroext false, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpsetscaleEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %24, ptr noundef %0)
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef %0)
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %7, i1 noundef zeroext %943, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %20, ptr noundef nonnull %4, ptr noundef %0)
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef 20, ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 1, i1 noundef zeroext false, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpsetscaleEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %24, ptr noundef %0)
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef %0)
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %12, i1 noundef zeroext %943, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %21, ptr noundef nonnull %4, ptr noundef %0)
  %994 = getelementptr inbounds i8, ptr %20, i64 56
  %995 = getelementptr inbounds i8, ptr %21, i64 56
  br label %996

996:                                              ; preds = %993, %996
  %.221018 = phi i64 [ 0, %993 ], [ %1006, %996 ]
  %997 = load ptr, ptr %994, align 8, !tbaa !9
  %998 = getelementptr inbounds double, ptr %997, i64 %.221018
  %999 = load double, ptr %998, align 8, !tbaa !12
  %1000 = load ptr, ptr %995, align 8, !tbaa !9
  %1001 = getelementptr inbounds double, ptr %1000, i64 %.221018
  %1002 = load double, ptr %1001, align 8, !tbaa !12
  %1003 = fsub double %999, %1002
  %1004 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1003, ptr noundef %0)
  %1005 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1004, double noundef 1.000000e-03)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %1005, ptr noundef nonnull @.str.8, i32 noundef 41976, ptr noundef nonnull @.str.422)
  %1006 = add nuw nsw i64 %.221018, 1
  %exitcond1082.not = icmp eq i64 %1006, 20
  br i1 %exitcond1082.not, label %1007, label %996, !llvm.loop !106

1007:                                             ; preds = %996
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %24, i64 noundef 100, ptr noundef %0)
  br label %1008

1008:                                             ; preds = %1007, %1008
  %.231019 = phi i64 [ 0, %1007 ], [ %1014, %1008 ]
  %1009 = call noundef double @_ZN11alglib_impl12randomnormalEPNS_8ae_stateE(ptr noundef %0)
  %1010 = fdiv double %1009, 1.000000e+01
  %1011 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 1.000000e+01, double noundef %1010, ptr noundef %0)
  %1012 = load ptr, ptr %32, align 8, !tbaa !9
  %1013 = getelementptr inbounds double, ptr %1012, i64 %.231019
  store double %1011, ptr %1013, align 8, !tbaa !12
  %1014 = add nuw nsw i64 %.231019, 1
  %exitcond1083.not = icmp eq i64 %1014, 100
  br i1 %exitcond1083.not, label %1015, label %1008, !llvm.loop !107

1015:                                             ; preds = %1008
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 100, double noundef 1.000000e+03, ptr noundef nonnull %7, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef 100, i64 noundef 100, ptr noundef %0)
  br label %.preheader

.preheader:                                       ; preds = %1015, %1051
  %.241021 = phi i64 [ 0, %1015 ], [ %1052, %1051 ]
  br label %1016

1016:                                             ; preds = %1016, %.preheader
  %.108141020 = phi i64 [ 0, %.preheader ], [ %1050, %1016 ]
  %1017 = load ptr, ptr %484, align 8, !tbaa !9
  %1018 = getelementptr inbounds ptr, ptr %1017, i64 %.241021
  %1019 = load ptr, ptr %1018, align 8, !tbaa !10
  %1020 = getelementptr inbounds double, ptr %1019, i64 %.108141020
  %1021 = load double, ptr %1020, align 8, !tbaa !12
  %1022 = load ptr, ptr %32, align 8, !tbaa !9
  %1023 = getelementptr inbounds double, ptr %1022, i64 %.241021
  %1024 = load double, ptr %1023, align 8, !tbaa !12
  %1025 = getelementptr inbounds double, ptr %1022, i64 %.108141020
  %1026 = load double, ptr %1025, align 8, !tbaa !12
  %1027 = fmul double %1024, %1026
  %1028 = fdiv double %1021, %1027
  %1029 = load ptr, ptr %944, align 8, !tbaa !9
  %1030 = getelementptr inbounds ptr, ptr %1029, i64 %.241021
  %1031 = load ptr, ptr %1030, align 8, !tbaa !10
  %1032 = getelementptr inbounds double, ptr %1031, i64 %.108141020
  store double %1028, ptr %1032, align 8, !tbaa !12
  %1033 = or disjoint i64 %.108141020, 1
  %1034 = load ptr, ptr %484, align 8, !tbaa !9
  %1035 = getelementptr inbounds ptr, ptr %1034, i64 %.241021
  %1036 = load ptr, ptr %1035, align 8, !tbaa !10
  %1037 = getelementptr inbounds double, ptr %1036, i64 %1033
  %1038 = load double, ptr %1037, align 8, !tbaa !12
  %1039 = load ptr, ptr %32, align 8, !tbaa !9
  %1040 = getelementptr inbounds double, ptr %1039, i64 %.241021
  %1041 = load double, ptr %1040, align 8, !tbaa !12
  %1042 = getelementptr inbounds double, ptr %1039, i64 %1033
  %1043 = load double, ptr %1042, align 8, !tbaa !12
  %1044 = fmul double %1041, %1043
  %1045 = fdiv double %1038, %1044
  %1046 = load ptr, ptr %944, align 8, !tbaa !9
  %1047 = getelementptr inbounds ptr, ptr %1046, i64 %.241021
  %1048 = load ptr, ptr %1047, align 8, !tbaa !10
  %1049 = getelementptr inbounds double, ptr %1048, i64 %1033
  store double %1045, ptr %1049, align 8, !tbaa !12
  %1050 = add nuw nsw i64 %.108141020, 2
  %exitcond1084.not.1 = icmp eq i64 %1050, 100
  br i1 %exitcond1084.not.1, label %1051, label %1016, !llvm.loop !108

1051:                                             ; preds = %1016
  %1052 = add nuw nsw i64 %.241021, 1
  %exitcond1085.not = icmp eq i64 %1052, 100
  br i1 %exitcond1085.not, label %1053, label %.preheader, !llvm.loop !109

1053:                                             ; preds = %1051
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef 100, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef 100, ptr noundef %0)
  %1054 = getelementptr inbounds i8, ptr %15, i64 56
  br label %1055

1055:                                             ; preds = %1053, %1055
  %.251022 = phi i64 [ 0, %1053 ], [ %1068, %1055 ]
  %1056 = call noundef double @_ZN11alglib_impl12randomnormalEPNS_8ae_stateE(ptr noundef %0)
  %1057 = load ptr, ptr %29, align 8, !tbaa !9
  %1058 = getelementptr inbounds double, ptr %1057, i64 %.251022
  store double %1056, ptr %1058, align 8, !tbaa !12
  %1059 = load ptr, ptr %29, align 8, !tbaa !9
  %1060 = getelementptr inbounds double, ptr %1059, i64 %.251022
  %1061 = load double, ptr %1060, align 8, !tbaa !12
  %1062 = load ptr, ptr %32, align 8, !tbaa !9
  %1063 = getelementptr inbounds double, ptr %1062, i64 %.251022
  %1064 = load double, ptr %1063, align 8, !tbaa !12
  %1065 = fdiv double %1061, %1064
  %1066 = load ptr, ptr %1054, align 8, !tbaa !9
  %1067 = getelementptr inbounds double, ptr %1066, i64 %.251022
  store double %1065, ptr %1067, align 8, !tbaa !12
  %1068 = add nuw nsw i64 %.251022, 1
  %exitcond1086.not = icmp eq i64 %1068, 100
  br i1 %exitcond1086.not, label %1069, label %1055, !llvm.loop !110

1069:                                             ; preds = %1055
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef 100, ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 1, i1 noundef zeroext false, ptr noundef %0)
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef %0)
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %7, i1 noundef zeroext true, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %20, ptr noundef nonnull %4, ptr noundef %0)
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef 100, ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 1, i1 noundef zeroext false, ptr noundef %0)
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %15, ptr noundef %0)
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %8, i1 noundef zeroext true, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpsetscaleEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %24, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %21, ptr noundef nonnull %4, ptr noundef %0)
  br label %1070

1070:                                             ; preds = %1069, %1070
  %.261023 = phi i64 [ 0, %1069 ], [ %1084, %1070 ]
  %1071 = load ptr, ptr %32, align 8, !tbaa !9
  %1072 = getelementptr inbounds double, ptr %1071, i64 %.261023
  %1073 = load double, ptr %1072, align 8, !tbaa !12
  %1074 = load ptr, ptr %994, align 8, !tbaa !9
  %1075 = getelementptr inbounds double, ptr %1074, i64 %.261023
  %1076 = load double, ptr %1075, align 8, !tbaa !12
  %1077 = load ptr, ptr %995, align 8, !tbaa !9
  %1078 = getelementptr inbounds double, ptr %1077, i64 %.261023
  %1079 = load double, ptr %1078, align 8, !tbaa !12
  %1080 = fneg double %1079
  %1081 = call double @llvm.fmuladd.f64(double %1073, double %1076, double %1080)
  %1082 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1081, ptr noundef %0)
  %1083 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1082, double noundef 1.000000e-03)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %26, i1 noundef zeroext %1083, ptr noundef nonnull @.str.8, i32 noundef 42041, ptr noundef nonnull @.str.423)
  %1084 = add nuw nsw i64 %.261023, 1
  %exitcond1087.not = icmp eq i64 %1084, 100
  br i1 %exitcond1087.not, label %1085, label %1070, !llvm.loop !111

1085:                                             ; preds = %1070
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef 40000, i64 noundef 40000, i64 noundef 0, ptr noundef nonnull %12, ptr noundef %0)
  br label %1086

1086:                                             ; preds = %1085, %1086
  %.271024 = phi i64 [ 0, %1085 ], [ %1090, %1086 ]
  %1087 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %1088 = fmul double %1087, -3.000000e+00
  %1089 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 1.000000e+01, double noundef %1088, ptr noundef %0)
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.271024, i64 noundef %.271024, double noundef %1089, ptr noundef %0)
  %1090 = add nuw nsw i64 %.271024, 1
  %exitcond1088.not = icmp eq i64 %1090, 40000
  br i1 %exitcond1088.not, label %1091, label %1086, !llvm.loop !112

1091:                                             ; preds = %1086
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef 40000, ptr noundef %0)
  br label %1092

1092:                                             ; preds = %1091, %1092
  %.281025 = phi i64 [ 0, %1091 ], [ %1096, %1092 ]
  %1093 = call noundef double @_ZN11alglib_impl12randomnormalEPNS_8ae_stateE(ptr noundef %0)
  %1094 = load ptr, ptr %29, align 8, !tbaa !9
  %1095 = getelementptr inbounds double, ptr %1094, i64 %.281025
  store double %1093, ptr %1095, align 8, !tbaa !12
  %1096 = add nuw nsw i64 %.281025, 1
  %exitcond1089.not = icmp eq i64 %1096, 40000
  br i1 %exitcond1089.not, label %1097, label %1092, !llvm.loop !113

1097:                                             ; preds = %1092
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef 40000, ptr noundef nonnull %3, ptr noundef %0)
  %1098 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %25, ptr noundef %0)
  %1099 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1098, double noundef 5.000000e-01)
  call void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 10, i1 noundef zeroext %1099, ptr noundef %0)
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef %0)
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %12, i1 noundef zeroext true, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %20, ptr noundef nonnull %4, ptr noundef %0)
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  br label %1100

1100:                                             ; preds = %1097, %921, %912, %773, %696, %553, %404, %252, %101
  %.0799.in = load i8, ptr %26, align 1, !tbaa !5, !range !100, !noundef !101
  %.0799 = trunc nuw i8 %.0799.in to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 35232, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  ret i1 %.0799
}

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

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

declare void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl14minqpsetoriginEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl21minqpsetstartingpointEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL27testminqpunit_densetosparsePN11alglib_impl9ae_matrixElPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN11alglib_impl19minqpsetalgoquickqpEPNS_10minqpstateEdddlbPNS_8ae_stateE(ptr noundef, double noundef, double noundef, double noundef, i64 noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #1

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

declare void @_ZN11alglib_impl13minqpsetscaleEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @_ZN11alglib_impl10minqpsetlcEPNS_10minqpstateEPNS_9ae_matrixEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl12randomnormalEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{!19, !20, i64 32}
!19 = !{!"_ZTSN11alglib_impl11minqpreportE", !20, i64 0, !20, i64 8, !20, i64 16, !20, i64 24, !20, i64 32}
!20 = !{!"long", !7, i64 0}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = !{!28, !13, i64 24}
!28 = !{!"_ZTSN11alglib_impl8ae_stateE", !20, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !11, i64 32, !29, i64 40, !11, i64 72, !30, i64 80, !11, i64 88, !31, i64 96, !11, i64 104, !11, i64 112, !11, i64 120}
!29 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!30 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!31 = !{!"long long", !7, i64 0}
!32 = !{!28, !13, i64 16}
!33 = distinct !{!33, !15}
!34 = distinct !{!34, !15}
!35 = distinct !{!35, !15}
!36 = distinct !{!36, !15}
!37 = distinct !{!37, !15}
!38 = distinct !{!38, !15}
!39 = distinct !{!39, !15}
!40 = distinct !{!40, !15}
!41 = distinct !{!41, !15}
!42 = distinct !{!42, !15}
!43 = distinct !{!43, !15}
!44 = distinct !{!44, !15}
!45 = !{!20, !20, i64 0}
!46 = !{!47, !20, i64 0}
!47 = !{!"_ZTSN11alglib_impl9ae_vectorE", !20, i64 0, !20, i64 8, !6, i64 16, !29, i64 24, !7, i64 56}
!48 = distinct !{!48, !15}
!49 = distinct !{!49, !15}
!50 = distinct !{!50, !15}
!51 = distinct !{!51, !52}
!52 = !{!"llvm.loop.unroll.disable"}
!53 = distinct !{!53, !15}
!54 = distinct !{!54, !15}
!55 = distinct !{!55, !52}
!56 = distinct !{!56, !15}
!57 = distinct !{!57, !15}
!58 = distinct !{!58, !15}
!59 = distinct !{!59, !15}
!60 = distinct !{!60, !15}
!61 = distinct !{!61, !15}
!62 = distinct !{!62, !52}
!63 = distinct !{!63, !15}
!64 = distinct !{!64, !15}
!65 = distinct !{!65, !15}
!66 = distinct !{!66, !15}
!67 = distinct !{!67, !15}
!68 = !{!69, !6, i64 40}
!69 = !{!"_ZTSN11alglib_impl10minqpstateE", !20, i64 0, !70, i64 8, !71, i64 80, !72, i64 112, !6, i64 136, !20, i64 144, !20, i64 152, !73, i64 160, !75, i64 1848, !6, i64 2216, !13, i64 2224, !13, i64 2232, !13, i64 2240, !47, i64 2248, !47, i64 2312, !47, i64 2376, !20, i64 2440, !47, i64 2448, !47, i64 2512, !47, i64 2576, !47, i64 2640, !47, i64 2704, !6, i64 2768, !74, i64 2776, !20, i64 2856, !20, i64 2864, !75, i64 2872, !20, i64 3240, !20, i64 3248, !47, i64 3256, !20, i64 3320, !20, i64 3328, !20, i64 3336, !20, i64 3344, !20, i64 3352, !47, i64 3360, !47, i64 3424, !74, i64 3488, !74, i64 3568, !6, i64 3648, !76, i64 3656, !88, i64 16496, !90, i64 23800}
!70 = !{!"_ZTSN11alglib_impl11qqpsettingsE", !13, i64 0, !13, i64 8, !13, i64 16, !20, i64 24, !6, i64 32, !6, i64 33, !20, i64 40, !20, i64 48, !20, i64 56, !20, i64 64}
!71 = !{!"_ZTSN11alglib_impl15qpbleicsettingsE", !13, i64 0, !13, i64 8, !13, i64 16, !20, i64 24}
!72 = !{!"_ZTSN11alglib_impl18qpdenseaulsettingsE", !13, i64 0, !20, i64 8, !13, i64 16}
!73 = !{!"_ZTSN11alglib_impl20convexquadraticmodelE", !20, i64 0, !20, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !74, i64 40, !74, i64 120, !47, i64 200, !47, i64 264, !47, i64 328, !47, i64 392, !47, i64 456, !74, i64 520, !74, i64 600, !47, i64 680, !47, i64 744, !47, i64 808, !13, i64 872, !13, i64 880, !47, i64 888, !47, i64 952, !20, i64 1016, !20, i64 1024, !74, i64 1032, !74, i64 1112, !74, i64 1192, !47, i64 1272, !47, i64 1336, !13, i64 1400, !47, i64 1408, !47, i64 1472, !47, i64 1536, !74, i64 1600, !6, i64 1680, !6, i64 1681, !6, i64 1682, !6, i64 1683}
!74 = !{!"_ZTSN11alglib_impl9ae_matrixE", !20, i64 0, !20, i64 8, !20, i64 16, !20, i64 24, !6, i64 32, !29, i64 40, !7, i64 72}
!75 = !{!"_ZTSN11alglib_impl12sparsematrixE", !47, i64 0, !47, i64 64, !47, i64 128, !47, i64 192, !47, i64 256, !20, i64 320, !20, i64 328, !20, i64 336, !20, i64 344, !20, i64 352, !20, i64 360}
!76 = !{!"_ZTSN11alglib_impl14qpbleicbuffersE", !77, i64 0, !87, i64 12536, !47, i64 12632, !47, i64 12696, !47, i64 12760, !20, i64 12824, !20, i64 12832}
!77 = !{!"_ZTSN11alglib_impl13minbleicstateE", !20, i64 0, !20, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !20, i64 40, !6, i64 48, !6, i64 49, !13, i64 56, !13, i64 64, !78, i64 72, !47, i64 4416, !20, i64 4480, !47, i64 4488, !47, i64 4552, !13, i64 4616, !47, i64 4624, !6, i64 4688, !6, i64 4689, !6, i64 4690, !6, i64 4691, !6, i64 4692, !6, i64 4693, !6, i64 4694, !80, i64 4696, !47, i64 4960, !47, i64 5024, !47, i64 5088, !47, i64 5152, !47, i64 5216, !47, i64 5280, !13, i64 5344, !13, i64 5352, !13, i64 5360, !47, i64 5368, !74, i64 5432, !20, i64 5512, !20, i64 5520, !13, i64 5528, !13, i64 5536, !13, i64 5544, !47, i64 5552, !47, i64 5616, !47, i64 5680, !47, i64 5744, !20, i64 5808, !20, i64 5816, !20, i64 5824, !20, i64 5832, !20, i64 5840, !13, i64 5848, !13, i64 5856, !13, i64 5864, !13, i64 5872, !20, i64 5880, !20, i64 5888, !47, i64 5896, !79, i64 5960, !13, i64 7600, !13, i64 7608, !13, i64 7616, !13, i64 7624, !13, i64 7632, !13, i64 7640, !13, i64 7648, !13, i64 7656, !13, i64 7664, !20, i64 7672, !13, i64 7680, !47, i64 7688, !47, i64 7752, !20, i64 7816, !20, i64 7824, !13, i64 7832, !13, i64 7840, !13, i64 7848, !47, i64 7856, !82, i64 7920, !13, i64 8112, !20, i64 8120, !74, i64 8128, !74, i64 8208, !47, i64 8288, !47, i64 8352, !20, i64 8416, !13, i64 8424, !20, i64 8432, !83, i64 8440, !47, i64 12408, !47, i64 12472}
!78 = !{!"_ZTSN11alglib_impl10sactivesetE", !20, i64 0, !20, i64 8, !47, i64 16, !6, i64 80, !47, i64 88, !47, i64 152, !47, i64 216, !6, i64 280, !74, i64 288, !74, i64 368, !74, i64 448, !20, i64 528, !47, i64 536, !20, i64 600, !20, i64 608, !6, i64 616, !6, i64 617, !47, i64 624, !47, i64 688, !47, i64 752, !47, i64 816, !74, i64 880, !20, i64 960, !20, i64 968, !47, i64 976, !47, i64 1040, !47, i64 1104, !47, i64 1168, !47, i64 1232, !47, i64 1296, !79, i64 1360, !47, i64 3000, !47, i64 3064, !47, i64 3128, !74, i64 3192, !47, i64 3272, !47, i64 3336, !47, i64 3400, !74, i64 3464, !74, i64 3544, !47, i64 3624, !47, i64 3688, !47, i64 3752, !74, i64 3816, !47, i64 3896, !47, i64 3960, !47, i64 4024, !47, i64 4088, !47, i64 4152, !47, i64 4216, !47, i64 4280}
!79 = !{!"_ZTSN11alglib_impl11snnlssolverE", !20, i64 0, !20, i64 8, !20, i64 16, !74, i64 24, !47, i64 104, !47, i64 168, !13, i64 232, !20, i64 240, !47, i64 248, !47, i64 312, !74, i64 376, !74, i64 456, !74, i64 536, !47, i64 616, !47, i64 680, !47, i64 744, !47, i64 808, !47, i64 872, !47, i64 936, !47, i64 1000, !47, i64 1064, !47, i64 1128, !47, i64 1192, !47, i64 1256, !47, i64 1320, !47, i64 1384, !47, i64 1448, !47, i64 1512, !47, i64 1576}
!80 = !{!"_ZTSN11alglib_impl10rcommstateE", !81, i64 0, !47, i64 8, !47, i64 72, !47, i64 136, !47, i64 200}
!81 = !{!"int", !7, i64 0}
!82 = !{!"_ZTSN11alglib_impl11linminstateE", !6, i64 0, !6, i64 1, !20, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184}
!83 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !20, i64 0, !20, i64 8, !6, i64 16, !47, i64 24, !20, i64 88, !47, i64 96, !47, i64 160, !47, i64 224, !74, i64 288, !47, i64 368, !47, i64 432, !20, i64 496, !6, i64 504, !6, i64 505, !13, i64 512, !13, i64 520, !6, i64 528, !84, i64 536, !13, i64 832, !13, i64 840, !85, i64 848, !85, i64 1152, !13, i64 1456, !13, i64 1464, !86, i64 1472, !86, i64 1784, !6, i64 2096, !47, i64 2104, !47, i64 2168, !74, i64 2232, !80, i64 2312, !47, i64 2576, !47, i64 2640, !47, i64 2704, !47, i64 2768, !47, i64 2832, !47, i64 2896, !47, i64 2960, !47, i64 3024, !74, i64 3088, !74, i64 3168, !47, i64 3248, !47, i64 3312, !47, i64 3376, !47, i64 3440, !47, i64 3504, !47, i64 3568, !47, i64 3632, !47, i64 3696, !47, i64 3760, !47, i64 3824, !74, i64 3888}
!84 = !{!"_ZTSN11alglib_impl14optguardreportE", !6, i64 0, !6, i64 1, !20, i64 8, !13, i64 16, !6, i64 24, !6, i64 25, !6, i64 26, !20, i64 32, !13, i64 40, !6, i64 48, !20, i64 56, !20, i64 64, !47, i64 72, !74, i64 136, !74, i64 216}
!85 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !6, i64 0, !20, i64 8, !47, i64 16, !47, i64 80, !20, i64 144, !47, i64 152, !47, i64 216, !20, i64 280, !20, i64 288, !20, i64 296}
!86 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !6, i64 0, !20, i64 8, !20, i64 16, !47, i64 24, !47, i64 88, !20, i64 152, !47, i64 160, !47, i64 224, !20, i64 288, !20, i64 296, !20, i64 304}
!87 = !{!"_ZTSN11alglib_impl14minbleicreportE", !20, i64 0, !20, i64 8, !20, i64 16, !20, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !20, i64 64, !20, i64 72, !20, i64 80, !20, i64 88}
!88 = !{!"_ZTSN11alglib_impl10qqpbuffersE", !20, i64 0, !20, i64 8, !74, i64 16, !75, i64 96, !6, i64 464, !13, i64 472, !13, i64 480, !13, i64 488, !47, i64 496, !47, i64 560, !47, i64 624, !47, i64 688, !47, i64 752, !47, i64 816, !47, i64 880, !47, i64 944, !47, i64 1008, !47, i64 1072, !47, i64 1136, !47, i64 1200, !47, i64 1264, !78, i64 1328, !47, i64 5672, !20, i64 5736, !20, i64 5744, !74, i64 5752, !75, i64 5832, !47, i64 6200, !47, i64 6264, !47, i64 6328, !47, i64 6392, !47, i64 6456, !47, i64 6520, !47, i64 6584, !47, i64 6648, !47, i64 6712, !89, i64 6776, !20, i64 7272, !20, i64 7280, !20, i64 7288, !20, i64 7296}
!89 = !{!"_ZTSN11alglib_impl13sparsebuffersE", !47, i64 0, !47, i64 64, !75, i64 128}
!90 = !{!"_ZTSN11alglib_impl17qpdenseaulbuffersE", !47, i64 0, !74, i64 64, !47, i64 144, !47, i64 208, !47, i64 272, !47, i64 336, !47, i64 400, !47, i64 464, !74, i64 528, !74, i64 608, !47, i64 688, !47, i64 752, !47, i64 816, !47, i64 880, !47, i64 944, !47, i64 1008, !70, i64 1072, !88, i64 1144, !47, i64 8448, !47, i64 8512, !74, i64 8576, !47, i64 8656, !47, i64 8720, !47, i64 8784, !73, i64 8848, !75, i64 10536, !74, i64 10904, !47, i64 10984, !47, i64 11048, !47, i64 11112, !47, i64 11176, !47, i64 11240, !47, i64 11304, !20, i64 11368, !20, i64 11376, !20, i64 11384, !20, i64 11392, !20, i64 11400, !20, i64 11408, !20, i64 11416, !20, i64 11424}
!91 = distinct !{!91, !15}
!92 = distinct !{!92, !52}
!93 = distinct !{!93, !15}
!94 = distinct !{!94, !15}
!95 = distinct !{!95, !15}
!96 = distinct !{!96, !15}
!97 = distinct !{!97, !52}
!98 = !{!69, !6, i64 41}
!99 = !{!69, !20, i64 64}
!100 = !{i8 0, i8 2}
!101 = !{}
!102 = distinct !{!102, !15}
!103 = distinct !{!103, !15}
!104 = distinct !{!104, !15}
!105 = distinct !{!105, !15}
!106 = distinct !{!106, !15}
!107 = distinct !{!107, !15}
!108 = distinct !{!108, !15}
!109 = distinct !{!109, !15}
!110 = distinct !{!110, !15}
!111 = distinct !{!111, !15}
!112 = distinct !{!112, !15}
!113 = distinct !{!113, !15}


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