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

@.str.295 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.296 = external hidden unnamed_addr constant [40 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 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) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  %15 = zext i1 %2 to i8
  store i8 %15, ptr %7, align 1, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  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
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %16, i32 0, i32 0
  %18 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %18, ptr %9, align 8, !tbaa !38
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %19, ptr noundef %20)
  %22 = load i64, ptr %9, align 8, !tbaa !38
  %23 = icmp eq i64 %21, %22
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef @.str.295, ptr noundef %24)
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %25, ptr noundef %26)
  %28 = load i64, ptr %9, align 8, !tbaa !38
  %29 = icmp eq i64 %27, %28
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.296, ptr noundef %30)
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %32, i32 0, i32 8
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparsecopytocrsbufEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %31, ptr noundef %33, ptr noundef %34)
  %35 = load i8, ptr %7, align 1, !tbaa !9, !range !39, !noundef !40
  %36 = trunc i8 %35 to i1
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %37, i32 0, i32 9
  %39 = zext i1 %36 to i8
  store i8 %39, ptr %38, align 8, !tbaa !41
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %40, i32 0, i32 6
  store i64 1, ptr %41, align 8, !tbaa !42
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %42, i32 0, i32 10
  store double 0.000000e+00, ptr %43, align 8, !tbaa !43
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %44, i32 0, i32 11
  store double 0.000000e+00, ptr %45, align 8, !tbaa !44
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %46, i32 0, i32 12
  store double 0.000000e+00, ptr %47, align 8, !tbaa !45
  store i64 0, ptr %10, align 8, !tbaa !38
  store i64 0, ptr %11, align 8, !tbaa !38
  br label %48

48:                                               ; preds = %119, %4
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPNS_12sparsematrixEPlS2_S2_S2_PdPNS_8ae_stateE(ptr noundef %49, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %50)
  br i1 %51, label %52, label %120

52:                                               ; preds = %48
  %53 = load i64, ptr %12, align 8, !tbaa !38
  %54 = load i64, ptr %13, align 8, !tbaa !38
  %55 = icmp eq i64 %53, %54
  br i1 %55, label %56, label %80

56:                                               ; preds = %52
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %57, i32 0, i32 10
  %59 = load double, ptr %58, align 8, !tbaa !43
  %60 = load double, ptr %14, align 8, !tbaa !46
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %59, double noundef %60, ptr noundef %61)
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %63, i32 0, i32 10
  store double %62, ptr %64, align 8, !tbaa !43
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %65, i32 0, i32 11
  %67 = load double, ptr %66, align 8, !tbaa !44
  %68 = load double, ptr %14, align 8, !tbaa !46
  %69 = fadd double %67, %68
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %70, i32 0, i32 11
  store double %69, ptr %71, align 8, !tbaa !44
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %72, i32 0, i32 12
  %74 = load double, ptr %73, align 8, !tbaa !45
  %75 = load double, ptr %14, align 8, !tbaa !46
  %76 = load double, ptr %14, align 8, !tbaa !46
  %77 = call double @llvm.fmuladd.f64(double %75, double %76, double %74)
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %78, i32 0, i32 12
  store double %77, ptr %79, align 8, !tbaa !45
  br label %80

80:                                               ; preds = %56, %52
  %81 = load i64, ptr %13, align 8, !tbaa !38
  %82 = load i64, ptr %12, align 8, !tbaa !38
  %83 = icmp sgt i64 %81, %82
  br i1 %83, label %84, label %87

84:                                               ; preds = %80
  %85 = load i8, ptr %7, align 1, !tbaa !9, !range !39, !noundef !40
  %86 = trunc i8 %85 to i1
  br i1 %86, label %94, label %87

87:                                               ; preds = %84, %80
  %88 = load i64, ptr %13, align 8, !tbaa !38
  %89 = load i64, ptr %12, align 8, !tbaa !38
  %90 = icmp slt i64 %88, %89
  br i1 %90, label %91, label %119

91:                                               ; preds = %87
  %92 = load i8, ptr %7, align 1, !tbaa !9, !range !39, !noundef !40
  %93 = trunc i8 %92 to i1
  br i1 %93, label %119, label %94

94:                                               ; preds = %91, %84
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %95, i32 0, i32 10
  %97 = load double, ptr %96, align 8, !tbaa !43
  %98 = load double, ptr %14, align 8, !tbaa !46
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %97, double noundef %98, ptr noundef %99)
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %101, i32 0, i32 10
  store double %100, ptr %102, align 8, !tbaa !43
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %103, i32 0, i32 11
  %105 = load double, ptr %104, align 8, !tbaa !44
  %106 = load double, ptr %14, align 8, !tbaa !46
  %107 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %106, double %105)
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %108, i32 0, i32 11
  store double %107, ptr %109, align 8, !tbaa !44
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %110, i32 0, i32 12
  %112 = load double, ptr %111, align 8, !tbaa !45
  %113 = load double, ptr %14, align 8, !tbaa !46
  %114 = fmul double 2.000000e+00, %113
  %115 = load double, ptr %14, align 8, !tbaa !46
  %116 = call double @llvm.fmuladd.f64(double %114, double %115, double %112)
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.alglib_impl::minqpstate", ptr %117, i32 0, i32 12
  store double %116, ptr %118, align 8, !tbaa !45
  br label %119

119:                                              ; preds = %94, %91, %87
  br label %48, !llvm.loop !47

120:                                              ; preds = %48
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

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

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

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

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) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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, !13, i64 0}
!12 = !{!"_ZTSN11alglib_impl10minqpstateE", !13, i64 0, !14, i64 8, !16, i64 80, !17, i64 112, !10, i64 136, !13, i64 144, !13, i64 152, !18, i64 160, !22, i64 1848, !10, i64 2216, !15, i64 2224, !15, i64 2232, !15, i64 2240, !21, i64 2248, !21, i64 2312, !21, i64 2376, !13, i64 2440, !21, i64 2448, !21, i64 2512, !21, i64 2576, !21, i64 2640, !21, i64 2704, !10, i64 2768, !19, i64 2776, !13, i64 2856, !13, i64 2864, !22, i64 2872, !13, i64 3240, !13, i64 3248, !21, i64 3256, !13, i64 3320, !13, i64 3328, !13, i64 3336, !13, i64 3344, !13, i64 3352, !21, i64 3360, !21, i64 3424, !19, i64 3488, !19, i64 3568, !10, i64 3648, !23, i64 3656, !35, i64 16496, !37, i64 23800}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl11qqpsettingsE", !15, i64 0, !15, i64 8, !15, i64 16, !13, i64 24, !10, i64 32, !10, i64 33, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl15qpbleicsettingsE", !15, i64 0, !15, i64 8, !15, i64 16, !13, i64 24}
!17 = !{!"_ZTSN11alglib_impl18qpdenseaulsettingsE", !15, i64 0, !13, i64 8, !15, i64 16}
!18 = !{!"_ZTSN11alglib_impl20convexquadraticmodelE", !13, i64 0, !13, i64 8, !15, i64 16, !15, i64 24, !15, 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, !15, i64 872, !15, i64 880, !21, i64 888, !21, i64 952, !13, i64 1016, !13, i64 1024, !19, i64 1032, !19, i64 1112, !19, i64 1192, !21, i64 1272, !21, i64 1336, !15, i64 1400, !21, i64 1408, !21, i64 1472, !21, i64 1536, !19, i64 1600, !10, i64 1680, !10, i64 1681, !10, i64 1682, !10, i64 1683}
!19 = !{!"_ZTSN11alglib_impl9ae_matrixE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !10, 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", !13, i64 0, !13, i64 8, !10, 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, !13, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !13, i64 352, !13, i64 360}
!23 = !{!"_ZTSN11alglib_impl14qpbleicbuffersE", !24, i64 0, !34, i64 12536, !21, i64 12632, !21, i64 12696, !21, i64 12760, !13, i64 12824, !13, i64 12832}
!24 = !{!"_ZTSN11alglib_impl13minbleicstateE", !13, i64 0, !13, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !13, i64 40, !10, i64 48, !10, i64 49, !15, i64 56, !15, i64 64, !25, i64 72, !21, i64 4416, !13, i64 4480, !21, i64 4488, !21, i64 4552, !15, i64 4616, !21, i64 4624, !10, i64 4688, !10, i64 4689, !10, i64 4690, !10, i64 4691, !10, i64 4692, !10, i64 4693, !10, i64 4694, !27, i64 4696, !21, i64 4960, !21, i64 5024, !21, i64 5088, !21, i64 5152, !21, i64 5216, !21, i64 5280, !15, i64 5344, !15, i64 5352, !15, i64 5360, !21, i64 5368, !19, i64 5432, !13, i64 5512, !13, i64 5520, !15, i64 5528, !15, i64 5536, !15, i64 5544, !21, i64 5552, !21, i64 5616, !21, i64 5680, !21, i64 5744, !13, i64 5808, !13, i64 5816, !13, i64 5824, !13, i64 5832, !13, i64 5840, !15, i64 5848, !15, i64 5856, !15, i64 5864, !15, i64 5872, !13, i64 5880, !13, i64 5888, !21, i64 5896, !26, i64 5960, !15, i64 7600, !15, i64 7608, !15, i64 7616, !15, i64 7624, !15, i64 7632, !15, i64 7640, !15, i64 7648, !15, i64 7656, !15, i64 7664, !13, i64 7672, !15, i64 7680, !21, i64 7688, !21, i64 7752, !13, i64 7816, !13, i64 7824, !15, i64 7832, !15, i64 7840, !15, i64 7848, !21, i64 7856, !29, i64 7920, !15, i64 8112, !13, i64 8120, !19, i64 8128, !19, i64 8208, !21, i64 8288, !21, i64 8352, !13, i64 8416, !15, i64 8424, !13, i64 8432, !30, i64 8440, !21, i64 12408, !21, i64 12472}
!25 = !{!"_ZTSN11alglib_impl10sactivesetE", !13, i64 0, !13, i64 8, !21, i64 16, !10, i64 80, !21, i64 88, !21, i64 152, !21, i64 216, !10, i64 280, !19, i64 288, !19, i64 368, !19, i64 448, !13, i64 528, !21, i64 536, !13, i64 600, !13, i64 608, !10, i64 616, !10, i64 617, !21, i64 624, !21, i64 688, !21, i64 752, !21, i64 816, !19, i64 880, !13, i64 960, !13, 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", !13, i64 0, !13, i64 8, !13, i64 16, !19, i64 24, !21, i64 104, !21, i64 168, !15, i64 232, !13, 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", !10, i64 0, !10, i64 1, !13, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184}
!30 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !13, i64 0, !13, i64 8, !10, i64 16, !21, i64 24, !13, i64 88, !21, i64 96, !21, i64 160, !21, i64 224, !19, i64 288, !21, i64 368, !21, i64 432, !13, i64 496, !10, i64 504, !10, i64 505, !15, i64 512, !15, i64 520, !10, i64 528, !31, i64 536, !15, i64 832, !15, i64 840, !32, i64 848, !32, i64 1152, !15, i64 1456, !15, i64 1464, !33, i64 1472, !33, i64 1784, !10, 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", !10, i64 0, !10, i64 1, !13, i64 8, !15, i64 16, !10, i64 24, !10, i64 25, !10, i64 26, !13, i64 32, !15, i64 40, !10, i64 48, !13, i64 56, !13, i64 64, !21, i64 72, !19, i64 136, !19, i64 216}
!32 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !10, i64 0, !13, i64 8, !21, i64 16, !21, i64 80, !13, i64 144, !21, i64 152, !21, i64 216, !13, i64 280, !13, i64 288, !13, i64 296}
!33 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !10, i64 0, !13, i64 8, !13, i64 16, !21, i64 24, !21, i64 88, !13, i64 152, !21, i64 160, !21, i64 224, !13, i64 288, !13, i64 296, !13, i64 304}
!34 = !{!"_ZTSN11alglib_impl14minbleicreportE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88}
!35 = !{!"_ZTSN11alglib_impl10qqpbuffersE", !13, i64 0, !13, i64 8, !19, i64 16, !22, i64 96, !10, i64 464, !15, i64 472, !15, i64 480, !15, 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, !13, i64 5736, !13, 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, !13, i64 7272, !13, i64 7280, !13, i64 7288, !13, 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, !14, 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, !13, i64 11368, !13, i64 11376, !13, i64 11384, !13, i64 11392, !13, i64 11400, !13, i64 11408, !13, i64 11416, !13, i64 11424}
!38 = !{!13, !13, i64 0}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!12, !10, i64 2216}
!42 = !{!12, !13, i64 152}
!43 = !{!12, !15, i64 2224}
!44 = !{!12, !15, i64 2232}
!45 = !{!12, !15, i64 2240}
!46 = !{!15, !15, i64 0}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}


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

@.str.295 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.296 = external hidden unnamed_addr constant [40 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 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 #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca double, align 8
  %10 = zext i1 %2 to i8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %11 = load i64, ptr %0, align 8, !tbaa !5
  %12 = tail call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %1, ptr noundef %3)
  %13 = icmp eq i64 %12, %11
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.295, ptr noundef %3)
  %14 = tail call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %1, ptr noundef %3)
  %15 = icmp eq i64 %14, %11
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.296, ptr noundef %3)
  %16 = getelementptr inbounds i8, ptr %0, i64 1848
  tail call void @_ZN11alglib_impl18sparsecopytocrsbufEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %16, ptr noundef %3)
  %17 = getelementptr inbounds i8, ptr %0, i64 2216
  store i8 %10, ptr %17, align 8, !tbaa !36
  %18 = getelementptr inbounds i8, ptr %0, i64 152
  store i64 1, ptr %18, align 8, !tbaa !37
  %19 = getelementptr inbounds i8, ptr %0, i64 2224
  %20 = getelementptr inbounds i8, ptr %0, i64 2232
  %21 = getelementptr inbounds i8, ptr %0, i64 2240
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %19, i8 0, i64 24, i1 false)
  store i64 0, ptr %5, align 8, !tbaa !38
  store i64 0, ptr %6, align 8, !tbaa !38
  %22 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPNS_12sparsematrixEPlS2_S2_S2_PdPNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %3)
  br i1 %22, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4, %51
  %23 = load i64, ptr %7, align 8, !tbaa !38
  %24 = load i64, ptr %8, align 8, !tbaa !38
  %25 = icmp eq i64 %23, %24
  br i1 %25, label %26, label %35

26:                                               ; preds = %.lr.ph
  %27 = load double, ptr %19, align 8, !tbaa !39
  %28 = load double, ptr %9, align 8, !tbaa !40
  %29 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %27, double noundef %28, ptr noundef %3)
  store double %29, ptr %19, align 8, !tbaa !39
  %30 = load double, ptr %20, align 8, !tbaa !41
  %31 = load double, ptr %9, align 8, !tbaa !40
  %32 = fadd double %30, %31
  store double %32, ptr %20, align 8, !tbaa !41
  %33 = load double, ptr %21, align 8, !tbaa !42
  %34 = call double @llvm.fmuladd.f64(double %31, double %31, double %33)
  store double %34, ptr %21, align 8, !tbaa !42
  %.pre = load i64, ptr %8, align 8, !tbaa !38
  %.pre38 = load i64, ptr %7, align 8, !tbaa !38
  br label %35

35:                                               ; preds = %26, %.lr.ph
  %36 = phi i64 [ %.pre38, %26 ], [ %23, %.lr.ph ]
  %37 = phi i64 [ %.pre, %26 ], [ %24, %.lr.ph ]
  %38 = icmp sle i64 %37, %36
  %39 = icmp sge i64 %37, %36
  %or.cond = select i1 %2, i1 %38, i1 %39
  br i1 %or.cond, label %51, label %40

40:                                               ; preds = %35
  %41 = load double, ptr %19, align 8, !tbaa !39
  %42 = load double, ptr %9, align 8, !tbaa !40
  %43 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %41, double noundef %42, ptr noundef %3)
  store double %43, ptr %19, align 8, !tbaa !39
  %44 = load double, ptr %9, align 8, !tbaa !40
  %45 = fmul double %44, 2.000000e+00
  %46 = load <2 x double>, ptr %20, align 8, !tbaa !40
  %47 = insertelement <2 x double> <double 2.000000e+00, double poison>, double %45, i64 1
  %48 = insertelement <2 x double> poison, double %44, i64 0
  %49 = shufflevector <2 x double> %48, <2 x double> poison, <2 x i32> zeroinitializer
  %50 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %47, <2 x double> %49, <2 x double> %46)
  store <2 x double> %50, ptr %20, align 8, !tbaa !40
  br label %51

51:                                               ; preds = %35, %40
  %52 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPNS_12sparsematrixEPlS2_S2_S2_PdPNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %3)
  br i1 %52, label %.lr.ph, label %._crit_edge, !llvm.loop !43

._crit_edge:                                      ; preds = %51, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  ret void
}

; Function Attrs: mustprogress 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) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !12, i64 2216}
!37 = !{!6, !7, i64 152}
!38 = !{!7, !7, i64 0}
!39 = !{!6, !11, i64 2224}
!40 = !{!11, !11, i64 0}
!41 = !{!6, !11, i64 2232}
!42 = !{!6, !11, i64 2240}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass