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

; 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.HighsCliqueTable::CliqueVar" = type { i32 }
%class.HighsCombinable = type { %class.anon.130, i32, %"class.std::unique_ptr.131" }
%class.anon.130 = type { i32 }
%"class.std::unique_ptr.131" = type { %"struct.std::__uniq_ptr_data.132" }
%"struct.std::__uniq_ptr_data.132" = type { %"class.std::__uniq_ptr_impl.133" }
%"class.std::__uniq_ptr_impl.133" = type { %"class.std::tuple.134" }
%"class.std::tuple.134" = type { %"struct.std::_Tuple_impl.135" }
%"struct.std::_Tuple_impl.135" = type { %"struct.std::_Head_base.138" }
%"struct.std::_Head_base.138" = type { ptr }
%class.anon.139 = type { ptr, ptr, %"struct.HighsCliqueTable::CliqueVar", ptr }
%class.anon.140 = type { ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.60" = type { ptr }
%class.HighsCliqueTable = type { %"class.std::vector", %"class.std::vector.3", %"class.std::vector.8", %class.HighsHashTable, %"class.std::set", %"class.std::vector.26", %"class.std::vector.31", %"class.std::vector.26", %"class.std::vector", %"class.std::vector.26", %"class.std::vector.36", %"class.std::vector.26", %"class.std::vector.41", %"class.std::vector.46", %"class.std::vector.46", %"class.std::vector.51", %"class.std::vector.26", %class.HighsRandom, i32, i32, i32, i32, i8, i64 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<HighsHashTree<int, int>, std::allocator<HighsHashTree<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsHashTree<int, int>, std::allocator<HighsHashTree<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsHashTree<int, int>, std::allocator<HighsHashTree<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsHashTree<int, int>, std::allocator<HighsHashTree<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<HighsHashTree<int>, std::allocator<HighsHashTree<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsHashTree<int>, std::allocator<HighsHashTree<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsHashTree<int>, std::allocator<HighsHashTree<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsHashTree<int>, std::allocator<HighsHashTree<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.HighsHashTable = type { %"class.std::unique_ptr", %"class.std::unique_ptr.15", i64, i64, i64 }
%"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.14" }
%"struct.std::_Head_base.14" = type { ptr }
%"class.std::unique_ptr.15" = type { %"struct.std::__uniq_ptr_data.16" }
%"struct.std::__uniq_ptr_data.16" = type { %"class.std::__uniq_ptr_impl.17" }
%"class.std::__uniq_ptr_impl.17" = type { %"class.std::tuple.18" }
%"class.std::tuple.18" = type { %"struct.std::_Tuple_impl.19" }
%"struct.std::_Tuple_impl.19" = type { %"struct.std::_Head_base.22" }
%"struct.std::_Head_base.22" = type { ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<HighsCliqueTable::Clique, std::allocator<HighsCliqueTable::Clique>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsCliqueTable::Clique, std::allocator<HighsCliqueTable::Clique>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsCliqueTable::Clique, std::allocator<HighsCliqueTable::Clique>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsCliqueTable::Clique, std::allocator<HighsCliqueTable::Clique>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<HighsCliqueTable::CliqueVar, std::allocator<HighsCliqueTable::CliqueVar>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsCliqueTable::CliqueVar, std::allocator<HighsCliqueTable::CliqueVar>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsCliqueTable::CliqueVar, std::allocator<HighsCliqueTable::CliqueVar>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsCliqueTable::CliqueVar, std::allocator<HighsCliqueTable::CliqueVar>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<HighsCliqueTable::Substitution, std::allocator<HighsCliqueTable::Substitution>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsCliqueTable::Substitution, std::allocator<HighsCliqueTable::Substitution>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsCliqueTable::Substitution, std::allocator<HighsCliqueTable::Substitution>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsCliqueTable::Substitution, std::allocator<HighsCliqueTable::Substitution>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<std::pair<int, HighsCliqueTable::CliqueVar>, std::allocator<std::pair<int, HighsCliqueTable::CliqueVar>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, HighsCliqueTable::CliqueVar>, std::allocator<std::pair<int, HighsCliqueTable::CliqueVar>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, HighsCliqueTable::CliqueVar>, std::allocator<std::pair<int, HighsCliqueTable::CliqueVar>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, HighsCliqueTable::CliqueVar>, std::allocator<std::pair<int, HighsCliqueTable::CliqueVar>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = 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.HighsRandom = type { i64 }

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS_9CliqueVarEPS5_i(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %3, ptr noundef %4, i32 noundef %5) #3 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"struct.HighsCliqueTable::CliqueVar", align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.HighsCliqueTable::CliqueVar", align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.HighsCliqueTable::CliqueVar", align 4
  %16 = alloca %"struct.HighsCliqueTable::CliqueVar", align 4
  %17 = alloca %class.HighsCombinable, align 8
  %18 = alloca %class.anon.130, align 4
  %19 = alloca %class.anon.139, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %class.anon.140, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.60", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.60", align 8
  %25 = getelementptr inbounds %"struct.HighsCliqueTable::CliqueVar", ptr %7, i32 0, i32 0
  store i32 %3, ptr %25, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  %26 = load ptr, ptr %8, align 8
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %7, i64 4, i1 false), !tbaa.struct !11
  %28 = getelementptr inbounds %"struct.HighsCliqueTable::CliqueVar", ptr %13, i32 0, i32 0
  %29 = load i32, ptr %28, align 4
  %30 = call noundef i32 @_ZNK16HighsCliqueTable10numCliquesENS_9CliqueVarE(ptr noundef nonnull align 8 dereferenceable(488) %26, i32 %29)
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %6
  br label %108

33:                                               ; preds = %6
  %34 = getelementptr inbounds %class.HighsCliqueTable, ptr %26, i32 0, i32 19
  %35 = load i32, ptr %34, align 4, !tbaa !13
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds %class.HighsCliqueTable, ptr %26, i32 0, i32 3
  %38 = call noundef i64 @_ZNK14HighsHashTableISt4pairIN16HighsCliqueTable9CliqueVarES2_EiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %37)
  %39 = mul nsw i64 %38, 2
  %40 = sub nsw i64 %36, %39
  %41 = getelementptr inbounds %class.HighsCliqueTable, ptr %26, i32 0, i32 21
  %42 = load i32, ptr %41, align 4, !tbaa !75
  %43 = sext i32 %42 to i64
  %44 = icmp slt i64 %40, %43
  br i1 %44, label %45, label %69

45:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %65, %45
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = load i32, ptr %12, align 4, !tbaa !9
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %68

51:                                               ; preds = %46
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %7, i64 4, i1 false), !tbaa.struct !11
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = load i32, ptr %14, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds %"struct.HighsCliqueTable::CliqueVar", ptr %53, i64 %55
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %56, i64 4, i1 false), !tbaa.struct !11
  %57 = getelementptr inbounds %"struct.HighsCliqueTable::CliqueVar", ptr %15, i32 0, i32 0
  %58 = load i32, ptr %57, align 4
  %59 = getelementptr inbounds %"struct.HighsCliqueTable::CliqueVar", ptr %16, i32 0, i32 0
  %60 = load i32, ptr %59, align 4
  %61 = call noundef zeroext i1 @_ZNK16HighsCliqueTable16haveCommonCliqueERlNS_9CliqueVarES1_(ptr noundef nonnull align 8 dereferenceable(488) %26, ptr noundef nonnull align 8 dereferenceable(8) %52, i32 %58, i32 %60)
  br i1 %61, label %62, label %64

62:                                               ; preds = %51
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 4 dereferenceable(4) %14)
  br label %64

64:                                               ; preds = %62, %51
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %14, align 4, !tbaa !9
  br label %46, !llvm.loop !76

68:                                               ; preds = %50
  br label %108

69:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %70 = getelementptr inbounds %class.anon.130, ptr %18, i32 0, i32 0
  %71 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %71, ptr %70, align 4, !tbaa !78
  call void @"_Z19makeHighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0E15HighsCombinableIT_T0_EOSC_"(ptr dead_on_unwind writable sret(%class.HighsCombinable) align 8 %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %72 = load i32, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #5
  %73 = getelementptr inbounds %class.anon.139, ptr %19, i32 0, i32 0
  store ptr %26, ptr %73, align 8, !tbaa !80
  %74 = getelementptr inbounds %class.anon.139, ptr %19, i32 0, i32 1
  store ptr %17, ptr %74, align 8, !tbaa !5
  %75 = getelementptr inbounds %class.anon.139, ptr %19, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %75, ptr align 4 %7, i64 4, i1 false), !tbaa.struct !11
  %76 = getelementptr inbounds %class.anon.139, ptr %19, i32 0, i32 3
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %77, ptr %76, align 8, !tbaa !83
  invoke void @"_ZN5highs8parallel8for_eachIZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS2_9CliqueVarEPS8_iE3$_1EEviiOT_i"(i32 noundef 0, i32 noundef %72, ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef 10)
          to label %78 unwind label %95

78:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %79 = getelementptr inbounds %class.anon.140, ptr %22, i32 0, i32 0
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %80, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds %class.anon.140, ptr %22, i32 0, i32 1
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %82, ptr %81, align 8, !tbaa !5
  invoke void @"_ZN15HighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0E12combine_eachIZNKS1_18queryNeighbourhoodES5_S6_S7_S8_iE3$_2EEvOT_"(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %83 unwind label %99

83:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #5
  %86 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.60", ptr %23, i32 0, i32 0
  store ptr %85, ptr %86, align 8
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #5
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.60", ptr %24, i32 0, i32 0
  store ptr %88, ptr %89, align 8
  %90 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.60", ptr %23, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.60", ptr %24, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8
  invoke void @_Z7pdqsortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %91, ptr %93)
          to label %94 unwind label %103

94:                                               ; preds = %83
  call void @"_ZN15HighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br label %108

95:                                               ; preds = %69
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %20, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  br label %107

99:                                               ; preds = %78
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %20, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  br label %107

103:                                              ; preds = %83
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %20, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %21, align 4
  br label %107

107:                                              ; preds = %103, %99, %95
  call void @"_ZN15HighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br label %109

108:                                              ; preds = %94, %68, %32
  ret void

109:                                              ; preds = %107
  %110 = load ptr, ptr %20, align 8
  %111 = load i32, ptr %21, align 4
  %112 = insertvalue { ptr, i32 } poison, ptr %110, 0
  %113 = insertvalue { ptr, i32 } %112, i32 %111, 1
  resume { ptr, i32 } %113
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK16HighsCliqueTable16haveCommonCliqueERlNS_9CliqueVarES1_(ptr noundef nonnull align 8 dereferenceable(488), ptr noundef nonnull align 8 dereferenceable(8), i32, i32) #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_Z19makeHighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0E15HighsCombinableIT_T0_EOSC_"(ptr dead_on_unwind noalias writable sret(%class.HighsCombinable) align 8, ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN5highs8parallel8for_eachIZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS2_9CliqueVarEPS8_iE3$_1EEviiOT_i"(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN15HighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0E12combine_eachIZNKS1_18queryNeighbourhoodES5_S6_S7_S8_iE3$_2EEvOT_"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z7pdqsortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZN15HighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 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 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 4, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !10, i64 460}
!14 = !{!"_ZTS16HighsCliqueTable", !15, i64 0, !19, i64 24, !23, i64 48, !27, i64 72, !41, i64 112, !49, i64 160, !53, i64 184, !49, i64 208, !15, i64 232, !49, i64 256, !57, i64 280, !49, i64 304, !61, i64 328, !65, i64 352, !65, i64 376, !69, i64 400, !49, i64 424, !73, i64 448, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !74, i64 472, !40, i64 480}
!15 = !{!"_ZTSSt6vectorIN16HighsCliqueTable9CliqueVarESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN16HighsCliqueTable9CliqueVarESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN16HighsCliqueTable9CliqueVarESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN16HighsCliqueTable9CliqueVarESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorI13HighsHashTreeIiiESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseI13HighsHashTreeIiiESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI13HighsHashTreeIiiESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI13HighsHashTreeIiiESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorI13HighsHashTreeIivESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseI13HighsHashTreeIivESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI13HighsHashTreeIivESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseI13HighsHashTreeIivESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTS14HighsHashTableISt4pairIN16HighsCliqueTable9CliqueVarES2_EiE", !28, i64 0, !34, i64 8, !40, i64 16, !40, i64 24, !40, i64 32}
!28 = !{!"_ZTSSt10unique_ptrI19HighsHashTableEntryISt4pairIN16HighsCliqueTable9CliqueVarES3_EiEN14HighsHashTableIS4_iE12OpNewDeleterEE", !29, i64 0}
!29 = !{!"_ZTSSt15__uniq_ptr_dataI19HighsHashTableEntryISt4pairIN16HighsCliqueTable9CliqueVarES3_EiEN14HighsHashTableIS4_iE12OpNewDeleterELb1ELb1EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_implI19HighsHashTableEntryISt4pairIN16HighsCliqueTable9CliqueVarES3_EiEN14HighsHashTableIS4_iE12OpNewDeleterEE", !31, i64 0}
!31 = !{!"_ZTSSt5tupleIJP19HighsHashTableEntryISt4pairIN16HighsCliqueTable9CliqueVarES3_EiEN14HighsHashTableIS4_iE12OpNewDeleterEEE", !32, i64 0}
!32 = !{!"_ZTSSt11_Tuple_implILm0EJP19HighsHashTableEntryISt4pairIN16HighsCliqueTable9CliqueVarES3_EiEN14HighsHashTableIS4_iE12OpNewDeleterEEE", !33, i64 0}
!33 = !{!"_ZTSSt10_Head_baseILm0EP19HighsHashTableEntryISt4pairIN16HighsCliqueTable9CliqueVarES3_EiELb0EE", !6, i64 0}
!34 = !{!"_ZTSSt10unique_ptrIA_hSt14default_deleteIS0_EE", !35, i64 0}
!35 = !{!"_ZTSSt15__uniq_ptr_dataIhSt14default_deleteIA_hELb1ELb1EE", !36, i64 0}
!36 = !{!"_ZTSSt15__uniq_ptr_implIhSt14default_deleteIA_hEE", !37, i64 0}
!37 = !{!"_ZTSSt5tupleIJPhSt14default_deleteIA_hEEE", !38, i64 0}
!38 = !{!"_ZTSSt11_Tuple_implILm0EJPhSt14default_deleteIA_hEEE", !39, i64 0}
!39 = !{!"_ZTSSt10_Head_baseILm0EPhLb0EE", !6, i64 0}
!40 = !{!"long", !7, i64 0}
!41 = !{!"_ZTSSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE", !42, i64 0}
!42 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE", !43, i64 0}
!43 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE13_Rb_tree_implIS5_Lb1EEE", !44, i64 0, !46, i64 8}
!44 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIiiEEE", !45, i64 0}
!45 = !{!"_ZTSSt4lessISt4pairIiiEE"}
!46 = !{!"_ZTSSt15_Rb_tree_header", !47, i64 0, !40, i64 32}
!47 = !{!"_ZTSSt18_Rb_tree_node_base", !48, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!48 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!49 = !{!"_ZTSSt6vectorIiSaIiEE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!53 = !{!"_ZTSSt6vectorIN16HighsCliqueTable6CliqueESaIS1_EE", !54, i64 0}
!54 = !{!"_ZTSSt12_Vector_baseIN16HighsCliqueTable6CliqueESaIS1_EE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIN16HighsCliqueTable6CliqueESaIS1_EE12_Vector_implE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseIN16HighsCliqueTable6CliqueESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!57 = !{!"_ZTSSt6vectorIN16HighsCliqueTable12SubstitutionESaIS1_EE", !58, i64 0}
!58 = !{!"_ZTSSt12_Vector_baseIN16HighsCliqueTable12SubstitutionESaIS1_EE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIN16HighsCliqueTable12SubstitutionESaIS1_EE12_Vector_implE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIN16HighsCliqueTable12SubstitutionESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!61 = !{!"_ZTSSt6vectorISt4pairIiN16HighsCliqueTable9CliqueVarEESaIS3_EE", !62, i64 0}
!62 = !{!"_ZTSSt12_Vector_baseISt4pairIiN16HighsCliqueTable9CliqueVarEESaIS3_EE", !63, i64 0}
!63 = !{!"_ZTSNSt12_Vector_baseISt4pairIiN16HighsCliqueTable9CliqueVarEESaIS3_EE12_Vector_implE", !64, i64 0}
!64 = !{!"_ZTSNSt12_Vector_baseISt4pairIiN16HighsCliqueTable9CliqueVarEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!65 = !{!"_ZTSSt6vectorIhSaIhEE", !66, i64 0}
!66 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !67, i64 0}
!67 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !68, i64 0}
!68 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!69 = !{!"_ZTSSt6vectorIjSaIjEE", !70, i64 0}
!70 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !71, i64 0}
!71 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !72, i64 0}
!72 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!73 = !{!"_ZTS11HighsRandom", !40, i64 0}
!74 = !{!"bool", !7, i64 0}
!75 = !{!14, !10, i64 468}
!76 = distinct !{!76, !77}
!77 = !{!"llvm.loop.mustprogress"}
!78 = !{!79, !10, i64 0}
!79 = !{!"_ZTSZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS_9CliqueVarEPS5_iE3$_0", !10, i64 0}
!80 = !{!81, !6, i64 0}
!81 = !{!"_ZTSZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS_9CliqueVarEPS5_iE3$_1", !6, i64 0, !6, i64 8, !82, i64 16, !6, i64 24}
!82 = !{!"_ZTSN16HighsCliqueTable9CliqueVarE", !10, i64 0, !10, i64 3}
!83 = !{!81, !6, i64 24}


; 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.HighsCombinable = type { %class.anon.130, i32, %"class.std::unique_ptr.131" }
%class.anon.130 = type { i32 }
%"class.std::unique_ptr.131" = type { %"struct.std::__uniq_ptr_data.132" }
%"struct.std::__uniq_ptr_data.132" = type { %"class.std::__uniq_ptr_impl.133" }
%"class.std::__uniq_ptr_impl.133" = type { %"class.std::tuple.134" }
%"class.std::tuple.134" = type { %"struct.std::_Tuple_impl.135" }
%"struct.std::_Tuple_impl.135" = type { %"struct.std::_Head_base.138" }
%"struct.std::_Head_base.138" = type { ptr }
%class.anon.139 = type { ptr, ptr, %"struct.HighsCliqueTable::CliqueVar", ptr }
%"struct.HighsCliqueTable::CliqueVar" = type { i32 }
%class.anon.140 = type { ptr, 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS_9CliqueVarEPS5_i(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %3, ptr noundef %4, i32 noundef %5) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca %class.HighsCombinable, align 8
  %9 = alloca %class.anon.130, align 4
  %10 = alloca %class.anon.139, align 8
  %11 = alloca %class.anon.140, align 8
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %12 = tail call noundef i32 @_ZNK16HighsCliqueTable10numCliquesENS_9CliqueVarE(ptr noundef nonnull align 8 dereferenceable(488) %0, i32 %3)
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %53, label %14

14:                                               ; preds = %6
  %15 = getelementptr inbounds i8, ptr %0, i64 460
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds i8, ptr %0, i64 72
  %19 = tail call noundef i64 @_ZNK14HighsHashTableISt4pairIN16HighsCliqueTable9CliqueVarES2_EiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %18)
  %20 = shl nsw i64 %19, 1
  %21 = sub nsw i64 %17, %20
  %22 = getelementptr inbounds i8, ptr %0, i64 468
  %23 = load i32, ptr %22, align 4, !tbaa !71
  %24 = sext i32 %23 to i64
  %25 = icmp slt i64 %21, %24
  br i1 %25, label %26, label %36

26:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  store i32 0, ptr %7, align 4, !tbaa !72
  %27 = icmp sgt i32 %5, 0
  br i1 %27, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %32, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  br label %53

.lr.ph:                                           ; preds = %26, %32
  %storemerge23 = phi i32 [ %34, %32 ], [ 0, %26 ]
  %28 = sext i32 %storemerge23 to i64
  %29 = getelementptr inbounds %"struct.HighsCliqueTable::CliqueVar", ptr %4, i64 %28
  %.sroa.02.0.copyload = load i32, ptr %29, align 4, !tbaa !73
  %30 = call noundef zeroext i1 @_ZNK16HighsCliqueTable16haveCommonCliqueERlNS_9CliqueVarES1_(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %3, i32 %.sroa.02.0.copyload)
  br i1 %30, label %31, label %32

31:                                               ; preds = %.lr.ph
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %7)
  br label %32

32:                                               ; preds = %.lr.ph, %31
  %33 = load i32, ptr %7, align 4, !tbaa !72
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %7, align 4, !tbaa !72
  %35 = icmp slt i32 %34, %5
  br i1 %35, label %.lr.ph, label %._crit_edge, !llvm.loop !74

36:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  store i32 %5, ptr %9, align 4, !tbaa !76
  call void @"_Z19makeHighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0E15HighsCombinableIT_T0_EOSC_"(ptr dead_on_unwind nonnull writable sret(%class.HighsCombinable) align 8 %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  store ptr %0, ptr %10, align 8, !tbaa !78
  %37 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %8, ptr %37, align 8, !tbaa !81
  %38 = getelementptr inbounds i8, ptr %10, i64 16
  store i32 %3, ptr %38, align 8, !tbaa !73
  %39 = getelementptr inbounds i8, ptr %10, i64 24
  store ptr %4, ptr %39, align 8, !tbaa !82
  invoke void @"_ZN5highs8parallel8for_eachIZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS2_9CliqueVarEPS8_iE3$_1EEviiOT_i"(i32 noundef 0, i32 noundef %5, ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 10)
          to label %40 unwind label %46

40:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  store ptr %1, ptr %11, align 8, !tbaa !81
  %41 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr %2, ptr %41, align 8, !tbaa !81
  invoke void @"_ZN15HighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0E12combine_eachIZNKS1_18queryNeighbourhoodES5_S6_S7_S8_iE3$_2EEvOT_"(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %42 unwind label %48

42:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  %43 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %44 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  invoke void @_Z7pdqsortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %43, ptr %44)
          to label %45 unwind label %50

45:                                               ; preds = %42
  call void @"_ZN15HighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %53

46:                                               ; preds = %36
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  br label %52

48:                                               ; preds = %40
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  br label %52

50:                                               ; preds = %42
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %52

52:                                               ; preds = %50, %48, %46
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ], [ %47, %46 ]
  call void @"_ZN15HighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  resume { ptr, i32 } %.pn

53:                                               ; preds = %6, %45, %._crit_edge
  ret void
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK16HighsCliqueTable16haveCommonCliqueERlNS_9CliqueVarES1_(ptr noundef nonnull align 8 dereferenceable(488), ptr noundef nonnull align 8 dereferenceable(8), i32, i32) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_Z19makeHighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0E15HighsCombinableIT_T0_EOSC_"(ptr dead_on_unwind noalias writable sret(%class.HighsCombinable) align 8, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN5highs8parallel8for_eachIZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS2_9CliqueVarEPS8_iE3$_1EEviiOT_i"(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN15HighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0E12combine_eachIZNKS1_18queryNeighbourhoodES5_S6_S7_S8_iE3$_2EEvOT_"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z7pdqsortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZN15HighsCombinableI28ThreadNeighbourhoodQueryDataZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS1_9CliqueVarEPS7_iE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { 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, !69, i64 460}
!6 = !{!"_ZTS16HighsCliqueTable", !7, i64 0, !14, i64 24, !18, i64 48, !22, i64 72, !36, i64 112, !44, i64 160, !48, i64 184, !44, i64 208, !7, i64 232, !44, i64 256, !52, i64 280, !44, i64 304, !56, i64 328, !60, i64 352, !60, i64 376, !64, i64 400, !44, i64 424, !68, i64 448, !69, i64 456, !69, i64 460, !69, i64 464, !69, i64 468, !70, i64 472, !35, i64 480}
!7 = !{!"_ZTSSt6vectorIN16HighsCliqueTable9CliqueVarESaIS1_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIN16HighsCliqueTable9CliqueVarESaIS1_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIN16HighsCliqueTable9CliqueVarESaIS1_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIN16HighsCliqueTable9CliqueVarESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt6vectorI13HighsHashTreeIiiESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseI13HighsHashTreeIiiESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI13HighsHashTreeIiiESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI13HighsHashTreeIiiESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!"_ZTSSt6vectorI13HighsHashTreeIivESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseI13HighsHashTreeIivESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI13HighsHashTreeIivESaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI13HighsHashTreeIivESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!22 = !{!"_ZTS14HighsHashTableISt4pairIN16HighsCliqueTable9CliqueVarES2_EiE", !23, i64 0, !29, i64 8, !35, i64 16, !35, i64 24, !35, i64 32}
!23 = !{!"_ZTSSt10unique_ptrI19HighsHashTableEntryISt4pairIN16HighsCliqueTable9CliqueVarES3_EiEN14HighsHashTableIS4_iE12OpNewDeleterEE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_dataI19HighsHashTableEntryISt4pairIN16HighsCliqueTable9CliqueVarES3_EiEN14HighsHashTableIS4_iE12OpNewDeleterELb1ELb1EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_implI19HighsHashTableEntryISt4pairIN16HighsCliqueTable9CliqueVarES3_EiEN14HighsHashTableIS4_iE12OpNewDeleterEE", !26, i64 0}
!26 = !{!"_ZTSSt5tupleIJP19HighsHashTableEntryISt4pairIN16HighsCliqueTable9CliqueVarES3_EiEN14HighsHashTableIS4_iE12OpNewDeleterEEE", !27, i64 0}
!27 = !{!"_ZTSSt11_Tuple_implILm0EJP19HighsHashTableEntryISt4pairIN16HighsCliqueTable9CliqueVarES3_EiEN14HighsHashTableIS4_iE12OpNewDeleterEEE", !28, i64 0}
!28 = !{!"_ZTSSt10_Head_baseILm0EP19HighsHashTableEntryISt4pairIN16HighsCliqueTable9CliqueVarES3_EiELb0EE", !11, i64 0}
!29 = !{!"_ZTSSt10unique_ptrIA_hSt14default_deleteIS0_EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataIhSt14default_deleteIA_hELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implIhSt14default_deleteIA_hEE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPhSt14default_deleteIA_hEEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPhSt14default_deleteIA_hEEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPhLb0EE", !11, i64 0}
!35 = !{!"long", !12, i64 0}
!36 = !{!"_ZTSSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSNSt8_Rb_treeISt4pairIiiES1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE13_Rb_tree_implIS5_Lb1EEE", !39, i64 0, !41, i64 8}
!39 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIiiEEE", !40, i64 0}
!40 = !{!"_ZTSSt4lessISt4pairIiiEE"}
!41 = !{!"_ZTSSt15_Rb_tree_header", !42, i64 0, !35, i64 32}
!42 = !{!"_ZTSSt18_Rb_tree_node_base", !43, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!43 = !{!"_ZTSSt14_Rb_tree_color", !12, i64 0}
!44 = !{!"_ZTSSt6vectorIiSaIiEE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!48 = !{!"_ZTSSt6vectorIN16HighsCliqueTable6CliqueESaIS1_EE", !49, i64 0}
!49 = !{!"_ZTSSt12_Vector_baseIN16HighsCliqueTable6CliqueESaIS1_EE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIN16HighsCliqueTable6CliqueESaIS1_EE12_Vector_implE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIN16HighsCliqueTable6CliqueESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!52 = !{!"_ZTSSt6vectorIN16HighsCliqueTable12SubstitutionESaIS1_EE", !53, i64 0}
!53 = !{!"_ZTSSt12_Vector_baseIN16HighsCliqueTable12SubstitutionESaIS1_EE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIN16HighsCliqueTable12SubstitutionESaIS1_EE12_Vector_implE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIN16HighsCliqueTable12SubstitutionESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!56 = !{!"_ZTSSt6vectorISt4pairIiN16HighsCliqueTable9CliqueVarEESaIS3_EE", !57, i64 0}
!57 = !{!"_ZTSSt12_Vector_baseISt4pairIiN16HighsCliqueTable9CliqueVarEESaIS3_EE", !58, i64 0}
!58 = !{!"_ZTSNSt12_Vector_baseISt4pairIiN16HighsCliqueTable9CliqueVarEESaIS3_EE12_Vector_implE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseISt4pairIiN16HighsCliqueTable9CliqueVarEESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!60 = !{!"_ZTSSt6vectorIhSaIhEE", !61, i64 0}
!61 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !62, i64 0}
!62 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !63, i64 0}
!63 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!64 = !{!"_ZTSSt6vectorIjSaIjEE", !65, i64 0}
!65 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !66, i64 0}
!66 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !67, i64 0}
!67 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!68 = !{!"_ZTS11HighsRandom", !35, i64 0}
!69 = !{!"int", !12, i64 0}
!70 = !{!"bool", !12, i64 0}
!71 = !{!6, !69, i64 468}
!72 = !{!69, !69, i64 0}
!73 = !{!12, !12, i64 0}
!74 = distinct !{!74, !75}
!75 = !{!"llvm.loop.mustprogress"}
!76 = !{!77, !69, i64 0}
!77 = !{!"_ZTSZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS_9CliqueVarEPS5_iE3$_0", !69, i64 0}
!78 = !{!79, !11, i64 0}
!79 = !{!"_ZTSZNK16HighsCliqueTable18queryNeighbourhoodERSt6vectorIiSaIiEERlNS_9CliqueVarEPS5_iE3$_1", !11, i64 0, !11, i64 8, !80, i64 16, !11, i64 24}
!80 = !{!"_ZTSN16HighsCliqueTable9CliqueVarE", !69, i64 0, !69, i64 3}
!81 = !{!11, !11, i64 0}
!82 = !{!79, !11, i64 24}


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