; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z9functest2PN11alglib_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::ae_state" = type { i64, double, double, double, ptr, %"struct.alglib_impl::ae_dyn_block", ptr, i32, ptr, i64, ptr, ptr, ptr }

; 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 noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(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 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 noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) #1

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

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

declare noundef double @_ZN11alglib_impl6ae_logEdPNS_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 void @_ZN11alglib_impl9rmatrixmvEllPNS_9ae_matrixElllPNS_9ae_vectorElS3_lPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z9functest2PN11alglib_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 i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", 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 double, 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 i64, align 8
  %22 = alloca %"struct.alglib_impl::minqpreport", align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca %"struct.alglib_impl::ae_vector", align 8
  %30 = alloca %"struct.alglib_impl::ae_vector", align 8
  %31 = alloca i64, align 8
  %32 = alloca double, align 8
  %33 = alloca i8, align 1
  %34 = 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 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 64, 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 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #5
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %35, 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 %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 40, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 64, 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)
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_minqpstate_initEPvPNS_8ae_stateEb(ptr noundef %5, ptr noundef %36, i1 noundef zeroext true)
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %12, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %13, i64 noundef 0, i64 noundef 3, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %14, i64 noundef 0, i64 noundef 3, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %15, i64 noundef 0, i64 noundef 3, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %41, i1 noundef zeroext true)
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 3, ptr noundef %42, i1 noundef zeroext true)
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 3, ptr noundef %43, i1 noundef zeroext true)
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 3, ptr noundef %44, i1 noundef zeroext true)
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl17_minqpreport_initEPvPNS_8ae_stateEb(ptr noundef %22, ptr noundef %45, i1 noundef zeroext true)
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %26, i64 noundef 0, i64 noundef 3, ptr noundef %46, i1 noundef zeroext true)
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 3, 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 %28, i64 noundef 0, i64 noundef 3, ptr noundef %48, i1 noundef zeroext true)
  %49 = 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 3, ptr noundef %49, i1 noundef zeroext true)
  %50 = 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 %50, i1 noundef zeroext true)
  store double 1.000000e-03, ptr %25, align 8, !tbaa !9
  store i64 5, ptr %7, align 8, !tbaa !11
  store i64 1000, ptr %31, align 8, !tbaa !11
  store double 1.000000e+01, ptr %17, align 8, !tbaa !9
  store i64 1000, ptr %6, align 8, !tbaa !11
  store double 1.000000e+03, ptr %23, align 8, !tbaa !9
  store double -1.000000e+03, ptr %24, align 8, !tbaa !9
  store i64 1, ptr %8, align 8, !tbaa !11
  br label %51

51:                                               ; preds = %426, %1
  %52 = load i64, ptr %8, align 8, !tbaa !11
  %53 = load i64, ptr %7, align 8, !tbaa !11
  %54 = icmp sle i64 %52, %53
  br i1 %54, label %55, label %429

55:                                               ; preds = %51
  %56 = load i64, ptr %8, align 8, !tbaa !11
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %56, ptr noundef %57)
  %58 = load i64, ptr %8, align 8, !tbaa !11
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %58, ptr noundef %59)
  %60 = load i64, ptr %8, align 8, !tbaa !11
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %28, i64 noundef %60, ptr noundef %61)
  %62 = load i64, ptr %8, align 8, !tbaa !11
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %27, i64 noundef %62, ptr noundef %63)
  %64 = load i64, ptr %8, align 8, !tbaa !11
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %64, ptr noundef %65)
  %66 = load i64, ptr %8, align 8, !tbaa !11
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %66, ptr noundef %67)
  %68 = load i64, ptr %8, align 8, !tbaa !11
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %68, ptr noundef %69)
  %70 = load i64, ptr %8, align 8, !tbaa !11
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %70, ptr noundef %71)
  %72 = load i64, ptr %8, align 8, !tbaa !11
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %72, ptr noundef %73)
  %74 = load i64, ptr %8, align 8, !tbaa !11
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %29, i64 noundef %74, ptr noundef %75)
  %76 = load i64, ptr %8, align 8, !tbaa !11
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %76, ptr noundef %77)
  store i64 0, ptr %9, align 8, !tbaa !11
  br label %78

78:                                               ; preds = %422, %55
  %79 = load i64, ptr %9, align 8, !tbaa !11
  %80 = load i64, ptr %6, align 8, !tbaa !11
  %81 = icmp sle i64 %79, %80
  br i1 %81, label %82, label %425

82:                                               ; preds = %78
  %83 = load i64, ptr %8, align 8, !tbaa !11
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %84)
  %86 = load i64, ptr %31, align 8, !tbaa !11
  %87 = sitofp i64 %86 to double
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = call noundef double @_ZN11alglib_impl6ae_logEdPNS_8ae_stateE(double noundef %87, ptr noundef %88)
  %90 = fmul double %85, %89
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %90, ptr noundef %91)
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %83, double noundef %92, ptr noundef %12, ptr noundef %93)
  %94 = load i64, ptr %8, align 8, !tbaa !11
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %94, ptr noundef %5, ptr noundef %95)
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL29testminqpunit_setrandomalgobcPN11alglib_impl10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %96)
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef %5, ptr noundef %12, i1 noundef zeroext false, ptr noundef %97)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %98

98:                                               ; preds = %115, %82
  %99 = load i64, ptr %10, align 8, !tbaa !11
  %100 = load i64, ptr %8, align 8, !tbaa !11
  %101 = sub nsw i64 %100, 1
  %102 = icmp sle i64 %99, %101
  br i1 %102, label %103, label %118

103:                                              ; preds = %98
  %104 = load double, ptr %23, align 8, !tbaa !9
  %105 = load double, ptr %24, align 8, !tbaa !9
  %106 = fsub double %104, %105
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %107)
  %109 = load double, ptr %24, align 8, !tbaa !9
  %110 = call double @llvm.fmuladd.f64(double %106, double %108, double %109)
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %112 = load ptr, ptr %111, align 8, !tbaa !13
  %113 = load i64, ptr %10, align 8, !tbaa !11
  %114 = getelementptr inbounds double, ptr %112, i64 %113
  store double %110, ptr %114, align 8, !tbaa !9
  br label %115

115:                                              ; preds = %103
  %116 = load i64, ptr %10, align 8, !tbaa !11
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %10, align 8, !tbaa !11
  br label %98, !llvm.loop !14

118:                                              ; preds = %98
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %119

119:                                              ; preds = %163, %118
  %120 = load i64, ptr %10, align 8, !tbaa !11
  %121 = load i64, ptr %8, align 8, !tbaa !11
  %122 = sub nsw i64 %121, 1
  %123 = icmp sle i64 %120, %122
  br i1 %123, label %124, label %166

124:                                              ; preds = %119
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !13
  %127 = load i64, ptr %10, align 8, !tbaa !11
  %128 = getelementptr inbounds double, ptr %126, i64 %127
  store double 0.000000e+00, ptr %128, align 8, !tbaa !9
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %129

129:                                              ; preds = %159, %124
  %130 = load i64, ptr %11, align 8, !tbaa !11
  %131 = load i64, ptr %8, align 8, !tbaa !11
  %132 = sub nsw i64 %131, 1
  %133 = icmp sle i64 %130, %132
  br i1 %133, label %134, label %162

134:                                              ; preds = %129
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %136 = load ptr, ptr %135, align 8, !tbaa !13
  %137 = load i64, ptr %10, align 8, !tbaa !11
  %138 = getelementptr inbounds double, ptr %136, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !9
  %140 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !13
  %142 = load i64, ptr %11, align 8, !tbaa !11
  %143 = getelementptr inbounds double, ptr %141, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !9
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %146 = load ptr, ptr %145, align 8, !tbaa !13
  %147 = load i64, ptr %11, align 8, !tbaa !11
  %148 = getelementptr inbounds ptr, ptr %146, i64 %147
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  %150 = load i64, ptr %10, align 8, !tbaa !11
  %151 = getelementptr inbounds double, ptr %149, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !9
  %153 = fneg double %144
  %154 = call double @llvm.fmuladd.f64(double %153, double %152, double %139)
  %155 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %156 = load ptr, ptr %155, align 8, !tbaa !13
  %157 = load i64, ptr %10, align 8, !tbaa !11
  %158 = getelementptr inbounds double, ptr %156, i64 %157
  store double %154, ptr %158, align 8, !tbaa !9
  br label %159

159:                                              ; preds = %134
  %160 = load i64, ptr %11, align 8, !tbaa !11
  %161 = add nsw i64 %160, 1
  store i64 %161, ptr %11, align 8, !tbaa !11
  br label %129, !llvm.loop !16

162:                                              ; preds = %129
  br label %163

163:                                              ; preds = %162
  %164 = load i64, ptr %10, align 8, !tbaa !11
  %165 = add nsw i64 %164, 1
  store i64 %165, ptr %10, align 8, !tbaa !11
  br label %119, !llvm.loop !17

166:                                              ; preds = %119
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %26, ptr noundef %167)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %168

168:                                              ; preds = %266, %166
  %169 = load i64, ptr %10, align 8, !tbaa !11
  %170 = load i64, ptr %8, align 8, !tbaa !11
  %171 = sub nsw i64 %170, 1
  %172 = icmp sle i64 %169, %171
  br i1 %172, label %173, label %269

173:                                              ; preds = %168
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  %175 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 4, ptr noundef %174)
  store i64 %175, ptr %21, align 8, !tbaa !11
  %176 = load i64, ptr %21, align 8, !tbaa !11
  %177 = icmp eq i64 %176, 0
  br i1 %177, label %178, label %193

178:                                              ; preds = %173
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %179, i32 0, i32 3
  %181 = load double, ptr %180, align 8, !tbaa !18
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !13
  %184 = load i64, ptr %10, align 8, !tbaa !11
  %185 = getelementptr inbounds double, ptr %183, i64 %184
  store double %181, ptr %185, align 8, !tbaa !9
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %186, i32 0, i32 2
  %188 = load double, ptr %187, align 8, !tbaa !23
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !13
  %191 = load i64, ptr %10, align 8, !tbaa !11
  %192 = getelementptr inbounds double, ptr %190, i64 %191
  store double %188, ptr %192, align 8, !tbaa !9
  br label %265

193:                                              ; preds = %173
  %194 = load i64, ptr %21, align 8, !tbaa !11
  %195 = icmp eq i64 %194, 1
  br i1 %195, label %196, label %215

196:                                              ; preds = %193
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %197, i32 0, i32 3
  %199 = load double, ptr %198, align 8, !tbaa !18
  %200 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %201 = load ptr, ptr %200, align 8, !tbaa !13
  %202 = load i64, ptr %10, align 8, !tbaa !11
  %203 = getelementptr inbounds double, ptr %201, i64 %202
  store double %199, ptr %203, align 8, !tbaa !9
  %204 = load double, ptr %23, align 8, !tbaa !9
  %205 = load double, ptr %24, align 8, !tbaa !9
  %206 = fsub double %204, %205
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %207)
  %209 = load double, ptr %24, align 8, !tbaa !9
  %210 = call double @llvm.fmuladd.f64(double %206, double %208, double %209)
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !13
  %213 = load i64, ptr %10, align 8, !tbaa !11
  %214 = getelementptr inbounds double, ptr %212, i64 %213
  store double %210, ptr %214, align 8, !tbaa !9
  br label %264

215:                                              ; preds = %193
  %216 = load i64, ptr %21, align 8, !tbaa !11
  %217 = icmp eq i64 %216, 2
  br i1 %217, label %218, label %237

218:                                              ; preds = %215
  %219 = load double, ptr %23, align 8, !tbaa !9
  %220 = load double, ptr %24, align 8, !tbaa !9
  %221 = fsub double %219, %220
  %222 = load ptr, ptr %3, align 8, !tbaa !5
  %223 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %222)
  %224 = load double, ptr %24, align 8, !tbaa !9
  %225 = call double @llvm.fmuladd.f64(double %221, double %223, double %224)
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %227 = load ptr, ptr %226, align 8, !tbaa !13
  %228 = load i64, ptr %10, align 8, !tbaa !11
  %229 = getelementptr inbounds double, ptr %227, i64 %228
  store double %225, ptr %229, align 8, !tbaa !9
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %230, i32 0, i32 2
  %232 = load double, ptr %231, align 8, !tbaa !23
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %234 = load ptr, ptr %233, align 8, !tbaa !13
  %235 = load i64, ptr %10, align 8, !tbaa !11
  %236 = getelementptr inbounds double, ptr %234, i64 %235
  store double %232, ptr %236, align 8, !tbaa !9
  br label %263

237:                                              ; preds = %215
  %238 = load double, ptr %23, align 8, !tbaa !9
  %239 = load double, ptr %24, align 8, !tbaa !9
  %240 = fsub double %238, %239
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %241)
  %243 = load double, ptr %24, align 8, !tbaa !9
  %244 = call double @llvm.fmuladd.f64(double %240, double %242, double %243)
  %245 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %246 = load ptr, ptr %245, align 8, !tbaa !13
  %247 = load i64, ptr %10, align 8, !tbaa !11
  %248 = getelementptr inbounds double, ptr %246, i64 %247
  store double %244, ptr %248, align 8, !tbaa !9
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %250 = load ptr, ptr %249, align 8, !tbaa !13
  %251 = load i64, ptr %10, align 8, !tbaa !11
  %252 = getelementptr inbounds double, ptr %250, i64 %251
  %253 = load double, ptr %252, align 8, !tbaa !9
  %254 = load double, ptr %17, align 8, !tbaa !9
  %255 = load ptr, ptr %3, align 8, !tbaa !5
  %256 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %255)
  %257 = call double @llvm.fmuladd.f64(double %254, double %256, double %253)
  %258 = fadd double %257, 1.000000e-02
  %259 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %260 = load ptr, ptr %259, align 8, !tbaa !13
  %261 = load i64, ptr %10, align 8, !tbaa !11
  %262 = getelementptr inbounds double, ptr %260, i64 %261
  store double %258, ptr %262, align 8, !tbaa !9
  br label %263

263:                                              ; preds = %237, %218
  br label %264

264:                                              ; preds = %263, %196
  br label %265

265:                                              ; preds = %264, %178
  br label %266

266:                                              ; preds = %265
  %267 = load i64, ptr %10, align 8, !tbaa !11
  %268 = add nsw i64 %267, 1
  store i64 %268, ptr %10, align 8, !tbaa !11
  br label %168, !llvm.loop !24

269:                                              ; preds = %168
  %270 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %14, ptr noundef %13, ptr noundef %270)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %271

271:                                              ; preds = %288, %269
  %272 = load i64, ptr %10, align 8, !tbaa !11
  %273 = load i64, ptr %8, align 8, !tbaa !11
  %274 = sub nsw i64 %273, 1
  %275 = icmp sle i64 %272, %274
  br i1 %275, label %276, label %291

276:                                              ; preds = %271
  %277 = load double, ptr %23, align 8, !tbaa !9
  %278 = load double, ptr %24, align 8, !tbaa !9
  %279 = fsub double %277, %278
  %280 = load ptr, ptr %3, align 8, !tbaa !5
  %281 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %280)
  %282 = load double, ptr %24, align 8, !tbaa !9
  %283 = call double @llvm.fmuladd.f64(double %279, double %281, double %282)
  %284 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %285 = load ptr, ptr %284, align 8, !tbaa !13
  %286 = load i64, ptr %10, align 8, !tbaa !11
  %287 = getelementptr inbounds double, ptr %285, i64 %286
  store double %283, ptr %287, align 8, !tbaa !9
  br label %288

288:                                              ; preds = %276
  %289 = load i64, ptr %10, align 8, !tbaa !11
  %290 = add nsw i64 %289, 1
  store i64 %290, ptr %10, align 8, !tbaa !11
  br label %271, !llvm.loop !25

291:                                              ; preds = %271
  %292 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14minqpsetoriginEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %19, ptr noundef %292)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %293

293:                                              ; preds = %337, %291
  %294 = load i64, ptr %10, align 8, !tbaa !11
  %295 = load i64, ptr %8, align 8, !tbaa !11
  %296 = sub nsw i64 %295, 1
  %297 = icmp sle i64 %294, %296
  br i1 %297, label %298, label %340

298:                                              ; preds = %293
  %299 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %300 = load ptr, ptr %299, align 8, !tbaa !13
  %301 = load i64, ptr %10, align 8, !tbaa !11
  %302 = getelementptr inbounds double, ptr %300, i64 %301
  store double 0.000000e+00, ptr %302, align 8, !tbaa !9
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %303

303:                                              ; preds = %333, %298
  %304 = load i64, ptr %11, align 8, !tbaa !11
  %305 = load i64, ptr %8, align 8, !tbaa !11
  %306 = sub nsw i64 %305, 1
  %307 = icmp sle i64 %304, %306
  br i1 %307, label %308, label %336

308:                                              ; preds = %303
  %309 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %310 = load ptr, ptr %309, align 8, !tbaa !13
  %311 = load i64, ptr %10, align 8, !tbaa !11
  %312 = getelementptr inbounds double, ptr %310, i64 %311
  %313 = load double, ptr %312, align 8, !tbaa !9
  %314 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %315 = load ptr, ptr %314, align 8, !tbaa !13
  %316 = load i64, ptr %11, align 8, !tbaa !11
  %317 = getelementptr inbounds double, ptr %315, i64 %316
  %318 = load double, ptr %317, align 8, !tbaa !9
  %319 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %320 = load ptr, ptr %319, align 8, !tbaa !13
  %321 = load i64, ptr %11, align 8, !tbaa !11
  %322 = getelementptr inbounds ptr, ptr %320, i64 %321
  %323 = load ptr, ptr %322, align 8, !tbaa !5
  %324 = load i64, ptr %10, align 8, !tbaa !11
  %325 = getelementptr inbounds double, ptr %323, i64 %324
  %326 = load double, ptr %325, align 8, !tbaa !9
  %327 = fneg double %318
  %328 = call double @llvm.fmuladd.f64(double %327, double %326, double %313)
  %329 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %330 = load ptr, ptr %329, align 8, !tbaa !13
  %331 = load i64, ptr %10, align 8, !tbaa !11
  %332 = getelementptr inbounds double, ptr %330, i64 %331
  store double %328, ptr %332, align 8, !tbaa !9
  br label %333

333:                                              ; preds = %308
  %334 = load i64, ptr %11, align 8, !tbaa !11
  %335 = add nsw i64 %334, 1
  store i64 %335, ptr %11, align 8, !tbaa !11
  br label %303, !llvm.loop !26

336:                                              ; preds = %303
  br label %337

337:                                              ; preds = %336
  %338 = load i64, ptr %10, align 8, !tbaa !11
  %339 = add nsw i64 %338, 1
  store i64 %339, ptr %10, align 8, !tbaa !11
  br label %293, !llvm.loop !27

340:                                              ; preds = %293
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %341

341:                                              ; preds = %358, %340
  %342 = load i64, ptr %10, align 8, !tbaa !11
  %343 = load i64, ptr %8, align 8, !tbaa !11
  %344 = sub nsw i64 %343, 1
  %345 = icmp sle i64 %342, %344
  br i1 %345, label %346, label %361

346:                                              ; preds = %341
  %347 = load double, ptr %23, align 8, !tbaa !9
  %348 = load double, ptr %24, align 8, !tbaa !9
  %349 = fsub double %347, %348
  %350 = load ptr, ptr %3, align 8, !tbaa !5
  %351 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %350)
  %352 = load double, ptr %24, align 8, !tbaa !9
  %353 = call double @llvm.fmuladd.f64(double %349, double %351, double %352)
  %354 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %355 = load ptr, ptr %354, align 8, !tbaa !13
  %356 = load i64, ptr %10, align 8, !tbaa !11
  %357 = getelementptr inbounds double, ptr %355, i64 %356
  store double %353, ptr %357, align 8, !tbaa !9
  br label %358

358:                                              ; preds = %346
  %359 = load i64, ptr %10, align 8, !tbaa !11
  %360 = add nsw i64 %359, 1
  store i64 %360, ptr %10, align 8, !tbaa !11
  br label %341, !llvm.loop !28

361:                                              ; preds = %341
  %362 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetstartingpointEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %18, ptr noundef %362)
  %363 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %363)
  %364 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %15, ptr noundef %22, ptr noundef %364)
  %365 = load i64, ptr %8, align 8, !tbaa !11
  %366 = load i64, ptr %8, align 8, !tbaa !11
  %367 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9rmatrixmvEllPNS_9ae_matrixElllPNS_9ae_vectorElS3_lPNS_8ae_stateE(i64 noundef %365, i64 noundef %366, ptr noundef %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %15, i64 noundef 0, ptr noundef %29, i64 noundef 0, ptr noundef %367)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %368

368:                                              ; preds = %395, %361
  %369 = load i64, ptr %10, align 8, !tbaa !11
  %370 = load i64, ptr %8, align 8, !tbaa !11
  %371 = sub nsw i64 %370, 1
  %372 = icmp sle i64 %369, %371
  br i1 %372, label %373, label %398

373:                                              ; preds = %368
  %374 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %375 = load ptr, ptr %374, align 8, !tbaa !13
  %376 = load i64, ptr %10, align 8, !tbaa !11
  %377 = getelementptr inbounds double, ptr %375, i64 %376
  %378 = load double, ptr %377, align 8, !tbaa !9
  %379 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %380 = load ptr, ptr %379, align 8, !tbaa !13
  %381 = load i64, ptr %10, align 8, !tbaa !11
  %382 = getelementptr inbounds double, ptr %380, i64 %381
  %383 = load double, ptr %382, align 8, !tbaa !9
  %384 = fadd double %378, %383
  %385 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %386 = load ptr, ptr %385, align 8, !tbaa !13
  %387 = load i64, ptr %10, align 8, !tbaa !11
  %388 = getelementptr inbounds double, ptr %386, i64 %387
  %389 = load double, ptr %388, align 8, !tbaa !9
  %390 = fadd double %384, %389
  %391 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %392 = load ptr, ptr %391, align 8, !tbaa !13
  %393 = load i64, ptr %10, align 8, !tbaa !11
  %394 = getelementptr inbounds double, ptr %392, i64 %393
  store double %390, ptr %394, align 8, !tbaa !9
  br label %395

395:                                              ; preds = %373
  %396 = load i64, ptr %10, align 8, !tbaa !11
  %397 = add nsw i64 %396, 1
  store i64 %397, ptr %10, align 8, !tbaa !11
  br label %368, !llvm.loop !29

398:                                              ; preds = %368
  %399 = load i64, ptr %8, align 8, !tbaa !11
  %400 = load ptr, ptr %3, align 8, !tbaa !5
  %401 = call noundef double @_ZL35testminqpunit_projectedantigradnormlPN11alglib_impl9ae_vectorES1_S1_S1_PNS_8ae_stateE(i64 noundef %399, ptr noundef %15, ptr noundef %27, ptr noundef %14, ptr noundef %13, ptr noundef %400)
  store double %401, ptr %32, align 8, !tbaa !9
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %402

402:                                              ; preds = %418, %398
  %403 = load i64, ptr %10, align 8, !tbaa !11
  %404 = load i64, ptr %8, align 8, !tbaa !11
  %405 = sub nsw i64 %404, 1
  %406 = icmp sle i64 %403, %405
  br i1 %406, label %407, label %421

407:                                              ; preds = %402
  %408 = load double, ptr %32, align 8, !tbaa !9
  %409 = load ptr, ptr %3, align 8, !tbaa !5
  %410 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %408, ptr noundef %409)
  %411 = load double, ptr %25, align 8, !tbaa !9
  %412 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %410, double noundef %411)
  br i1 %412, label %413, label %417

413:                                              ; preds = %407
  store i8 1, ptr %33, align 1, !tbaa !30
  %414 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %414)
  %415 = load i8, ptr %33, align 1, !tbaa !30, !range !32, !noundef !33
  %416 = trunc i8 %415 to i1
  store i1 %416, ptr %2, align 1
  store i32 1, ptr %34, align 4
  br label %433

417:                                              ; preds = %407
  br label %418

418:                                              ; preds = %417
  %419 = load i64, ptr %10, align 8, !tbaa !11
  %420 = add nsw i64 %419, 1
  store i64 %420, ptr %10, align 8, !tbaa !11
  br label %402, !llvm.loop !34

421:                                              ; preds = %402
  br label %422

422:                                              ; preds = %421
  %423 = load i64, ptr %9, align 8, !tbaa !11
  %424 = add nsw i64 %423, 1
  store i64 %424, ptr %9, align 8, !tbaa !11
  br label %78, !llvm.loop !35

425:                                              ; preds = %78
  br label %426

426:                                              ; preds = %425
  %427 = load i64, ptr %8, align 8, !tbaa !11
  %428 = add nsw i64 %427, 1
  store i64 %428, ptr %8, align 8, !tbaa !11
  br label %51, !llvm.loop !36

429:                                              ; preds = %51
  store i8 0, ptr %33, align 1, !tbaa !30
  %430 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %430)
  %431 = load i8, ptr %33, align 1, !tbaa !30, !range !32, !noundef !33
  %432 = trunc i8 %431 to i1
  store i1 %432, ptr %2, align 1
  store i32 1, ptr %34, align 4
  br label %433

433:                                              ; preds = %429, %413
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 64, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 35232, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  %434 = load i1, ptr %2, align 1
  ret i1 %434
}

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

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

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 noundef double @_ZL35testminqpunit_projectedantigradnormlPN11alglib_impl9ae_vectorES1_S1_S1_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{!19, !10, i64 24}
!19 = !{!"_ZTSN11alglib_impl8ae_stateE", !12, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !20, i64 40, !6, i64 72, !21, i64 80, !6, i64 88, !22, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!20 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!22 = !{!"long long", !7, i64 0}
!23 = !{!19, !10, i64 16}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}
!30 = !{!31, !31, i64 0}
!31 = !{!"bool", !7, i64 0}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = distinct !{!34, !15}
!35 = distinct !{!35, !15}
!36 = distinct !{!36, !15}


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

; 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 noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(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 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 noundef double @_ZN11alglib_impl7ae_fabsEdPNS_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 double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl6ae_logEdPNS_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 void @_ZN11alglib_impl9rmatrixmvEllPNS_9ae_matrixElllPNS_9ae_vectorElS3_lPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z9functest2PN11alglib_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::ae_matrix", align 8
  %5 = alloca %"struct.alglib_impl::ae_vector", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::minqpreport", 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
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 35232, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #5
  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(80) %4, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %5, i8 0, i64 64, 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(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %12, i8 0, i64 40, 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 @_ZN11alglib_impl16_minqpstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %4, i64 noundef 0, 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 %5, 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 %6, 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 %7, 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 %8, 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 %9, 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 %10, 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 %11, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl17_minqpreport_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 3, 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)
  %18 = getelementptr inbounds i8, ptr %11, i64 56
  %19 = getelementptr inbounds i8, ptr %13, i64 56
  %20 = getelementptr inbounds i8, ptr %4, i64 72
  %21 = getelementptr inbounds i8, ptr %6, i64 56
  %22 = getelementptr inbounds i8, ptr %0, i64 16
  %23 = getelementptr inbounds i8, ptr %5, i64 56
  %24 = getelementptr inbounds i8, ptr %0, i64 24
  %25 = getelementptr inbounds i8, ptr %10, i64 56
  %26 = getelementptr inbounds i8, ptr %15, i64 56
  %27 = getelementptr inbounds i8, ptr %9, i64 56
  %28 = getelementptr inbounds i8, ptr %16, i64 56
  %29 = getelementptr inbounds i8, ptr %14, i64 56
  br label %30

30:                                               ; preds = %1, %309
  %31 = phi i1 [ true, %1 ], [ %311, %309 ]
  %.0164193 = phi i64 [ 1, %1 ], [ %310, %309 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0164193, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %.0164193, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %.0164193, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %.0164193, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.0164193, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %.0164193, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0164193, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0164193, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0164193, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %.0164193, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %.0164193, ptr noundef %0)
  %exitcond196.not = icmp eq i64 %.0164193, 1
  %exitcond196.not.1 = icmp eq i64 %.0164193, 2
  %exitcond196.not.2 = icmp eq i64 %.0164193, 3
  %exitcond196.not.3 = icmp eq i64 %.0164193, 4
  %exitcond200.not = icmp eq i64 %.0164193, 1
  %exitcond200.not.1 = icmp eq i64 %.0164193, 2
  %exitcond200.not.2 = icmp eq i64 %.0164193, 3
  %exitcond200.not.3 = icmp eq i64 %.0164193, 4
  %exitcond203.not = icmp eq i64 %.0164193, 1
  %exitcond203.not.1 = icmp eq i64 %.0164193, 2
  %exitcond203.not.2 = icmp eq i64 %.0164193, 3
  %exitcond203.not.3 = icmp eq i64 %.0164193, 4
  br label %32

32:                                               ; preds = %30, %307
  %.0165192 = phi i64 [ 0, %30 ], [ %308, %307 ]
  %33 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %34 = call noundef double @_ZN11alglib_impl6ae_logEdPNS_8ae_stateE(double noundef 1.000000e+03, ptr noundef %0)
  %35 = fmul double %33, %34
  %36 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %35, ptr noundef %0)
  call void @_ZN11alglib_impl16spdmatrixrndcondEldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %.0164193, double noundef %36, ptr noundef nonnull %4, ptr noundef %0)
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %.0164193, ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZL29testminqpunit_setrandomalgobcPN11alglib_impl10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %4, i1 noundef zeroext false, ptr noundef %0)
  br label %37

37:                                               ; preds = %32, %37
  %.0166182 = phi i64 [ 0, %32 ], [ %42, %37 ]
  %38 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %39 = call double @llvm.fmuladd.f64(double %38, double 2.000000e+03, double -1.000000e+03)
  %40 = load ptr, ptr %18, align 8, !tbaa !5
  %41 = getelementptr inbounds double, ptr %40, i64 %.0166182
  store double %39, ptr %41, align 8, !tbaa !8
  %42 = add nuw nsw i64 %.0166182, 1
  %exitcond.not = icmp eq i64 %42, %.0164193
  br i1 %exitcond.not, label %.preheader180, label %37, !llvm.loop !10

.preheader180:                                    ; preds = %37, %112
  %.1184 = phi i64 [ %113, %112 ], [ 0, %37 ]
  %43 = load ptr, ptr %19, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i64 %.1184
  store double 0.000000e+00, ptr %44, align 8, !tbaa !8
  %45 = load ptr, ptr %19, align 8, !tbaa !5
  %46 = getelementptr inbounds double, ptr %45, i64 %.1184
  %47 = load double, ptr %46, align 8, !tbaa !8
  %48 = load ptr, ptr %18, align 8, !tbaa !5
  %49 = load double, ptr %48, align 8, !tbaa !8
  %50 = load ptr, ptr %20, align 8, !tbaa !5
  %51 = load ptr, ptr %50, align 8, !tbaa !12
  %52 = getelementptr inbounds double, ptr %51, i64 %.1184
  %53 = load double, ptr %52, align 8, !tbaa !8
  %54 = fneg double %49
  %55 = call double @llvm.fmuladd.f64(double %54, double %53, double %47)
  store double %55, ptr %46, align 8, !tbaa !8
  br i1 %exitcond196.not, label %112, label %56, !llvm.loop !14

56:                                               ; preds = %.preheader180
  %57 = load ptr, ptr %19, align 8, !tbaa !5
  %58 = getelementptr inbounds double, ptr %57, i64 %.1184
  %59 = load double, ptr %58, align 8, !tbaa !8
  %60 = load ptr, ptr %18, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load double, ptr %61, align 8, !tbaa !8
  %63 = load ptr, ptr %20, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  %65 = load ptr, ptr %64, align 8, !tbaa !12
  %66 = getelementptr inbounds double, ptr %65, i64 %.1184
  %67 = load double, ptr %66, align 8, !tbaa !8
  %68 = fneg double %62
  %69 = call double @llvm.fmuladd.f64(double %68, double %67, double %59)
  store double %69, ptr %58, align 8, !tbaa !8
  br i1 %exitcond196.not.1, label %112, label %70, !llvm.loop !14

70:                                               ; preds = %56
  %71 = load ptr, ptr %19, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i64 %.1184
  %73 = load double, ptr %72, align 8, !tbaa !8
  %74 = load ptr, ptr %18, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  %76 = load double, ptr %75, align 8, !tbaa !8
  %77 = load ptr, ptr %20, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 16
  %79 = load ptr, ptr %78, align 8, !tbaa !12
  %80 = getelementptr inbounds double, ptr %79, i64 %.1184
  %81 = load double, ptr %80, align 8, !tbaa !8
  %82 = fneg double %76
  %83 = call double @llvm.fmuladd.f64(double %82, double %81, double %73)
  store double %83, ptr %72, align 8, !tbaa !8
  br i1 %exitcond196.not.2, label %112, label %84, !llvm.loop !14

84:                                               ; preds = %70
  %85 = load ptr, ptr %19, align 8, !tbaa !5
  %86 = getelementptr inbounds double, ptr %85, i64 %.1184
  %87 = load double, ptr %86, align 8, !tbaa !8
  %88 = load ptr, ptr %18, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 24
  %90 = load double, ptr %89, align 8, !tbaa !8
  %91 = load ptr, ptr %20, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 24
  %93 = load ptr, ptr %92, align 8, !tbaa !12
  %94 = getelementptr inbounds double, ptr %93, i64 %.1184
  %95 = load double, ptr %94, align 8, !tbaa !8
  %96 = fneg double %90
  %97 = call double @llvm.fmuladd.f64(double %96, double %95, double %87)
  store double %97, ptr %86, align 8, !tbaa !8
  br i1 %exitcond196.not.3, label %112, label %98, !llvm.loop !14

98:                                               ; preds = %84
  %99 = load ptr, ptr %19, align 8, !tbaa !5
  %100 = getelementptr inbounds double, ptr %99, i64 %.1184
  %101 = load double, ptr %100, align 8, !tbaa !8
  %102 = load ptr, ptr %18, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 32
  %104 = load double, ptr %103, align 8, !tbaa !8
  %105 = load ptr, ptr %20, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i64 32
  %107 = load ptr, ptr %106, align 8, !tbaa !12
  %108 = getelementptr inbounds double, ptr %107, i64 %.1184
  %109 = load double, ptr %108, align 8, !tbaa !8
  %110 = fneg double %104
  %111 = call double @llvm.fmuladd.f64(double %110, double %109, double %101)
  store double %111, ptr %100, align 8, !tbaa !8
  br label %112

112:                                              ; preds = %98, %84, %70, %56, %.preheader180
  %113 = add nuw nsw i64 %.1184, 1
  %exitcond197.not = icmp eq i64 %113, %.0164193
  br i1 %exitcond197.not, label %114, label %.preheader180, !llvm.loop !15

114:                                              ; preds = %112
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %13, ptr noundef %0)
  br label %115

115:                                              ; preds = %114, %145
  %.2185 = phi i64 [ 0, %114 ], [ %148, %145 ]
  %116 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 4, ptr noundef %0)
  switch i64 %116, label %134 [
    i64 0, label %117
    i64 1, label %122
    i64 2, label %128
  ]

117:                                              ; preds = %115
  %118 = load double, ptr %24, align 8, !tbaa !16
  %119 = load ptr, ptr %21, align 8, !tbaa !5
  %120 = getelementptr inbounds double, ptr %119, i64 %.2185
  store double %118, ptr %120, align 8, !tbaa !8
  %121 = load double, ptr %22, align 8, !tbaa !22
  br label %145

122:                                              ; preds = %115
  %123 = load double, ptr %24, align 8, !tbaa !16
  %124 = load ptr, ptr %21, align 8, !tbaa !5
  %125 = getelementptr inbounds double, ptr %124, i64 %.2185
  store double %123, ptr %125, align 8, !tbaa !8
  %126 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %127 = call double @llvm.fmuladd.f64(double %126, double 2.000000e+03, double -1.000000e+03)
  br label %145

128:                                              ; preds = %115
  %129 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %130 = call double @llvm.fmuladd.f64(double %129, double 2.000000e+03, double -1.000000e+03)
  %131 = load ptr, ptr %21, align 8, !tbaa !5
  %132 = getelementptr inbounds double, ptr %131, i64 %.2185
  store double %130, ptr %132, align 8, !tbaa !8
  %133 = load double, ptr %22, align 8, !tbaa !22
  br label %145

134:                                              ; preds = %115
  %135 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %136 = call double @llvm.fmuladd.f64(double %135, double 2.000000e+03, double -1.000000e+03)
  %137 = load ptr, ptr %21, align 8, !tbaa !5
  %138 = getelementptr inbounds double, ptr %137, i64 %.2185
  store double %136, ptr %138, align 8, !tbaa !8
  %139 = load ptr, ptr %21, align 8, !tbaa !5
  %140 = getelementptr inbounds double, ptr %139, i64 %.2185
  %141 = load double, ptr %140, align 8, !tbaa !8
  %142 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %143 = call double @llvm.fmuladd.f64(double %142, double 1.000000e+01, double %141)
  %144 = fadd double %143, 1.000000e-02
  br label %145

145:                                              ; preds = %117, %128, %134, %122
  %.sink = phi double [ %121, %117 ], [ %133, %128 ], [ %144, %134 ], [ %127, %122 ]
  %146 = load ptr, ptr %23, align 8, !tbaa !5
  %147 = getelementptr inbounds double, ptr %146, i64 %.2185
  store double %.sink, ptr %147, align 8, !tbaa !8
  %148 = add nuw nsw i64 %.2185, 1
  %exitcond198.not = icmp eq i64 %148, %.0164193
  br i1 %exitcond198.not, label %149, label %115, !llvm.loop !23

149:                                              ; preds = %145
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %5, ptr noundef %0)
  br label %150

150:                                              ; preds = %149, %150
  %.3186 = phi i64 [ 0, %149 ], [ %155, %150 ]
  %151 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %152 = call double @llvm.fmuladd.f64(double %151, double 2.000000e+03, double -1.000000e+03)
  %153 = load ptr, ptr %25, align 8, !tbaa !5
  %154 = getelementptr inbounds double, ptr %153, i64 %.3186
  store double %152, ptr %154, align 8, !tbaa !8
  %155 = add nuw nsw i64 %.3186, 1
  %exitcond199.not = icmp eq i64 %155, %.0164193
  br i1 %exitcond199.not, label %156, label %150, !llvm.loop !24

156:                                              ; preds = %150
  call void @_ZN11alglib_impl14minqpsetoriginEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %10, ptr noundef %0)
  br label %157

157:                                              ; preds = %156, %227
  %.4188 = phi i64 [ 0, %156 ], [ %228, %227 ]
  %158 = load ptr, ptr %26, align 8, !tbaa !5
  %159 = getelementptr inbounds double, ptr %158, i64 %.4188
  store double 0.000000e+00, ptr %159, align 8, !tbaa !8
  %160 = load ptr, ptr %26, align 8, !tbaa !5
  %161 = getelementptr inbounds double, ptr %160, i64 %.4188
  %162 = load double, ptr %161, align 8, !tbaa !8
  %163 = load ptr, ptr %25, align 8, !tbaa !5
  %164 = load double, ptr %163, align 8, !tbaa !8
  %165 = load ptr, ptr %20, align 8, !tbaa !5
  %166 = load ptr, ptr %165, align 8, !tbaa !12
  %167 = getelementptr inbounds double, ptr %166, i64 %.4188
  %168 = load double, ptr %167, align 8, !tbaa !8
  %169 = fneg double %164
  %170 = call double @llvm.fmuladd.f64(double %169, double %168, double %162)
  store double %170, ptr %161, align 8, !tbaa !8
  br i1 %exitcond200.not, label %227, label %171, !llvm.loop !25

171:                                              ; preds = %157
  %172 = load ptr, ptr %26, align 8, !tbaa !5
  %173 = getelementptr inbounds double, ptr %172, i64 %.4188
  %174 = load double, ptr %173, align 8, !tbaa !8
  %175 = load ptr, ptr %25, align 8, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %175, i64 8
  %177 = load double, ptr %176, align 8, !tbaa !8
  %178 = load ptr, ptr %20, align 8, !tbaa !5
  %179 = getelementptr inbounds i8, ptr %178, i64 8
  %180 = load ptr, ptr %179, align 8, !tbaa !12
  %181 = getelementptr inbounds double, ptr %180, i64 %.4188
  %182 = load double, ptr %181, align 8, !tbaa !8
  %183 = fneg double %177
  %184 = call double @llvm.fmuladd.f64(double %183, double %182, double %174)
  store double %184, ptr %173, align 8, !tbaa !8
  br i1 %exitcond200.not.1, label %227, label %185, !llvm.loop !25

185:                                              ; preds = %171
  %186 = load ptr, ptr %26, align 8, !tbaa !5
  %187 = getelementptr inbounds double, ptr %186, i64 %.4188
  %188 = load double, ptr %187, align 8, !tbaa !8
  %189 = load ptr, ptr %25, align 8, !tbaa !5
  %190 = getelementptr inbounds i8, ptr %189, i64 16
  %191 = load double, ptr %190, align 8, !tbaa !8
  %192 = load ptr, ptr %20, align 8, !tbaa !5
  %193 = getelementptr inbounds i8, ptr %192, i64 16
  %194 = load ptr, ptr %193, align 8, !tbaa !12
  %195 = getelementptr inbounds double, ptr %194, i64 %.4188
  %196 = load double, ptr %195, align 8, !tbaa !8
  %197 = fneg double %191
  %198 = call double @llvm.fmuladd.f64(double %197, double %196, double %188)
  store double %198, ptr %187, align 8, !tbaa !8
  br i1 %exitcond200.not.2, label %227, label %199, !llvm.loop !25

199:                                              ; preds = %185
  %200 = load ptr, ptr %26, align 8, !tbaa !5
  %201 = getelementptr inbounds double, ptr %200, i64 %.4188
  %202 = load double, ptr %201, align 8, !tbaa !8
  %203 = load ptr, ptr %25, align 8, !tbaa !5
  %204 = getelementptr inbounds i8, ptr %203, i64 24
  %205 = load double, ptr %204, align 8, !tbaa !8
  %206 = load ptr, ptr %20, align 8, !tbaa !5
  %207 = getelementptr inbounds i8, ptr %206, i64 24
  %208 = load ptr, ptr %207, align 8, !tbaa !12
  %209 = getelementptr inbounds double, ptr %208, i64 %.4188
  %210 = load double, ptr %209, align 8, !tbaa !8
  %211 = fneg double %205
  %212 = call double @llvm.fmuladd.f64(double %211, double %210, double %202)
  store double %212, ptr %201, align 8, !tbaa !8
  br i1 %exitcond200.not.3, label %227, label %213, !llvm.loop !25

213:                                              ; preds = %199
  %214 = load ptr, ptr %26, align 8, !tbaa !5
  %215 = getelementptr inbounds double, ptr %214, i64 %.4188
  %216 = load double, ptr %215, align 8, !tbaa !8
  %217 = load ptr, ptr %25, align 8, !tbaa !5
  %218 = getelementptr inbounds i8, ptr %217, i64 32
  %219 = load double, ptr %218, align 8, !tbaa !8
  %220 = load ptr, ptr %20, align 8, !tbaa !5
  %221 = getelementptr inbounds i8, ptr %220, i64 32
  %222 = load ptr, ptr %221, align 8, !tbaa !12
  %223 = getelementptr inbounds double, ptr %222, i64 %.4188
  %224 = load double, ptr %223, align 8, !tbaa !8
  %225 = fneg double %219
  %226 = call double @llvm.fmuladd.f64(double %225, double %224, double %216)
  store double %226, ptr %215, align 8, !tbaa !8
  br label %227

227:                                              ; preds = %213, %199, %185, %171, %157
  %228 = add nuw nsw i64 %.4188, 1
  %exitcond201.not = icmp eq i64 %228, %.0164193
  br i1 %exitcond201.not, label %.preheader, label %157, !llvm.loop !26

.preheader:                                       ; preds = %227, %.preheader
  %.5189 = phi i64 [ %233, %.preheader ], [ 0, %227 ]
  %229 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %230 = call double @llvm.fmuladd.f64(double %229, double 2.000000e+03, double -1.000000e+03)
  %231 = load ptr, ptr %27, align 8, !tbaa !5
  %232 = getelementptr inbounds double, ptr %231, i64 %.5189
  store double %230, ptr %232, align 8, !tbaa !8
  %233 = add nuw nsw i64 %.5189, 1
  %exitcond202.not = icmp eq i64 %233, %.0164193
  br i1 %exitcond202.not, label %234, label %.preheader, !llvm.loop !27

234:                                              ; preds = %.preheader
  call void @_ZN11alglib_impl21minqpsetstartingpointEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %9, 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 %7, ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl9rmatrixmvEllPNS_9ae_matrixElllPNS_9ae_vectorElS3_lPNS_8ae_stateE(i64 noundef %.0164193, i64 noundef %.0164193, ptr noundef nonnull %4, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %7, i64 noundef 0, ptr noundef nonnull %16, i64 noundef 0, ptr noundef %0)
  %235 = load ptr, ptr %28, align 8, !tbaa !5
  %236 = load double, ptr %235, align 8, !tbaa !8
  %237 = load ptr, ptr %26, align 8, !tbaa !5
  %238 = load double, ptr %237, align 8, !tbaa !8
  %239 = fadd double %236, %238
  %240 = load ptr, ptr %19, align 8, !tbaa !5
  %241 = load double, ptr %240, align 8, !tbaa !8
  %242 = fadd double %239, %241
  %243 = load ptr, ptr %29, align 8, !tbaa !5
  store double %242, ptr %243, align 8, !tbaa !8
  br i1 %exitcond203.not, label %300, label %244, !llvm.loop !28

244:                                              ; preds = %234
  %245 = load ptr, ptr %28, align 8, !tbaa !5
  %246 = getelementptr inbounds i8, ptr %245, i64 8
  %247 = load double, ptr %246, align 8, !tbaa !8
  %248 = load ptr, ptr %26, align 8, !tbaa !5
  %249 = getelementptr inbounds i8, ptr %248, i64 8
  %250 = load double, ptr %249, align 8, !tbaa !8
  %251 = fadd double %247, %250
  %252 = load ptr, ptr %19, align 8, !tbaa !5
  %253 = getelementptr inbounds i8, ptr %252, i64 8
  %254 = load double, ptr %253, align 8, !tbaa !8
  %255 = fadd double %251, %254
  %256 = load ptr, ptr %29, align 8, !tbaa !5
  %257 = getelementptr inbounds i8, ptr %256, i64 8
  store double %255, ptr %257, align 8, !tbaa !8
  br i1 %exitcond203.not.1, label %300, label %258, !llvm.loop !28

258:                                              ; preds = %244
  %259 = load ptr, ptr %28, align 8, !tbaa !5
  %260 = getelementptr inbounds i8, ptr %259, i64 16
  %261 = load double, ptr %260, align 8, !tbaa !8
  %262 = load ptr, ptr %26, align 8, !tbaa !5
  %263 = getelementptr inbounds i8, ptr %262, i64 16
  %264 = load double, ptr %263, align 8, !tbaa !8
  %265 = fadd double %261, %264
  %266 = load ptr, ptr %19, align 8, !tbaa !5
  %267 = getelementptr inbounds i8, ptr %266, i64 16
  %268 = load double, ptr %267, align 8, !tbaa !8
  %269 = fadd double %265, %268
  %270 = load ptr, ptr %29, align 8, !tbaa !5
  %271 = getelementptr inbounds i8, ptr %270, i64 16
  store double %269, ptr %271, align 8, !tbaa !8
  br i1 %exitcond203.not.2, label %300, label %272, !llvm.loop !28

272:                                              ; preds = %258
  %273 = load ptr, ptr %28, align 8, !tbaa !5
  %274 = getelementptr inbounds i8, ptr %273, i64 24
  %275 = load double, ptr %274, align 8, !tbaa !8
  %276 = load ptr, ptr %26, align 8, !tbaa !5
  %277 = getelementptr inbounds i8, ptr %276, i64 24
  %278 = load double, ptr %277, align 8, !tbaa !8
  %279 = fadd double %275, %278
  %280 = load ptr, ptr %19, align 8, !tbaa !5
  %281 = getelementptr inbounds i8, ptr %280, i64 24
  %282 = load double, ptr %281, align 8, !tbaa !8
  %283 = fadd double %279, %282
  %284 = load ptr, ptr %29, align 8, !tbaa !5
  %285 = getelementptr inbounds i8, ptr %284, i64 24
  store double %283, ptr %285, align 8, !tbaa !8
  br i1 %exitcond203.not.3, label %300, label %286, !llvm.loop !28

286:                                              ; preds = %272
  %287 = load ptr, ptr %28, align 8, !tbaa !5
  %288 = getelementptr inbounds i8, ptr %287, i64 32
  %289 = load double, ptr %288, align 8, !tbaa !8
  %290 = load ptr, ptr %26, align 8, !tbaa !5
  %291 = getelementptr inbounds i8, ptr %290, i64 32
  %292 = load double, ptr %291, align 8, !tbaa !8
  %293 = fadd double %289, %292
  %294 = load ptr, ptr %19, align 8, !tbaa !5
  %295 = getelementptr inbounds i8, ptr %294, i64 32
  %296 = load double, ptr %295, align 8, !tbaa !8
  %297 = fadd double %293, %296
  %298 = load ptr, ptr %29, align 8, !tbaa !5
  %299 = getelementptr inbounds i8, ptr %298, i64 32
  store double %297, ptr %299, align 8, !tbaa !8
  br label %300

300:                                              ; preds = %286, %272, %258, %244, %234
  %301 = call noundef double @_ZL35testminqpunit_projectedantigradnormlPN11alglib_impl9ae_vectorES1_S1_S1_PNS_8ae_stateE(i64 noundef %.0164193, ptr noundef nonnull %7, ptr noundef nonnull %14, ptr noundef nonnull %6, ptr noundef nonnull %5, ptr noundef %0)
  br label %304

302:                                              ; preds = %304
  %303 = add nuw nsw i64 %.7191, 1
  %exitcond204.not = icmp eq i64 %303, %.0164193
  br i1 %exitcond204.not, label %307, label %304, !llvm.loop !29

304:                                              ; preds = %300, %302
  %.7191 = phi i64 [ 0, %300 ], [ %303, %302 ]
  %305 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %301, ptr noundef %0)
  %306 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %305, double noundef 1.000000e-03)
  br i1 %306, label %.loopexit, label %302

307:                                              ; preds = %302
  %308 = add nuw nsw i64 %.0165192, 1
  %exitcond205.not = icmp eq i64 %308, 1001
  br i1 %exitcond205.not, label %309, label %32, !llvm.loop !30

309:                                              ; preds = %307
  %310 = add nuw nsw i64 %.0164193, 1
  %311 = icmp ult i64 %.0164193, 5
  %exitcond206.not = icmp eq i64 %310, 6
  br i1 %exitcond206.not, label %.loopexit, label %30, !llvm.loop !31

.loopexit:                                        ; preds = %309, %304
  %312 = phi i1 [ %31, %304 ], [ %311, %309 ]
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 35232, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  ret i1 %312
}

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

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

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 noundef double @_ZL35testminqpunit_projectedantigradnormlPN11alglib_impl9ae_vectorES1_S1_S1_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = !{!17, !9, i64 24}
!17 = !{!"_ZTSN11alglib_impl8ae_stateE", !18, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !13, i64 32, !19, i64 40, !13, i64 72, !20, i64 80, !13, i64 88, !21, i64 96, !13, i64 104, !13, i64 112, !13, i64 120}
!18 = !{!"long", !6, i64 0}
!19 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!20 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !6, i64 0}
!21 = !{!"long long", !6, i64 0}
!22 = !{!17, !9, i64 16}
!23 = distinct !{!23, !11}
!24 = distinct !{!24, !11}
!25 = distinct !{!25, !11}
!26 = distinct !{!26, !11}
!27 = distinct !{!27, !11}
!28 = distinct !{!28, !11}
!29 = distinct !{!29, !11}
!30 = distinct !{!30, !11}
!31 = distinct !{!31, !11}


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