; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z11consoletestPN11alglib_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 }

@.str.382 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.383 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.384 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.385 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.386 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.387 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.388 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.389 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.390 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.391 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.392 = external hidden unnamed_addr constant [18 x i8], align 1

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

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

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

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

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

declare i32 @printf(ptr noundef, ...) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

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

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

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

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_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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z11consoletestPN11alglib_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 %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::minqpreport", align 8
  %20 = alloca double, align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca %"struct.alglib_impl::ae_vector", align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca i8, align 1
  %28 = 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 64, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #5
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %29, 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 %17, 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 40, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 64, i1 false)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_minqpstate_initEPvPNS_8ae_stateEb(ptr noundef %5, ptr noundef %30, i1 noundef zeroext true)
  %31 = 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 %31, i1 noundef zeroext true)
  %32 = 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 %32, i1 noundef zeroext true)
  %33 = 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 %33, i1 noundef zeroext true)
  %34 = 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 %34, i1 noundef zeroext true)
  %35 = 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 %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %36, i1 noundef zeroext true)
  %37 = 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 %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl17_minqpreport_initEPvPNS_8ae_stateEb(ptr noundef %19, 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 %21, 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 %22, 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 %23, 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 %24, i64 noundef 0, i64 noundef 3, ptr noundef %42, i1 noundef zeroext true)
  store double 1.000000e-03, ptr %20, align 8, !tbaa !9
  store i64 2, ptr %7, align 8, !tbaa !11
  store i64 0, ptr %6, align 8, !tbaa !11
  store i64 2, ptr %8, align 8, !tbaa !11
  br label %43

43:                                               ; preds = %385, %1
  %44 = load i64, ptr %8, align 8, !tbaa !11
  %45 = load i64, ptr %7, align 8, !tbaa !11
  %46 = icmp sle i64 %44, %45
  br i1 %46, label %47, label %388

47:                                               ; preds = %43
  %48 = load i64, ptr %8, align 8, !tbaa !11
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %48, ptr noundef %49)
  %50 = load i64, ptr %8, align 8, !tbaa !11
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %50, ptr noundef %51)
  %52 = load i64, ptr %8, align 8, !tbaa !11
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %52, ptr noundef %53)
  %54 = load i64, ptr %8, align 8, !tbaa !11
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %54, ptr noundef %55)
  %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 %14, 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 %13, 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 %23, 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 %24, i64 noundef %64, ptr noundef %65)
  store i64 0, ptr %9, align 8, !tbaa !11
  br label %66

66:                                               ; preds = %381, %47
  %67 = load i64, ptr %9, align 8, !tbaa !11
  %68 = load i64, ptr %6, align 8, !tbaa !11
  %69 = icmp sle i64 %67, %68
  br i1 %69, label %70, label %384

70:                                               ; preds = %66
  %71 = load i64, ptr %8, align 8, !tbaa !11
  %72 = load i64, ptr %8, align 8, !tbaa !11
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %12, i64 noundef %71, i64 noundef %72, ptr noundef %73)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %74

74:                                               ; preds = %120, %70
  %75 = load i64, ptr %10, align 8, !tbaa !11
  %76 = load i64, ptr %8, align 8, !tbaa !11
  %77 = sub nsw i64 %76, 1
  %78 = icmp sle i64 %75, %77
  br i1 %78, label %79, label %123

79:                                               ; preds = %74
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %80

80:                                               ; preds = %115, %79
  %81 = load i64, ptr %11, align 8, !tbaa !11
  %82 = load i64, ptr %8, align 8, !tbaa !11
  %83 = sub nsw i64 %82, 1
  %84 = icmp sle i64 %81, %83
  br i1 %84, label %85, label %118

85:                                               ; preds = %80
  %86 = load i64, ptr %10, align 8, !tbaa !11
  %87 = load i64, ptr %11, align 8, !tbaa !11
  %88 = icmp eq i64 %86, %87
  br i1 %88, label %89, label %97

89:                                               ; preds = %85
  %90 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %91 = load ptr, ptr %90, align 8, !tbaa !13
  %92 = load i64, ptr %10, align 8, !tbaa !11
  %93 = getelementptr inbounds ptr, ptr %91, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = load i64, ptr %11, align 8, !tbaa !11
  %96 = getelementptr inbounds double, ptr %94, i64 %95
  store double 1.000000e+00, ptr %96, align 8, !tbaa !9
  br label %105

97:                                               ; preds = %85
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %99 = load ptr, ptr %98, align 8, !tbaa !13
  %100 = load i64, ptr %10, align 8, !tbaa !11
  %101 = getelementptr inbounds ptr, ptr %99, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = load i64, ptr %11, align 8, !tbaa !11
  %104 = getelementptr inbounds double, ptr %102, i64 %103
  store double 0.000000e+00, ptr %104, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %97, %89
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %107 = load ptr, ptr %106, align 8, !tbaa !13
  %108 = load i64, ptr %10, align 8, !tbaa !11
  %109 = getelementptr inbounds ptr, ptr %107, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = load i64, ptr %11, align 8, !tbaa !11
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.382, double noundef %113)
  br label %115

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

118:                                              ; preds = %80
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.383)
  br label %120

120:                                              ; preds = %118
  %121 = load i64, ptr %10, align 8, !tbaa !11
  %122 = add nsw i64 %121, 1
  store i64 %122, ptr %10, align 8, !tbaa !11
  br label %74, !llvm.loop !16

123:                                              ; preds = %74
  %124 = load i64, ptr %8, align 8, !tbaa !11
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %124, ptr noundef %5, ptr noundef %125)
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL29testminqpunit_setrandomalgobcPN11alglib_impl10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %126)
  %127 = 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 %127)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %128

128:                                              ; preds = %144, %123
  %129 = load i64, ptr %10, align 8, !tbaa !11
  %130 = load i64, ptr %8, align 8, !tbaa !11
  %131 = sub nsw i64 %130, 1
  %132 = icmp sle i64 %129, %131
  br i1 %132, label %133, label %147

133:                                              ; preds = %128
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %135 = load ptr, ptr %134, align 8, !tbaa !13
  %136 = load i64, ptr %10, align 8, !tbaa !11
  %137 = getelementptr inbounds double, ptr %135, i64 %136
  store double 1.000000e+00, ptr %137, align 8, !tbaa !9
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %139 = load ptr, ptr %138, align 8, !tbaa !13
  %140 = load i64, ptr %10, align 8, !tbaa !11
  %141 = getelementptr inbounds double, ptr %139, i64 %140
  %142 = load double, ptr %141, align 8, !tbaa !9
  %143 = call i32 (ptr, ...) @printf(ptr noundef @.str.384, double noundef %142)
  br label %144

144:                                              ; preds = %133
  %145 = load i64, ptr %10, align 8, !tbaa !11
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %10, align 8, !tbaa !11
  br label %128, !llvm.loop !17

147:                                              ; preds = %128
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %148

148:                                              ; preds = %200, %147
  %149 = load i64, ptr %10, align 8, !tbaa !11
  %150 = load i64, ptr %8, align 8, !tbaa !11
  %151 = sub nsw i64 %150, 1
  %152 = icmp sle i64 %149, %151
  br i1 %152, label %153, label %203

153:                                              ; preds = %148
  %154 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %155 = load ptr, ptr %154, align 8, !tbaa !13
  %156 = load i64, ptr %10, align 8, !tbaa !11
  %157 = getelementptr inbounds double, ptr %155, i64 %156
  store double 0.000000e+00, ptr %157, align 8, !tbaa !9
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %158

158:                                              ; preds = %188, %153
  %159 = load i64, ptr %11, align 8, !tbaa !11
  %160 = load i64, ptr %8, align 8, !tbaa !11
  %161 = sub nsw i64 %160, 1
  %162 = icmp sle i64 %159, %161
  br i1 %162, label %163, label %191

163:                                              ; preds = %158
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !13
  %166 = load i64, ptr %10, align 8, !tbaa !11
  %167 = getelementptr inbounds double, ptr %165, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !9
  %169 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %170 = load ptr, ptr %169, align 8, !tbaa !13
  %171 = load i64, ptr %11, align 8, !tbaa !11
  %172 = getelementptr inbounds double, ptr %170, i64 %171
  %173 = load double, ptr %172, align 8, !tbaa !9
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %175 = load ptr, ptr %174, align 8, !tbaa !13
  %176 = load i64, ptr %11, align 8, !tbaa !11
  %177 = getelementptr inbounds ptr, ptr %175, i64 %176
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = load i64, ptr %10, align 8, !tbaa !11
  %180 = getelementptr inbounds double, ptr %178, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !9
  %182 = fneg double %173
  %183 = call double @llvm.fmuladd.f64(double %182, double %181, double %168)
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %185 = load ptr, ptr %184, align 8, !tbaa !13
  %186 = load i64, ptr %10, align 8, !tbaa !11
  %187 = getelementptr inbounds double, ptr %185, i64 %186
  store double %183, ptr %187, align 8, !tbaa !9
  br label %188

188:                                              ; preds = %163
  %189 = load i64, ptr %11, align 8, !tbaa !11
  %190 = add nsw i64 %189, 1
  store i64 %190, ptr %11, align 8, !tbaa !11
  br label %158, !llvm.loop !18

191:                                              ; preds = %158
  %192 = load i64, ptr %10, align 8, !tbaa !11
  %193 = trunc i64 %192 to i32
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %195 = load ptr, ptr %194, align 8, !tbaa !13
  %196 = load i64, ptr %10, align 8, !tbaa !11
  %197 = getelementptr inbounds double, ptr %195, i64 %196
  %198 = load double, ptr %197, align 8, !tbaa !9
  %199 = call i32 (ptr, ...) @printf(ptr noundef @.str.385, i32 noundef %193, double noundef %198)
  br label %200

200:                                              ; preds = %191
  %201 = load i64, ptr %10, align 8, !tbaa !11
  %202 = add nsw i64 %201, 1
  store i64 %202, ptr %10, align 8, !tbaa !11
  br label %148, !llvm.loop !19

203:                                              ; preds = %148
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %21, ptr noundef %204)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %205

205:                                              ; preds = %219, %203
  %206 = load i64, ptr %10, align 8, !tbaa !11
  %207 = load i64, ptr %8, align 8, !tbaa !11
  %208 = sub nsw i64 %207, 1
  %209 = icmp sle i64 %206, %208
  br i1 %209, label %210, label %222

210:                                              ; preds = %205
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, 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 1.000000e+01, ptr %214, align 8, !tbaa !9
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !13
  %217 = load i64, ptr %10, align 8, !tbaa !11
  %218 = getelementptr inbounds double, ptr %216, i64 %217
  store double 2.000000e+01, ptr %218, align 8, !tbaa !9
  br label %219

219:                                              ; preds = %210
  %220 = load i64, ptr %10, align 8, !tbaa !11
  %221 = add nsw i64 %220, 1
  store i64 %221, ptr %10, align 8, !tbaa !11
  br label %205, !llvm.loop !20

222:                                              ; preds = %205
  %223 = 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 %223)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %224

224:                                              ; preds = %234, %222
  %225 = load i64, ptr %10, align 8, !tbaa !11
  %226 = load i64, ptr %8, align 8, !tbaa !11
  %227 = sub nsw i64 %226, 1
  %228 = icmp sle i64 %225, %227
  br i1 %228, label %229, label %237

229:                                              ; preds = %224
  %230 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %231 = load ptr, ptr %230, align 8, !tbaa !13
  %232 = load i64, ptr %10, align 8, !tbaa !11
  %233 = getelementptr inbounds double, ptr %231, i64 %232
  store double 1.000000e+00, ptr %233, align 8, !tbaa !9
  br label %234

234:                                              ; preds = %229
  %235 = load i64, ptr %10, align 8, !tbaa !11
  %236 = add nsw i64 %235, 1
  store i64 %236, ptr %10, align 8, !tbaa !11
  br label %224, !llvm.loop !21

237:                                              ; preds = %224
  %238 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14minqpsetoriginEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %17, ptr noundef %238)
  %239 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %239)
  %240 = 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 %19, ptr noundef %240)
  %241 = load i64, ptr %8, align 8, !tbaa !11
  %242 = load i64, ptr %8, align 8, !tbaa !11
  %243 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9rmatrixmvEllPNS_9ae_matrixElllPNS_9ae_vectorElS3_lPNS_8ae_stateE(i64 noundef %241, i64 noundef %242, ptr noundef %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %15, i64 noundef 0, ptr noundef %23, i64 noundef 0, ptr noundef %243)
  %244 = load i64, ptr %8, align 8, !tbaa !11
  %245 = load i64, ptr %8, align 8, !tbaa !11
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9rmatrixmvEllPNS_9ae_matrixElllPNS_9ae_vectorElS3_lPNS_8ae_stateE(i64 noundef %244, i64 noundef %245, ptr noundef %12, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef %15, i64 noundef 0, ptr noundef %24, i64 noundef 0, ptr noundef %246)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %247

247:                                              ; preds = %302, %237
  %248 = load i64, ptr %10, align 8, !tbaa !11
  %249 = load i64, ptr %8, align 8, !tbaa !11
  %250 = sub nsw i64 %249, 1
  %251 = icmp sle i64 %248, %250
  br i1 %251, label %252, label %305

252:                                              ; preds = %247
  store double 0.000000e+00, ptr %25, align 8, !tbaa !9
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %253

253:                                              ; preds = %275, %252
  %254 = load i64, ptr %11, align 8, !tbaa !11
  %255 = load i64, ptr %8, align 8, !tbaa !11
  %256 = sub nsw i64 %255, 1
  %257 = icmp sle i64 %254, %256
  br i1 %257, label %258, label %278

258:                                              ; preds = %253
  %259 = load double, ptr %25, align 8, !tbaa !9
  %260 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %261 = load ptr, ptr %260, align 8, !tbaa !13
  %262 = load i64, ptr %11, align 8, !tbaa !11
  %263 = getelementptr inbounds double, ptr %261, i64 %262
  %264 = load double, ptr %263, align 8, !tbaa !9
  %265 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %266 = load ptr, ptr %265, align 8, !tbaa !13
  %267 = load i64, ptr %11, align 8, !tbaa !11
  %268 = getelementptr inbounds ptr, ptr %266, i64 %267
  %269 = load ptr, ptr %268, align 8, !tbaa !5
  %270 = load i64, ptr %10, align 8, !tbaa !11
  %271 = getelementptr inbounds double, ptr %269, i64 %270
  %272 = load double, ptr %271, align 8, !tbaa !9
  %273 = fneg double %264
  %274 = call double @llvm.fmuladd.f64(double %273, double %272, double %259)
  store double %274, ptr %25, align 8, !tbaa !9
  br label %275

275:                                              ; preds = %258
  %276 = load i64, ptr %11, align 8, !tbaa !11
  %277 = add nsw i64 %276, 1
  store i64 %277, ptr %11, align 8, !tbaa !11
  br label %253, !llvm.loop !22

278:                                              ; preds = %253
  %279 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %280 = load ptr, ptr %279, align 8, !tbaa !13
  %281 = load i64, ptr %10, align 8, !tbaa !11
  %282 = getelementptr inbounds double, ptr %280, i64 %281
  %283 = load double, ptr %282, align 8, !tbaa !9
  %284 = load double, ptr %25, align 8, !tbaa !9
  %285 = fadd double %283, %284
  %286 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %287 = load ptr, ptr %286, align 8, !tbaa !13
  %288 = load i64, ptr %10, align 8, !tbaa !11
  %289 = getelementptr inbounds double, ptr %287, i64 %288
  %290 = load double, ptr %289, align 8, !tbaa !9
  %291 = fadd double %285, %290
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %293 = load ptr, ptr %292, align 8, !tbaa !13
  %294 = load i64, ptr %10, align 8, !tbaa !11
  %295 = getelementptr inbounds double, ptr %293, i64 %294
  %296 = load double, ptr %295, align 8, !tbaa !9
  %297 = fadd double %291, %296
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %299 = load ptr, ptr %298, align 8, !tbaa !13
  %300 = load i64, ptr %10, align 8, !tbaa !11
  %301 = getelementptr inbounds double, ptr %299, i64 %300
  store double %297, ptr %301, align 8, !tbaa !9
  br label %302

302:                                              ; preds = %278
  %303 = load i64, ptr %10, align 8, !tbaa !11
  %304 = add nsw i64 %303, 1
  store i64 %304, ptr %10, align 8, !tbaa !11
  br label %247, !llvm.loop !23

305:                                              ; preds = %247
  %306 = load i64, ptr %8, align 8, !tbaa !11
  %307 = load ptr, ptr %3, align 8, !tbaa !5
  %308 = call noundef double @_ZL35testminqpunit_projectedantigradnormlPN11alglib_impl9ae_vectorES1_S1_S1_PNS_8ae_stateE(i64 noundef %306, ptr noundef %15, ptr noundef %21, ptr noundef %14, ptr noundef %13, ptr noundef %307)
  store double %308, ptr %26, align 8, !tbaa !9
  %309 = load i64, ptr %8, align 8, !tbaa !11
  %310 = trunc i64 %309 to i32
  %311 = call i32 (ptr, ...) @printf(ptr noundef @.str.386, i32 noundef %310)
  %312 = load i64, ptr %9, align 8, !tbaa !11
  %313 = trunc i64 %312 to i32
  %314 = call i32 (ptr, ...) @printf(ptr noundef @.str.387, i32 noundef %313)
  %315 = getelementptr inbounds %"struct.alglib_impl::minqpreport", ptr %19, i32 0, i32 4
  %316 = load i64, ptr %315, align 8, !tbaa !24
  %317 = trunc i64 %316 to i32
  %318 = call i32 (ptr, ...) @printf(ptr noundef @.str.388, i32 noundef %317)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %319

319:                                              ; preds = %377, %305
  %320 = load i64, ptr %10, align 8, !tbaa !11
  %321 = load i64, ptr %8, align 8, !tbaa !11
  %322 = sub nsw i64 %321, 1
  %323 = icmp sle i64 %320, %322
  br i1 %323, label %324, label %380

324:                                              ; preds = %319
  %325 = load i64, ptr %10, align 8, !tbaa !11
  %326 = trunc i64 %325 to i32
  %327 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %328 = load ptr, ptr %327, align 8, !tbaa !13
  %329 = load i64, ptr %10, align 8, !tbaa !11
  %330 = getelementptr inbounds double, ptr %328, i64 %329
  %331 = load double, ptr %330, align 8, !tbaa !9
  %332 = call i32 (ptr, ...) @printf(ptr noundef @.str.389, i32 noundef %326, double noundef %331)
  %333 = load i64, ptr %10, align 8, !tbaa !11
  %334 = trunc i64 %333 to i32
  %335 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %336 = load ptr, ptr %335, align 8, !tbaa !13
  %337 = load i64, ptr %10, align 8, !tbaa !11
  %338 = getelementptr inbounds double, ptr %336, i64 %337
  %339 = load double, ptr %338, align 8, !tbaa !9
  %340 = load i64, ptr %10, align 8, !tbaa !11
  %341 = trunc i64 %340 to i32
  %342 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %343 = load ptr, ptr %342, align 8, !tbaa !13
  %344 = load i64, ptr %10, align 8, !tbaa !11
  %345 = getelementptr inbounds double, ptr %343, i64 %344
  %346 = load double, ptr %345, align 8, !tbaa !9
  %347 = call i32 (ptr, ...) @printf(ptr noundef @.str.390, i32 noundef %334, double noundef %339, i32 noundef %341, double noundef %346)
  %348 = load i64, ptr %10, align 8, !tbaa !11
  %349 = trunc i64 %348 to i32
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !13
  %352 = load i64, ptr %10, align 8, !tbaa !11
  %353 = getelementptr inbounds double, ptr %351, i64 %352
  %354 = load double, ptr %353, align 8, !tbaa !9
  %355 = load i64, ptr %10, align 8, !tbaa !11
  %356 = trunc i64 %355 to i32
  %357 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %358 = load ptr, ptr %357, align 8, !tbaa !13
  %359 = load i64, ptr %10, align 8, !tbaa !11
  %360 = getelementptr inbounds double, ptr %358, i64 %359
  %361 = load double, ptr %360, align 8, !tbaa !9
  %362 = call i32 (ptr, ...) @printf(ptr noundef @.str.391, i32 noundef %349, double noundef %354, i32 noundef %356, double noundef %361)
  %363 = load i64, ptr %10, align 8, !tbaa !11
  %364 = trunc i64 %363 to i32
  %365 = load double, ptr %26, align 8, !tbaa !9
  %366 = call i32 (ptr, ...) @printf(ptr noundef @.str.392, i32 noundef %364, double noundef %365)
  %367 = load double, ptr %26, align 8, !tbaa !9
  %368 = load ptr, ptr %3, align 8, !tbaa !5
  %369 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %367, ptr noundef %368)
  %370 = load double, ptr %20, align 8, !tbaa !9
  %371 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %369, double noundef %370)
  br i1 %371, label %372, label %376

372:                                              ; preds = %324
  store i8 1, ptr %27, align 1, !tbaa !26
  %373 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %373)
  %374 = load i8, ptr %27, align 1, !tbaa !26, !range !28, !noundef !29
  %375 = trunc i8 %374 to i1
  store i1 %375, ptr %2, align 1
  store i32 1, ptr %28, align 4
  br label %392

376:                                              ; preds = %324
  br label %377

377:                                              ; preds = %376
  %378 = load i64, ptr %10, align 8, !tbaa !11
  %379 = add nsw i64 %378, 1
  store i64 %379, ptr %10, align 8, !tbaa !11
  br label %319, !llvm.loop !30

380:                                              ; preds = %319
  br label %381

381:                                              ; preds = %380
  %382 = load i64, ptr %9, align 8, !tbaa !11
  %383 = add nsw i64 %382, 1
  store i64 %383, ptr %9, align 8, !tbaa !11
  br label %66, !llvm.loop !31

384:                                              ; preds = %66
  br label %385

385:                                              ; preds = %384
  %386 = load i64, ptr %8, align 8, !tbaa !11
  %387 = add nsw i64 %386, 1
  store i64 %387, ptr %8, align 8, !tbaa !11
  br label %43, !llvm.loop !32

388:                                              ; preds = %43
  store i8 0, ptr %27, align 1, !tbaa !26
  %389 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %389)
  %390 = load i8, ptr %27, align 1, !tbaa !26, !range !28, !noundef !29
  %391 = trunc i8 %390 to i1
  store i1 %391, ptr %2, align 1
  store i32 1, ptr %28, align 4
  br label %392

392:                                              ; preds = %388, %372
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 64, 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
  %393 = load i1, ptr %2, align 1
  ret i1 %393
}

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 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = !{!25, !12, i64 32}
!25 = !{!"_ZTSN11alglib_impl11minqpreportE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!26 = !{!27, !27, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = distinct !{!30, !15}
!31 = distinct !{!31, !15}
!32 = distinct !{!32, !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 }

@.str.382 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.383 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.384 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.385 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.386 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.387 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.388 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.389 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.390 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.391 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.392 = external hidden unnamed_addr constant [18 x i8], align 1

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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 #5

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_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 #5

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z11consoletestPN11alglib_impl8ae_stateE(ptr noundef %0) local_unnamed_addr #5 {
.preheader149.preheader:
  %1 = alloca %"struct.alglib_impl::ae_frame", align 8
  %2 = alloca %"struct.alglib_impl::minqpstate", align 8
  %3 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %4 = alloca %"struct.alglib_impl::ae_vector", 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::minqpreport", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 35232, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %0, ptr noundef nonnull %1)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(35232) %2, i8 0, i64 35232, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %3, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %4, i8 0, i64 64, 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(40) %10, i8 0, i64 40, 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(64) %12, i8 0, i64 64, 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 @_ZN11alglib_impl16_minqpstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %2, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %3, 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 %4, 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_impl17_minqpreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %10, 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_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, 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 %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)
  %15 = getelementptr inbounds i8, ptr %3, i64 72
  %16 = getelementptr inbounds i8, ptr %11, i64 56
  %17 = getelementptr inbounds i8, ptr %4, i64 56
  %18 = getelementptr inbounds i8, ptr %8, i64 56
  %19 = getelementptr inbounds i8, ptr %14, i64 56
  %20 = getelementptr inbounds i8, ptr %10, i64 32
  %21 = getelementptr inbounds i8, ptr %5, i64 56
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef 2, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef 2, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef 2, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef 2, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef 2, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef 2, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef 2, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef 2, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef 2, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef 2, i64 noundef 2, ptr noundef %0)
  %22 = load ptr, ptr %15, align 8, !tbaa !5
  %23 = load ptr, ptr %22, align 8, !tbaa !8
  store double 1.000000e+00, ptr %23, align 8, !tbaa !10
  %.pre = load ptr, ptr %15, align 8, !tbaa !5
  %24 = load ptr, ptr %.pre, align 8, !tbaa !8
  %25 = load double, ptr %24, align 8, !tbaa !10
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.382, double noundef %25)
  %27 = load ptr, ptr %15, align 8, !tbaa !5
  %28 = load ptr, ptr %27, align 8, !tbaa !8
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  store double 0.000000e+00, ptr %29, align 8, !tbaa !10
  %.pre164 = load ptr, ptr %15, align 8, !tbaa !5
  %30 = load ptr, ptr %.pre164, align 8, !tbaa !8
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load double, ptr %31, align 8, !tbaa !10
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.382, double noundef %32)
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.383)
  %35 = load ptr, ptr %15, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 8
  %37 = load ptr, ptr %36, align 8, !tbaa !8
  store double 0.000000e+00, ptr %37, align 8, !tbaa !10
  %.pre165 = load ptr, ptr %15, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %.pre165, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !8
  %40 = load double, ptr %39, align 8, !tbaa !10
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.382, double noundef %40)
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !8
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  store double 1.000000e+00, ptr %45, align 8, !tbaa !10
  %.pre166 = load ptr, ptr %15, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %.pre166, i64 8
  %47 = load ptr, ptr %46, align 8, !tbaa !8
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  %49 = load double, ptr %48, align 8, !tbaa !10
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.382, double noundef %49)
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.383)
  %52 = getelementptr inbounds i8, ptr %9, i64 56
  %53 = getelementptr inbounds i8, ptr %12, i64 56
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef 2, ptr noundef nonnull %2, ptr noundef %0)
  call void @_ZL29testminqpunit_setrandomalgobcPN11alglib_impl10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %2, ptr noundef %0)
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef nonnull %2, ptr noundef nonnull %3, i1 noundef zeroext false, ptr noundef %0)
  %54 = load ptr, ptr %52, align 8, !tbaa !5
  store double 1.000000e+00, ptr %54, align 8, !tbaa !10
  %55 = load ptr, ptr %52, align 8, !tbaa !5
  %56 = load double, ptr %55, align 8, !tbaa !10
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.384, double noundef %56)
  %58 = load ptr, ptr %52, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  store double 1.000000e+00, ptr %59, align 8, !tbaa !10
  %60 = load ptr, ptr %52, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load double, ptr %61, align 8, !tbaa !10
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.384, double noundef %62)
  %64 = getelementptr inbounds i8, ptr %6, i64 56
  %65 = load ptr, ptr %16, align 8, !tbaa !5
  store double 0.000000e+00, ptr %65, align 8, !tbaa !10
  %66 = load ptr, ptr %16, align 8, !tbaa !5
  %67 = load double, ptr %66, align 8, !tbaa !10
  %68 = load ptr, ptr %52, align 8, !tbaa !5
  %69 = load double, ptr %68, align 8, !tbaa !10
  %70 = load ptr, ptr %15, align 8, !tbaa !5
  %71 = load ptr, ptr %70, align 8, !tbaa !8
  %72 = load double, ptr %71, align 8, !tbaa !10
  %73 = fneg double %69
  %74 = call double @llvm.fmuladd.f64(double %73, double %72, double %67)
  store double %74, ptr %66, align 8, !tbaa !10
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  %76 = load double, ptr %75, align 8, !tbaa !10
  %77 = load ptr, ptr %52, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 8
  %79 = load double, ptr %78, align 8, !tbaa !10
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %80, i64 8
  %82 = load ptr, ptr %81, align 8, !tbaa !8
  %83 = load double, ptr %82, align 8, !tbaa !10
  %84 = fneg double %79
  %85 = call double @llvm.fmuladd.f64(double %84, double %83, double %76)
  store double %85, ptr %75, align 8, !tbaa !10
  %86 = load ptr, ptr %16, align 8, !tbaa !5
  %87 = load double, ptr %86, align 8, !tbaa !10
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.385, i32 noundef 0, double noundef %87)
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 8
  store double 0.000000e+00, ptr %90, align 8, !tbaa !10
  %91 = load ptr, ptr %16, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = load double, ptr %92, align 8, !tbaa !10
  %94 = load ptr, ptr %52, align 8, !tbaa !5
  %95 = load double, ptr %94, align 8, !tbaa !10
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = load ptr, ptr %96, align 8, !tbaa !8
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  %99 = load double, ptr %98, align 8, !tbaa !10
  %100 = fneg double %95
  %101 = call double @llvm.fmuladd.f64(double %100, double %99, double %93)
  store double %101, ptr %92, align 8, !tbaa !10
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 8
  %104 = load double, ptr %103, align 8, !tbaa !10
  %105 = load ptr, ptr %52, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i64 8
  %107 = load double, ptr %106, align 8, !tbaa !10
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i64 8
  %110 = load ptr, ptr %109, align 8, !tbaa !8
  %111 = getelementptr inbounds i8, ptr %110, i64 8
  %112 = load double, ptr %111, align 8, !tbaa !10
  %113 = fneg double %107
  %114 = call double @llvm.fmuladd.f64(double %113, double %112, double %104)
  store double %114, ptr %103, align 8, !tbaa !10
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i64 8
  %117 = load double, ptr %116, align 8, !tbaa !10
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.385, i32 noundef 1, double noundef %117)
  %119 = getelementptr inbounds i8, ptr %13, i64 56
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %2, ptr noundef nonnull %11, ptr noundef %0)
  %120 = load ptr, ptr %21, align 8, !tbaa !5
  store double 1.000000e+01, ptr %120, align 8, !tbaa !10
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  store double 2.000000e+01, ptr %121, align 8, !tbaa !10
  %122 = load ptr, ptr %21, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i64 8
  store double 1.000000e+01, ptr %123, align 8, !tbaa !10
  %124 = load ptr, ptr %17, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i64 8
  store double 2.000000e+01, ptr %125, align 8, !tbaa !10
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %2, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef %0)
  %126 = load ptr, ptr %18, align 8, !tbaa !5
  store double 1.000000e+00, ptr %126, align 8, !tbaa !10
  %127 = load ptr, ptr %18, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i64 8
  store double 1.000000e+00, ptr %128, align 8, !tbaa !10
  call void @_ZN11alglib_impl14minqpsetoriginEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %2, ptr noundef nonnull %8, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %2, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %2, ptr noundef nonnull %6, ptr noundef nonnull %10, ptr noundef %0)
  call void @_ZN11alglib_impl9rmatrixmvEllPNS_9ae_matrixElllPNS_9ae_vectorElS3_lPNS_8ae_stateE(i64 noundef 2, i64 noundef 2, ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %6, i64 noundef 0, ptr noundef nonnull %13, i64 noundef 0, ptr noundef %0)
  call void @_ZN11alglib_impl9rmatrixmvEllPNS_9ae_matrixElllPNS_9ae_vectorElS3_lPNS_8ae_stateE(i64 noundef 2, i64 noundef 2, ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %6, i64 noundef 0, ptr noundef nonnull %14, i64 noundef 0, ptr noundef %0)
  %129 = load ptr, ptr %18, align 8, !tbaa !5
  %130 = load ptr, ptr %15, align 8, !tbaa !5
  %131 = load double, ptr %129, align 8, !tbaa !10
  %132 = load ptr, ptr %130, align 8, !tbaa !8
  %133 = load double, ptr %132, align 8, !tbaa !10
  %134 = fneg double %131
  %135 = call double @llvm.fmuladd.f64(double %134, double %133, double 0.000000e+00)
  %136 = getelementptr inbounds i8, ptr %129, i64 8
  %137 = load double, ptr %136, align 8, !tbaa !10
  %138 = getelementptr inbounds i8, ptr %130, i64 8
  %139 = load ptr, ptr %138, align 8, !tbaa !8
  %140 = load double, ptr %139, align 8, !tbaa !10
  %141 = fneg double %137
  %142 = call double @llvm.fmuladd.f64(double %141, double %140, double %135)
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = load double, ptr %143, align 8, !tbaa !10
  %145 = fadd double %142, %144
  %146 = load ptr, ptr %119, align 8, !tbaa !5
  %147 = load double, ptr %146, align 8, !tbaa !10
  %148 = fadd double %145, %147
  %149 = load ptr, ptr %19, align 8, !tbaa !5
  %150 = load double, ptr %149, align 8, !tbaa !10
  %151 = fadd double %148, %150
  %152 = load ptr, ptr %53, align 8, !tbaa !5
  store double %151, ptr %152, align 8, !tbaa !10
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  %154 = load ptr, ptr %15, align 8, !tbaa !5
  %155 = load double, ptr %153, align 8, !tbaa !10
  %156 = load ptr, ptr %154, align 8, !tbaa !8
  %157 = getelementptr inbounds i8, ptr %156, i64 8
  %158 = load double, ptr %157, align 8, !tbaa !10
  %159 = fneg double %155
  %160 = call double @llvm.fmuladd.f64(double %159, double %158, double 0.000000e+00)
  %161 = getelementptr inbounds i8, ptr %153, i64 8
  %162 = load double, ptr %161, align 8, !tbaa !10
  %163 = getelementptr inbounds i8, ptr %154, i64 8
  %164 = load ptr, ptr %163, align 8, !tbaa !8
  %165 = getelementptr inbounds i8, ptr %164, i64 8
  %166 = load double, ptr %165, align 8, !tbaa !10
  %167 = fneg double %162
  %168 = call double @llvm.fmuladd.f64(double %167, double %166, double %160)
  %169 = load ptr, ptr %16, align 8, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %169, i64 8
  %171 = load double, ptr %170, align 8, !tbaa !10
  %172 = fadd double %168, %171
  %173 = load ptr, ptr %119, align 8, !tbaa !5
  %174 = getelementptr inbounds i8, ptr %173, i64 8
  %175 = load double, ptr %174, align 8, !tbaa !10
  %176 = fadd double %172, %175
  %177 = load ptr, ptr %19, align 8, !tbaa !5
  %178 = getelementptr inbounds i8, ptr %177, i64 8
  %179 = load double, ptr %178, align 8, !tbaa !10
  %180 = fadd double %176, %179
  %181 = load ptr, ptr %53, align 8, !tbaa !5
  %182 = getelementptr inbounds i8, ptr %181, i64 8
  store double %180, ptr %182, align 8, !tbaa !10
  %183 = call noundef double @_ZL35testminqpunit_projectedantigradnormlPN11alglib_impl9ae_vectorES1_S1_S1_PNS_8ae_stateE(i64 noundef 2, ptr noundef nonnull %6, ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef %0)
  %184 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.386, i32 noundef 2)
  %185 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.387, i32 noundef 0)
  %186 = load i64, ptr %20, align 8, !tbaa !12
  %187 = trunc i64 %186 to i32
  %188 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.388, i32 noundef %187)
  %189 = load ptr, ptr %64, align 8, !tbaa !5
  %190 = load double, ptr %189, align 8, !tbaa !10
  %191 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.389, i32 noundef 0, double noundef %190)
  %192 = load ptr, ptr %21, align 8, !tbaa !5
  %193 = load double, ptr %192, align 8, !tbaa !10
  %194 = load ptr, ptr %17, align 8, !tbaa !5
  %195 = load double, ptr %194, align 8, !tbaa !10
  %196 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.390, i32 noundef 0, double noundef %193, i32 noundef 0, double noundef %195)
  %197 = load ptr, ptr %18, align 8, !tbaa !5
  %198 = load double, ptr %197, align 8, !tbaa !10
  %199 = load ptr, ptr %52, align 8, !tbaa !5
  %200 = load double, ptr %199, align 8, !tbaa !10
  %201 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.391, i32 noundef 0, double noundef %198, i32 noundef 0, double noundef %200)
  %202 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.392, i32 noundef 0, double noundef %183)
  %203 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %183, ptr noundef %0)
  %204 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %203, double noundef 1.000000e-03)
  br i1 %204, label %227, label %205

205:                                              ; preds = %.preheader149.preheader
  %206 = load ptr, ptr %64, align 8, !tbaa !5
  %207 = getelementptr inbounds i8, ptr %206, i64 8
  %208 = load double, ptr %207, align 8, !tbaa !10
  %209 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.389, i32 noundef 1, double noundef %208)
  %210 = load ptr, ptr %21, align 8, !tbaa !5
  %211 = getelementptr inbounds i8, ptr %210, i64 8
  %212 = load double, ptr %211, align 8, !tbaa !10
  %213 = load ptr, ptr %17, align 8, !tbaa !5
  %214 = getelementptr inbounds i8, ptr %213, i64 8
  %215 = load double, ptr %214, align 8, !tbaa !10
  %216 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.390, i32 noundef 1, double noundef %212, i32 noundef 1, double noundef %215)
  %217 = load ptr, ptr %18, align 8, !tbaa !5
  %218 = getelementptr inbounds i8, ptr %217, i64 8
  %219 = load double, ptr %218, align 8, !tbaa !10
  %220 = load ptr, ptr %52, align 8, !tbaa !5
  %221 = getelementptr inbounds i8, ptr %220, i64 8
  %222 = load double, ptr %221, align 8, !tbaa !10
  %223 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.391, i32 noundef 1, double noundef %219, i32 noundef 1, double noundef %222)
  %224 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.392, i32 noundef 1, double noundef %183)
  %225 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %183, ptr noundef %0)
  %226 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %225, double noundef 1.000000e-03)
  br i1 %226, label %227, label %.loopexit

227:                                              ; preds = %205, %.preheader149.preheader
  br label %.loopexit

.loopexit:                                        ; preds = %205, %227
  %228 = phi i1 [ true, %227 ], [ false, %205 ]
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 35232, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  ret i1 %228
}

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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !6, i64 0}
!12 = !{!13, !14, i64 32}
!13 = !{!"_ZTSN11alglib_impl11minqpreportE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32}
!14 = !{!"long", !6, i64 0}


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