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

; 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.HighsNodeQueue::OpenNode" = type { %"class.std::vector.22", %"class.std::vector.27", %"class.std::vector.32", double, double, i32, %"struct.highs::RbTreeLinks", %"struct.highs::RbTreeLinks" }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<HighsDomainChange, std::allocator<HighsDomainChange>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsDomainChange, std::allocator<HighsDomainChange>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsDomainChange, std::allocator<HighsDomainChange>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsDomainChange, std::allocator<HighsDomainChange>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.27" = type { %"struct.std::_Vector_base.28" }
%"struct.std::_Vector_base.28" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<double, long>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<double, long>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<double, long>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<double, long>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<double, long>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<double, long>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<double, long>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<double, long>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.highs::RbTreeLinks" = type { [2 x i64], i64 }
%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 }

@.str.52 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN14HighsNodeQueue11emplaceNodeEOSt6vectorI17HighsDomainChangeSaIS1_EEOS0_IiSaIiEEddi = external hidden unnamed_addr constant [122 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [26 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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN14HighsNodeQueue4linkEl(ptr noundef nonnull align 8 dereferenceable(148), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN14HighsNodeQueue11emplaceNodeEOSt6vectorI17HighsDomainChangeSaIS1_EEOS0_IiSaIiEEddi(ptr noundef nonnull align 8 dereferenceable(148) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef %3, double noundef %4, i32 noundef %5) #3 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca %"struct.HighsNodeQueue::OpenNode", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store double %3, ptr %10, align 8, !tbaa !9
  store double %4, ptr %11, align 8, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !11
  %15 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %16 = load double, ptr %11, align 8, !tbaa !9
  %17 = fcmp une double %16, 0x7FF0000000000000
  br i1 %17, label %18, label %19

18:                                               ; preds = %6
  br label %21

19:                                               ; preds = %6
  call void @__assert_fail(ptr noundef @.str.56, ptr noundef @.str.52, i32 noundef 367, ptr noundef @__PRETTY_FUNCTION__._ZN14HighsNodeQueue11emplaceNodeEOSt6vectorI17HighsDomainChangeSaIS1_EEOS0_IiSaIiEEddi) #6
  unreachable

20:                                               ; No predecessors!
  br label %21

21:                                               ; preds = %20, %18
  %22 = getelementptr inbounds %class.HighsNodeQueue, ptr %15, i32 0, i32 2
  %23 = call noundef zeroext i1 @_ZNKSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %22)
  br i1 %23, label %24, label %31

24:                                               ; preds = %21
  %25 = getelementptr inbounds %class.HighsNodeQueue, ptr %15, i32 0, i32 1
  %26 = call noundef i64 @_ZNKSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  store i64 %26, ptr %13, align 8, !tbaa !13
  %27 = getelementptr inbounds %class.HighsNodeQueue, ptr %15, i32 0, i32 1
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EE12emplace_backIJS_I17HighsDomainChangeSaIS5_EES_IiSaIiEERdSA_RiEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  br label %45

31:                                               ; preds = %21
  %32 = getelementptr inbounds %class.HighsNodeQueue, ptr %15, i32 0, i32 2
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %32)
  %34 = load i64, ptr %33, align 8, !tbaa !13
  store i64 %34, ptr %13, align 8, !tbaa !13
  %35 = getelementptr inbounds %class.HighsNodeQueue, ptr %15, i32 0, i32 2
  call void @_ZNSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %35)
  call void @llvm.lifetime.start.p0(i64 144, ptr %14) #5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = load double, ptr %10, align 8, !tbaa !9
  %39 = load double, ptr %11, align 8, !tbaa !9
  %40 = load i32, ptr %12, align 4, !tbaa !11
  call void @_ZN14HighsNodeQueue8OpenNodeC2EOSt6vectorI17HighsDomainChangeSaIS2_EEOS1_IiSaIiEEddi(ptr noundef nonnull align 8 dereferenceable(144) %14, ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %37, double noundef %38, double noundef %39, i32 noundef %40)
  %41 = getelementptr inbounds %class.HighsNodeQueue, ptr %15, i32 0, i32 1
  %42 = load i64, ptr %13, align 8, !tbaa !13
  %43 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %42) #5
  %44 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZN14HighsNodeQueue8OpenNodeaSEOS0_(ptr noundef nonnull align 8 dereferenceable(144) %43, ptr noundef nonnull align 8 dereferenceable(144) %14) #5
  call void @_ZN14HighsNodeQueue8OpenNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %14) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %14) #5
  br label %45

45:                                               ; preds = %31, %24
  %46 = getelementptr inbounds %class.HighsNodeQueue, ptr %15, i32 0, i32 1
  %47 = load i64, ptr %13, align 8, !tbaa !13
  %48 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %47) #5
  %49 = getelementptr inbounds %"struct.HighsNodeQueue::OpenNode", ptr %48, i32 0, i32 3
  %50 = load double, ptr %49, align 8, !tbaa !15
  %51 = load double, ptr %10, align 8, !tbaa !9
  %52 = fcmp oeq double %50, %51
  br i1 %52, label %53, label %54

53:                                               ; preds = %45
  br label %56

54:                                               ; preds = %45
  call void @__assert_fail(ptr noundef @.str.57, ptr noundef @.str.52, i32 noundef 380, ptr noundef @__PRETTY_FUNCTION__._ZN14HighsNodeQueue11emplaceNodeEOSt6vectorI17HighsDomainChangeSaIS1_EEOS0_IiSaIiEEddi) #6
  unreachable

55:                                               ; No predecessors!
  br label %56

56:                                               ; preds = %55, %53
  %57 = getelementptr inbounds %class.HighsNodeQueue, ptr %15, i32 0, i32 1
  %58 = load i64, ptr %13, align 8, !tbaa !13
  %59 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %58) #5
  %60 = getelementptr inbounds %"struct.HighsNodeQueue::OpenNode", ptr %59, i32 0, i32 4
  %61 = load double, ptr %60, align 8, !tbaa !30
  %62 = load double, ptr %11, align 8, !tbaa !9
  %63 = fcmp oeq double %61, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %56
  br label %67

65:                                               ; preds = %56
  call void @__assert_fail(ptr noundef @.str.58, ptr noundef @.str.52, i32 noundef 381, ptr noundef @__PRETTY_FUNCTION__._ZN14HighsNodeQueue11emplaceNodeEOSt6vectorI17HighsDomainChangeSaIS1_EEOS0_IiSaIiEEddi) #6
  unreachable

66:                                               ; No predecessors!
  br label %67

67:                                               ; preds = %66, %64
  %68 = getelementptr inbounds %class.HighsNodeQueue, ptr %15, i32 0, i32 1
  %69 = load i64, ptr %13, align 8, !tbaa !13
  %70 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %69) #5
  %71 = getelementptr inbounds %"struct.HighsNodeQueue::OpenNode", ptr %70, i32 0, i32 5
  %72 = load i32, ptr %71, align 8, !tbaa !31
  %73 = load i32, ptr %12, align 4, !tbaa !11
  %74 = icmp eq i32 %72, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %67
  br label %78

76:                                               ; preds = %67
  call void @__assert_fail(ptr noundef @.str.59, ptr noundef @.str.52, i32 noundef 382, ptr noundef @__PRETTY_FUNCTION__._ZN14HighsNodeQueue11emplaceNodeEOSt6vectorI17HighsDomainChangeSaIS1_EEOS0_IiSaIiEEddi) #6
  unreachable

77:                                               ; No predecessors!
  br label %78

78:                                               ; preds = %77, %75
  %79 = load i64, ptr %13, align 8, !tbaa !13
  %80 = call noundef double @_ZN14HighsNodeQueue4linkEl(ptr noundef nonnull align 8 dereferenceable(148) %15, i64 noundef %79)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  ret double %80
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(144) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EE12emplace_backIJS_I17HighsDomainChangeSaIS5_EES_IiSaIiEERdSA_RiEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14HighsNodeQueue8OpenNodeC2EOSt6vectorI17HighsDomainChangeSaIS2_EEOS1_IiSaIiEEddi(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, i32 noundef) unnamed_addr #3 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "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 = { 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 }
attributes #6 = { noreturn 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !10, i64 72}
!16 = !{!"_ZTSN14HighsNodeQueue8OpenNodeE", !17, i64 0, !21, i64 24, !25, i64 48, !10, i64 72, !10, i64 80, !12, i64 88, !29, i64 96, !29, i64 120}
!17 = !{!"_ZTSSt6vectorI17HighsDomainChangeSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI17HighsDomainChangeSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI17HighsDomainChangeSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI17HighsDomainChangeSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt6vectorISt23_Rb_tree_const_iteratorISt4pairIdlEESaIS3_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseISt23_Rb_tree_const_iteratorISt4pairIdlEESaIS3_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt23_Rb_tree_const_iteratorISt4pairIdlEESaIS3_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt23_Rb_tree_const_iteratorISt4pairIdlEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSN5highs11RbTreeLinksIlEE", !7, i64 0, !14, i64 16}
!30 = !{!16, !10, i64 80}
!31 = !{!16, !12, i64 88}


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

%"struct.HighsNodeQueue::OpenNode" = type { %"class.std::vector.22", %"class.std::vector.27", %"class.std::vector.32", double, double, i32, %"struct.highs::RbTreeLinks", %"struct.highs::RbTreeLinks" }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<HighsDomainChange, std::allocator<HighsDomainChange>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsDomainChange, std::allocator<HighsDomainChange>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsDomainChange, std::allocator<HighsDomainChange>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsDomainChange, std::allocator<HighsDomainChange>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.27" = type { %"struct.std::_Vector_base.28" }
%"struct.std::_Vector_base.28" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<double, long>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<double, long>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<double, long>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<double, long>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<double, long>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<double, long>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::_Rb_tree_const_iterator<std::pair<double, long>>, std::allocator<std::_Rb_tree_const_iterator<std::pair<double, long>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.highs::RbTreeLinks" = type { [2 x i64], i64 }

@.str.52 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN14HighsNodeQueue11emplaceNodeEOSt6vectorI17HighsDomainChangeSaIS1_EEOS0_IiSaIiEEddi = external hidden unnamed_addr constant [122 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [26 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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN14HighsNodeQueue4linkEl(ptr noundef nonnull align 8 dereferenceable(148), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN14HighsNodeQueue11emplaceNodeEOSt6vectorI17HighsDomainChangeSaIS1_EEOS0_IiSaIiEEddi(ptr noundef nonnull align 8 dereferenceable(148) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef %3, double noundef %4, i32 noundef %5) local_unnamed_addr #3 align 2 {
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.HighsNodeQueue::OpenNode", align 8
  store double %3, ptr %7, align 8, !tbaa !5
  store double %4, ptr %8, align 8, !tbaa !5
  store i32 %5, ptr %9, align 4, !tbaa !9
  %11 = fcmp une double %4, 0x7FF0000000000000
  br i1 %11, label %13, label %12

12:                                               ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.56, ptr noundef nonnull @.str.52, i32 noundef 367, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14HighsNodeQueue11emplaceNodeEOSt6vectorI17HighsDomainChangeSaIS1_EEOS0_IiSaIiEEddi) #5
  unreachable

13:                                               ; preds = %6
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  %15 = tail call noundef zeroext i1 @_ZNKSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %14)
  br i1 %15, label %16, label %20

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = tail call noundef i64 @_ZNKSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %19 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EE12emplace_backIJS_I17HighsDomainChangeSaIS5_EES_IiSaIiEERdSA_RiEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  br label %26

20:                                               ; preds = %13
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %14)
  %22 = load i64, ptr %21, align 8, !tbaa !11
  tail call void @_ZNSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %14)
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %10) #6
  call void @_ZN14HighsNodeQueue8OpenNodeC2EOSt6vectorI17HighsDomainChangeSaIS2_EEOS1_IiSaIiEEddi(ptr noundef nonnull align 8 dereferenceable(144) %10, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef %3, double noundef %4, i32 noundef %5)
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %22) #6
  %25 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZN14HighsNodeQueue8OpenNodeaSEOS0_(ptr noundef nonnull align 8 dereferenceable(144) %24, ptr noundef nonnull align 8 dereferenceable(144) %10) #6
  call void @_ZN14HighsNodeQueue8OpenNodeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %10) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %10) #6
  br label %26

26:                                               ; preds = %20, %16
  %.0 = phi i64 [ %18, %16 ], [ %22, %20 ]
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %.0) #6
  %29 = getelementptr inbounds i8, ptr %28, i64 72
  %30 = load double, ptr %29, align 8, !tbaa !13
  %31 = load double, ptr %7, align 8, !tbaa !5
  %32 = fcmp oeq double %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %26
  call void @__assert_fail(ptr noundef nonnull @.str.57, ptr noundef nonnull @.str.52, i32 noundef 380, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14HighsNodeQueue11emplaceNodeEOSt6vectorI17HighsDomainChangeSaIS1_EEOS0_IiSaIiEEddi) #5
  unreachable

34:                                               ; preds = %26
  %35 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %.0) #6
  %36 = getelementptr inbounds i8, ptr %35, i64 80
  %37 = load double, ptr %36, align 8, !tbaa !29
  %38 = load double, ptr %8, align 8, !tbaa !5
  %39 = fcmp oeq double %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %34
  call void @__assert_fail(ptr noundef nonnull @.str.58, ptr noundef nonnull @.str.52, i32 noundef 381, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14HighsNodeQueue11emplaceNodeEOSt6vectorI17HighsDomainChangeSaIS1_EEOS0_IiSaIiEEddi) #5
  unreachable

41:                                               ; preds = %34
  %42 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %.0) #6
  %43 = getelementptr inbounds i8, ptr %42, i64 88
  %44 = load i32, ptr %43, align 8, !tbaa !30
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = icmp eq i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %41
  call void @__assert_fail(ptr noundef nonnull @.str.59, ptr noundef nonnull @.str.52, i32 noundef 382, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14HighsNodeQueue11emplaceNodeEOSt6vectorI17HighsDomainChangeSaIS1_EEOS0_IiSaIiEEddi) #5
  unreachable

48:                                               ; preds = %41
  %49 = call noundef double @_ZN14HighsNodeQueue4linkEl(ptr noundef nonnull align 8 dereferenceable(148) %0, i64 noundef %.0)
  ret double %49
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(144) ptr @_ZNSt6vectorIN14HighsNodeQueue8OpenNodeESaIS1_EE12emplace_backIJS_I17HighsDomainChangeSaIS5_EES_IiSaIiEERdSA_RiEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueIlSt6vectorIlSaIlEESt7greaterIlEE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14HighsNodeQueue8OpenNodeC2EOSt6vectorI17HighsDomainChangeSaIS2_EEOS1_IiSaIiEEddi(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, i32 noundef) unnamed_addr #3 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "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 = { 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 = { noreturn nounwind }
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, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 72}
!14 = !{!"_ZTSN14HighsNodeQueue8OpenNodeE", !15, i64 0, !20, i64 24, !24, i64 48, !6, i64 72, !6, i64 80, !10, i64 88, !28, i64 96, !28, i64 120}
!15 = !{!"_ZTSSt6vectorI17HighsDomainChangeSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseI17HighsDomainChangeSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI17HighsDomainChangeSaIS0_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseI17HighsDomainChangeSaIS0_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!24 = !{!"_ZTSSt6vectorISt23_Rb_tree_const_iteratorISt4pairIdlEESaIS3_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseISt23_Rb_tree_const_iteratorISt4pairIdlEESaIS3_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt23_Rb_tree_const_iteratorISt4pairIdlEESaIS3_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt23_Rb_tree_const_iteratorISt4pairIdlEESaIS3_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!28 = !{!"_ZTSN5highs11RbTreeLinksIlEE", !7, i64 0, !12, i64 16}
!29 = !{!14, !6, i64 80}
!30 = !{!14, !10, i64 88}


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