; 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::minlpstate" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"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", double, double, double, i64, i64, %"struct.alglib_impl::dualsimplexstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"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::dualsimplexstate" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::dualsimplexbasis", %"struct.alglib_impl::dualsimplexsubproblem", %"struct.alglib_impl::dualsimplexsubproblem", %"struct.alglib_impl::dualsimplexsubproblem", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, i64, i64, i64, i64, i64, %"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", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::dualsimplexbasis" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"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", i8, 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_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sluv2buffer", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix" }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::sluv2buffer" = type { i64, %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sluv2list1matrix", %"struct.alglib_impl::sluv2list1matrix", %"struct.alglib_impl::sluv2sparsetrail", %"struct.alglib_impl::sluv2densetrail", %"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::sluv2list1matrix" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64 }
%"struct.alglib_impl::sluv2sparsetrail" = type { i64, i64, %"struct.alglib_impl::ae_vector", i64, 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::ae_vector", i64, %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sluv2densetrail" = type { i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::dualsimplexsubproblem" = type { 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", 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::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.403 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.404 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.405 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.406 = external hidden unnamed_addr constant [36 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_impl16minlpaddlc2denseEPNS_10minlpstateEPNS_9ae_vectorEddPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, double noundef %2, double noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %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
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store double %2, ptr %8, align 8, !tbaa !9
  store double %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %14, i32 0, i32 0
  %16 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %16, ptr %12, align 8, !tbaa !26
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 0
  %19 = load i64, ptr %18, align 8, !tbaa !27
  %20 = load i64, ptr %12, align 8, !tbaa !26
  %21 = icmp sge i64 %19, %20
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef @.str.403, ptr noundef %22)
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load i64, ptr %12, align 8, !tbaa !26
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %23, i64 noundef %24, ptr noundef %25)
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef @.str.404, ptr noundef %27)
  %28 = load double, ptr %8, align 8, !tbaa !9
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %28, ptr noundef %29)
  br i1 %30, label %35, label %31

31:                                               ; preds = %5
  %32 = load double, ptr %8, align 8, !tbaa !9
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %32, ptr noundef %33)
  br label %35

35:                                               ; preds = %31, %5
  %36 = phi i1 [ true, %5 ], [ %34, %31 ]
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef @.str.405, ptr noundef %37)
  %38 = load double, ptr %9, align 8, !tbaa !9
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %38, ptr noundef %39)
  br i1 %40, label %45, label %41

41:                                               ; preds = %35
  %42 = load double, ptr %9, align 8, !tbaa !9
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %42, ptr noundef %43)
  br label %45

45:                                               ; preds = %41, %35
  %46 = phi i1 [ true, %35 ], [ %44, %41 ]
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %46, ptr noundef @.str.406, ptr noundef %47)
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %48, i32 0, i32 19
  %50 = load i64, ptr %12, align 8, !tbaa !26
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %49, i64 noundef %50, ptr noundef %51)
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %52, i32 0, i32 20
  %54 = load i64, ptr %12, align 8, !tbaa !26
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %53, i64 noundef %54, ptr noundef %55)
  store i64 0, ptr %13, align 8, !tbaa !26
  store i64 0, ptr %11, align 8, !tbaa !26
  br label %56

56:                                               ; preds = %92, %45
  %57 = load i64, ptr %11, align 8, !tbaa !26
  %58 = load i64, ptr %12, align 8, !tbaa !26
  %59 = sub nsw i64 %58, 1
  %60 = icmp sle i64 %57, %59
  br i1 %60, label %61, label %95

61:                                               ; preds = %56
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %62, i32 0, i32 4
  %64 = load ptr, ptr %63, align 8, !tbaa !28
  %65 = load i64, ptr %11, align 8, !tbaa !26
  %66 = getelementptr inbounds double, ptr %64, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !9
  %68 = fcmp une double %67, 0.000000e+00
  br i1 %68, label %69, label %91

69:                                               ; preds = %61
  %70 = load i64, ptr %11, align 8, !tbaa !26
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %71, i32 0, i32 19
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %72, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !28
  %75 = load i64, ptr %13, align 8, !tbaa !26
  %76 = getelementptr inbounds i64, ptr %74, i64 %75
  store i64 %70, ptr %76, align 8, !tbaa !26
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %77, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !28
  %80 = load i64, ptr %11, align 8, !tbaa !26
  %81 = getelementptr inbounds double, ptr %79, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !9
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %83, i32 0, i32 20
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !28
  %87 = load i64, ptr %13, align 8, !tbaa !26
  %88 = getelementptr inbounds double, ptr %86, i64 %87
  store double %82, ptr %88, align 8, !tbaa !9
  %89 = load i64, ptr %13, align 8, !tbaa !26
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %13, align 8, !tbaa !26
  br label %91

91:                                               ; preds = %69, %61
  br label %92

92:                                               ; preds = %91
  %93 = load i64, ptr %11, align 8, !tbaa !26
  %94 = add nsw i64 %93, 1
  store i64 %94, ptr %11, align 8, !tbaa !26
  br label %56, !llvm.loop !29

95:                                               ; preds = %56
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %97, i32 0, i32 19
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %99, i32 0, i32 20
  %101 = load i64, ptr %13, align 8, !tbaa !26
  %102 = load double, ptr %8, align 8, !tbaa !9
  %103 = load double, ptr %9, align 8, !tbaa !9
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minlpaddlc2EPNS_10minlpstateEPNS_9ae_vectorES3_lddPNS_8ae_stateE(ptr noundef %96, ptr noundef %98, ptr noundef %100, i64 noundef %101, double noundef %102, double noundef %103, ptr noundef %104)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  ret void
}

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

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN11alglib_impl10minlpstateE", !13, i64 0, !13, i64 8, !14, i64 16, !14, i64 80, !14, i64 144, !14, i64 208, !13, i64 272, !17, i64 280, !14, i64 648, !14, i64 712, !14, i64 776, !14, i64 840, !14, i64 904, !10, i64 968, !10, i64 976, !10, i64 984, !13, i64 992, !13, i64 1000, !18, i64 1008, !14, i64 11952, !14, i64 12016}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !15, i64 16, !16, i64 24, !7, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTSN11alglib_impl12sparsematrixE", !14, i64 0, !14, i64 64, !14, i64 128, !14, i64 192, !14, i64 256, !13, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !13, i64 352, !13, i64 360}
!18 = !{!"_ZTSN11alglib_impl16dualsimplexstateE", !14, i64 0, !14, i64 64, !14, i64 128, !14, i64 192, !13, i64 256, !13, i64 264, !17, i64 272, !17, i64 640, !19, i64 1008, !25, i64 7280, !25, i64 8072, !25, i64 8864, !14, i64 9656, !14, i64 9720, !14, i64 9784, !14, i64 9848, !10, i64 9912, !10, i64 9920, !10, i64 9928, !13, i64 9936, !13, i64 9944, !13, i64 9952, !13, i64 9960, !13, i64 9968, !14, i64 9976, !13, i64 10040, !14, i64 10048, !14, i64 10112, !14, i64 10176, !14, i64 10240, !14, i64 10304, !14, i64 10368, !14, i64 10432, !14, i64 10496, !14, i64 10560, !14, i64 10624, !14, i64 10688, !14, i64 10752, !14, i64 10816, !14, i64 10880}
!19 = !{!"_ZTSN11alglib_impl16dualsimplexbasisE", !13, i64 0, !13, i64 8, !14, i64 16, !14, i64 80, !14, i64 144, !13, i64 208, !15, i64 216, !13, i64 224, !20, i64 232, !17, i64 312, !17, i64 680, !17, i64 1048, !14, i64 1416, !14, i64 1480, !14, i64 1544, !14, i64 1608, !14, i64 1672, !14, i64 1736, !14, i64 1800, !15, i64 1864, !10, i64 1872, !14, i64 1880, !14, i64 1944, !14, i64 2008, !14, i64 2072, !14, i64 2136, !20, i64 2200, !14, i64 2280, !14, i64 2344, !17, i64 2408, !17, i64 2776, !21, i64 3144, !14, i64 5712, !14, i64 5776, !14, i64 5840, !17, i64 5904}
!20 = !{!"_ZTSN11alglib_impl9ae_matrixE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !15, i64 32, !16, i64 40, !7, i64 72}
!21 = !{!"_ZTSN11alglib_impl11sluv2bufferE", !13, i64 0, !17, i64 8, !17, i64 376, !22, i64 744, !22, i64 968, !23, i64 1192, !24, i64 1816, !14, i64 1976, !20, i64 2040, !14, i64 2120, !14, i64 2184, !14, i64 2248, !14, i64 2312, !14, i64 2376, !14, i64 2440, !14, i64 2504}
!22 = !{!"_ZTSN11alglib_impl16sluv2list1matrixE", !13, i64 0, !13, i64 8, !14, i64 16, !14, i64 80, !14, i64 144, !13, i64 208, !13, i64 216}
!23 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !13, i64 0, !13, i64 8, !14, i64 16, !13, i64 80, !13, i64 88, !13, i64 96, !14, i64 104, !14, i64 168, !14, i64 232, !14, i64 296, !14, i64 360, !14, i64 424, !14, i64 488, !13, i64 552, !14, i64 560}
!24 = !{!"_ZTSN11alglib_impl15sluv2densetrailE", !13, i64 0, !13, i64 8, !20, i64 16, !14, i64 96}
!25 = !{!"_ZTSN11alglib_impl21dualsimplexsubproblemE", !13, i64 0, !13, i64 8, !14, i64 16, !14, i64 80, !14, i64 144, !14, i64 208, !14, i64 272, !14, i64 336, !13, i64 400, !14, i64 408, !14, i64 472, !14, i64 536, !14, i64 600, !14, i64 664, !14, i64 728}
!26 = !{!13, !13, i64 0}
!27 = !{!14, !13, i64 0}
!28 = !{!7, !7, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"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.403 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.404 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.405 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.406 = external hidden unnamed_addr constant [36 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16minlpaddlc2denseEPNS_10minlpstateEPNS_9ae_vectorEddPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, double noundef %2, double noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = load i64, ptr %0, align 8, !tbaa !5
  %7 = load i64, ptr %1, align 8, !tbaa !24
  %8 = icmp sge i64 %7, %6
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.403, ptr noundef %4)
  %9 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %6, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.404, ptr noundef %4)
  %10 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %2, ptr noundef %4)
  br i1 %10, label %13, label %11

11:                                               ; preds = %5
  %12 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %2, ptr noundef %4)
  br label %13

13:                                               ; preds = %11, %5
  %14 = phi i1 [ true, %5 ], [ %12, %11 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.405, ptr noundef %4)
  %15 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %3, ptr noundef %4)
  br i1 %15, label %18, label %16

16:                                               ; preds = %13
  %17 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %3, ptr noundef %4)
  br label %18

18:                                               ; preds = %16, %13
  %19 = phi i1 [ true, %13 ], [ %17, %16 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.406, ptr noundef %4)
  %20 = getelementptr inbounds i8, ptr %0, i64 11952
  tail call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %20, i64 noundef %6, ptr noundef %4)
  %21 = getelementptr inbounds i8, ptr %0, i64 12016
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %21, i64 noundef %6, ptr noundef %4)
  %.not.not44 = icmp sgt i64 %6, 0
  br i1 %.not.not44, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %18
  %22 = getelementptr inbounds i8, ptr %1, i64 56
  %23 = getelementptr inbounds i8, ptr %0, i64 12008
  %24 = getelementptr inbounds i8, ptr %0, i64 12072
  br label %25

25:                                               ; preds = %.lr.ph, %39
  %.046 = phi i64 [ 0, %.lr.ph ], [ %.1, %39 ]
  %.04345 = phi i64 [ 0, %.lr.ph ], [ %40, %39 ]
  %26 = load ptr, ptr %22, align 8, !tbaa !25
  %27 = getelementptr inbounds double, ptr %26, i64 %.04345
  %28 = load double, ptr %27, align 8, !tbaa !26
  %29 = fcmp une double %28, 0.000000e+00
  br i1 %29, label %30, label %39

30:                                               ; preds = %25
  %31 = load ptr, ptr %23, align 8, !tbaa !25
  %32 = getelementptr inbounds i64, ptr %31, i64 %.046
  store i64 %.04345, ptr %32, align 8, !tbaa !27
  %33 = load ptr, ptr %22, align 8, !tbaa !25
  %34 = getelementptr inbounds double, ptr %33, i64 %.04345
  %35 = load double, ptr %34, align 8, !tbaa !26
  %36 = load ptr, ptr %24, align 8, !tbaa !25
  %37 = getelementptr inbounds double, ptr %36, i64 %.046
  store double %35, ptr %37, align 8, !tbaa !26
  %38 = add nsw i64 %.046, 1
  br label %39

39:                                               ; preds = %25, %30
  %.1 = phi i64 [ %38, %30 ], [ %.046, %25 ]
  %40 = add nuw nsw i64 %.04345, 1
  %exitcond.not = icmp eq i64 %40, %6
  br i1 %exitcond.not, label %._crit_edge, label %25, !llvm.loop !28

._crit_edge:                                      ; preds = %39, %18
  %.0.lcssa = phi i64 [ 0, %18 ], [ %.1, %39 ]
  tail call void @_ZN11alglib_impl11minlpaddlc2EPNS_10minlpstateEPNS_9ae_vectorES3_lddPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %20, ptr noundef nonnull %21, i64 noundef %.0.lcssa, double noundef %2, double noundef %3, ptr noundef %4)
  ret void
}

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

!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_impl10minlpstateE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !10, i64 208, !7, i64 272, !14, i64 280, !10, i64 648, !10, i64 712, !10, i64 776, !10, i64 840, !10, i64 904, !15, i64 968, !15, i64 976, !15, i64 984, !7, i64 992, !7, i64 1000, !16, i64 1008, !10, i64 11952, !10, i64 12016}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 56}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_ZTSN11alglib_impl12sparsematrixE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !10, i64 256, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl16dualsimplexstateE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !7, i64 256, !7, i64 264, !14, i64 272, !14, i64 640, !17, i64 1008, !23, i64 7280, !23, i64 8072, !23, i64 8864, !10, i64 9656, !10, i64 9720, !10, i64 9784, !10, i64 9848, !15, i64 9912, !15, i64 9920, !15, i64 9928, !7, i64 9936, !7, i64 9944, !7, i64 9952, !7, i64 9960, !7, i64 9968, !10, i64 9976, !7, i64 10040, !10, i64 10048, !10, i64 10112, !10, i64 10176, !10, i64 10240, !10, i64 10304, !10, i64 10368, !10, i64 10432, !10, i64 10496, !10, i64 10560, !10, i64 10624, !10, i64 10688, !10, i64 10752, !10, i64 10816, !10, i64 10880}
!17 = !{!"_ZTSN11alglib_impl16dualsimplexbasisE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !7, i64 208, !11, i64 216, !7, i64 224, !18, i64 232, !14, i64 312, !14, i64 680, !14, i64 1048, !10, i64 1416, !10, i64 1480, !10, i64 1544, !10, i64 1608, !10, i64 1672, !10, i64 1736, !10, i64 1800, !11, i64 1864, !15, i64 1872, !10, i64 1880, !10, i64 1944, !10, i64 2008, !10, i64 2072, !10, i64 2136, !18, i64 2200, !10, i64 2280, !10, i64 2344, !14, i64 2408, !14, i64 2776, !19, i64 3144, !10, i64 5712, !10, i64 5776, !10, i64 5840, !14, i64 5904}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !12, i64 40, !8, i64 72}
!19 = !{!"_ZTSN11alglib_impl11sluv2bufferE", !7, i64 0, !14, i64 8, !14, i64 376, !20, i64 744, !20, i64 968, !21, i64 1192, !22, i64 1816, !10, i64 1976, !18, i64 2040, !10, i64 2120, !10, i64 2184, !10, i64 2248, !10, i64 2312, !10, i64 2376, !10, i64 2440, !10, i64 2504}
!20 = !{!"_ZTSN11alglib_impl16sluv2list1matrixE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !7, i64 208, !7, i64 216}
!21 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 80, !7, i64 88, !7, i64 96, !10, i64 104, !10, i64 168, !10, i64 232, !10, i64 296, !10, i64 360, !10, i64 424, !10, i64 488, !7, i64 552, !10, i64 560}
!22 = !{!"_ZTSN11alglib_impl15sluv2densetrailE", !7, i64 0, !7, i64 8, !18, i64 16, !10, i64 96}
!23 = !{!"_ZTSN11alglib_impl21dualsimplexsubproblemE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !10, i64 208, !10, i64 272, !10, i64 336, !7, i64 400, !10, i64 408, !10, i64 472, !10, i64 536, !10, i64 600, !10, i64 664, !10, i64 728}
!24 = !{!10, !7, i64 0}
!25 = !{!8, !8, i64 0}
!26 = !{!15, !15, i64 0}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


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