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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::minqpstate" = type { i64, %"struct.alglib_impl::qqpsettings", %"struct.alglib_impl::qpbleicsettings", %"struct.alglib_impl::qpdenseaulsettings", i8, i64, i64, %"struct.alglib_impl::convexquadraticmodel", %"struct.alglib_impl::sparsematrix", i8, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_matrix", i64, i64, %"struct.alglib_impl::sparsematrix", i64, i64, %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::qpbleicbuffers", %"struct.alglib_impl::qqpbuffers", %"struct.alglib_impl::qpdenseaulbuffers" }
%"struct.alglib_impl::qqpsettings" = type { double, double, double, i64, i8, i8, i64, i64, i64, i64 }
%"struct.alglib_impl::qpbleicsettings" = type { double, double, double, i64 }
%"struct.alglib_impl::qpdenseaulsettings" = type { double, i64, double }
%"struct.alglib_impl::convexquadraticmodel" = type { i64, i64, double, double, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i8, i8, i8, i8 }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::qpbleicbuffers" = type { %"struct.alglib_impl::minbleicstate", %"struct.alglib_impl::minbleicreport", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64 }
%"struct.alglib_impl::minbleicstate" = type { i64, i64, double, double, double, i64, i8, i8, double, double, %"struct.alglib_impl::sactiveset", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, i8, i8, i8, %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, i64, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, double, double, double, double, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::snnlssolver", double, double, double, double, double, double, double, double, double, i64, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::linminstate", double, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sactiveset" = type { i64, i64, %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::ae_vector", i64, i64, i8, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::snnlssolver", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::snnlssolver" = type { i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::linminstate" = type { i8, i8, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"struct.alglib_impl::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, i8, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::minbleicreport" = type { i64, i64, i64, i64, double, double, double, double, i64, i64, i64, i64 }
%"struct.alglib_impl::qqpbuffers" = type { i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", i8, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sactiveset", %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsebuffers", i64, i64, i64, i64 }
%"struct.alglib_impl::sparsebuffers" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix" }
%"struct.alglib_impl::qpdenseaulbuffers" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::qqpsettings", %"struct.alglib_impl::qqpbuffers", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::convexquadraticmodel", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::minqpreport" = type { i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_state" = type { i64, double, double, double, ptr, %"struct.alglib_impl::ae_dyn_block", ptr, i32, ptr, i64, ptr, ptr, ptr }

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

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

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

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z10simpletestPN11alglib_impl8ae_stateE(ptr noundef %0) #4 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.alglib_impl::ae_frame", align 8
  %5 = alloca %"struct.alglib_impl::minqpstate", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca double, align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca i64, align 8
  %21 = alloca %"struct.alglib_impl::minqpreport", align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i8, align 1
  %27 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 35232, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #5
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %28, ptr noundef %4)
  call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 35232, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 40, i1 false)
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_minqpstate_initEPvPNS_8ae_stateEb(ptr noundef %5, ptr noundef %29, i1 noundef zeroext true)
  %30 = 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 %30, i1 noundef zeroext true)
  %31 = 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 %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 %14, 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 %15, 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 %16, 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 %18, 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 %19, 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_impl17_minqpreport_initEPvPNS_8ae_stateEb(ptr noundef %21, ptr noundef %37, i1 noundef zeroext true)
  store double 1.000000e-03, ptr %25, align 8, !tbaa !9
  store i64 5, ptr %7, align 8, !tbaa !11
  store double 1.000000e+01, ptr %17, align 8, !tbaa !9
  store i64 1000, ptr %6, align 8, !tbaa !11
  store double 1.000000e+01, ptr %22, align 8, !tbaa !9
  store double 1.000000e+03, ptr %23, align 8, !tbaa !9
  store double -1.000000e+03, ptr %24, align 8, !tbaa !9
  store i64 1, ptr %8, align 8, !tbaa !11
  br label %38

38:                                               ; preds = %361, %1
  %39 = load i64, ptr %8, align 8, !tbaa !11
  %40 = load i64, ptr %7, align 8, !tbaa !11
  %41 = icmp sle i64 %39, %40
  br i1 %41, label %42, label %364

42:                                               ; preds = %38
  %43 = load i64, ptr %8, align 8, !tbaa !11
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %43, ptr noundef %44)
  %45 = load i64, ptr %8, align 8, !tbaa !11
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %45, ptr noundef %46)
  %47 = load i64, ptr %8, align 8, !tbaa !11
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %47, ptr noundef %48)
  %49 = load i64, ptr %8, align 8, !tbaa !11
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %49, ptr noundef %50)
  %51 = load i64, ptr %8, align 8, !tbaa !11
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %51, ptr noundef %52)
  %53 = load i64, ptr %8, align 8, !tbaa !11
  %54 = load i64, ptr %8, align 8, !tbaa !11
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %12, i64 noundef %53, i64 noundef %54, ptr noundef %55)
  store i64 0, ptr %9, align 8, !tbaa !11
  br label %56

56:                                               ; preds = %357, %42
  %57 = load i64, ptr %9, align 8, !tbaa !11
  %58 = load i64, ptr %6, align 8, !tbaa !11
  %59 = icmp sle i64 %57, %58
  br i1 %59, label %60, label %360

60:                                               ; preds = %56
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %61

61:                                               ; preds = %100, %60
  %62 = load i64, ptr %11, align 8, !tbaa !11
  %63 = load i64, ptr %8, align 8, !tbaa !11
  %64 = sub nsw i64 %63, 1
  %65 = icmp sle i64 %62, %64
  br i1 %65, label %66, label %103

66:                                               ; preds = %61
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %67

67:                                               ; preds = %96, %66
  %68 = load i64, ptr %10, align 8, !tbaa !11
  %69 = load i64, ptr %11, align 8, !tbaa !11
  %70 = icmp sle i64 %68, %69
  br i1 %70, label %71, label %99

71:                                               ; preds = %67
  %72 = load i64, ptr %10, align 8, !tbaa !11
  %73 = load i64, ptr %11, align 8, !tbaa !11
  %74 = icmp ne i64 %72, %73
  br i1 %74, label %75, label %83

75:                                               ; preds = %71
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %77 = load ptr, ptr %76, align 8, !tbaa !13
  %78 = load i64, ptr %11, align 8, !tbaa !11
  %79 = getelementptr inbounds ptr, ptr %77, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = load i64, ptr %10, align 8, !tbaa !11
  %82 = getelementptr inbounds double, ptr %80, i64 %81
  store double 0.000000e+00, ptr %82, align 8, !tbaa !9
  br label %95

83:                                               ; preds = %71
  %84 = load double, ptr %22, align 8, !tbaa !9
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %85)
  %87 = call double @llvm.fmuladd.f64(double %84, double %86, double 1.000000e+00)
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %89 = load ptr, ptr %88, align 8, !tbaa !13
  %90 = load i64, ptr %11, align 8, !tbaa !11
  %91 = getelementptr inbounds ptr, ptr %89, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = load i64, ptr %10, align 8, !tbaa !11
  %94 = getelementptr inbounds double, ptr %92, i64 %93
  store double %87, ptr %94, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %83, %75
  br label %96

96:                                               ; preds = %95
  %97 = load i64, ptr %10, align 8, !tbaa !11
  %98 = add nsw i64 %97, 1
  store i64 %98, ptr %10, align 8, !tbaa !11
  br label %67, !llvm.loop !14

99:                                               ; preds = %67
  br label %100

100:                                              ; preds = %99
  %101 = load i64, ptr %11, align 8, !tbaa !11
  %102 = add nsw i64 %101, 1
  store i64 %102, ptr %11, align 8, !tbaa !11
  br label %61, !llvm.loop !16

103:                                              ; preds = %61
  %104 = load i64, ptr %8, align 8, !tbaa !11
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %104, ptr noundef %5, ptr noundef %105)
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL29testminqpunit_setrandomalgobcPN11alglib_impl10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %106)
  %107 = 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 %107)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %108

108:                                              ; preds = %231, %103
  %109 = load i64, ptr %10, align 8, !tbaa !11
  %110 = load i64, ptr %8, align 8, !tbaa !11
  %111 = sub nsw i64 %110, 1
  %112 = icmp sle i64 %109, %111
  br i1 %112, label %113, label %234

113:                                              ; preds = %108
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %114)
  store i64 %115, ptr %20, align 8, !tbaa !11
  %116 = load i64, ptr %20, align 8, !tbaa !11
  %117 = icmp eq i64 %116, 0
  br i1 %117, label %118, label %133

118:                                              ; preds = %113
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %119, i32 0, i32 3
  %121 = load double, ptr %120, align 8, !tbaa !17
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !13
  %124 = load i64, ptr %10, align 8, !tbaa !11
  %125 = getelementptr inbounds double, ptr %123, i64 %124
  store double %121, ptr %125, align 8, !tbaa !9
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %126, i32 0, i32 2
  %128 = load double, ptr %127, align 8, !tbaa !22
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %130 = load ptr, ptr %129, align 8, !tbaa !13
  %131 = load i64, ptr %10, align 8, !tbaa !11
  %132 = getelementptr inbounds double, ptr %130, i64 %131
  store double %128, ptr %132, align 8, !tbaa !9
  br label %230

133:                                              ; preds = %113
  %134 = load i64, ptr %20, align 8, !tbaa !11
  %135 = icmp eq i64 %134, 1
  br i1 %135, label %136, label %155

136:                                              ; preds = %133
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %137, i32 0, i32 3
  %139 = load double, ptr %138, align 8, !tbaa !17
  %140 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !13
  %142 = load i64, ptr %10, align 8, !tbaa !11
  %143 = getelementptr inbounds double, ptr %141, i64 %142
  store double %139, ptr %143, align 8, !tbaa !9
  %144 = load double, ptr %23, align 8, !tbaa !9
  %145 = load double, ptr %24, align 8, !tbaa !9
  %146 = fsub double %144, %145
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %147)
  %149 = load double, ptr %24, align 8, !tbaa !9
  %150 = call double @llvm.fmuladd.f64(double %146, double %148, double %149)
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !13
  %153 = load i64, ptr %10, align 8, !tbaa !11
  %154 = getelementptr inbounds double, ptr %152, i64 %153
  store double %150, ptr %154, align 8, !tbaa !9
  br label %229

155:                                              ; preds = %133
  %156 = load i64, ptr %20, align 8, !tbaa !11
  %157 = icmp eq i64 %156, 2
  br i1 %157, label %158, label %177

158:                                              ; preds = %155
  %159 = load double, ptr %23, align 8, !tbaa !9
  %160 = load double, ptr %24, align 8, !tbaa !9
  %161 = fsub double %159, %160
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %162)
  %164 = load double, ptr %24, align 8, !tbaa !9
  %165 = call double @llvm.fmuladd.f64(double %161, double %163, double %164)
  %166 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %167 = load ptr, ptr %166, align 8, !tbaa !13
  %168 = load i64, ptr %10, align 8, !tbaa !11
  %169 = getelementptr inbounds double, ptr %167, i64 %168
  store double %165, ptr %169, align 8, !tbaa !9
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %170, i32 0, i32 2
  %172 = load double, ptr %171, align 8, !tbaa !22
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %174 = load ptr, ptr %173, align 8, !tbaa !13
  %175 = load i64, ptr %10, align 8, !tbaa !11
  %176 = getelementptr inbounds double, ptr %174, i64 %175
  store double %172, ptr %176, align 8, !tbaa !9
  br label %228

177:                                              ; preds = %155
  %178 = load i64, ptr %20, align 8, !tbaa !11
  %179 = icmp eq i64 %178, 3
  br i1 %179, label %180, label %206

180:                                              ; preds = %177
  %181 = load double, ptr %23, align 8, !tbaa !9
  %182 = load double, ptr %24, align 8, !tbaa !9
  %183 = fsub double %181, %182
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %184)
  %186 = load double, ptr %24, align 8, !tbaa !9
  %187 = call double @llvm.fmuladd.f64(double %183, double %185, double %186)
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !13
  %190 = load i64, ptr %10, align 8, !tbaa !11
  %191 = getelementptr inbounds double, ptr %189, i64 %190
  store double %187, ptr %191, align 8, !tbaa !9
  %192 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %193 = load ptr, ptr %192, align 8, !tbaa !13
  %194 = load i64, ptr %10, align 8, !tbaa !11
  %195 = getelementptr inbounds double, ptr %193, i64 %194
  %196 = load double, ptr %195, align 8, !tbaa !9
  %197 = load double, ptr %17, align 8, !tbaa !9
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %198)
  %200 = call double @llvm.fmuladd.f64(double %197, double %199, double %196)
  %201 = fadd double %200, 1.000000e-02
  %202 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %203 = load ptr, ptr %202, align 8, !tbaa !13
  %204 = load i64, ptr %10, align 8, !tbaa !11
  %205 = getelementptr inbounds double, ptr %203, i64 %204
  store double %201, ptr %205, align 8, !tbaa !9
  br label %227

206:                                              ; preds = %177
  %207 = load double, ptr %23, align 8, !tbaa !9
  %208 = load double, ptr %24, align 8, !tbaa !9
  %209 = fsub double %207, %208
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %210)
  %212 = load double, ptr %24, align 8, !tbaa !9
  %213 = call double @llvm.fmuladd.f64(double %209, double %211, double %212)
  %214 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %215 = load ptr, ptr %214, align 8, !tbaa !13
  %216 = load i64, ptr %10, align 8, !tbaa !11
  %217 = getelementptr inbounds double, ptr %215, i64 %216
  store double %213, ptr %217, align 8, !tbaa !9
  %218 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %219 = load ptr, ptr %218, align 8, !tbaa !13
  %220 = load i64, ptr %10, align 8, !tbaa !11
  %221 = getelementptr inbounds double, ptr %219, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !9
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !13
  %225 = load i64, ptr %10, align 8, !tbaa !11
  %226 = getelementptr inbounds double, ptr %224, i64 %225
  store double %222, ptr %226, align 8, !tbaa !9
  br label %227

227:                                              ; preds = %206, %180
  br label %228

228:                                              ; preds = %227, %158
  br label %229

229:                                              ; preds = %228, %136
  br label %230

230:                                              ; preds = %229, %118
  br label %231

231:                                              ; preds = %230
  %232 = load i64, ptr %10, align 8, !tbaa !11
  %233 = add nsw i64 %232, 1
  store i64 %233, ptr %10, align 8, !tbaa !11
  br label %108, !llvm.loop !23

234:                                              ; preds = %108
  %235 = 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 %235)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %236

236:                                              ; preds = %274, %234
  %237 = load i64, ptr %10, align 8, !tbaa !11
  %238 = load i64, ptr %8, align 8, !tbaa !11
  %239 = sub nsw i64 %238, 1
  %240 = icmp sle i64 %237, %239
  br i1 %240, label %241, label %277

241:                                              ; preds = %236
  %242 = load double, ptr %23, align 8, !tbaa !9
  %243 = load double, ptr %24, align 8, !tbaa !9
  %244 = fsub double %242, %243
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %245)
  %247 = load double, ptr %24, align 8, !tbaa !9
  %248 = call double @llvm.fmuladd.f64(double %244, double %246, double %247)
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %250 = load ptr, ptr %249, align 8, !tbaa !13
  %251 = load i64, ptr %10, align 8, !tbaa !11
  %252 = getelementptr inbounds double, ptr %250, i64 %251
  store double %248, ptr %252, align 8, !tbaa !9
  %253 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %254 = load ptr, ptr %253, align 8, !tbaa !13
  %255 = load i64, ptr %10, align 8, !tbaa !11
  %256 = getelementptr inbounds double, ptr %254, i64 %255
  %257 = load double, ptr %256, align 8, !tbaa !9
  %258 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %259 = load ptr, ptr %258, align 8, !tbaa !13
  %260 = load i64, ptr %10, align 8, !tbaa !11
  %261 = getelementptr inbounds double, ptr %259, i64 %260
  %262 = load double, ptr %261, align 8, !tbaa !9
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %264 = load ptr, ptr %263, align 8, !tbaa !13
  %265 = load i64, ptr %10, align 8, !tbaa !11
  %266 = getelementptr inbounds double, ptr %264, i64 %265
  %267 = load double, ptr %266, align 8, !tbaa !9
  %268 = load ptr, ptr %3, align 8, !tbaa !5
  %269 = call noundef double @_ZN11alglib_impl8boundvalEdddPNS_8ae_stateE(double noundef %257, double noundef %262, double noundef %267, ptr noundef %268)
  %270 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %271 = load ptr, ptr %270, align 8, !tbaa !13
  %272 = load i64, ptr %10, align 8, !tbaa !11
  %273 = getelementptr inbounds double, ptr %271, i64 %272
  store double %269, ptr %273, align 8, !tbaa !9
  br label %274

274:                                              ; preds = %241
  %275 = load i64, ptr %10, align 8, !tbaa !11
  %276 = add nsw i64 %275, 1
  store i64 %276, ptr %10, align 8, !tbaa !11
  br label %236, !llvm.loop !24

277:                                              ; preds = %236
  %278 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14minqpsetoriginEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %19, ptr noundef %278)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %279

279:                                              ; preds = %296, %277
  %280 = load i64, ptr %10, align 8, !tbaa !11
  %281 = load i64, ptr %8, align 8, !tbaa !11
  %282 = sub nsw i64 %281, 1
  %283 = icmp sle i64 %280, %282
  br i1 %283, label %284, label %299

284:                                              ; preds = %279
  %285 = load double, ptr %23, align 8, !tbaa !9
  %286 = load double, ptr %24, align 8, !tbaa !9
  %287 = fsub double %285, %286
  %288 = load ptr, ptr %3, align 8, !tbaa !5
  %289 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %288)
  %290 = load double, ptr %24, align 8, !tbaa !9
  %291 = call double @llvm.fmuladd.f64(double %287, double %289, double %290)
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, 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
  store double %291, ptr %295, align 8, !tbaa !9
  br label %296

296:                                              ; preds = %284
  %297 = load i64, ptr %10, align 8, !tbaa !11
  %298 = add nsw i64 %297, 1
  store i64 %298, ptr %10, align 8, !tbaa !11
  br label %279, !llvm.loop !25

299:                                              ; preds = %279
  %300 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetstartingpointEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %5, ptr noundef %18, ptr noundef %300)
  %301 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %5, ptr noundef %301)
  %302 = 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 %21, ptr noundef %302)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %303

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

308:                                              ; preds = %303
  %309 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %310 = load ptr, ptr %309, align 8, !tbaa !13
  %311 = load i64, ptr %10, align 8, !tbaa !11
  %312 = getelementptr inbounds double, ptr %310, i64 %311
  %313 = load double, ptr %312, align 8, !tbaa !9
  %314 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %315 = load ptr, ptr %314, align 8, !tbaa !13
  %316 = load i64, ptr %10, align 8, !tbaa !11
  %317 = getelementptr inbounds double, ptr %315, i64 %316
  %318 = load double, ptr %317, align 8, !tbaa !9
  %319 = fsub double %313, %318
  %320 = load ptr, ptr %3, align 8, !tbaa !5
  %321 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %319, ptr noundef %320)
  %322 = load double, ptr %25, align 8, !tbaa !9
  %323 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %321, double noundef %322)
  br i1 %323, label %348, label %324

324:                                              ; preds = %308
  %325 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %326 = load ptr, ptr %325, align 8, !tbaa !13
  %327 = load i64, ptr %10, align 8, !tbaa !11
  %328 = getelementptr inbounds double, ptr %326, i64 %327
  %329 = load double, ptr %328, align 8, !tbaa !9
  %330 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %331 = load ptr, ptr %330, align 8, !tbaa !13
  %332 = load i64, ptr %10, align 8, !tbaa !11
  %333 = getelementptr inbounds double, ptr %331, i64 %332
  %334 = load double, ptr %333, align 8, !tbaa !9
  %335 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %329, double noundef %334)
  br i1 %335, label %348, label %336

336:                                              ; preds = %324
  %337 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %338 = load ptr, ptr %337, align 8, !tbaa !13
  %339 = load i64, ptr %10, align 8, !tbaa !11
  %340 = getelementptr inbounds double, ptr %338, i64 %339
  %341 = load double, ptr %340, align 8, !tbaa !9
  %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 noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %341, double noundef %346)
  br i1 %347, label %348, label %352

348:                                              ; preds = %336, %324, %308
  store i8 1, ptr %26, align 1, !tbaa !26
  %349 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %349)
  %350 = load i8, ptr %26, align 1, !tbaa !26, !range !28, !noundef !29
  %351 = trunc i8 %350 to i1
  store i1 %351, ptr %2, align 1
  store i32 1, ptr %27, align 4
  br label %368

352:                                              ; preds = %336
  br label %353

353:                                              ; preds = %352
  %354 = load i64, ptr %10, align 8, !tbaa !11
  %355 = add nsw i64 %354, 1
  store i64 %355, ptr %10, align 8, !tbaa !11
  br label %303, !llvm.loop !30

356:                                              ; preds = %303
  br label %357

357:                                              ; preds = %356
  %358 = load i64, ptr %9, align 8, !tbaa !11
  %359 = add nsw i64 %358, 1
  store i64 %359, ptr %9, align 8, !tbaa !11
  br label %56, !llvm.loop !31

360:                                              ; preds = %56
  br label %361

361:                                              ; preds = %360
  %362 = load i64, ptr %8, align 8, !tbaa !11
  %363 = add nsw i64 %362, 1
  store i64 %363, ptr %8, align 8, !tbaa !11
  br label %38, !llvm.loop !32

364:                                              ; preds = %38
  store i8 0, ptr %26, align 1, !tbaa !26
  %365 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %365)
  %366 = load i8, ptr %26, align 1, !tbaa !26, !range !28, !noundef !29
  %367 = trunc i8 %366 to i1
  store i1 %367, ptr %2, align 1
  store i32 1, ptr %27, align 4
  br label %368

368:                                              ; preds = %364, %348
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 35232, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  %369 = load i1, ptr %2, align 1
  ret i1 %369
}

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 noundef double @_ZN11alglib_impl8boundvalEdddPNS_8ae_stateE(double noundef, double noundef, double noundef, ptr noundef) #1

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

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

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

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

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 = !{!18, !10, i64 24}
!18 = !{!"_ZTSN11alglib_impl8ae_stateE", !12, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !19, i64 40, !6, i64 72, !20, i64 80, !6, i64 88, !21, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!19 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!20 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!21 = !{!"long long", !7, i64 0}
!22 = !{!18, !10, i64 16}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!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 }

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z10simpletestPN11alglib_impl8ae_stateE(ptr noundef %0) local_unnamed_addr #4 {
  %2 = alloca %"struct.alglib_impl::ae_frame", align 8
  %3 = alloca %"struct.alglib_impl::minqpstate", align 8
  %4 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %5 = alloca %"struct.alglib_impl::ae_vector", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::minqpreport", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 35232, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %0, ptr noundef nonnull %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(35232) %3, i8 0, i64 35232, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %4, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %5, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %11, i8 0, i64 40, i1 false)
  call void @_ZN11alglib_impl16_minqpstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %4, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl17_minqpreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %11, ptr noundef %0, i1 noundef zeroext true)
  %12 = getelementptr inbounds i8, ptr %4, i64 72
  %13 = getelementptr inbounds i8, ptr %6, i64 56
  %14 = getelementptr inbounds i8, ptr %5, i64 56
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = getelementptr inbounds i8, ptr %10, i64 56
  %18 = getelementptr inbounds i8, ptr %8, i64 56
  %19 = getelementptr inbounds i8, ptr %9, i64 56
  %20 = getelementptr inbounds i8, ptr %7, i64 56
  br label %21

21:                                               ; preds = %1, %135
  %22 = phi i1 [ true, %1 ], [ %137, %135 ]
  %.0130150 = phi i64 [ 1, %1 ], [ %136, %135 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0130150, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.0130150, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0130150, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0130150, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0130150, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0130150, i64 noundef %.0130150, ptr noundef %0)
  br label %.preheader141

.preheader141:                                    ; preds = %21, %133
  %.0131149 = phi i64 [ 0, %21 ], [ %134, %133 ]
  br label %.preheader

.preheader:                                       ; preds = %.preheader141, %33
  %indvars.iv = phi i64 [ 1, %.preheader141 ], [ %indvars.iv.next, %33 ]
  %.0133144 = phi i64 [ 0, %.preheader141 ], [ %34, %33 ]
  br label %23

23:                                               ; preds = %.preheader, %27
  %.0132143 = phi i64 [ 0, %.preheader ], [ %32, %27 ]
  %.not140 = icmp eq i64 %.0132143, %.0133144
  br i1 %.not140, label %24, label %27

24:                                               ; preds = %23
  %25 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %26 = call double @llvm.fmuladd.f64(double %25, double 1.000000e+01, double 1.000000e+00)
  br label %27

27:                                               ; preds = %23, %24
  %.0132143.sink = phi i64 [ %.0133144, %24 ], [ %.0132143, %23 ]
  %.sink = phi double [ %26, %24 ], [ 0.000000e+00, %23 ]
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  %29 = getelementptr inbounds ptr, ptr %28, i64 %.0133144
  %30 = load ptr, ptr %29, align 8, !tbaa !8
  %31 = getelementptr inbounds double, ptr %30, i64 %.0132143.sink
  store double %.sink, ptr %31, align 8, !tbaa !10
  %32 = add nuw nsw i64 %.0132143, 1
  %exitcond.not = icmp eq i64 %32, %indvars.iv
  br i1 %exitcond.not, label %33, label %23, !llvm.loop !12

33:                                               ; preds = %27
  %34 = add nuw nsw i64 %.0133144, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond154.not = icmp eq i64 %34, %.0130150
  br i1 %exitcond154.not, label %35, label %.preheader, !llvm.loop !14

35:                                               ; preds = %33
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %.0130150, ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZL29testminqpunit_setrandomalgobcPN11alglib_impl10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl21minqpsetquadratictermEPNS_10minqpstateEPNS_9ae_matrixEbPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %4, i1 noundef zeroext false, ptr noundef %0)
  br label %36

36:                                               ; preds = %35, %74
  %.1145 = phi i64 [ 0, %35 ], [ %77, %74 ]
  %37 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %0)
  switch i64 %37, label %66 [
    i64 0, label %38
    i64 1, label %43
    i64 2, label %49
    i64 3, label %55
  ]

38:                                               ; preds = %36
  %39 = load double, ptr %16, align 8, !tbaa !15
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  %41 = getelementptr inbounds double, ptr %40, i64 %.1145
  store double %39, ptr %41, align 8, !tbaa !10
  %42 = load double, ptr %15, align 8, !tbaa !21
  br label %74

43:                                               ; preds = %36
  %44 = load double, ptr %16, align 8, !tbaa !15
  %45 = load ptr, ptr %13, align 8, !tbaa !5
  %46 = getelementptr inbounds double, ptr %45, i64 %.1145
  store double %44, ptr %46, align 8, !tbaa !10
  %47 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %48 = call double @llvm.fmuladd.f64(double %47, double 2.000000e+03, double -1.000000e+03)
  br label %74

49:                                               ; preds = %36
  %50 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %51 = call double @llvm.fmuladd.f64(double %50, double 2.000000e+03, double -1.000000e+03)
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = getelementptr inbounds double, ptr %52, i64 %.1145
  store double %51, ptr %53, align 8, !tbaa !10
  %54 = load double, ptr %15, align 8, !tbaa !21
  br label %74

55:                                               ; preds = %36
  %56 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %57 = call double @llvm.fmuladd.f64(double %56, double 2.000000e+03, double -1.000000e+03)
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = getelementptr inbounds double, ptr %58, i64 %.1145
  store double %57, ptr %59, align 8, !tbaa !10
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = getelementptr inbounds double, ptr %60, i64 %.1145
  %62 = load double, ptr %61, align 8, !tbaa !10
  %63 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %64 = call double @llvm.fmuladd.f64(double %63, double 1.000000e+01, double %62)
  %65 = fadd double %64, 1.000000e-02
  br label %74

66:                                               ; preds = %36
  %67 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %68 = call double @llvm.fmuladd.f64(double %67, double 2.000000e+03, double -1.000000e+03)
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 %.1145
  store double %68, ptr %70, align 8, !tbaa !10
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i64 %.1145
  %73 = load double, ptr %72, align 8, !tbaa !10
  br label %74

74:                                               ; preds = %38, %49, %66, %55, %43
  %.sink167 = phi double [ %42, %38 ], [ %54, %49 ], [ %73, %66 ], [ %65, %55 ], [ %48, %43 ]
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = getelementptr inbounds double, ptr %75, i64 %.1145
  store double %.sink167, ptr %76, align 8, !tbaa !10
  %77 = add nuw nsw i64 %.1145, 1
  %exitcond155.not = icmp eq i64 %77, %.0130150
  br i1 %exitcond155.not, label %78, label %36, !llvm.loop !22

78:                                               ; preds = %74
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %5, ptr noundef %0)
  br label %79

79:                                               ; preds = %78, %79
  %.2146 = phi i64 [ 0, %78 ], [ %96, %79 ]
  %80 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %81 = call double @llvm.fmuladd.f64(double %80, double 2.000000e+03, double -1.000000e+03)
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = getelementptr inbounds double, ptr %82, i64 %.2146
  store double %81, ptr %83, align 8, !tbaa !10
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = getelementptr inbounds double, ptr %84, i64 %.2146
  %86 = load double, ptr %85, align 8, !tbaa !10
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = getelementptr inbounds double, ptr %87, i64 %.2146
  %89 = load double, ptr %88, align 8, !tbaa !10
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i64 %.2146
  %92 = load double, ptr %91, align 8, !tbaa !10
  %93 = call noundef double @_ZN11alglib_impl8boundvalEdddPNS_8ae_stateE(double noundef %86, double noundef %89, double noundef %92, ptr noundef %0)
  %94 = load ptr, ptr %18, align 8, !tbaa !5
  %95 = getelementptr inbounds double, ptr %94, i64 %.2146
  store double %93, ptr %95, align 8, !tbaa !10
  %96 = add nuw nsw i64 %.2146, 1
  %exitcond156.not = icmp eq i64 %96, %.0130150
  br i1 %exitcond156.not, label %97, label %79, !llvm.loop !23

97:                                               ; preds = %79
  call void @_ZN11alglib_impl14minqpsetoriginEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %10, ptr noundef %0)
  br label %98

98:                                               ; preds = %97, %98
  %.3147 = phi i64 [ 0, %97 ], [ %103, %98 ]
  %99 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %100 = call double @llvm.fmuladd.f64(double %99, double 2.000000e+03, double -1.000000e+03)
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  %102 = getelementptr inbounds double, ptr %101, i64 %.3147
  store double %100, ptr %102, align 8, !tbaa !10
  %103 = add nuw nsw i64 %.3147, 1
  %exitcond157.not = icmp eq i64 %103, %.0130150
  br i1 %exitcond157.not, label %104, label %98, !llvm.loop !24

104:                                              ; preds = %98
  call void @_ZN11alglib_impl21minqpsetstartingpointEPNS_10minqpstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %9, ptr noundef %0)
  call void @_ZN11alglib_impl13minqpoptimizeEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl12minqpresultsEPNS_10minqpstateEPNS_9ae_vectorEPNS_11minqpreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %7, ptr noundef nonnull %11, ptr noundef %0)
  br label %107

105:                                              ; preds = %125
  %106 = add nuw nsw i64 %.4148, 1
  %exitcond158.not = icmp eq i64 %106, %.0130150
  br i1 %exitcond158.not, label %133, label %107, !llvm.loop !25

107:                                              ; preds = %104, %105
  %.4148 = phi i64 [ 0, %104 ], [ %106, %105 ]
  %108 = load ptr, ptr %18, align 8, !tbaa !5
  %109 = getelementptr inbounds double, ptr %108, i64 %.4148
  %110 = load double, ptr %109, align 8, !tbaa !10
  %111 = load ptr, ptr %20, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %111, i64 %.4148
  %113 = load double, ptr %112, align 8, !tbaa !10
  %114 = fsub double %110, %113
  %115 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %114, ptr noundef %0)
  %116 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %115, double noundef 1.000000e-03)
  br i1 %116, label %.loopexit, label %117

117:                                              ; preds = %107
  %118 = load ptr, ptr %20, align 8, !tbaa !5
  %119 = getelementptr inbounds double, ptr %118, i64 %.4148
  %120 = load double, ptr %119, align 8, !tbaa !10
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = getelementptr inbounds double, ptr %121, i64 %.4148
  %123 = load double, ptr %122, align 8, !tbaa !10
  %124 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %120, double noundef %123)
  br i1 %124, label %.loopexit, label %125

125:                                              ; preds = %117
  %126 = load ptr, ptr %20, align 8, !tbaa !5
  %127 = getelementptr inbounds double, ptr %126, i64 %.4148
  %128 = load double, ptr %127, align 8, !tbaa !10
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = getelementptr inbounds double, ptr %129, i64 %.4148
  %131 = load double, ptr %130, align 8, !tbaa !10
  %132 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %128, double noundef %131)
  br i1 %132, label %.loopexit, label %105

133:                                              ; preds = %105
  %134 = add nuw nsw i64 %.0131149, 1
  %exitcond159.not = icmp eq i64 %134, 1001
  br i1 %exitcond159.not, label %135, label %.preheader141, !llvm.loop !26

135:                                              ; preds = %133
  %136 = add nuw nsw i64 %.0130150, 1
  %137 = icmp ult i64 %.0130150, 5
  %exitcond160.not = icmp eq i64 %136, 6
  br i1 %exitcond160.not, label %.loopexit, label %21, !llvm.loop !27

.loopexit:                                        ; preds = %135, %107, %117, %125
  %138 = phi i1 [ %22, %125 ], [ %22, %117 ], [ %22, %107 ], [ %137, %135 ]
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 35232, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  ret i1 %138
}

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !11, i64 24}
!16 = !{!"_ZTSN11alglib_impl8ae_stateE", !17, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !9, i64 32, !18, i64 40, !9, i64 72, !19, i64 80, !9, i64 88, !20, i64 96, !9, i64 104, !9, i64 112, !9, i64 120}
!17 = !{!"long", !6, i64 0}
!18 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!19 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !6, i64 0}
!20 = !{!"long long", !6, i64 0}
!21 = !{!16, !11, i64 16}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !13}
!24 = distinct !{!24, !13}
!25 = distinct !{!25, !13}
!26 = distinct !{!26, !13}
!27 = distinct !{!27, !13}


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