; 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::minqpstate" = type { i64, %"struct.alglib_impl::qqpsettings", %"struct.alglib_impl::qpbleicsettings", %"struct.alglib_impl::qpdenseaulsettings", i8, i64, i64, %"struct.alglib_impl::convexquadraticmodel", %"struct.alglib_impl::sparsematrix", i8, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_matrix", i64, i64, %"struct.alglib_impl::sparsematrix", i64, i64, %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::qpbleicbuffers", %"struct.alglib_impl::qqpbuffers", %"struct.alglib_impl::qpdenseaulbuffers" }
%"struct.alglib_impl::qqpsettings" = type { double, double, double, i64, i8, i8, i64, i64, i64, i64 }
%"struct.alglib_impl::qpbleicsettings" = type { double, double, double, i64 }
%"struct.alglib_impl::qpdenseaulsettings" = type { double, i64, double }
%"struct.alglib_impl::convexquadraticmodel" = type { i64, i64, double, double, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i8, i8, i8, i8 }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"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 }

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl7cqmsetaEPNS_20convexquadraticmodelEPNS_9ae_matrixEbdPNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, double noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl23cqmrewritedensediagonalEPNS_20convexquadraticmodelEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl25minqpsetquadratictermfastEPNS_10minqpstateEPNS_9ae_matrixEbdPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2, double noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  %17 = zext i1 %2 to i8
  store i8 %17, ptr %8, align 1, !tbaa !9
  store double %3, ptr %9, align 8, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %18, i32 0, i32 0
  %20 = load i64, ptr %19, align 8, !tbaa !13
  store i64 %20, ptr %13, align 8, !tbaa !39
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %21, i32 0, i32 6
  store i64 0, ptr %22, align 8, !tbaa !40
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %23, i32 0, i32 7
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = load i8, ptr %8, align 1, !tbaa !9, !range !41, !noundef !42
  %27 = trunc i8 %26 to i1
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl7cqmsetaEPNS_20convexquadraticmodelEPNS_9ae_matrixEbdPNS_8ae_stateE(ptr noundef %24, ptr noundef %25, i1 noundef zeroext %27, double noundef 1.000000e+00, ptr noundef %28)
  %29 = load double, ptr %9, align 8, !tbaa !11
  %30 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %29, double noundef 0.000000e+00)
  br i1 %30, label %31, label %68

31:                                               ; preds = %5
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %32, i32 0, i32 36
  %34 = load i64, ptr %13, align 8, !tbaa !39
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %33, i64 noundef %34, ptr noundef %35)
  store i64 0, ptr %11, align 8, !tbaa !39
  br label %36

36:                                               ; preds = %59, %31
  %37 = load i64, ptr %11, align 8, !tbaa !39
  %38 = load i64, ptr %13, align 8, !tbaa !39
  %39 = sub nsw i64 %38, 1
  %40 = icmp sle i64 %37, %39
  br i1 %40, label %41, label %62

41:                                               ; preds = %36
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %42, i32 0, i32 6
  %44 = load ptr, ptr %43, align 8, !tbaa !43
  %45 = load i64, ptr %11, align 8, !tbaa !39
  %46 = getelementptr inbounds ptr, ptr %44, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = load i64, ptr %11, align 8, !tbaa !39
  %49 = getelementptr inbounds double, ptr %47, i64 %48
  %50 = load double, ptr %49, align 8, !tbaa !11
  %51 = load double, ptr %9, align 8, !tbaa !11
  %52 = fadd double %50, %51
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %53, i32 0, i32 36
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %54, i32 0, i32 4
  %56 = load ptr, ptr %55, align 8, !tbaa !43
  %57 = load i64, ptr %11, align 8, !tbaa !39
  %58 = getelementptr inbounds double, ptr %56, i64 %57
  store double %52, ptr %58, align 8, !tbaa !11
  br label %59

59:                                               ; preds = %41
  %60 = load i64, ptr %11, align 8, !tbaa !39
  %61 = add nsw i64 %60, 1
  store i64 %61, ptr %11, align 8, !tbaa !39
  br label %36, !llvm.loop !44

62:                                               ; preds = %36
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %63, i32 0, i32 7
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %65, i32 0, i32 36
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23cqmrewritedensediagonalEPNS_20convexquadraticmodelEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %64, ptr noundef %66, ptr noundef %67)
  br label %68

68:                                               ; preds = %62, %5
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %69, i32 0, i32 10
  store double 0.000000e+00, ptr %70, align 8, !tbaa !46
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %71, i32 0, i32 11
  store double 0.000000e+00, ptr %72, align 8, !tbaa !47
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %73, i32 0, i32 12
  store double 0.000000e+00, ptr %74, align 8, !tbaa !48
  store i64 0, ptr %11, align 8, !tbaa !39
  br label %75

75:                                               ; preds = %134, %68
  %76 = load i64, ptr %11, align 8, !tbaa !39
  %77 = load i64, ptr %13, align 8, !tbaa !39
  %78 = sub nsw i64 %77, 1
  %79 = icmp sle i64 %76, %78
  br i1 %79, label %80, label %137

80:                                               ; preds = %75
  %81 = load i8, ptr %8, align 1, !tbaa !9, !range !41, !noundef !42
  %82 = trunc i8 %81 to i1
  br i1 %82, label %83, label %87

83:                                               ; preds = %80
  %84 = load i64, ptr %11, align 8, !tbaa !39
  store i64 %84, ptr %15, align 8, !tbaa !39
  %85 = load i64, ptr %13, align 8, !tbaa !39
  %86 = sub nsw i64 %85, 1
  store i64 %86, ptr %16, align 8, !tbaa !39
  br label %89

87:                                               ; preds = %80
  store i64 0, ptr %15, align 8, !tbaa !39
  %88 = load i64, ptr %11, align 8, !tbaa !39
  store i64 %88, ptr %16, align 8, !tbaa !39
  br label %89

89:                                               ; preds = %87, %83
  %90 = load i64, ptr %15, align 8, !tbaa !39
  store i64 %90, ptr %12, align 8, !tbaa !39
  br label %91

91:                                               ; preds = %130, %89
  %92 = load i64, ptr %12, align 8, !tbaa !39
  %93 = load i64, ptr %16, align 8, !tbaa !39
  %94 = icmp sle i64 %92, %93
  br i1 %94, label %95, label %133

95:                                               ; preds = %91
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %96, i32 0, i32 6
  %98 = load ptr, ptr %97, align 8, !tbaa !43
  %99 = load i64, ptr %11, align 8, !tbaa !39
  %100 = getelementptr inbounds ptr, ptr %98, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = load i64, ptr %12, align 8, !tbaa !39
  %103 = getelementptr inbounds double, ptr %101, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !11
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %104, ptr noundef %105)
  store double %106, ptr %14, align 8, !tbaa !11
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %107, i32 0, i32 10
  %109 = load double, ptr %108, align 8, !tbaa !46
  %110 = load double, ptr %14, align 8, !tbaa !11
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %109, double noundef %110, ptr noundef %111)
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %113, i32 0, i32 10
  store double %112, ptr %114, align 8, !tbaa !46
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %115, i32 0, i32 11
  %117 = load double, ptr %116, align 8, !tbaa !47
  %118 = load double, ptr %14, align 8, !tbaa !11
  %119 = fadd double %117, %118
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %120, i32 0, i32 11
  store double %119, ptr %121, align 8, !tbaa !47
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %122, i32 0, i32 12
  %124 = load double, ptr %123, align 8, !tbaa !48
  %125 = load double, ptr %14, align 8, !tbaa !11
  %126 = load double, ptr %14, align 8, !tbaa !11
  %127 = call double @llvm.fmuladd.f64(double %125, double %126, double %124)
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %128, i32 0, i32 12
  store double %127, ptr %129, align 8, !tbaa !48
  br label %130

130:                                              ; preds = %95
  %131 = load i64, ptr %12, align 8, !tbaa !39
  %132 = add nsw i64 %131, 1
  store i64 %132, ptr %12, align 8, !tbaa !39
  br label %91, !llvm.loop !49

133:                                              ; preds = %91
  br label %134

134:                                              ; preds = %133
  %135 = load i64, ptr %11, align 8, !tbaa !39
  %136 = add nsw i64 %135, 1
  store i64 %136, ptr %11, align 8, !tbaa !39
  br label %75, !llvm.loop !50

137:                                              ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret void
}

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

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

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


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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl7cqmsetaEPNS_20convexquadraticmodelEPNS_9ae_matrixEbdPNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, double noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl23cqmrewritedensediagonalEPNS_20convexquadraticmodelEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl25minqpsetquadratictermfastEPNS_10minqpstateEPNS_9ae_matrixEbdPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2, double noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = load i64, ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 152
  store i64 0, ptr %7, align 8, !tbaa !36
  %8 = getelementptr inbounds i8, ptr %0, i64 160
  tail call void @_ZN11alglib_impl7cqmsetaEPNS_20convexquadraticmodelEPNS_9ae_matrixEbdPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef %1, i1 noundef zeroext %2, double noundef 1.000000e+00, ptr noundef %4)
  %9 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %3, double noundef 0.000000e+00)
  br i1 %9, label %10, label %42

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %0, i64 3424
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %6, ptr noundef %4)
  %.not.not55 = icmp sgt i64 %6, 0
  br i1 %.not.not55, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %10
  %12 = getelementptr inbounds i8, ptr %1, i64 72
  %13 = getelementptr inbounds i8, ptr %0, i64 3480
  %xtraiter = and i64 %6, 1
  %14 = icmp eq i64 %6, 1
  br i1 %14, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %6, 9223372036854775806
  br label %15

15:                                               ; preds = %15, %.lr.ph.new
  %.05156 = phi i64 [ 0, %.lr.ph.new ], [ %33, %15 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %15 ]
  %16 = load ptr, ptr %12, align 8, !tbaa !37
  %17 = getelementptr inbounds ptr, ptr %16, i64 %.05156
  %18 = load ptr, ptr %17, align 8, !tbaa !38
  %19 = getelementptr inbounds double, ptr %18, i64 %.05156
  %20 = load double, ptr %19, align 8, !tbaa !39
  %21 = fadd double %20, %3
  %22 = load ptr, ptr %13, align 8, !tbaa !37
  %23 = getelementptr inbounds double, ptr %22, i64 %.05156
  store double %21, ptr %23, align 8, !tbaa !39
  %24 = or disjoint i64 %.05156, 1
  %25 = load ptr, ptr %12, align 8, !tbaa !37
  %26 = getelementptr inbounds ptr, ptr %25, i64 %24
  %27 = load ptr, ptr %26, align 8, !tbaa !38
  %28 = getelementptr inbounds double, ptr %27, i64 %24
  %29 = load double, ptr %28, align 8, !tbaa !39
  %30 = fadd double %29, %3
  %31 = load ptr, ptr %13, align 8, !tbaa !37
  %32 = getelementptr inbounds double, ptr %31, i64 %24
  store double %30, ptr %32, align 8, !tbaa !39
  %33 = add nuw nsw i64 %.05156, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %15, !llvm.loop !40

._crit_edge.loopexit.unr-lcssa:                   ; preds = %15, %.lr.ph
  %.05156.unr = phi i64 [ 0, %.lr.ph ], [ %33, %15 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %34 = load ptr, ptr %12, align 8, !tbaa !37
  %35 = getelementptr inbounds ptr, ptr %34, i64 %.05156.unr
  %36 = load ptr, ptr %35, align 8, !tbaa !38
  %37 = getelementptr inbounds double, ptr %36, i64 %.05156.unr
  %38 = load double, ptr %37, align 8, !tbaa !39
  %39 = fadd double %38, %3
  %40 = load ptr, ptr %13, align 8, !tbaa !37
  %41 = getelementptr inbounds double, ptr %40, i64 %.05156.unr
  store double %39, ptr %41, align 8, !tbaa !39
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %10
  tail call void @_ZN11alglib_impl23cqmrewritedensediagonalEPNS_20convexquadraticmodelEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %11, ptr noundef %4)
  br label %42

42:                                               ; preds = %._crit_edge, %5
  %43 = getelementptr inbounds i8, ptr %0, i64 2224
  %44 = getelementptr inbounds i8, ptr %0, i64 2232
  %45 = getelementptr inbounds i8, ptr %0, i64 2240
  %.not.not5462 = icmp sgt i64 %6, 0
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %43, i8 0, i64 24, i1 false)
  br i1 %.not.not5462, label %.lr.ph65, label %._crit_edge66

.lr.ph65:                                         ; preds = %42
  %46 = add nsw i64 %6, -1
  %47 = getelementptr inbounds i8, ptr %1, i64 72
  br i1 %2, label %.lr.ph60.us.preheader, label %.lr.ph60

.lr.ph60.us.preheader:                            ; preds = %.lr.ph65, %._crit_edge61.us
  %.163.us = phi i64 [ %61, %._crit_edge61.us ], [ 0, %.lr.ph65 ]
  br label %.lr.ph60.us

.lr.ph60.us:                                      ; preds = %.lr.ph60.us.preheader, %.lr.ph60.us
  %.05258.us = phi i64 [ %60, %.lr.ph60.us ], [ %.163.us, %.lr.ph60.us.preheader ]
  %48 = load ptr, ptr %47, align 8, !tbaa !37
  %49 = getelementptr inbounds ptr, ptr %48, i64 %.163.us
  %50 = load ptr, ptr %49, align 8, !tbaa !38
  %51 = getelementptr inbounds double, ptr %50, i64 %.05258.us
  %52 = load double, ptr %51, align 8, !tbaa !39
  %53 = tail call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %52, ptr noundef %4)
  %54 = load double, ptr %43, align 8, !tbaa !42
  %55 = tail call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %54, double noundef %53, ptr noundef %4)
  store double %55, ptr %43, align 8, !tbaa !42
  %56 = load double, ptr %44, align 8, !tbaa !43
  %57 = fadd double %53, %56
  store double %57, ptr %44, align 8, !tbaa !43
  %58 = load double, ptr %45, align 8, !tbaa !44
  %59 = tail call double @llvm.fmuladd.f64(double %53, double %53, double %58)
  store double %59, ptr %45, align 8, !tbaa !44
  %60 = add nuw nsw i64 %.05258.us, 1
  %.not.us.not = icmp slt i64 %.05258.us, %46
  br i1 %.not.us.not, label %.lr.ph60.us, label %._crit_edge61.us, !llvm.loop !45

._crit_edge61.us:                                 ; preds = %.lr.ph60.us
  %61 = add nuw nsw i64 %.163.us, 1
  %exitcond71.not = icmp eq i64 %61, %6
  br i1 %exitcond71.not, label %._crit_edge66, label %.lr.ph60.us.preheader, !llvm.loop !46

.lr.ph60:                                         ; preds = %.lr.ph65, %._crit_edge61
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge61 ], [ 1, %.lr.ph65 ]
  %.163 = phi i64 [ %76, %._crit_edge61 ], [ 0, %.lr.ph65 ]
  br label %62

62:                                               ; preds = %.lr.ph60, %62
  %.05258 = phi i64 [ 0, %.lr.ph60 ], [ %75, %62 ]
  %63 = load ptr, ptr %47, align 8, !tbaa !37
  %64 = getelementptr inbounds ptr, ptr %63, i64 %.163
  %65 = load ptr, ptr %64, align 8, !tbaa !38
  %66 = getelementptr inbounds double, ptr %65, i64 %.05258
  %67 = load double, ptr %66, align 8, !tbaa !39
  %68 = tail call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %67, ptr noundef %4)
  %69 = load double, ptr %43, align 8, !tbaa !42
  %70 = tail call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %69, double noundef %68, ptr noundef %4)
  store double %70, ptr %43, align 8, !tbaa !42
  %71 = load double, ptr %44, align 8, !tbaa !43
  %72 = fadd double %68, %71
  store double %72, ptr %44, align 8, !tbaa !43
  %73 = load double, ptr %45, align 8, !tbaa !44
  %74 = tail call double @llvm.fmuladd.f64(double %68, double %68, double %73)
  store double %74, ptr %45, align 8, !tbaa !44
  %75 = add nuw nsw i64 %.05258, 1
  %exitcond69.not = icmp eq i64 %75, %indvars.iv
  br i1 %exitcond69.not, label %._crit_edge61, label %62, !llvm.loop !45

._crit_edge61:                                    ; preds = %62
  %76 = add nuw nsw i64 %.163, 1
  %indvars.iv.next = add nuw i64 %indvars.iv, 1
  %exitcond70.not = icmp eq i64 %76, %6
  br i1 %exitcond70.not, label %._crit_edge66, label %.lr.ph60, !llvm.loop !46

._crit_edge66:                                    ; preds = %._crit_edge61, %._crit_edge61.us, %42
  ret void
}

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

attributes #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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 = !{!6, !7, i64 152}
!37 = !{!8, !8, i64 0}
!38 = !{!18, !18, i64 0}
!39 = !{!11, !11, i64 0}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!6, !11, i64 2224}
!43 = !{!6, !11, i64 2232}
!44 = !{!6, !11, i64 2240}
!45 = distinct !{!45, !41}
!46 = distinct !{!46, !41}


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