; LLVM IR from ERGO-Code/HiGHS :: src/mip/HighsNodeQueue.ll (ZN14HighsNodeQueue5clearEv)

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

%class.HighsNodeQueue = type <{ %"class.std::unique_ptr", %"class.std::vector", %"class.std::priority_queue", %"class.std::unique_ptr.14", %"class.std::unique_ptr.14", i64, i64, i64, i64, i64, i64, i64, double, i32, [4 x i8] }>
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.5" }
%"struct.std::_Head_base.5" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<HighsNodeQueue::OpenNode, std::allocator<HighsNodeQueue::OpenNode>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsNodeQueue::OpenNode, std::allocator<HighsNodeQueue::OpenNode>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsNodeQueue::OpenNode, std::allocator<HighsNodeQueue::OpenNode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsNodeQueue::OpenNode, std::allocator<HighsNodeQueue::OpenNode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector.9", [8 x i8] }>
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr.14" = type { %"struct.std::__uniq_ptr_data.15" }
%"struct.std::__uniq_ptr_data.15" = type { %"class.std::__uniq_ptr_impl.16" }
%"class.std::__uniq_ptr_impl.16" = type { %"class.std::tuple.17" }
%"class.std::tuple.17" = type { %"struct.std::_Tuple_impl.18" }
%"struct.std::_Tuple_impl.18" = type { %"struct.std::_Head_base.21" }
%"struct.std::_Head_base.21" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14HighsNodeQueue9setNumColEi(ptr noundef nonnull align 8 dereferenceable(148), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrISt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEEaSEOSA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14HighsNodeQueue5clearEv(ptr noundef nonnull align 8 dereferenceable(148) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca %class.HighsNodeQueue, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #5
  store i8 0, ptr %3, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 152, ptr %4) #5
  call void @_ZN14HighsNodeQueueC2Ev(ptr noundef nonnull align 8 dereferenceable(148) %4)
  %8 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 13
  %9 = load i32, ptr %8, align 8, !tbaa !11
  invoke void @_ZN14HighsNodeQueue9setNumColEi(ptr noundef nonnull align 8 dereferenceable(148) %4, i32 noundef %9)
          to label %10 unwind label %53

10:                                               ; preds = %1
  %11 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 1
  %12 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 1
  %13 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %14 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 3
  %15 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 3
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrISt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEEaSEOSA_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %17 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 4
  %18 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 4
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrISt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEEaSEOSA_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %20 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 2
  %21 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 2
  %22 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(25) %21, ptr noundef nonnull align 8 dereferenceable(25) %20) #5
  %23 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 0
  %24 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 0
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  %26 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 5
  %27 = load i64, ptr %26, align 8, !tbaa !38
  %28 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 5
  store i64 %27, ptr %28, align 8, !tbaa !38
  %29 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 6
  %30 = load i64, ptr %29, align 8, !tbaa !39
  %31 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 6
  store i64 %30, ptr %31, align 8, !tbaa !39
  %32 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 7
  %33 = load i64, ptr %32, align 8, !tbaa !40
  %34 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 7
  store i64 %33, ptr %34, align 8, !tbaa !40
  %35 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 8
  %36 = load i64, ptr %35, align 8, !tbaa !41
  %37 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 8
  store i64 %36, ptr %37, align 8, !tbaa !41
  %38 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 9
  %39 = load i64, ptr %38, align 8, !tbaa !42
  %40 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 9
  store i64 %39, ptr %40, align 8, !tbaa !42
  %41 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 10
  %42 = load i64, ptr %41, align 8, !tbaa !43
  %43 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 10
  store i64 %42, ptr %43, align 8, !tbaa !43
  %44 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 11
  %45 = load i64, ptr %44, align 8, !tbaa !44
  %46 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 11
  store i64 %45, ptr %46, align 8, !tbaa !44
  %47 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 12
  %48 = load double, ptr %47, align 8, !tbaa !45
  %49 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 12
  store double %48, ptr %49, align 8, !tbaa !45
  %50 = getelementptr inbounds %class.HighsNodeQueue, ptr %4, i32 0, i32 13
  %51 = load i32, ptr %50, align 8, !tbaa !11
  %52 = getelementptr inbounds %class.HighsNodeQueue, ptr %7, i32 0, i32 13
  store i32 %51, ptr %52, align 8, !tbaa !11
  call void @_ZN14HighsNodeQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(148) %4) #5
  call void @llvm.lifetime.end.p0(i64 152, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #5
  ret void

53:                                               ; preds = %1
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %5, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %6, align 4
  call void @_ZN14HighsNodeQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(148) %4) #5
  call void @llvm.lifetime.end.p0(i64 152, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #5
  br label %57

57:                                               ; preds = %53
  %58 = load ptr, ptr %5, align 8
  %59 = load i32, ptr %6, align 4
  %60 = insertvalue { ptr, i32 } poison, ptr %58, 0
  %61 = insertvalue { ptr, i32 } %60, i32 %59, 1
  resume { ptr, i32 } %61
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN14HighsNodeQueueC2Ev(ptr noundef nonnull align 8 dereferenceable(148)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(25)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14HighsNodeQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(148)) unnamed_addr #4 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !37, i64 144}
!12 = !{!"_ZTS14HighsNodeQueue", !13, i64 0, !19, i64 8, !23, i64 32, !29, i64 64, !29, i64 72, !35, i64 80, !35, i64 88, !35, i64 96, !35, i64 104, !35, i64 112, !35, i64 120, !35, i64 128, !36, i64 136, !37, i64 144}
!13 = !{!"_ZTSSt10unique_ptrIN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt15__uniq_ptr_dataIN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_ELb1ELb1EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_implIN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt5tupleIJPN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_EEE", !17, i64 0}
!17 = !{!"_ZTSSt11_Tuple_implILm0EJPN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_Head_baseILm0EPN14HighsNodeQueue14AllocatorStateELb0EE", !6, i64 0}
!19 = !{!"_ZTSSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN14HighsNodeQueue8OpenNodeESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN14HighsNodeQueue8OpenNodeESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN14HighsNodeQueue8OpenNodeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEE", !24, i64 0, !28, i64 24}
!24 = !{!"_ZTSSt6vectorIlSaIlEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSSt7greaterIlE"}
!29 = !{!"_ZTSSt10unique_ptrISt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataISt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implISt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPSt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPSt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPSt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEELb0EE", !6, i64 0}
!35 = !{!"long", !7, i64 0}
!36 = !{!"double", !7, i64 0}
!37 = !{!"int", !7, i64 0}
!38 = !{!12, !35, i64 80}
!39 = !{!12, !35, i64 88}
!40 = !{!12, !35, i64 96}
!41 = !{!12, !35, i64 104}
!42 = !{!12, !35, i64 112}
!43 = !{!12, !35, i64 120}
!44 = !{!12, !35, i64 128}
!45 = !{!12, !36, i64 136}


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

%class.HighsNodeQueue = type <{ %"class.std::unique_ptr", %"class.std::vector", %"class.std::priority_queue", %"class.std::unique_ptr.14", %"class.std::unique_ptr.14", i64, i64, i64, i64, i64, i64, i64, double, i32, [4 x i8] }>
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.5" }
%"struct.std::_Head_base.5" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<HighsNodeQueue::OpenNode, std::allocator<HighsNodeQueue::OpenNode>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsNodeQueue::OpenNode, std::allocator<HighsNodeQueue::OpenNode>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsNodeQueue::OpenNode, std::allocator<HighsNodeQueue::OpenNode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsNodeQueue::OpenNode, std::allocator<HighsNodeQueue::OpenNode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector.9", [8 x i8] }>
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unique_ptr.14" = type { %"struct.std::__uniq_ptr_data.15" }
%"struct.std::__uniq_ptr_data.15" = type { %"class.std::__uniq_ptr_impl.16" }
%"class.std::__uniq_ptr_impl.16" = type { %"class.std::tuple.17" }
%"class.std::tuple.17" = type { %"struct.std::_Tuple_impl.18" }
%"struct.std::_Tuple_impl.18" = type { %"struct.std::_Head_base.21" }
%"struct.std::_Head_base.21" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14HighsNodeQueue9setNumColEi(ptr noundef nonnull align 8 dereferenceable(148), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrISt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEEaSEOSA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14HighsNodeQueue5clearEv(ptr noundef nonnull align 8 dereferenceable(148) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.HighsNodeQueue, align 8
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %2) #5
  call void @_ZN14HighsNodeQueueC2Ev(ptr noundef nonnull align 8 dereferenceable(148) %2)
  %3 = getelementptr inbounds i8, ptr %0, i64 144
  %4 = load i32, ptr %3, align 8, !tbaa !5
  invoke void @_ZN14HighsNodeQueue9setNumColEi(ptr noundef nonnull align 8 dereferenceable(148) %2, i32 noundef %4)
          to label %5 unwind label %36

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %2, i64 8
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %9 = getelementptr inbounds i8, ptr %2, i64 64
  %10 = getelementptr inbounds i8, ptr %0, i64 64
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrISt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEEaSEOSA_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %12 = getelementptr inbounds i8, ptr %2, i64 72
  %13 = getelementptr inbounds i8, ptr %0, i64 72
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrISt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEEaSEOSA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %15 = getelementptr inbounds i8, ptr %2, i64 32
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  %17 = call noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(25) %16, ptr noundef nonnull align 8 dereferenceable(25) %15) #5
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %19 = getelementptr inbounds i8, ptr %2, i64 80
  %20 = getelementptr inbounds i8, ptr %0, i64 80
  %21 = load <2 x i64>, ptr %19, align 8, !tbaa !35
  store <2 x i64> %21, ptr %20, align 8, !tbaa !35
  %22 = getelementptr inbounds i8, ptr %2, i64 96
  %23 = getelementptr inbounds i8, ptr %0, i64 96
  %24 = load <2 x i64>, ptr %22, align 8, !tbaa !35
  store <2 x i64> %24, ptr %23, align 8, !tbaa !35
  %25 = getelementptr inbounds i8, ptr %2, i64 112
  %26 = getelementptr inbounds i8, ptr %0, i64 112
  %27 = load <2 x i64>, ptr %25, align 8, !tbaa !35
  store <2 x i64> %27, ptr %26, align 8, !tbaa !35
  %28 = getelementptr inbounds i8, ptr %2, i64 128
  %29 = load i64, ptr %28, align 8, !tbaa !36
  %30 = getelementptr inbounds i8, ptr %0, i64 128
  store i64 %29, ptr %30, align 8, !tbaa !36
  %31 = getelementptr inbounds i8, ptr %2, i64 136
  %32 = load double, ptr %31, align 8, !tbaa !37
  %33 = getelementptr inbounds i8, ptr %0, i64 136
  store double %32, ptr %33, align 8, !tbaa !37
  %34 = getelementptr inbounds i8, ptr %2, i64 144
  %35 = load i32, ptr %34, align 8, !tbaa !5
  store i32 %35, ptr %3, align 8, !tbaa !5
  call void @_ZN14HighsNodeQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(148) %2) #5
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %2) #5
  ret void

36:                                               ; preds = %1
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14HighsNodeQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(148) %2) #5
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %2) #5
  resume { ptr, i32 } %37
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN14HighsNodeQueueC2Ev(ptr noundef nonnull align 8 dereferenceable(148)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(25) ptr @_ZNSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14HighsNodeQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(148)) unnamed_addr #4 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !34, i64 144}
!6 = !{!"_ZTS14HighsNodeQueue", !7, i64 0, !16, i64 8, !20, i64 32, !26, i64 64, !26, i64 72, !32, i64 80, !32, i64 88, !32, i64 96, !32, i64 104, !32, i64 112, !32, i64 120, !32, i64 128, !33, i64 136, !34, i64 144}
!7 = !{!"_ZTSSt10unique_ptrIN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_EE", !8, i64 0}
!8 = !{!"_ZTSSt15__uniq_ptr_dataIN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_ELb1ELb1EE", !9, i64 0}
!9 = !{!"_ZTSSt15__uniq_ptr_implIN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_EE", !10, i64 0}
!10 = !{!"_ZTSSt5tupleIJPN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_EEE", !11, i64 0}
!11 = !{!"_ZTSSt11_Tuple_implILm0EJPN14HighsNodeQueue14AllocatorStateESt14default_deleteIS1_EEE", !12, i64 0}
!12 = !{!"_ZTSSt10_Head_baseILm0EPN14HighsNodeQueue14AllocatorStateELb0EE", !13, i64 0}
!13 = !{!"any pointer", !14, i64 0}
!14 = !{!"omnipotent char", !15, i64 0}
!15 = !{!"Simple C++ TBAA"}
!16 = !{!"_ZTSSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN14HighsNodeQueue8OpenNodeESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN14HighsNodeQueue8OpenNodeESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN14HighsNodeQueue8OpenNodeESaIS1_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!20 = !{!"_ZTSSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEE", !21, i64 0, !25, i64 24}
!21 = !{!"_ZTSSt6vectorIlSaIlEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!25 = !{!"_ZTSSt7greaterIlE"}
!26 = !{!"_ZTSSt10unique_ptrISt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEE", !27, i64 0}
!27 = !{!"_ZTSSt15__uniq_ptr_dataISt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteELb1ELb1EE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_implISt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEE", !29, i64 0}
!29 = !{!"_ZTSSt5tupleIJPSt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEEE", !30, i64 0}
!30 = !{!"_ZTSSt11_Tuple_implILm0EJPSt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEENS5_20GlobalOperatorDeleteEEE", !31, i64 0}
!31 = !{!"_ZTSSt10_Head_baseILm0EPSt3setISt4pairIdlESt4lessIS2_EN14HighsNodeQueue16NodesetAllocatorIS2_EEELb0EE", !13, i64 0}
!32 = !{!"long", !14, i64 0}
!33 = !{!"double", !14, i64 0}
!34 = !{!"int", !14, i64 0}
!35 = !{!32, !32, i64 0}
!36 = !{!6, !32, i64 128}
!37 = !{!6, !33, i64 136}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass