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

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

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

@.str.327 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.328 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.329 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.330 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.331 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.332 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.333 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.334 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.335 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.336 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.337 = external hidden unnamed_addr constant [41 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15minqpsetlcmixedEPNS_10minqpstateEPNS_9ae_matrixEPNS_9ae_vectorElPNS_12sparsematrixES5_lPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, i64 noundef %6, ptr noundef %7) #3 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.alglib_impl::ae_frame", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca double, align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca %"struct.alglib_impl::ae_vector", align 8
  %25 = alloca %"struct.alglib_impl::ae_vector", align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca %"struct.alglib_impl::ae_vector", align 8
  %30 = alloca %"struct.alglib_impl::ae_vector", align 8
  %31 = alloca %"struct.alglib_impl::ae_vector", align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store i64 %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store i64 %6, ptr %15, align 8, !tbaa !9
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, 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 64, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %36, ptr noundef %17)
  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)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %29, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 64, i1 false)
  %37 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 2, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %24, i64 noundef 0, i64 noundef 2, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %25, i64 noundef 0, i64 noundef 3, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %26, i64 noundef 0, i64 noundef 2, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 2, ptr noundef %41, i1 noundef zeroext true)
  %42 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %28, i64 noundef 0, i64 noundef 2, ptr noundef %42, i1 noundef zeroext true)
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %29, i64 noundef 0, i64 noundef 3, ptr noundef %43, i1 noundef zeroext true)
  %44 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %30, i64 noundef 0, i64 noundef 2, ptr noundef %44, i1 noundef zeroext true)
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %31, i64 noundef 0, i64 noundef 3, ptr noundef %45, i1 noundef zeroext true)
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %46, i32 0, i32 0
  %48 = load i64, ptr %47, align 8, !tbaa !11
  store i64 %48, ptr %18, align 8, !tbaa !9
  %49 = load i64, ptr %12, align 8, !tbaa !9
  %50 = icmp sge i64 %49, 0
  %51 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %50, ptr noundef @.str.327, ptr noundef %51)
  %52 = load i64, ptr %12, align 8, !tbaa !9
  %53 = icmp eq i64 %52, 0
  br i1 %53, label %61, label %54

54:                                               ; preds = %8
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %55, i32 0, i32 1
  %57 = load i64, ptr %56, align 8, !tbaa !38
  %58 = load i64, ptr %18, align 8, !tbaa !9
  %59 = add nsw i64 %58, 1
  %60 = icmp sge i64 %57, %59
  br label %61

61:                                               ; preds = %54, %8
  %62 = phi i1 [ true, %8 ], [ %60, %54 ]
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %62, ptr noundef @.str.328, ptr noundef %63)
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %64, i32 0, i32 0
  %66 = load i64, ptr %65, align 8, !tbaa !39
  %67 = load i64, ptr %12, align 8, !tbaa !9
  %68 = icmp sge i64 %66, %67
  %69 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %68, ptr noundef @.str.329, ptr noundef %69)
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %70, i32 0, i32 0
  %72 = load i64, ptr %71, align 8, !tbaa !40
  %73 = load i64, ptr %12, align 8, !tbaa !9
  %74 = icmp sge i64 %72, %73
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %74, ptr noundef @.str.330, ptr noundef %75)
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load i64, ptr %12, align 8, !tbaa !9
  %78 = load i64, ptr %18, align 8, !tbaa !9
  %79 = add nsw i64 %78, 1
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %76, i64 noundef %77, i64 noundef %79, ptr noundef %80)
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %81, ptr noundef @.str.331, ptr noundef %82)
  %83 = load i64, ptr %15, align 8, !tbaa !9
  %84 = icmp sge i64 %83, 0
  %85 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %84, ptr noundef @.str.332, ptr noundef %85)
  %86 = load i64, ptr %15, align 8, !tbaa !9
  %87 = icmp eq i64 %86, 0
  br i1 %87, label %95, label %88

88:                                               ; preds = %61
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %89, ptr noundef %90)
  %92 = load i64, ptr %18, align 8, !tbaa !9
  %93 = add nsw i64 %92, 1
  %94 = icmp sge i64 %91, %93
  br label %95

95:                                               ; preds = %88, %61
  %96 = phi i1 [ true, %61 ], [ %94, %88 ]
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %96, ptr noundef @.str.333, ptr noundef %97)
  %98 = load i64, ptr %15, align 8, !tbaa !9
  %99 = icmp eq i64 %98, 0
  br i1 %99, label %106, label %100

100:                                              ; preds = %95
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  %103 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %101, ptr noundef %102)
  %104 = load i64, ptr %15, align 8, !tbaa !9
  %105 = icmp sge i64 %103, %104
  br label %106

106:                                              ; preds = %100, %95
  %107 = phi i1 [ true, %95 ], [ %105, %100 ]
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %107, ptr noundef @.str.334, ptr noundef %108)
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %109, i32 0, i32 0
  %111 = load i64, ptr %110, align 8, !tbaa !40
  %112 = load i64, ptr %15, align 8, !tbaa !9
  %113 = icmp sge i64 %111, %112
  %114 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %113, ptr noundef @.str.335, ptr noundef %114)
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %115, i32 0, i32 24
  store i64 0, ptr %116, align 8, !tbaa !41
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %117, i32 0, i32 25
  store i64 0, ptr %118, align 8, !tbaa !42
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %119, i32 0, i32 27
  store i64 0, ptr %120, align 8, !tbaa !43
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %121, i32 0, i32 28
  store i64 0, ptr %122, align 8, !tbaa !44
  %123 = load i64, ptr %12, align 8, !tbaa !9
  %124 = load i64, ptr %15, align 8, !tbaa !9
  %125 = add nsw i64 %123, %124
  %126 = icmp eq i64 %125, 0
  br i1 %126, label %127, label %129

127:                                              ; preds = %106
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %128)
  store i32 1, ptr %35, align 4
  br label %752

129:                                              ; preds = %106
  %130 = load i64, ptr %12, align 8, !tbaa !9
  %131 = icmp sgt i64 %130, 0
  br i1 %131, label %132, label %323

132:                                              ; preds = %129
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %133, i32 0, i32 23
  %135 = load i64, ptr %12, align 8, !tbaa !9
  %136 = load i64, ptr %18, align 8, !tbaa !9
  %137 = add nsw i64 %136, 1
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %134, i64 noundef %135, i64 noundef %137, ptr noundef %138)
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %139

139:                                              ; preds = %179, %132
  %140 = load i64, ptr %19, align 8, !tbaa !9
  %141 = load i64, ptr %12, align 8, !tbaa !9
  %142 = sub nsw i64 %141, 1
  %143 = icmp sle i64 %140, %142
  br i1 %143, label %144, label %182

144:                                              ; preds = %139
  %145 = load ptr, ptr %11, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %145, i32 0, i32 4
  %147 = load ptr, ptr %146, align 8, !tbaa !45
  %148 = load i64, ptr %19, align 8, !tbaa !9
  %149 = getelementptr inbounds i64, ptr %147, i64 %148
  %150 = load i64, ptr %149, align 8, !tbaa !9
  %151 = icmp eq i64 %150, 0
  br i1 %151, label %152, label %178

152:                                              ; preds = %144
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %153, i32 0, i32 23
  %155 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %154, i32 0, i32 6
  %156 = load ptr, ptr %155, align 8, !tbaa !45
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %157, i32 0, i32 24
  %159 = load i64, ptr %158, align 8, !tbaa !41
  %160 = getelementptr inbounds ptr, ptr %156, i64 %159
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  %162 = getelementptr inbounds double, ptr %161, i64 0
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %163, i32 0, i32 6
  %165 = load ptr, ptr %164, align 8, !tbaa !45
  %166 = load i64, ptr %19, align 8, !tbaa !9
  %167 = getelementptr inbounds ptr, ptr %165, i64 %166
  %168 = load ptr, ptr %167, align 8, !tbaa !5
  %169 = getelementptr inbounds double, ptr %168, i64 0
  %170 = load i64, ptr %18, align 8, !tbaa !9
  %171 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %170)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %162, i64 noundef 1, ptr noundef %169, i64 noundef 1, i64 noundef %171)
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %172, i32 0, i32 24
  %174 = load i64, ptr %173, align 8, !tbaa !41
  %175 = add nsw i64 %174, 1
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %176, i32 0, i32 24
  store i64 %175, ptr %177, align 8, !tbaa !41
  br label %178

178:                                              ; preds = %152, %144
  br label %179

179:                                              ; preds = %178
  %180 = load i64, ptr %19, align 8, !tbaa !9
  %181 = add nsw i64 %180, 1
  store i64 %181, ptr %19, align 8, !tbaa !9
  br label %139, !llvm.loop !46

182:                                              ; preds = %139
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %183

183:                                              ; preds = %260, %182
  %184 = load i64, ptr %19, align 8, !tbaa !9
  %185 = load i64, ptr %12, align 8, !tbaa !9
  %186 = sub nsw i64 %185, 1
  %187 = icmp sle i64 %184, %186
  br i1 %187, label %188, label %263

188:                                              ; preds = %183
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %189, i32 0, i32 4
  %191 = load ptr, ptr %190, align 8, !tbaa !45
  %192 = load i64, ptr %19, align 8, !tbaa !9
  %193 = getelementptr inbounds i64, ptr %191, i64 %192
  %194 = load i64, ptr %193, align 8, !tbaa !9
  %195 = icmp ne i64 %194, 0
  br i1 %195, label %196, label %259

196:                                              ; preds = %188
  %197 = load ptr, ptr %11, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %197, i32 0, i32 4
  %199 = load ptr, ptr %198, align 8, !tbaa !45
  %200 = load i64, ptr %19, align 8, !tbaa !9
  %201 = getelementptr inbounds i64, ptr %199, i64 %200
  %202 = load i64, ptr %201, align 8, !tbaa !9
  %203 = icmp sgt i64 %202, 0
  br i1 %203, label %204, label %228

204:                                              ; preds = %196
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %205, i32 0, i32 23
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %206, i32 0, i32 6
  %208 = load ptr, ptr %207, align 8, !tbaa !45
  %209 = load ptr, ptr %9, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %209, i32 0, i32 24
  %211 = load i64, ptr %210, align 8, !tbaa !41
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %212, i32 0, i32 25
  %214 = load i64, ptr %213, align 8, !tbaa !42
  %215 = add nsw i64 %211, %214
  %216 = getelementptr inbounds ptr, ptr %208, i64 %215
  %217 = load ptr, ptr %216, align 8, !tbaa !5
  %218 = getelementptr inbounds double, ptr %217, i64 0
  %219 = load ptr, ptr %10, align 8, !tbaa !5
  %220 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %219, i32 0, i32 6
  %221 = load ptr, ptr %220, align 8, !tbaa !45
  %222 = load i64, ptr %19, align 8, !tbaa !9
  %223 = getelementptr inbounds ptr, ptr %221, i64 %222
  %224 = load ptr, ptr %223, align 8, !tbaa !5
  %225 = getelementptr inbounds double, ptr %224, i64 0
  %226 = load i64, ptr %18, align 8, !tbaa !9
  %227 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %226)
  call void @_ZN11alglib_impl12ae_v_movenegEPdlPKdll(ptr noundef %218, i64 noundef 1, ptr noundef %225, i64 noundef 1, i64 noundef %227)
  br label %252

228:                                              ; preds = %196
  %229 = load ptr, ptr %9, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %229, i32 0, i32 23
  %231 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %230, i32 0, i32 6
  %232 = load ptr, ptr %231, align 8, !tbaa !45
  %233 = load ptr, ptr %9, align 8, !tbaa !5
  %234 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %233, i32 0, i32 24
  %235 = load i64, ptr %234, align 8, !tbaa !41
  %236 = load ptr, ptr %9, align 8, !tbaa !5
  %237 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %236, i32 0, i32 25
  %238 = load i64, ptr %237, align 8, !tbaa !42
  %239 = add nsw i64 %235, %238
  %240 = getelementptr inbounds ptr, ptr %232, i64 %239
  %241 = load ptr, ptr %240, align 8, !tbaa !5
  %242 = getelementptr inbounds double, ptr %241, i64 0
  %243 = load ptr, ptr %10, align 8, !tbaa !5
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %243, i32 0, i32 6
  %245 = load ptr, ptr %244, align 8, !tbaa !45
  %246 = load i64, ptr %19, align 8, !tbaa !9
  %247 = getelementptr inbounds ptr, ptr %245, i64 %246
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = getelementptr inbounds double, ptr %248, i64 0
  %250 = load i64, ptr %18, align 8, !tbaa !9
  %251 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %250)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %242, i64 noundef 1, ptr noundef %249, i64 noundef 1, i64 noundef %251)
  br label %252

252:                                              ; preds = %228, %204
  %253 = load ptr, ptr %9, align 8, !tbaa !5
  %254 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %253, i32 0, i32 25
  %255 = load i64, ptr %254, align 8, !tbaa !42
  %256 = add nsw i64 %255, 1
  %257 = load ptr, ptr %9, align 8, !tbaa !5
  %258 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %257, i32 0, i32 25
  store i64 %256, ptr %258, align 8, !tbaa !42
  br label %259

259:                                              ; preds = %252, %188
  br label %260

260:                                              ; preds = %259
  %261 = load i64, ptr %19, align 8, !tbaa !9
  %262 = add nsw i64 %261, 1
  store i64 %262, ptr %19, align 8, !tbaa !9
  br label %183, !llvm.loop !48

263:                                              ; preds = %183
  %264 = load ptr, ptr %9, align 8, !tbaa !5
  %265 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %264, i32 0, i32 4
  %266 = load i8, ptr %265, align 8, !tbaa !49, !range !50, !noundef !51
  %267 = trunc i8 %266 to i1
  br i1 %267, label %322, label %268

268:                                              ; preds = %263
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %269

269:                                              ; preds = %318, %268
  %270 = load i64, ptr %19, align 8, !tbaa !9
  %271 = load i64, ptr %12, align 8, !tbaa !9
  %272 = sub nsw i64 %271, 1
  %273 = icmp sle i64 %270, %272
  br i1 %273, label %274, label %321

274:                                              ; preds = %269
  store double 0.000000e+00, ptr %22, align 8, !tbaa !52
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %275

275:                                              ; preds = %295, %274
  %276 = load i64, ptr %20, align 8, !tbaa !9
  %277 = load i64, ptr %18, align 8, !tbaa !9
  %278 = sub nsw i64 %277, 1
  %279 = icmp sle i64 %276, %278
  br i1 %279, label %280, label %298

280:                                              ; preds = %275
  %281 = load double, ptr %22, align 8, !tbaa !52
  %282 = load ptr, ptr %9, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %282, i32 0, i32 23
  %284 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %283, i32 0, i32 6
  %285 = load ptr, ptr %284, align 8, !tbaa !45
  %286 = load i64, ptr %19, align 8, !tbaa !9
  %287 = getelementptr inbounds ptr, ptr %285, i64 %286
  %288 = load ptr, ptr %287, align 8, !tbaa !5
  %289 = load i64, ptr %20, align 8, !tbaa !9
  %290 = getelementptr inbounds double, ptr %288, i64 %289
  %291 = load double, ptr %290, align 8, !tbaa !52
  %292 = load ptr, ptr %16, align 8, !tbaa !5
  %293 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %291, ptr noundef %292)
  %294 = fadd double %281, %293
  store double %294, ptr %22, align 8, !tbaa !52
  br label %295

295:                                              ; preds = %280
  %296 = load i64, ptr %20, align 8, !tbaa !9
  %297 = add nsw i64 %296, 1
  store i64 %297, ptr %20, align 8, !tbaa !9
  br label %275, !llvm.loop !53

298:                                              ; preds = %275
  %299 = load double, ptr %22, align 8, !tbaa !52
  %300 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %299, double noundef 0.000000e+00)
  br i1 %300, label %301, label %302

301:                                              ; preds = %298
  br label %318

302:                                              ; preds = %298
  %303 = load double, ptr %22, align 8, !tbaa !52
  %304 = load ptr, ptr %16, align 8, !tbaa !5
  %305 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %303, ptr noundef %304)
  %306 = fdiv double 1.000000e+00, %305
  store double %306, ptr %22, align 8, !tbaa !52
  %307 = load ptr, ptr %9, align 8, !tbaa !5
  %308 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %307, i32 0, i32 23
  %309 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %308, i32 0, i32 6
  %310 = load ptr, ptr %309, align 8, !tbaa !45
  %311 = load i64, ptr %19, align 8, !tbaa !9
  %312 = getelementptr inbounds ptr, ptr %310, i64 %311
  %313 = load ptr, ptr %312, align 8, !tbaa !5
  %314 = getelementptr inbounds double, ptr %313, i64 0
  %315 = load i64, ptr %18, align 8, !tbaa !9
  %316 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %315)
  %317 = load double, ptr %22, align 8, !tbaa !52
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %314, i64 noundef 1, i64 noundef %316, double noundef %317)
  br label %318

318:                                              ; preds = %302, %301
  %319 = load i64, ptr %19, align 8, !tbaa !9
  %320 = add nsw i64 %319, 1
  store i64 %320, ptr %19, align 8, !tbaa !9
  br label %269, !llvm.loop !54

321:                                              ; preds = %269
  br label %322

322:                                              ; preds = %321, %263
  br label %323

323:                                              ; preds = %322, %129
  %324 = load i64, ptr %15, align 8, !tbaa !9
  %325 = icmp sgt i64 %324, 0
  br i1 %325, label %326, label %750

326:                                              ; preds = %323
  %327 = load i64, ptr %15, align 8, !tbaa !9
  %328 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %327, ptr noundef %328)
  %329 = load i64, ptr %15, align 8, !tbaa !9
  %330 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %29, i64 noundef %329, ptr noundef %330)
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %331

331:                                              ; preds = %345, %326
  %332 = load i64, ptr %19, align 8, !tbaa !9
  %333 = load i64, ptr %15, align 8, !tbaa !9
  %334 = sub nsw i64 %333, 1
  %335 = icmp sle i64 %332, %334
  br i1 %335, label %336, label %348

336:                                              ; preds = %331
  %337 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %338 = load ptr, ptr %337, align 8, !tbaa !45
  %339 = load i64, ptr %19, align 8, !tbaa !9
  %340 = getelementptr inbounds i64, ptr %338, i64 %339
  store i64 0, ptr %340, align 8, !tbaa !9
  %341 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %342 = load ptr, ptr %341, align 8, !tbaa !45
  %343 = load i64, ptr %19, align 8, !tbaa !9
  %344 = getelementptr inbounds double, ptr %342, i64 %343
  store double 0.000000e+00, ptr %344, align 8, !tbaa !52
  br label %345

345:                                              ; preds = %336
  %346 = load i64, ptr %19, align 8, !tbaa !9
  %347 = add nsw i64 %346, 1
  store i64 %347, ptr %19, align 8, !tbaa !9
  br label %331, !llvm.loop !55

348:                                              ; preds = %331
  store i64 0, ptr %32, align 8, !tbaa !9
  store i64 0, ptr %33, align 8, !tbaa !9
  store i64 0, ptr %34, align 8, !tbaa !9
  br label %349

349:                                              ; preds = %396, %362, %348
  %350 = load ptr, ptr %13, align 8, !tbaa !5
  %351 = load ptr, ptr %16, align 8, !tbaa !5
  %352 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPNS_12sparsematrixEPlS2_S2_S2_PdPNS_8ae_stateE(ptr noundef %350, ptr noundef %32, ptr noundef %33, ptr noundef %19, ptr noundef %20, ptr noundef %22, ptr noundef %351)
  br i1 %352, label %353, label %397

353:                                              ; preds = %349
  %354 = load i64, ptr %19, align 8, !tbaa !9
  %355 = load i64, ptr %15, align 8, !tbaa !9
  %356 = sub nsw i64 %355, 1
  %357 = icmp sgt i64 %354, %356
  br i1 %357, label %362, label %358

358:                                              ; preds = %353
  %359 = load i64, ptr %20, align 8, !tbaa !9
  %360 = load i64, ptr %18, align 8, !tbaa !9
  %361 = icmp sgt i64 %359, %360
  br i1 %361, label %362, label %363

362:                                              ; preds = %358, %353
  br label %349, !llvm.loop !56

363:                                              ; preds = %358
  %364 = load double, ptr %22, align 8, !tbaa !52
  %365 = load ptr, ptr %16, align 8, !tbaa !5
  %366 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %364, ptr noundef %365)
  %367 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %366, ptr noundef @.str.336, ptr noundef %367)
  %368 = load i64, ptr %34, align 8, !tbaa !9
  %369 = add nsw i64 %368, 1
  store i64 %369, ptr %34, align 8, !tbaa !9
  %370 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %371 = load ptr, ptr %370, align 8, !tbaa !45
  %372 = load i64, ptr %19, align 8, !tbaa !9
  %373 = getelementptr inbounds i64, ptr %371, i64 %372
  %374 = load i64, ptr %373, align 8, !tbaa !9
  %375 = add nsw i64 %374, 1
  %376 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %377 = load ptr, ptr %376, align 8, !tbaa !45
  %378 = load i64, ptr %19, align 8, !tbaa !9
  %379 = getelementptr inbounds i64, ptr %377, i64 %378
  store i64 %375, ptr %379, align 8, !tbaa !9
  %380 = load i64, ptr %20, align 8, !tbaa !9
  %381 = load i64, ptr %18, align 8, !tbaa !9
  %382 = icmp slt i64 %380, %381
  br i1 %382, label %383, label %396

383:                                              ; preds = %363
  %384 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %385 = load ptr, ptr %384, align 8, !tbaa !45
  %386 = load i64, ptr %19, align 8, !tbaa !9
  %387 = getelementptr inbounds double, ptr %385, i64 %386
  %388 = load double, ptr %387, align 8, !tbaa !52
  %389 = load double, ptr %22, align 8, !tbaa !52
  %390 = load double, ptr %22, align 8, !tbaa !52
  %391 = call double @llvm.fmuladd.f64(double %389, double %390, double %388)
  %392 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %393 = load ptr, ptr %392, align 8, !tbaa !45
  %394 = load i64, ptr %19, align 8, !tbaa !9
  %395 = getelementptr inbounds double, ptr %393, i64 %394
  store double %391, ptr %395, align 8, !tbaa !52
  br label %396

396:                                              ; preds = %383, %363
  br label %349, !llvm.loop !56

397:                                              ; preds = %349
  %398 = load i64, ptr %34, align 8, !tbaa !9
  %399 = icmp sgt i64 %398, 0
  br i1 %399, label %400, label %749

400:                                              ; preds = %397
  %401 = load i64, ptr %15, align 8, !tbaa !9
  %402 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %23, i64 noundef %401, ptr noundef %402)
  %403 = load i64, ptr %15, align 8, !tbaa !9
  %404 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef %403, ptr noundef %404)
  %405 = load i64, ptr %15, align 8, !tbaa !9
  %406 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %405, ptr noundef %406)
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %407

407:                                              ; preds = %417, %400
  %408 = load i64, ptr %19, align 8, !tbaa !9
  %409 = load i64, ptr %15, align 8, !tbaa !9
  %410 = sub nsw i64 %409, 1
  %411 = icmp sle i64 %408, %410
  br i1 %411, label %412, label %420

412:                                              ; preds = %407
  %413 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %414 = load ptr, ptr %413, align 8, !tbaa !45
  %415 = load i64, ptr %19, align 8, !tbaa !9
  %416 = getelementptr inbounds i64, ptr %414, i64 %415
  store i64 -1, ptr %416, align 8, !tbaa !9
  br label %417

417:                                              ; preds = %412
  %418 = load i64, ptr %19, align 8, !tbaa !9
  %419 = add nsw i64 %418, 1
  store i64 %419, ptr %19, align 8, !tbaa !9
  br label %407, !llvm.loop !57

420:                                              ; preds = %407
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %421

421:                                              ; preds = %488, %420
  %422 = load i64, ptr %19, align 8, !tbaa !9
  %423 = load i64, ptr %15, align 8, !tbaa !9
  %424 = sub nsw i64 %423, 1
  %425 = icmp sle i64 %422, %424
  br i1 %425, label %426, label %491

426:                                              ; preds = %421
  %427 = load ptr, ptr %14, align 8, !tbaa !5
  %428 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %427, i32 0, i32 4
  %429 = load ptr, ptr %428, align 8, !tbaa !45
  %430 = load i64, ptr %19, align 8, !tbaa !9
  %431 = getelementptr inbounds i64, ptr %429, i64 %430
  %432 = load i64, ptr %431, align 8, !tbaa !9
  %433 = icmp eq i64 %432, 0
  br i1 %433, label %434, label %452

434:                                              ; preds = %426
  %435 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %436 = load ptr, ptr %435, align 8, !tbaa !45
  %437 = load i64, ptr %19, align 8, !tbaa !9
  %438 = getelementptr inbounds double, ptr %436, i64 %437
  store double 1.000000e+00, ptr %438, align 8, !tbaa !52
  %439 = load i64, ptr %19, align 8, !tbaa !9
  %440 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %441 = load ptr, ptr %440, align 8, !tbaa !45
  %442 = load ptr, ptr %9, align 8, !tbaa !5
  %443 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %442, i32 0, i32 27
  %444 = load i64, ptr %443, align 8, !tbaa !43
  %445 = getelementptr inbounds i64, ptr %441, i64 %444
  store i64 %439, ptr %445, align 8, !tbaa !9
  %446 = load ptr, ptr %9, align 8, !tbaa !5
  %447 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %446, i32 0, i32 27
  %448 = load i64, ptr %447, align 8, !tbaa !43
  %449 = add nsw i64 %448, 1
  %450 = load ptr, ptr %9, align 8, !tbaa !5
  %451 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %450, i32 0, i32 27
  store i64 %449, ptr %451, align 8, !tbaa !43
  br label %487

452:                                              ; preds = %426
  %453 = load ptr, ptr %14, align 8, !tbaa !5
  %454 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %453, i32 0, i32 4
  %455 = load ptr, ptr %454, align 8, !tbaa !45
  %456 = load i64, ptr %19, align 8, !tbaa !9
  %457 = getelementptr inbounds i64, ptr %455, i64 %456
  %458 = load i64, ptr %457, align 8, !tbaa !9
  %459 = icmp sgt i64 %458, 0
  br i1 %459, label %460, label %465

460:                                              ; preds = %452
  %461 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %462 = load ptr, ptr %461, align 8, !tbaa !45
  %463 = load i64, ptr %19, align 8, !tbaa !9
  %464 = getelementptr inbounds double, ptr %462, i64 %463
  store double -1.000000e+00, ptr %464, align 8, !tbaa !52
  br label %470

465:                                              ; preds = %452
  %466 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %467 = load ptr, ptr %466, align 8, !tbaa !45
  %468 = load i64, ptr %19, align 8, !tbaa !9
  %469 = getelementptr inbounds double, ptr %467, i64 %468
  store double 1.000000e+00, ptr %469, align 8, !tbaa !52
  br label %470

470:                                              ; preds = %465, %460
  %471 = load i64, ptr %19, align 8, !tbaa !9
  %472 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %473 = load ptr, ptr %472, align 8, !tbaa !45
  %474 = load i64, ptr %15, align 8, !tbaa !9
  %475 = sub nsw i64 %474, 1
  %476 = load ptr, ptr %9, align 8, !tbaa !5
  %477 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %476, i32 0, i32 28
  %478 = load i64, ptr %477, align 8, !tbaa !44
  %479 = sub nsw i64 %475, %478
  %480 = getelementptr inbounds i64, ptr %473, i64 %479
  store i64 %471, ptr %480, align 8, !tbaa !9
  %481 = load ptr, ptr %9, align 8, !tbaa !5
  %482 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %481, i32 0, i32 28
  %483 = load i64, ptr %482, align 8, !tbaa !44
  %484 = add nsw i64 %483, 1
  %485 = load ptr, ptr %9, align 8, !tbaa !5
  %486 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %485, i32 0, i32 28
  store i64 %484, ptr %486, align 8, !tbaa !44
  br label %487

487:                                              ; preds = %470, %434
  br label %488

488:                                              ; preds = %487
  %489 = load i64, ptr %19, align 8, !tbaa !9
  %490 = add nsw i64 %489, 1
  store i64 %490, ptr %19, align 8, !tbaa !9
  br label %421, !llvm.loop !58

491:                                              ; preds = %421
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %492

492:                                              ; preds = %505, %491
  %493 = load i64, ptr %19, align 8, !tbaa !9
  %494 = load i64, ptr %15, align 8, !tbaa !9
  %495 = sub nsw i64 %494, 1
  %496 = icmp sle i64 %493, %495
  br i1 %496, label %497, label %508

497:                                              ; preds = %492
  %498 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %499 = load ptr, ptr %498, align 8, !tbaa !45
  %500 = load i64, ptr %19, align 8, !tbaa !9
  %501 = getelementptr inbounds i64, ptr %499, i64 %500
  %502 = load i64, ptr %501, align 8, !tbaa !9
  %503 = icmp sge i64 %502, 0
  %504 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %503, ptr noundef @.str.337, ptr noundef %504)
  br label %505

505:                                              ; preds = %497
  %506 = load i64, ptr %19, align 8, !tbaa !9
  %507 = add nsw i64 %506, 1
  store i64 %507, ptr %19, align 8, !tbaa !9
  br label %492, !llvm.loop !59

508:                                              ; preds = %492
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %509

509:                                              ; preds = %524, %508
  %510 = load i64, ptr %19, align 8, !tbaa !9
  %511 = load i64, ptr %15, align 8, !tbaa !9
  %512 = sub nsw i64 %511, 1
  %513 = icmp sle i64 %510, %512
  br i1 %513, label %514, label %527

514:                                              ; preds = %509
  %515 = load i64, ptr %19, align 8, !tbaa !9
  %516 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %517 = load ptr, ptr %516, align 8, !tbaa !45
  %518 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %519 = load ptr, ptr %518, align 8, !tbaa !45
  %520 = load i64, ptr %19, align 8, !tbaa !9
  %521 = getelementptr inbounds i64, ptr %519, i64 %520
  %522 = load i64, ptr %521, align 8, !tbaa !9
  %523 = getelementptr inbounds i64, ptr %517, i64 %522
  store i64 %515, ptr %523, align 8, !tbaa !9
  br label %524

524:                                              ; preds = %514
  %525 = load i64, ptr %19, align 8, !tbaa !9
  %526 = add nsw i64 %525, 1
  store i64 %526, ptr %19, align 8, !tbaa !9
  br label %509, !llvm.loop !60

527:                                              ; preds = %509
  %528 = load i64, ptr %15, align 8, !tbaa !9
  %529 = load ptr, ptr %9, align 8, !tbaa !5
  %530 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %529, i32 0, i32 26
  %531 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %530, i32 0, i32 6
  store i64 %528, ptr %531, align 8, !tbaa !61
  %532 = load i64, ptr %18, align 8, !tbaa !9
  %533 = add nsw i64 %532, 1
  %534 = load ptr, ptr %9, align 8, !tbaa !5
  %535 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %534, i32 0, i32 26
  %536 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %535, i32 0, i32 7
  store i64 %533, ptr %536, align 8, !tbaa !62
  %537 = load ptr, ptr %9, align 8, !tbaa !5
  %538 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %537, i32 0, i32 26
  %539 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %538, i32 0, i32 2
  %540 = load i64, ptr %15, align 8, !tbaa !9
  %541 = add nsw i64 %540, 1
  %542 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %539, i64 noundef %541, ptr noundef %542)
  %543 = load i64, ptr %15, align 8, !tbaa !9
  %544 = add nsw i64 %543, 1
  %545 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %27, i64 noundef %544, ptr noundef %545)
  %546 = load ptr, ptr %9, align 8, !tbaa !5
  %547 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %546, i32 0, i32 26
  %548 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %547, i32 0, i32 2
  %549 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %548, i32 0, i32 4
  %550 = load ptr, ptr %549, align 8, !tbaa !45
  %551 = getelementptr inbounds i64, ptr %550, i64 0
  store i64 0, ptr %551, align 8, !tbaa !9
  %552 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %553 = load ptr, ptr %552, align 8, !tbaa !45
  %554 = getelementptr inbounds i64, ptr %553, i64 0
  store i64 0, ptr %554, align 8, !tbaa !9
  store i64 1, ptr %19, align 8, !tbaa !9
  br label %555

555:                                              ; preds = %599, %527
  %556 = load i64, ptr %19, align 8, !tbaa !9
  %557 = load i64, ptr %15, align 8, !tbaa !9
  %558 = icmp sle i64 %556, %557
  br i1 %558, label %559, label %602

559:                                              ; preds = %555
  %560 = load ptr, ptr %9, align 8, !tbaa !5
  %561 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %560, i32 0, i32 26
  %562 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %561, i32 0, i32 2
  %563 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %562, i32 0, i32 4
  %564 = load ptr, ptr %563, align 8, !tbaa !45
  %565 = load i64, ptr %19, align 8, !tbaa !9
  %566 = sub nsw i64 %565, 1
  %567 = getelementptr inbounds i64, ptr %564, i64 %566
  %568 = load i64, ptr %567, align 8, !tbaa !9
  %569 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %570 = load ptr, ptr %569, align 8, !tbaa !45
  %571 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %572 = load ptr, ptr %571, align 8, !tbaa !45
  %573 = load i64, ptr %19, align 8, !tbaa !9
  %574 = sub nsw i64 %573, 1
  %575 = getelementptr inbounds i64, ptr %572, i64 %574
  %576 = load i64, ptr %575, align 8, !tbaa !9
  %577 = getelementptr inbounds i64, ptr %570, i64 %576
  %578 = load i64, ptr %577, align 8, !tbaa !9
  %579 = add nsw i64 %568, %578
  %580 = load ptr, ptr %9, align 8, !tbaa !5
  %581 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %580, i32 0, i32 26
  %582 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %581, i32 0, i32 2
  %583 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %582, i32 0, i32 4
  %584 = load ptr, ptr %583, align 8, !tbaa !45
  %585 = load i64, ptr %19, align 8, !tbaa !9
  %586 = getelementptr inbounds i64, ptr %584, i64 %585
  store i64 %579, ptr %586, align 8, !tbaa !9
  %587 = load ptr, ptr %9, align 8, !tbaa !5
  %588 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %587, i32 0, i32 26
  %589 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %588, i32 0, i32 2
  %590 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %589, i32 0, i32 4
  %591 = load ptr, ptr %590, align 8, !tbaa !45
  %592 = load i64, ptr %19, align 8, !tbaa !9
  %593 = getelementptr inbounds i64, ptr %591, i64 %592
  %594 = load i64, ptr %593, align 8, !tbaa !9
  %595 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %596 = load ptr, ptr %595, align 8, !tbaa !45
  %597 = load i64, ptr %19, align 8, !tbaa !9
  %598 = getelementptr inbounds i64, ptr %596, i64 %597
  store i64 %594, ptr %598, align 8, !tbaa !9
  br label %599

599:                                              ; preds = %559
  %600 = load i64, ptr %19, align 8, !tbaa !9
  %601 = add nsw i64 %600, 1
  store i64 %601, ptr %19, align 8, !tbaa !9
  br label %555, !llvm.loop !63

602:                                              ; preds = %555
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %603

603:                                              ; preds = %649, %602
  %604 = load i64, ptr %19, align 8, !tbaa !9
  %605 = load i64, ptr %15, align 8, !tbaa !9
  %606 = sub nsw i64 %605, 1
  %607 = icmp sle i64 %604, %606
  br i1 %607, label %608, label %652

608:                                              ; preds = %603
  %609 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %610 = load ptr, ptr %609, align 8, !tbaa !45
  %611 = load i64, ptr %19, align 8, !tbaa !9
  %612 = getelementptr inbounds double, ptr %610, i64 %611
  %613 = load double, ptr %612, align 8, !tbaa !52
  %614 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %613, double noundef 0.000000e+00)
  br i1 %614, label %615, label %638

615:                                              ; preds = %608
  %616 = load ptr, ptr %9, align 8, !tbaa !5
  %617 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %616, i32 0, i32 4
  %618 = load i8, ptr %617, align 8, !tbaa !49, !range !50, !noundef !51
  %619 = trunc i8 %618 to i1
  br i1 %619, label %638, label %620

620:                                              ; preds = %615
  %621 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %622 = load ptr, ptr %621, align 8, !tbaa !45
  %623 = load i64, ptr %19, align 8, !tbaa !9
  %624 = getelementptr inbounds double, ptr %622, i64 %623
  %625 = load double, ptr %624, align 8, !tbaa !52
  %626 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %627 = load ptr, ptr %626, align 8, !tbaa !45
  %628 = load i64, ptr %19, align 8, !tbaa !9
  %629 = getelementptr inbounds double, ptr %627, i64 %628
  %630 = load double, ptr %629, align 8, !tbaa !52
  %631 = load ptr, ptr %16, align 8, !tbaa !5
  %632 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %630, ptr noundef %631)
  %633 = fdiv double %625, %632
  %634 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %635 = load ptr, ptr %634, align 8, !tbaa !45
  %636 = load i64, ptr %19, align 8, !tbaa !9
  %637 = getelementptr inbounds double, ptr %635, i64 %636
  store double %633, ptr %637, align 8, !tbaa !52
  br label %648

638:                                              ; preds = %615, %608
  %639 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %640 = load ptr, ptr %639, align 8, !tbaa !45
  %641 = load i64, ptr %19, align 8, !tbaa !9
  %642 = getelementptr inbounds double, ptr %640, i64 %641
  %643 = load double, ptr %642, align 8, !tbaa !52
  %644 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %645 = load ptr, ptr %644, align 8, !tbaa !45
  %646 = load i64, ptr %19, align 8, !tbaa !9
  %647 = getelementptr inbounds double, ptr %645, i64 %646
  store double %643, ptr %647, align 8, !tbaa !52
  br label %648

648:                                              ; preds = %638, %620
  br label %649

649:                                              ; preds = %648
  %650 = load i64, ptr %19, align 8, !tbaa !9
  %651 = add nsw i64 %650, 1
  store i64 %651, ptr %19, align 8, !tbaa !9
  br label %603, !llvm.loop !64

652:                                              ; preds = %603
  %653 = load ptr, ptr %9, align 8, !tbaa !5
  %654 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %653, i32 0, i32 26
  %655 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %654, i32 0, i32 1
  %656 = load i64, ptr %34, align 8, !tbaa !9
  %657 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %655, i64 noundef %656, ptr noundef %657)
  %658 = load ptr, ptr %9, align 8, !tbaa !5
  %659 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %658, i32 0, i32 26
  %660 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %659, i32 0, i32 0
  %661 = load i64, ptr %34, align 8, !tbaa !9
  %662 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %660, i64 noundef %661, ptr noundef %662)
  store i64 0, ptr %32, align 8, !tbaa !9
  store i64 0, ptr %33, align 8, !tbaa !9
  br label %663

663:                                              ; preds = %677, %676, %652
  %664 = load ptr, ptr %13, align 8, !tbaa !5
  %665 = load ptr, ptr %16, align 8, !tbaa !5
  %666 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPNS_12sparsematrixEPlS2_S2_S2_PdPNS_8ae_stateE(ptr noundef %664, ptr noundef %32, ptr noundef %33, ptr noundef %19, ptr noundef %20, ptr noundef %22, ptr noundef %665)
  br i1 %666, label %667, label %719

667:                                              ; preds = %663
  %668 = load i64, ptr %19, align 8, !tbaa !9
  %669 = load i64, ptr %15, align 8, !tbaa !9
  %670 = sub nsw i64 %669, 1
  %671 = icmp sgt i64 %668, %670
  br i1 %671, label %676, label %672

672:                                              ; preds = %667
  %673 = load i64, ptr %20, align 8, !tbaa !9
  %674 = load i64, ptr %18, align 8, !tbaa !9
  %675 = icmp sgt i64 %673, %674
  br i1 %675, label %676, label %677

676:                                              ; preds = %672, %667
  br label %663, !llvm.loop !65

677:                                              ; preds = %672
  %678 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %679 = load ptr, ptr %678, align 8, !tbaa !45
  %680 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %681 = load ptr, ptr %680, align 8, !tbaa !45
  %682 = load i64, ptr %19, align 8, !tbaa !9
  %683 = getelementptr inbounds i64, ptr %681, i64 %682
  %684 = load i64, ptr %683, align 8, !tbaa !9
  %685 = getelementptr inbounds i64, ptr %679, i64 %684
  %686 = load i64, ptr %685, align 8, !tbaa !9
  store i64 %686, ptr %21, align 8, !tbaa !9
  %687 = load i64, ptr %20, align 8, !tbaa !9
  %688 = load ptr, ptr %9, align 8, !tbaa !5
  %689 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %688, i32 0, i32 26
  %690 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %689, i32 0, i32 1
  %691 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %690, i32 0, i32 4
  %692 = load ptr, ptr %691, align 8, !tbaa !45
  %693 = load i64, ptr %21, align 8, !tbaa !9
  %694 = getelementptr inbounds i64, ptr %692, i64 %693
  store i64 %687, ptr %694, align 8, !tbaa !9
  %695 = load double, ptr %22, align 8, !tbaa !52
  %696 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %697 = load ptr, ptr %696, align 8, !tbaa !45
  %698 = load i64, ptr %19, align 8, !tbaa !9
  %699 = getelementptr inbounds double, ptr %697, i64 %698
  %700 = load double, ptr %699, align 8, !tbaa !52
  %701 = fmul double %695, %700
  %702 = load ptr, ptr %9, align 8, !tbaa !5
  %703 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %702, i32 0, i32 26
  %704 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %703, i32 0, i32 0
  %705 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %704, i32 0, i32 4
  %706 = load ptr, ptr %705, align 8, !tbaa !45
  %707 = load i64, ptr %21, align 8, !tbaa !9
  %708 = getelementptr inbounds double, ptr %706, i64 %707
  store double %701, ptr %708, align 8, !tbaa !52
  %709 = load i64, ptr %21, align 8, !tbaa !9
  %710 = add nsw i64 %709, 1
  %711 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %712 = load ptr, ptr %711, align 8, !tbaa !45
  %713 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %714 = load ptr, ptr %713, align 8, !tbaa !45
  %715 = load i64, ptr %19, align 8, !tbaa !9
  %716 = getelementptr inbounds i64, ptr %714, i64 %715
  %717 = load i64, ptr %716, align 8, !tbaa !9
  %718 = getelementptr inbounds i64, ptr %712, i64 %717
  store i64 %710, ptr %718, align 8, !tbaa !9
  br label %663, !llvm.loop !65

719:                                              ; preds = %663
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %720

720:                                              ; preds = %742, %719
  %721 = load i64, ptr %19, align 8, !tbaa !9
  %722 = load i64, ptr %15, align 8, !tbaa !9
  %723 = sub nsw i64 %722, 1
  %724 = icmp sle i64 %721, %723
  br i1 %724, label %725, label %745

725:                                              ; preds = %720
  %726 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %727 = load ptr, ptr %726, align 8, !tbaa !45
  %728 = load i64, ptr %19, align 8, !tbaa !9
  %729 = getelementptr inbounds i64, ptr %727, i64 %728
  %730 = load i64, ptr %729, align 8, !tbaa !9
  %731 = load ptr, ptr %9, align 8, !tbaa !5
  %732 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %731, i32 0, i32 26
  %733 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %732, i32 0, i32 2
  %734 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %733, i32 0, i32 4
  %735 = load ptr, ptr %734, align 8, !tbaa !45
  %736 = load i64, ptr %19, align 8, !tbaa !9
  %737 = add nsw i64 %736, 1
  %738 = getelementptr inbounds i64, ptr %735, i64 %737
  %739 = load i64, ptr %738, align 8, !tbaa !9
  %740 = icmp eq i64 %730, %739
  %741 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %740, ptr noundef @.str.337, ptr noundef %741)
  br label %742

742:                                              ; preds = %725
  %743 = load i64, ptr %19, align 8, !tbaa !9
  %744 = add nsw i64 %743, 1
  store i64 %744, ptr %19, align 8, !tbaa !9
  br label %720, !llvm.loop !66

745:                                              ; preds = %720
  %746 = load ptr, ptr %9, align 8, !tbaa !5
  %747 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %746, i32 0, i32 26
  %748 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl22sparsecreatecrsinplaceEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %747, ptr noundef %748)
  br label %749

749:                                              ; preds = %745, %397
  br label %750

750:                                              ; preds = %749, %323
  %751 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %751)
  store i32 0, ptr %35, align 4
  br label %752

752:                                              ; preds = %750, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 64, 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 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  %753 = load i32, ptr %35, align 4
  switch i32 %753, label %755 [
    i32 0, label %754
    i32 1, label %754
  ]

754:                                              ; preds = %752, %752
  ret void

755:                                              ; preds = %752
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPNS_12sparsematrixEPlS2_S2_S2_PdPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.327 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.328 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.329 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.330 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.331 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.332 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.333 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.334 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.335 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.336 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.337 = external hidden unnamed_addr constant [41 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15minqpsetlcmixedEPNS_10minqpstateEPNS_9ae_matrixEPNS_9ae_vectorElPNS_12sparsematrixES5_lPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, i64 noundef %3, ptr noundef %4, ptr nocapture noundef readonly %5, i64 noundef %6, ptr noundef %7) local_unnamed_addr #3 {
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %7, ptr noundef nonnull %9)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %21, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %19, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %20, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %21, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  %24 = load i64, ptr %0, align 8, !tbaa !5
  %25 = icmp sgt i64 %3, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.327, ptr noundef %7)
  %26 = icmp eq i64 %3, 0
  br i1 %26, label %31, label %27

27:                                               ; preds = %8
  %28 = getelementptr inbounds i8, ptr %1, i64 8
  %29 = load i64, ptr %28, align 8, !tbaa !36
  %30 = icmp sgt i64 %29, %24
  br label %31

31:                                               ; preds = %27, %8
  %32 = phi i1 [ true, %8 ], [ %30, %27 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef nonnull @.str.328, ptr noundef %7)
  %33 = load i64, ptr %1, align 8, !tbaa !37
  %34 = icmp sge i64 %33, %3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef nonnull @.str.329, ptr noundef %7)
  %35 = load i64, ptr %2, align 8, !tbaa !38
  %36 = icmp sge i64 %35, %3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef nonnull @.str.330, ptr noundef %7)
  %37 = add nsw i64 %24, 1
  %38 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %3, i64 noundef %37, ptr noundef %7)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef nonnull @.str.331, ptr noundef %7)
  %39 = icmp sgt i64 %6, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef nonnull @.str.332, ptr noundef %7)
  %40 = icmp eq i64 %6, 0
  br i1 %40, label %.critedge, label %41

41:                                               ; preds = %31
  %42 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %4, ptr noundef %7)
  %43 = icmp sgt i64 %42, %24
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef nonnull @.str.333, ptr noundef %7)
  %44 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %4, ptr noundef %7)
  %45 = icmp sge i64 %44, %6
  br label %46

.critedge:                                        ; preds = %31
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext true, ptr noundef nonnull @.str.333, ptr noundef %7)
  br label %46

46:                                               ; preds = %.critedge, %41
  %47 = phi i1 [ %45, %41 ], [ true, %.critedge ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef nonnull @.str.334, ptr noundef %7)
  %48 = load i64, ptr %5, align 8, !tbaa !38
  %49 = icmp sge i64 %48, %6
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef nonnull @.str.335, ptr noundef %7)
  %50 = getelementptr inbounds i8, ptr %0, i64 2856
  %51 = getelementptr inbounds i8, ptr %0, i64 2864
  %52 = getelementptr inbounds i8, ptr %0, i64 3240
  %53 = getelementptr inbounds i8, ptr %0, i64 3248
  %54 = sub i64 0, %6
  %55 = icmp eq i64 %54, %3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %50, i8 0, i64 16, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %52, i8 0, i64 16, i1 false)
  br i1 %55, label %333, label %56

56:                                               ; preds = %46
  %57 = icmp sgt i64 %3, 0
  br i1 %57, label %58, label %.loopexit

58:                                               ; preds = %56
  %59 = getelementptr inbounds i8, ptr %0, i64 2776
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %59, i64 noundef %3, i64 noundef %37, ptr noundef %7)
  store i64 0, ptr %10, align 8, !tbaa !39
  %60 = getelementptr inbounds i8, ptr %2, i64 56
  %61 = getelementptr inbounds i8, ptr %0, i64 2848
  %62 = getelementptr inbounds i8, ptr %1, i64 72
  br label %63

.lr.ph:                                           ; preds = %79
  store i64 0, ptr %10, align 8, !tbaa !39
  br label %82

63:                                               ; preds = %58, %79
  %storemerge209 = phi i64 [ 0, %58 ], [ %81, %79 ]
  %64 = load ptr, ptr %60, align 8, !tbaa !40
  %65 = getelementptr inbounds i64, ptr %64, i64 %storemerge209
  %66 = load i64, ptr %65, align 8, !tbaa !39
  %67 = icmp eq i64 %66, 0
  br i1 %67, label %68, label %79

68:                                               ; preds = %63
  %69 = load ptr, ptr %61, align 8, !tbaa !40
  %70 = load i64, ptr %50, align 8, !tbaa !41
  %71 = getelementptr inbounds ptr, ptr %69, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !42
  %73 = load ptr, ptr %62, align 8, !tbaa !40
  %74 = getelementptr inbounds ptr, ptr %73, i64 %storemerge209
  %75 = load ptr, ptr %74, align 8, !tbaa !42
  %76 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %24)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %72, i64 noundef 1, ptr noundef %75, i64 noundef 1, i64 noundef %76)
  %77 = load i64, ptr %50, align 8, !tbaa !41
  %78 = add nsw i64 %77, 1
  store i64 %78, ptr %50, align 8, !tbaa !41
  %.pre = load i64, ptr %10, align 8, !tbaa !39
  br label %79

79:                                               ; preds = %63, %68
  %80 = phi i64 [ %storemerge209, %63 ], [ %.pre, %68 ]
  %81 = add nsw i64 %80, 1
  store i64 %81, ptr %10, align 8, !tbaa !39
  %.not.not = icmp slt i64 %81, %3
  br i1 %.not.not, label %63, label %.lr.ph, !llvm.loop !43

82:                                               ; preds = %.lr.ph, %103
  %storemerge178211 = phi i64 [ 0, %.lr.ph ], [ %105, %103 ]
  %83 = load ptr, ptr %60, align 8, !tbaa !40
  %84 = getelementptr inbounds i64, ptr %83, i64 %storemerge178211
  %85 = load i64, ptr %84, align 8, !tbaa !39
  %.not201 = icmp eq i64 %85, 0
  br i1 %.not201, label %103, label %86

86:                                               ; preds = %82
  %87 = icmp sgt i64 %85, 0
  %88 = load ptr, ptr %61, align 8, !tbaa !40
  %89 = load i64, ptr %50, align 8, !tbaa !41
  %90 = load i64, ptr %51, align 8, !tbaa !45
  %91 = getelementptr ptr, ptr %88, i64 %89
  %92 = getelementptr ptr, ptr %91, i64 %90
  %93 = load ptr, ptr %92, align 8, !tbaa !42
  %94 = load ptr, ptr %62, align 8, !tbaa !40
  %95 = getelementptr inbounds ptr, ptr %94, i64 %storemerge178211
  %96 = load ptr, ptr %95, align 8, !tbaa !42
  %97 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %24)
  br i1 %87, label %98, label %99

98:                                               ; preds = %86
  call void @_ZN11alglib_impl12ae_v_movenegEPdlPKdll(ptr noundef %93, i64 noundef 1, ptr noundef %96, i64 noundef 1, i64 noundef %97)
  br label %100

99:                                               ; preds = %86
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %93, i64 noundef 1, ptr noundef %96, i64 noundef 1, i64 noundef %97)
  br label %100

100:                                              ; preds = %99, %98
  %101 = load i64, ptr %51, align 8, !tbaa !45
  %102 = add nsw i64 %101, 1
  store i64 %102, ptr %51, align 8, !tbaa !45
  %.pre250 = load i64, ptr %10, align 8, !tbaa !39
  br label %103

103:                                              ; preds = %82, %100
  %104 = phi i64 [ %storemerge178211, %82 ], [ %.pre250, %100 ]
  %105 = add nsw i64 %104, 1
  store i64 %105, ptr %10, align 8, !tbaa !39
  %.not.not179 = icmp slt i64 %105, %3
  br i1 %.not.not179, label %82, label %._crit_edge, !llvm.loop !46

._crit_edge:                                      ; preds = %103
  %106 = getelementptr inbounds i8, ptr %0, i64 136
  %107 = load i8, ptr %106, align 8, !tbaa !47, !range !48, !noundef !49
  %108 = trunc nuw i8 %107 to i1
  br i1 %108, label %.loopexit, label %.lr.ph218

.lr.ph218:                                        ; preds = %._crit_edge
  store i64 0, ptr %10, align 8, !tbaa !39
  %.not.not183212 = icmp sgt i64 %24, 0
  br label %109

109:                                              ; preds = %.lr.ph218, %133
  store double 0.000000e+00, ptr %12, align 8, !tbaa !50
  store i64 0, ptr %11, align 8, !tbaa !39
  br i1 %.not.not183212, label %.lr.ph215, label %._crit_edge216

.lr.ph215:                                        ; preds = %109, %.lr.ph215
  %110 = phi double [ %118, %.lr.ph215 ], [ 0.000000e+00, %109 ]
  %storemerge182213 = phi i64 [ %120, %.lr.ph215 ], [ 0, %109 ]
  %111 = load ptr, ptr %61, align 8, !tbaa !40
  %112 = load i64, ptr %10, align 8, !tbaa !39
  %113 = getelementptr inbounds ptr, ptr %111, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !42
  %115 = getelementptr inbounds double, ptr %114, i64 %storemerge182213
  %116 = load double, ptr %115, align 8, !tbaa !50
  %117 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %116, ptr noundef %7)
  %118 = fadd double %110, %117
  store double %118, ptr %12, align 8, !tbaa !50
  %119 = load i64, ptr %11, align 8, !tbaa !39
  %120 = add nsw i64 %119, 1
  store i64 %120, ptr %11, align 8, !tbaa !39
  %.not.not183 = icmp slt i64 %120, %24
  br i1 %.not.not183, label %.lr.ph215, label %._crit_edge216, !llvm.loop !51

._crit_edge216:                                   ; preds = %.lr.ph215, %109
  %121 = phi double [ 0.000000e+00, %109 ], [ %118, %.lr.ph215 ]
  %122 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %121, double noundef 0.000000e+00)
  br i1 %122, label %133, label %123

123:                                              ; preds = %._crit_edge216
  %124 = load double, ptr %12, align 8, !tbaa !50
  %125 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %124, ptr noundef %7)
  %126 = fdiv double 1.000000e+00, %125
  store double %126, ptr %12, align 8, !tbaa !50
  %127 = load ptr, ptr %61, align 8, !tbaa !40
  %128 = load i64, ptr %10, align 8, !tbaa !39
  %129 = getelementptr inbounds ptr, ptr %127, i64 %128
  %130 = load ptr, ptr %129, align 8, !tbaa !42
  %131 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %24)
  %132 = load double, ptr %12, align 8, !tbaa !50
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %130, i64 noundef 1, i64 noundef %131, double noundef %132)
  br label %133

133:                                              ; preds = %._crit_edge216, %123
  %134 = load i64, ptr %10, align 8, !tbaa !39
  %135 = add nsw i64 %134, 1
  store i64 %135, ptr %10, align 8, !tbaa !39
  %.not.not181 = icmp slt i64 %135, %3
  br i1 %.not.not181, label %109, label %.loopexit, !llvm.loop !52

.loopexit:                                        ; preds = %133, %._crit_edge, %56
  %136 = icmp sgt i64 %6, 0
  br i1 %136, label %137, label %333

137:                                              ; preds = %.loopexit
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %6, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %6, ptr noundef %7)
  store i64 0, ptr %10, align 8, !tbaa !39
  %138 = getelementptr inbounds i8, ptr %16, i64 56
  %139 = getelementptr inbounds i8, ptr %19, i64 56
  br label %140

140:                                              ; preds = %137, %140
  %storemerge184219 = phi i64 [ 0, %137 ], [ %146, %140 ]
  %141 = load ptr, ptr %138, align 8, !tbaa !40
  %142 = getelementptr inbounds i64, ptr %141, i64 %storemerge184219
  store i64 0, ptr %142, align 8, !tbaa !39
  %143 = load ptr, ptr %139, align 8, !tbaa !40
  %144 = load i64, ptr %10, align 8, !tbaa !39
  %145 = getelementptr inbounds double, ptr %143, i64 %144
  store double 0.000000e+00, ptr %145, align 8, !tbaa !50
  %146 = add nsw i64 %144, 1
  store i64 %146, ptr %10, align 8, !tbaa !39
  %.not.not185 = icmp slt i64 %146, %6
  br i1 %.not.not185, label %140, label %147, !llvm.loop !53

147:                                              ; preds = %140
  store i64 0, ptr %22, align 8, !tbaa !39
  store i64 0, ptr %23, align 8, !tbaa !39
  br label %.outer

.outer:                                           ; preds = %.outer.backedge, %147
  %.0.ph = phi i64 [ 0, %147 ], [ %157, %.outer.backedge ]
  br label %148

148:                                              ; preds = %.outer, %150
  %149 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPNS_12sparsematrixEPlS2_S2_S2_PdPNS_8ae_stateE(ptr noundef %4, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %7)
  br i1 %149, label %150, label %172

150:                                              ; preds = %148
  %151 = load i64, ptr %10, align 8, !tbaa !39
  %.not200 = icmp sge i64 %151, %6
  %152 = load i64, ptr %11, align 8
  %153 = icmp sgt i64 %152, %24
  %or.cond = select i1 %.not200, i1 true, i1 %153
  br i1 %or.cond, label %148, label %154, !llvm.loop !54

154:                                              ; preds = %150
  %155 = load double, ptr %12, align 8, !tbaa !50
  %156 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %155, ptr noundef %7)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %156, ptr noundef nonnull @.str.336, ptr noundef %7)
  %157 = add nuw nsw i64 %.0.ph, 1
  %158 = load ptr, ptr %138, align 8, !tbaa !40
  %159 = load i64, ptr %10, align 8, !tbaa !39
  %160 = getelementptr inbounds i64, ptr %158, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !39
  %162 = add nsw i64 %161, 1
  store i64 %162, ptr %160, align 8, !tbaa !39
  %163 = load i64, ptr %11, align 8, !tbaa !39
  %164 = icmp slt i64 %163, %24
  br i1 %164, label %165, label %.outer.backedge

165:                                              ; preds = %154
  %166 = load ptr, ptr %139, align 8, !tbaa !40
  %167 = load i64, ptr %10, align 8, !tbaa !39
  %168 = getelementptr inbounds double, ptr %166, i64 %167
  %169 = load double, ptr %168, align 8, !tbaa !50
  %170 = load double, ptr %12, align 8, !tbaa !50
  %171 = call double @llvm.fmuladd.f64(double %170, double %170, double %169)
  store double %171, ptr %168, align 8, !tbaa !50
  br label %.outer.backedge

.outer.backedge:                                  ; preds = %165, %154
  br label %.outer, !llvm.loop !54

172:                                              ; preds = %148
  %.not248 = icmp eq i64 %.0.ph, 0
  br i1 %.not248, label %333, label %.lr.ph223

.lr.ph223:                                        ; preds = %172
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %6, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %6, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %6, ptr noundef %7)
  store i64 0, ptr %10, align 8, !tbaa !39
  %173 = getelementptr inbounds i8, ptr %13, i64 56
  br label %177

.lr.ph226:                                        ; preds = %177
  store i64 0, ptr %10, align 8, !tbaa !39
  %174 = getelementptr inbounds i8, ptr %5, i64 56
  %175 = getelementptr inbounds i8, ptr %15, i64 56
  %176 = getelementptr inbounds i8, ptr %13, i64 56
  br label %183

177:                                              ; preds = %.lr.ph223, %177
  %storemerge186221 = phi i64 [ 0, %.lr.ph223 ], [ %181, %177 ]
  %178 = load ptr, ptr %173, align 8, !tbaa !40
  %179 = getelementptr inbounds i64, ptr %178, i64 %storemerge186221
  store i64 -1, ptr %179, align 8, !tbaa !39
  %180 = load i64, ptr %10, align 8, !tbaa !39
  %181 = add nsw i64 %180, 1
  store i64 %181, ptr %10, align 8, !tbaa !39
  %.not.not187 = icmp slt i64 %181, %6
  br i1 %.not.not187, label %177, label %.lr.ph226, !llvm.loop !55

.lr.ph229:                                        ; preds = %203
  store i64 0, ptr %10, align 8, !tbaa !39
  %182 = getelementptr inbounds i8, ptr %13, i64 56
  br label %210

183:                                              ; preds = %.lr.ph226, %203
  %storemerge188225 = phi i64 [ 0, %.lr.ph226 ], [ %207, %203 ]
  %184 = load ptr, ptr %174, align 8, !tbaa !40
  %185 = getelementptr inbounds i64, ptr %184, i64 %storemerge188225
  %186 = load i64, ptr %185, align 8, !tbaa !39
  %187 = icmp eq i64 %186, 0
  br i1 %187, label %188, label %194

188:                                              ; preds = %183
  %189 = load ptr, ptr %175, align 8, !tbaa !40
  %190 = getelementptr inbounds double, ptr %189, i64 %storemerge188225
  store double 1.000000e+00, ptr %190, align 8, !tbaa !50
  %191 = load ptr, ptr %176, align 8, !tbaa !40
  %192 = load i64, ptr %52, align 8, !tbaa !56
  %193 = getelementptr inbounds i64, ptr %191, i64 %192
  br label %203

194:                                              ; preds = %183
  %195 = icmp sgt i64 %186, 0
  %196 = load ptr, ptr %175, align 8, !tbaa !40
  %197 = getelementptr inbounds double, ptr %196, i64 %storemerge188225
  %. = select i1 %195, double -1.000000e+00, double 1.000000e+00
  store double %., ptr %197, align 8, !tbaa !50
  %198 = load ptr, ptr %176, align 8, !tbaa !40
  %199 = load i64, ptr %53, align 8, !tbaa !57
  %200 = xor i64 %199, -1
  %201 = getelementptr i64, ptr %198, i64 %200
  %202 = getelementptr i64, ptr %201, i64 %6
  br label %203

203:                                              ; preds = %188, %194
  %.sink255 = phi ptr [ %193, %188 ], [ %202, %194 ]
  %.sink254 = phi ptr [ %52, %188 ], [ %53, %194 ]
  store i64 %storemerge188225, ptr %.sink255, align 8, !tbaa !39
  %204 = load i64, ptr %.sink254, align 8, !tbaa !39
  %205 = add nsw i64 %204, 1
  store i64 %205, ptr %.sink254, align 8, !tbaa !39
  %206 = load i64, ptr %10, align 8, !tbaa !39
  %207 = add nsw i64 %206, 1
  store i64 %207, ptr %10, align 8, !tbaa !39
  %.not.not189 = icmp slt i64 %207, %6
  br i1 %.not.not189, label %183, label %.lr.ph229, !llvm.loop !58

.lr.ph232:                                        ; preds = %210
  store i64 0, ptr %10, align 8, !tbaa !39
  %208 = getelementptr inbounds i8, ptr %14, i64 56
  %209 = getelementptr inbounds i8, ptr %13, i64 56
  br label %217

210:                                              ; preds = %.lr.ph229, %210
  %storemerge190228 = phi i64 [ 0, %.lr.ph229 ], [ %216, %210 ]
  %211 = load ptr, ptr %182, align 8, !tbaa !40
  %212 = getelementptr inbounds i64, ptr %211, i64 %storemerge190228
  %213 = load i64, ptr %212, align 8, !tbaa !39
  %214 = icmp sgt i64 %213, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %214, ptr noundef nonnull @.str.337, ptr noundef %7)
  %215 = load i64, ptr %10, align 8, !tbaa !39
  %216 = add nsw i64 %215, 1
  store i64 %216, ptr %10, align 8, !tbaa !39
  %.not.not191 = icmp slt i64 %216, %6
  br i1 %.not.not191, label %210, label %.lr.ph232, !llvm.loop !59

217:                                              ; preds = %.lr.ph232, %217
  %storemerge192231 = phi i64 [ 0, %.lr.ph232 ], [ %224, %217 ]
  %218 = load ptr, ptr %208, align 8, !tbaa !40
  %219 = load ptr, ptr %209, align 8, !tbaa !40
  %220 = getelementptr inbounds i64, ptr %219, i64 %storemerge192231
  %221 = load i64, ptr %220, align 8, !tbaa !39
  %222 = getelementptr inbounds i64, ptr %218, i64 %221
  store i64 %storemerge192231, ptr %222, align 8, !tbaa !39
  %223 = load i64, ptr %10, align 8, !tbaa !39
  %224 = add nsw i64 %223, 1
  store i64 %224, ptr %10, align 8, !tbaa !39
  %.not.not193 = icmp slt i64 %224, %6
  br i1 %.not.not193, label %217, label %.lr.ph237, !llvm.loop !60

.lr.ph237:                                        ; preds = %217
  %225 = getelementptr inbounds i8, ptr %0, i64 2872
  %226 = getelementptr inbounds i8, ptr %0, i64 3200
  store i64 %6, ptr %226, align 8, !tbaa !61
  %227 = getelementptr inbounds i8, ptr %0, i64 3208
  store i64 %37, ptr %227, align 8, !tbaa !62
  %228 = getelementptr inbounds i8, ptr %0, i64 3000
  %229 = add nuw nsw i64 %6, 1
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %228, i64 noundef %229, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %229, ptr noundef %7)
  %230 = getelementptr inbounds i8, ptr %0, i64 3056
  %231 = load ptr, ptr %230, align 8, !tbaa !40
  store i64 0, ptr %231, align 8, !tbaa !39
  %232 = getelementptr inbounds i8, ptr %17, i64 56
  %233 = load ptr, ptr %232, align 8, !tbaa !40
  store i64 0, ptr %233, align 8, !tbaa !39
  store i64 1, ptr %10, align 8, !tbaa !39
  %234 = getelementptr inbounds i8, ptr %13, i64 56
  br label %237

.lr.ph240:                                        ; preds = %237
  store i64 0, ptr %10, align 8, !tbaa !39
  %235 = getelementptr inbounds i8, ptr %0, i64 136
  %236 = getelementptr inbounds i8, ptr %15, i64 56
  br label %258

237:                                              ; preds = %.lr.ph237, %237
  %storemerge194235 = phi i64 [ 1, %.lr.ph237 ], [ %257, %237 ]
  %238 = load ptr, ptr %230, align 8, !tbaa !40
  %239 = add nsw i64 %storemerge194235, -1
  %240 = getelementptr inbounds i64, ptr %238, i64 %239
  %241 = load i64, ptr %240, align 8, !tbaa !39
  %242 = load ptr, ptr %138, align 8, !tbaa !40
  %243 = load ptr, ptr %234, align 8, !tbaa !40
  %244 = getelementptr inbounds i64, ptr %243, i64 %239
  %245 = load i64, ptr %244, align 8, !tbaa !39
  %246 = getelementptr inbounds i64, ptr %242, i64 %245
  %247 = load i64, ptr %246, align 8, !tbaa !39
  %248 = add nsw i64 %247, %241
  %249 = getelementptr inbounds i64, ptr %238, i64 %storemerge194235
  store i64 %248, ptr %249, align 8, !tbaa !39
  %250 = load ptr, ptr %230, align 8, !tbaa !40
  %251 = load i64, ptr %10, align 8, !tbaa !39
  %252 = getelementptr inbounds i64, ptr %250, i64 %251
  %253 = load i64, ptr %252, align 8, !tbaa !39
  %254 = load ptr, ptr %232, align 8, !tbaa !40
  %255 = getelementptr inbounds i64, ptr %254, i64 %251
  store i64 %253, ptr %255, align 8, !tbaa !39
  %256 = load i64, ptr %10, align 8, !tbaa !39
  %257 = add nsw i64 %256, 1
  store i64 %257, ptr %10, align 8, !tbaa !39
  %.not.not249 = icmp slt i64 %256, %6
  br i1 %.not.not249, label %237, label %.lr.ph240, !llvm.loop !63

258:                                              ; preds = %.lr.ph240, %286
  %storemerge195239 = phi i64 [ 0, %.lr.ph240 ], [ %288, %286 ]
  %259 = load ptr, ptr %139, align 8, !tbaa !40
  %260 = getelementptr inbounds double, ptr %259, i64 %storemerge195239
  %261 = load double, ptr %260, align 8, !tbaa !50
  %262 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %261, double noundef 0.000000e+00)
  br i1 %262, label %263, label %279

263:                                              ; preds = %258
  %264 = load i8, ptr %235, align 8, !tbaa !47, !range !48, !noundef !49
  %265 = trunc nuw i8 %264 to i1
  br i1 %265, label %279, label %266

266:                                              ; preds = %263
  %267 = load ptr, ptr %236, align 8, !tbaa !40
  %268 = load i64, ptr %10, align 8, !tbaa !39
  %269 = getelementptr inbounds double, ptr %267, i64 %268
  %270 = load double, ptr %269, align 8, !tbaa !50
  %271 = load ptr, ptr %139, align 8, !tbaa !40
  %272 = getelementptr inbounds double, ptr %271, i64 %268
  %273 = load double, ptr %272, align 8, !tbaa !50
  %274 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %273, ptr noundef %7)
  %275 = fdiv double %270, %274
  %276 = load ptr, ptr %139, align 8, !tbaa !40
  %277 = load i64, ptr %10, align 8, !tbaa !39
  %278 = getelementptr inbounds double, ptr %276, i64 %277
  store double %275, ptr %278, align 8, !tbaa !50
  br label %286

279:                                              ; preds = %263, %258
  %280 = load ptr, ptr %236, align 8, !tbaa !40
  %281 = load i64, ptr %10, align 8, !tbaa !39
  %282 = getelementptr inbounds double, ptr %280, i64 %281
  %283 = load double, ptr %282, align 8, !tbaa !50
  %284 = load ptr, ptr %139, align 8, !tbaa !40
  %285 = getelementptr inbounds double, ptr %284, i64 %281
  store double %283, ptr %285, align 8, !tbaa !50
  br label %286

286:                                              ; preds = %266, %279
  %287 = phi i64 [ %277, %266 ], [ %281, %279 ]
  %288 = add nsw i64 %287, 1
  store i64 %288, ptr %10, align 8, !tbaa !39
  %.not196.not = icmp slt i64 %288, %6
  br i1 %.not196.not, label %258, label %._crit_edge241, !llvm.loop !64

._crit_edge241:                                   ; preds = %286
  %289 = getelementptr inbounds i8, ptr %0, i64 2936
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %289, i64 noundef %.0.ph, ptr noundef %7)
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %225, i64 noundef %.0.ph, ptr noundef %7)
  store i64 0, ptr %22, align 8, !tbaa !39
  store i64 0, ptr %23, align 8, !tbaa !39
  %290 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPNS_12sparsematrixEPlS2_S2_S2_PdPNS_8ae_stateE(ptr noundef %4, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %7)
  br i1 %290, label %.lr.ph243, label %.lr.ph246.preheader

.lr.ph243:                                        ; preds = %._crit_edge241
  %291 = getelementptr inbounds i8, ptr %14, i64 56
  %292 = getelementptr inbounds i8, ptr %0, i64 2992
  %293 = getelementptr inbounds i8, ptr %0, i64 2928
  br label %294

.lr.ph246.preheader:                              ; preds = %.backedge, %._crit_edge241
  store i64 0, ptr %10, align 8, !tbaa !39
  br label %.lr.ph246

294:                                              ; preds = %.lr.ph243, %.backedge
  %295 = load i64, ptr %10, align 8, !tbaa !39
  %.not199 = icmp slt i64 %295, %6
  br i1 %.not199, label %296, label %.backedge

296:                                              ; preds = %294
  %297 = load i64, ptr %11, align 8, !tbaa !39
  %298 = icmp sgt i64 %297, %24
  br i1 %298, label %.backedge, label %300

.backedge:                                        ; preds = %294, %296, %300
  %299 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPNS_12sparsematrixEPlS2_S2_S2_PdPNS_8ae_stateE(ptr noundef %4, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %7)
  br i1 %299, label %294, label %.lr.ph246.preheader, !llvm.loop !65

300:                                              ; preds = %296
  %301 = load ptr, ptr %232, align 8, !tbaa !40
  %302 = load ptr, ptr %291, align 8, !tbaa !40
  %303 = getelementptr inbounds i64, ptr %302, i64 %295
  %304 = load i64, ptr %303, align 8, !tbaa !39
  %305 = getelementptr inbounds i64, ptr %301, i64 %304
  %306 = load i64, ptr %305, align 8, !tbaa !39
  %307 = load ptr, ptr %292, align 8, !tbaa !40
  %308 = getelementptr inbounds i64, ptr %307, i64 %306
  store i64 %297, ptr %308, align 8, !tbaa !39
  %309 = load double, ptr %12, align 8, !tbaa !50
  %310 = load ptr, ptr %139, align 8, !tbaa !40
  %311 = load i64, ptr %10, align 8, !tbaa !39
  %312 = getelementptr inbounds double, ptr %310, i64 %311
  %313 = load double, ptr %312, align 8, !tbaa !50
  %314 = fmul double %309, %313
  %315 = load ptr, ptr %293, align 8, !tbaa !40
  %316 = getelementptr inbounds double, ptr %315, i64 %306
  store double %314, ptr %316, align 8, !tbaa !50
  %317 = add nsw i64 %306, 1
  %318 = load ptr, ptr %232, align 8, !tbaa !40
  %319 = load ptr, ptr %291, align 8, !tbaa !40
  %320 = getelementptr inbounds i64, ptr %319, i64 %311
  %321 = load i64, ptr %320, align 8, !tbaa !39
  %322 = getelementptr inbounds i64, ptr %318, i64 %321
  store i64 %317, ptr %322, align 8, !tbaa !39
  br label %.backedge

.lr.ph246:                                        ; preds = %.lr.ph246.preheader, %.lr.ph246
  %storemerge197245 = phi i64 [ %332, %.lr.ph246 ], [ 0, %.lr.ph246.preheader ]
  %323 = load ptr, ptr %232, align 8, !tbaa !40
  %324 = getelementptr inbounds i64, ptr %323, i64 %storemerge197245
  %325 = load i64, ptr %324, align 8, !tbaa !39
  %326 = load ptr, ptr %230, align 8, !tbaa !40
  %327 = getelementptr i64, ptr %326, i64 %storemerge197245
  %328 = getelementptr i8, ptr %327, i64 8
  %329 = load i64, ptr %328, align 8, !tbaa !39
  %330 = icmp eq i64 %325, %329
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %330, ptr noundef nonnull @.str.337, ptr noundef %7)
  %331 = load i64, ptr %10, align 8, !tbaa !39
  %332 = add nsw i64 %331, 1
  store i64 %332, ptr %10, align 8, !tbaa !39
  %.not198.not = icmp slt i64 %332, %6
  br i1 %.not198.not, label %.lr.ph246, label %._crit_edge247, !llvm.loop !66

._crit_edge247:                                   ; preds = %.lr.ph246
  call void @_ZN11alglib_impl22sparsecreatecrsinplaceEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %225, ptr noundef %7)
  br label %333

333:                                              ; preds = %.loopexit, %._crit_edge247, %172, %46
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

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


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