; LLVM IR from ERGO-Code/HiGHS :: src/presolve/HighsSymmetry.ll (ZN22HighsSymmetryDetection19partitionRefinementEv)

; 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.__gnu_cxx::__normal_iterator.47" = type { ptr }
%"struct.std::greater" = type { i8 }
%class.anon.184 = type { ptr }
%class.anon.185 = type { ptr }
%class.HighsSymmetryDetection = type { ptr, %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %"class.std::vector", %"class.std::vector.13", %"class.std::vector", %"class.std::vector", %"class.std::vector.18", %"class.std::vector.18", %"class.std::vector.18", %"class.std::vector", %"class.std::vector", %class.HighsHashTable, %class.HighsHashTable.33, %class.HighsHashTable.33, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"class.std::vector.42" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::pair<int, unsigned int>, std::allocator<std::pair<int, unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, unsigned int>, std::allocator<std::pair<int, unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, unsigned int>, std::allocator<std::pair<int, unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, unsigned int>, std::allocator<std::pair<int, unsigned 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<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.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = 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.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.HighsHashTable = type { %"class.std::unique_ptr", %"class.std::unique_ptr.25", 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.24" }
%"struct.std::_Head_base.24" = type { ptr }
%"class.std::unique_ptr.25" = type { %"struct.std::__uniq_ptr_data.26" }
%"struct.std::__uniq_ptr_data.26" = type { %"class.std::__uniq_ptr_impl.27" }
%"class.std::__uniq_ptr_impl.27" = type { %"class.std::tuple.28" }
%"class.std::tuple.28" = type { %"struct.std::_Tuple_impl.29" }
%"struct.std::_Tuple_impl.29" = type { %"struct.std::_Head_base.32" }
%"struct.std::_Head_base.32" = type { ptr }
%class.HighsHashTable.33 = type { %"class.std::unique_ptr.34", %"class.std::unique_ptr.25", i64, i64, i64 }
%"class.std::unique_ptr.34" = type { %"struct.std::__uniq_ptr_data.35" }
%"struct.std::__uniq_ptr_data.35" = type { %"class.std::__uniq_ptr_impl.36" }
%"class.std::__uniq_ptr_impl.36" = type { %"class.std::tuple.37" }
%"class.std::tuple.37" = type { %"struct.std::_Tuple_impl.38" }
%"struct.std::_Tuple_impl.38" = type { %"struct.std::_Head_base.41" }
%"struct.std::_Head_base.41" = type { ptr }
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<HighsSymmetryDetection::Node, std::allocator<HighsSymmetryDetection::Node>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsSymmetryDetection::Node, std::allocator<HighsSymmetryDetection::Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsSymmetryDetection::Node, std::allocator<HighsSymmetryDetection::Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsSymmetryDetection::Node, std::allocator<HighsSymmetryDetection::Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.52 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN22HighsSymmetryDetection19partitionRefinementEv = external hidden unnamed_addr constant [51 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [44 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN22HighsSymmetryDetection19partitionRefinementEv(ptr noundef nonnull align 8 dereferenceable(720) %0) #3 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %6 = alloca %"struct.std::greater", align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %17 = alloca %class.anon.184, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %23 = alloca %class.anon.185, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %27 = alloca i32, align 4
  %28 = alloca i8, align 1
  %29 = alloca i32, align 4
  %30 = alloca i64, align 8
  %31 = alloca i32, align 4
  %32 = alloca i64, align 8
  %33 = alloca ptr, align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %36 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %37 = load ptr, ptr %3, align 8
  br label %38

38:                                               ; preds = %300, %298, %1
  %39 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 14
  %40 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  %41 = xor i1 %40, true
  br i1 %41, label %42, label %301

42:                                               ; preds = %38
  %43 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 14
  %44 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %4, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  %46 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 14
  %47 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  %48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %5, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  %49 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %4, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %5, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8
  call void @_ZSt8pop_heapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEESt7greaterIiEEvT_S9_T0_(ptr %50, ptr %52)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %53 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 14
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #6
  %55 = load i32, ptr %54, align 4, !tbaa !9
  store i32 %55, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %56 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %56, ptr %8, align 4, !tbaa !9
  %57 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 14
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #6
  %58 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 13
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %60) #6
  store i8 0, ptr %61, align 1, !tbaa !11
  %62 = load i32, ptr %7, align 4, !tbaa !9
  %63 = call noundef i32 @_ZNK22HighsSymmetryDetection8cellSizeEi(ptr noundef nonnull align 8 dereferenceable(720) %37, i32 noundef %62)
  %64 = icmp eq i32 %63, 1
  br i1 %64, label %65, label %66

65:                                               ; preds = %42
  store i32 2, ptr %9, align 4
  br label %298, !llvm.loop !12

66:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %67 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 6
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %69) #6
  %71 = load i32, ptr %70, align 4, !tbaa !9
  store i32 %71, ptr %10, align 4, !tbaa !9
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = icmp sge i32 %72, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %66
  br label %78

76:                                               ; preds = %66
  call void @__assert_fail(ptr noundef @.str.59, ptr noundef @.str.52, i32 noundef 899, ptr noundef @__PRETTY_FUNCTION__._ZN22HighsSymmetryDetection19partitionRefinementEv) #7
  unreachable

77:                                               ; No predecessors!
  br label %78

78:                                               ; preds = %77, %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %79 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 5
  %80 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #6
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %14, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef %83) #6
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %13, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %86 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 5
  %87 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #6
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %16, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %16, i64 noundef %90) #6
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %15, i32 0, i32 0
  store ptr %91, ptr %92, align 8
  %93 = getelementptr inbounds %class.anon.184, ptr %17, i32 0, i32 0
  store ptr %37, ptr %93, align 8, !tbaa !14
  %94 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %13, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8
  %96 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %15, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8
  %98 = getelementptr inbounds %class.anon.184, ptr %17, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8
  %100 = call ptr @"_ZSt9partitionIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZN22HighsSymmetryDetection19partitionRefinementEvE3$_0ET_S9_S9_T0_"(ptr %95, ptr %97, ptr %99)
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %12, i32 0, i32 0
  store ptr %100, ptr %101, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %102 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 5
  %103 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #6
  %104 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %18, i32 0, i32 0
  store ptr %103, ptr %104, align 8
  %105 = call noundef i64 @_ZN9__gnu_cxxmiIPiSt6vectorIiSaIiEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  %106 = trunc i64 %105 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  store i32 %106, ptr %11, align 4, !tbaa !9
  %107 = load i32, ptr %11, align 4, !tbaa !9
  %108 = load i32, ptr %10, align 4, !tbaa !9
  %109 = icmp eq i32 %107, %108
  br i1 %109, label %110, label %111

110:                                              ; preds = %78
  store i32 2, ptr %9, align 4
  br label %297, !llvm.loop !12

111:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %112 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 5
  %113 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #6
  %114 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %20, i32 0, i32 0
  store ptr %113, ptr %114, align 8
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %20, i64 noundef %116) #6
  %118 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %19, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %119 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 5
  %120 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %119) #6
  %121 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %22, i32 0, i32 0
  store ptr %120, ptr %121, align 8
  %122 = load i32, ptr %10, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %22, i64 noundef %123) #6
  %125 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %21, i32 0, i32 0
  store ptr %124, ptr %125, align 8
  %126 = getelementptr inbounds %class.anon.185, ptr %23, i32 0, i32 0
  store ptr %37, ptr %126, align 8, !tbaa !16
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %19, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8
  %129 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %21, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8
  %131 = getelementptr inbounds %class.anon.185, ptr %23, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8
  call void @"_Z7pdqsortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZN22HighsSymmetryDetection19partitionRefinementEvE3$_1EvT_S9_T0_"(ptr %128, ptr %130, ptr %132)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  %133 = load i32, ptr %11, align 4, !tbaa !9
  %134 = load i32, ptr %7, align 4, !tbaa !9
  %135 = icmp ne i32 %133, %134
  br i1 %135, label %136, label %182

136:                                              ; preds = %111
  %137 = load i32, ptr %11, align 4, !tbaa !9
  %138 = load i32, ptr %7, align 4, !tbaa !9
  %139 = icmp ne i32 %137, %138
  br i1 %139, label %140, label %141

140:                                              ; preds = %136
  br label %143

141:                                              ; preds = %136
  call void @__assert_fail(ptr noundef @.str.60, ptr noundef @.str.52, i32 noundef 922, ptr noundef @__PRETTY_FUNCTION__._ZN22HighsSymmetryDetection19partitionRefinementEv) #7
  unreachable

142:                                              ; No predecessors!
  br label %143

143:                                              ; preds = %142, %140
  %144 = load i32, ptr %11, align 4, !tbaa !9
  %145 = load i32, ptr %10, align 4, !tbaa !9
  %146 = icmp ne i32 %144, %145
  br i1 %146, label %147, label %148

147:                                              ; preds = %143
  br label %150

148:                                              ; preds = %143
  call void @__assert_fail(ptr noundef @.str.61, ptr noundef @.str.52, i32 noundef 923, ptr noundef @__PRETTY_FUNCTION__._ZN22HighsSymmetryDetection19partitionRefinementEv) #7
  unreachable

149:                                              ; No predecessors!
  br label %150

150:                                              ; preds = %149, %147
  %151 = load i32, ptr %7, align 4, !tbaa !9
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = call noundef zeroext i1 @_ZN22HighsSymmetryDetection9splitCellEii(ptr noundef nonnull align 8 dereferenceable(720) %37, i32 noundef %151, i32 noundef %152)
  br i1 %153, label %177, label %154

154:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %155 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 14
  store ptr %155, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %156 = load ptr, ptr %24, align 8, !tbaa !5
  %157 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %156) #6
  %158 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %25, i32 0, i32 0
  store ptr %157, ptr %158, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %159 = load ptr, ptr %24, align 8, !tbaa !5
  %160 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %159) #6
  %161 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %26, i32 0, i32 0
  store ptr %160, ptr %161, align 8
  br label %162

162:                                              ; preds = %172, %154
  %163 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br i1 %163, label %165, label %164

164:                                              ; preds = %162
  store i32 4, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %174

165:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %167 = load i32, ptr %166, align 4, !tbaa !9
  store i32 %167, ptr %27, align 4, !tbaa !9
  %168 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 13
  %169 = load i32, ptr %27, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %170) #6
  store i8 0, ptr %171, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %172

172:                                              ; preds = %165
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  br label %162

174:                                              ; preds = %164
  %175 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 14
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %175) #6
  %176 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 23
  call void @_ZN14HighsHashTableIijE5clearEv(ptr noundef nonnull align 8 dereferenceable(40) %176)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %9, align 4
  br label %297

177:                                              ; preds = %150
  %178 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %178, ptr %7, align 4, !tbaa !9
  %179 = load i32, ptr %7, align 4, !tbaa !9
  %180 = load i32, ptr %7, align 4, !tbaa !9
  %181 = call noundef zeroext i1 @_ZN22HighsSymmetryDetection20updateCellMembershipEiib(ptr noundef nonnull align 8 dereferenceable(720) %37, i32 noundef %179, i32 noundef %180, i1 noundef zeroext true)
  br label %182

182:                                              ; preds = %177, %111
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  store i8 0, ptr %28, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %183 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 23
  %184 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 5
  %185 = load i32, ptr %7, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %186) #6
  %188 = call noundef ptr @_ZN14HighsHashTableIijE4findERKi(ptr noundef nonnull align 8 dereferenceable(40) %183, ptr noundef nonnull align 4 dereferenceable(4) %187)
  %189 = icmp ne ptr %188, null
  br i1 %189, label %190, label %191

190:                                              ; preds = %182
  br label %193

191:                                              ; preds = %182
  call void @__assert_fail(ptr noundef @.str.62, ptr noundef @.str.52, i32 noundef 939, ptr noundef @__PRETTY_FUNCTION__._ZN22HighsSymmetryDetection19partitionRefinementEv) #7
  unreachable

192:                                              ; No predecessors!
  br label %193

193:                                              ; preds = %192, %190
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %194 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 23
  %195 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 5
  %196 = load i32, ptr %7, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %195, i64 noundef %197) #6
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN14HighsHashTableIijEixERKi(ptr noundef nonnull align 8 dereferenceable(40) %194, ptr noundef nonnull align 4 dereferenceable(4) %198)
  %200 = load i32, ptr %199, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  store i64 %201, ptr %30, align 8, !tbaa !20
  %202 = load i32, ptr %7, align 4, !tbaa !9
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %29, align 4, !tbaa !9
  br label %204

204:                                              ; preds = %236, %193
  %205 = load i32, ptr %29, align 4, !tbaa !9
  %206 = load i32, ptr %10, align 4, !tbaa !9
  %207 = icmp slt i32 %205, %206
  br i1 %207, label %208, label %239

208:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %209 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 5
  %210 = load i32, ptr %29, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %209, i64 noundef %211) #6
  %213 = load i32, ptr %212, align 4, !tbaa !9
  store i32 %213, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %214 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 23
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN14HighsHashTableIijEixERKi(ptr noundef nonnull align 8 dereferenceable(40) %214, ptr noundef nonnull align 4 dereferenceable(4) %31)
  %216 = load i32, ptr %215, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  store i64 %217, ptr %32, align 8, !tbaa !20
  %218 = load i64, ptr %32, align 8, !tbaa !20
  %219 = load i64, ptr %30, align 8, !tbaa !20
  %220 = icmp ne i64 %218, %219
  br i1 %220, label %221, label %229

221:                                              ; preds = %208
  %222 = load i32, ptr %7, align 4, !tbaa !9
  %223 = load i32, ptr %29, align 4, !tbaa !9
  %224 = call noundef zeroext i1 @_ZN22HighsSymmetryDetection9splitCellEii(ptr noundef nonnull align 8 dereferenceable(720) %37, i32 noundef %222, i32 noundef %223)
  br i1 %224, label %226, label %225

225:                                              ; preds = %221
  store i8 1, ptr %28, align 1, !tbaa !18
  store i32 6, ptr %9, align 4
  br label %233

226:                                              ; preds = %221
  %227 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %227, ptr %7, align 4, !tbaa !9
  %228 = load i64, ptr %32, align 8, !tbaa !20
  store i64 %228, ptr %30, align 8, !tbaa !20
  br label %229

229:                                              ; preds = %226, %208
  %230 = load i32, ptr %29, align 4, !tbaa !9
  %231 = load i32, ptr %7, align 4, !tbaa !9
  %232 = call noundef zeroext i1 @_ZN22HighsSymmetryDetection20updateCellMembershipEiib(ptr noundef nonnull align 8 dereferenceable(720) %37, i32 noundef %230, i32 noundef %231, i1 noundef zeroext true)
  store i32 0, ptr %9, align 4
  br label %233

233:                                              ; preds = %229, %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  %234 = load i32, ptr %9, align 4
  switch i32 %234, label %305 [
    i32 0, label %235
    i32 6, label %239
  ]

235:                                              ; preds = %233
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %29, align 4, !tbaa !9
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %29, align 4, !tbaa !9
  br label %204, !llvm.loop !22

239:                                              ; preds = %233, %204
  %240 = load i8, ptr %28, align 1, !tbaa !18, !range !23, !noundef !24
  %241 = trunc i8 %240 to i1
  br i1 %241, label %242, label %284

242:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %243 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 14
  store ptr %243, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %244 = load ptr, ptr %33, align 8, !tbaa !5
  %245 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %244) #6
  %246 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %34, i32 0, i32 0
  store ptr %245, ptr %246, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %247 = load ptr, ptr %33, align 8, !tbaa !5
  %248 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %247) #6
  %249 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %35, i32 0, i32 0
  store ptr %248, ptr %249, align 8
  br label %250

250:                                              ; preds = %260, %242
  %251 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  br i1 %251, label %253, label %252

252:                                              ; preds = %250
  store i32 9, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %262

253:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %254 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #6
  %255 = load i32, ptr %254, align 4, !tbaa !9
  store i32 %255, ptr %36, align 4, !tbaa !9
  %256 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 13
  %257 = load i32, ptr %36, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %256, i64 noundef %258) #6
  store i8 0, ptr %259, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %260

260:                                              ; preds = %253
  %261 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #6
  br label %250

262:                                              ; preds = %252
  %263 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 14
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %263) #6
  %264 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 23
  call void @_ZN14HighsHashTableIijE5clearEv(ptr noundef nonnull align 8 dereferenceable(40) %264)
  %265 = load i32, ptr %10, align 4, !tbaa !9
  %266 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 6
  %267 = load i32, ptr %8, align 4, !tbaa !9
  %268 = sext i32 %267 to i64
  %269 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %266, i64 noundef %268) #6
  store i32 %265, ptr %269, align 4, !tbaa !9
  %270 = load i32, ptr %29, align 4, !tbaa !9
  %271 = add nsw i32 %270, -1
  store i32 %271, ptr %29, align 4, !tbaa !9
  br label %272

272:                                              ; preds = %280, %262
  %273 = load i32, ptr %29, align 4, !tbaa !9
  %274 = load i32, ptr %11, align 4, !tbaa !9
  %275 = icmp sge i32 %273, %274
  br i1 %275, label %276, label %283

276:                                              ; preds = %272
  %277 = load i32, ptr %29, align 4, !tbaa !9
  %278 = load i32, ptr %8, align 4, !tbaa !9
  %279 = call noundef zeroext i1 @_ZN22HighsSymmetryDetection20updateCellMembershipEiib(ptr noundef nonnull align 8 dereferenceable(720) %37, i32 noundef %277, i32 noundef %278, i1 noundef zeroext false)
  br label %280

280:                                              ; preds = %276
  %281 = load i32, ptr %29, align 4, !tbaa !9
  %282 = add nsw i32 %281, -1
  store i32 %282, ptr %29, align 4, !tbaa !9
  br label %272, !llvm.loop !25

283:                                              ; preds = %272
  store i1 false, ptr %2, align 1
  store i32 1, ptr %9, align 4
  br label %296

284:                                              ; preds = %239
  %285 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 6
  %286 = load i32, ptr %7, align 4, !tbaa !9
  %287 = sext i32 %286 to i64
  %288 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %285, i64 noundef %287) #6
  %289 = load i32, ptr %288, align 4, !tbaa !9
  %290 = load i32, ptr %10, align 4, !tbaa !9
  %291 = icmp eq i32 %289, %290
  br i1 %291, label %292, label %293

292:                                              ; preds = %284
  br label %295

293:                                              ; preds = %284
  call void @__assert_fail(ptr noundef @.str.63, ptr noundef @.str.52, i32 noundef 979, ptr noundef @__PRETTY_FUNCTION__._ZN22HighsSymmetryDetection19partitionRefinementEv) #7
  unreachable

294:                                              ; No predecessors!
  br label %295

295:                                              ; preds = %294, %292
  store i32 0, ptr %9, align 4
  br label %296

296:                                              ; preds = %295, %283
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  br label %297

297:                                              ; preds = %296, %174, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %298

298:                                              ; preds = %297, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  %299 = load i32, ptr %9, align 4
  switch i32 %299, label %305 [
    i32 0, label %300
    i32 2, label %38
    i32 1, label %303
  ]

300:                                              ; preds = %298
  br label %38, !llvm.loop !12

301:                                              ; preds = %38
  %302 = getelementptr inbounds %class.HighsSymmetryDetection, ptr %37, i32 0, i32 23
  call void @_ZN14HighsHashTableIijE5clearEv(ptr noundef nonnull align 8 dereferenceable(40) %302)
  store i1 true, ptr %2, align 1
  br label %303

303:                                              ; preds = %301, %298
  %304 = load i1, ptr %2, align 1
  ret i1 %304

305:                                              ; preds = %298, %233
  unreachable
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt9partitionIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZN22HighsSymmetryDetection19partitionRefinementEvE3$_0ET_S9_S9_T0_"(ptr, ptr, ptr) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_Z7pdqsortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZN22HighsSymmetryDetection19partitionRefinementEvE3$_1EvT_S9_T0_"(ptr, ptr, ptr) #5

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

attributes #0 = { 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 = { 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 #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 = { 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSZN22HighsSymmetryDetection19partitionRefinementEvE3$_0", !6, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTSZN22HighsSymmetryDetection19partitionRefinementEvE3$_1", !6, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = distinct !{!22, !13}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !13}


; 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.__gnu_cxx::__normal_iterator.47" = type { ptr }

@.str.52 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN22HighsSymmetryDetection19partitionRefinementEv = external hidden unnamed_addr constant [51 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [44 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; 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 noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(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
declare dso_local noundef zeroext i1 @_ZN22HighsSymmetryDetection20updateCellMembershipEiib(ptr noundef nonnull align 8 dereferenceable(720), i32 noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN22HighsSymmetryDetection19partitionRefinementEv(ptr noundef nonnull align 8 dereferenceable(720) %0) local_unnamed_addr #3 align 2 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 320
  %14 = tail call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br i1 %14, label %._crit_edge156, label %.lr.ph155

.lr.ph155:                                        ; preds = %1
  %15 = getelementptr inbounds i8, ptr %0, i64 296
  %16 = getelementptr inbounds i8, ptr %0, i64 128
  %17 = getelementptr inbounds i8, ptr %0, i64 104
  %18 = getelementptr inbounds i8, ptr %0, i64 536
  br label %19

19:                                               ; preds = %.lr.ph155, %98
  %20 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %21 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @_ZSt8pop_heapIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEESt7greaterIiEEvT_S9_T0_(ptr %20, ptr %21)
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %23 = load i32, ptr %22, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %24 = sext i32 %23 to i64
  %25 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %24) #6
  store i8 0, ptr %25, align 1, !tbaa !9
  %26 = call noundef i32 @_ZNK22HighsSymmetryDetection8cellSizeEi(ptr noundef nonnull align 8 dereferenceable(720) %0, i32 noundef %23)
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %98, label %28, !llvm.loop !10

28:                                               ; preds = %19
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %24) #6
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %.not = icmp slt i32 %30, %23
  br i1 %.not, label %31, label %32

31:                                               ; preds = %28
  call void @__assert_fail(ptr noundef nonnull @.str.59, ptr noundef nonnull @.str.52, i32 noundef 899, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN22HighsSymmetryDetection19partitionRefinementEv) #7
  unreachable

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %33 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  store ptr %33, ptr %3, align 8
  %34 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %35 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  store ptr %35, ptr %4, align 8
  %36 = sext i32 %30 to i64
  %37 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %36) #6
  %38 = call ptr @"_ZSt9partitionIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZN22HighsSymmetryDetection19partitionRefinementEvE3$_0ET_S9_S9_T0_"(ptr %34, ptr %37, ptr nonnull %0)
  store ptr %38, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %39 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  store ptr %39, ptr %5, align 8
  %40 = call noundef i64 @_ZN9__gnu_cxxmiIPiSt6vectorIiSaIiEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %41 = trunc i64 %40 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %42 = icmp eq i32 %30, %41
  br i1 %42, label %98, label %43, !llvm.loop !10

43:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %44 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  store ptr %44, ptr %6, align 8
  %sext = shl i64 %40, 32
  %45 = ashr exact i64 %sext, 32
  %46 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %45) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %47 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  store ptr %47, ptr %7, align 8
  %48 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %36) #6
  call void @"_Z7pdqsortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZN22HighsSymmetryDetection19partitionRefinementEvE3$_1EvT_S9_T0_"(ptr %46, ptr %48, ptr nonnull %0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %.not86 = icmp eq i32 %23, %41
  br i1 %.not86, label %63, label %49

49:                                               ; preds = %43
  %50 = call noundef zeroext i1 @_ZN22HighsSymmetryDetection9splitCellEii(ptr noundef nonnull align 8 dereferenceable(720) %0, i32 noundef %23, i32 noundef %41)
  br i1 %50, label %61, label %51

51:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %52 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %52, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %53 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %53, ptr %9, align 8
  %54 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %54, label %.lr.ph159, label %._crit_edge160

._crit_edge160:                                   ; preds = %.lr.ph159, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %.thread100.sink.split

.lr.ph159:                                        ; preds = %51, %.lr.ph159
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %57) #6
  store i8 0, ptr %58, align 1, !tbaa !9
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %60 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %60, label %.lr.ph159, label %._crit_edge160

61:                                               ; preds = %49
  %62 = call noundef zeroext i1 @_ZN22HighsSymmetryDetection20updateCellMembershipEiib(ptr noundef nonnull align 8 dereferenceable(720) %0, i32 noundef %41, i32 noundef %41, i1 noundef zeroext true)
  %sext201 = shl i64 %40, 32
  %.pre = ashr exact i64 %sext201, 32
  br label %63

63:                                               ; preds = %61, %43
  %.pre-phi = phi i64 [ %.pre, %61 ], [ %24, %43 ]
  %.065 = phi i32 [ %41, %61 ], [ %23, %43 ]
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.pre-phi) #6
  %65 = call noundef ptr @_ZN14HighsHashTableIijE4findERKi(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull align 4 dereferenceable(4) %64)
  %.not88 = icmp eq ptr %65, null
  br i1 %.not88, label %66, label %67

66:                                               ; preds = %63
  call void @__assert_fail(ptr noundef nonnull @.str.62, ptr noundef nonnull @.str.52, i32 noundef 939, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN22HighsSymmetryDetection19partitionRefinementEv) #7
  unreachable

67:                                               ; preds = %63
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.pre-phi) #6
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN14HighsHashTableIijEixERKi(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull align 4 dereferenceable(4) %68)
  %.077149 = add nsw i32 %.065, 1
  %70 = icmp slt i32 %.077149, %30
  br i1 %70, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %67
  %71 = load i32, ptr %69, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  %73 = sext i32 %.077149 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph._crit_edge
  %indvars.iv = phi i64 [ %73, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph._crit_edge ]
  %.166152 = phi i32 [ %.065, %.lr.ph.preheader ], [ %.267, %.lr.ph._crit_edge ]
  %.074151 = phi i64 [ %72, %.lr.ph.preheader ], [ %.175, %.lr.ph._crit_edge ]
  %.077.in150 = phi i32 [ %.065, %.lr.ph.preheader ], [ %.pre199, %.lr.ph._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv) #6
  %75 = load i32, ptr %74, align 4, !tbaa !5
  store i32 %75, ptr %10, align 4, !tbaa !5
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN14HighsHashTableIijEixERKi(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = zext i32 %77 to i64
  %.not89 = icmp eq i64 %.074151, %78
  %.pre199 = trunc nsw i64 %indvars.iv to i32
  br i1 %.not89, label %.lr.ph._crit_edge, label %79

79:                                               ; preds = %.lr.ph
  %80 = call noundef zeroext i1 @_ZN22HighsSymmetryDetection9splitCellEii(ptr noundef nonnull align 8 dereferenceable(720) %0, i32 noundef %.166152, i32 noundef %.pre199)
  br i1 %80, label %.lr.ph._crit_edge, label %.thread98

.thread98:                                        ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %81 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %81, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %82 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %82, ptr %12, align 8
  %83 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %83, label %.lr.ph161, label %._crit_edge162

.lr.ph._crit_edge:                                ; preds = %.lr.ph, %79
  %.175 = phi i64 [ %78, %79 ], [ %.074151, %.lr.ph ]
  %.267 = phi i32 [ %.pre199, %79 ], [ %.166152, %.lr.ph ]
  %84 = call noundef zeroext i1 @_ZN22HighsSymmetryDetection20updateCellMembershipEiib(ptr noundef nonnull align 8 dereferenceable(720) %0, i32 noundef %.pre199, i32 noundef %.267, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %30, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !12

._crit_edge162:                                   ; preds = %.lr.ph161, %.thread98
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @_ZN14HighsHashTableIijE5clearEv(ptr noundef nonnull align 8 dereferenceable(40) %18)
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %24) #6
  store i32 %30, ptr %85, align 4, !tbaa !5
  %.not90163 = icmp slt i32 %.077.in150, %41
  br i1 %.not90163, label %.thread100, label %.lr.ph166

.lr.ph161:                                        ; preds = %.thread98, %.lr.ph161
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %88) #6
  store i8 0, ptr %89, align 1, !tbaa !9
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %91 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %91, label %.lr.ph161, label %._crit_edge162

.lr.ph166:                                        ; preds = %._crit_edge162, %.lr.ph166
  %.178164 = phi i32 [ %93, %.lr.ph166 ], [ %.077.in150, %._crit_edge162 ]
  %92 = call noundef zeroext i1 @_ZN22HighsSymmetryDetection20updateCellMembershipEiib(ptr noundef nonnull align 8 dereferenceable(720) %0, i32 noundef %.178164, i32 noundef %23, i1 noundef zeroext false)
  %93 = add nsw i32 %.178164, -1
  %.not90.not = icmp sgt i32 %.178164, %41
  br i1 %.not90.not, label %.lr.ph166, label %.thread100, !llvm.loop !13

._crit_edge.loopexit:                             ; preds = %.lr.ph._crit_edge
  %.pre197 = sext i32 %.267 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %67
  %.pre-phi198 = phi i64 [ %.pre197, %._crit_edge.loopexit ], [ %.pre-phi, %67 ]
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %.pre-phi198) #6
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = icmp eq i32 %95, %30
  br i1 %96, label %98, label %97

97:                                               ; preds = %._crit_edge
  call void @__assert_fail(ptr noundef nonnull @.str.63, ptr noundef nonnull @.str.52, i32 noundef 979, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN22HighsSymmetryDetection19partitionRefinementEv) #7
  unreachable

98:                                               ; preds = %32, %._crit_edge, %19
  %99 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br i1 %99, label %._crit_edge156, label %19

._crit_edge156:                                   ; preds = %98, %1
  %100 = getelementptr inbounds i8, ptr %0, i64 536
  br label %.thread100.sink.split

.thread100.sink.split:                            ; preds = %._crit_edge156, %._crit_edge160
  %.sink = phi ptr [ %18, %._crit_edge160 ], [ %100, %._crit_edge156 ]
  %.ph = phi i1 [ false, %._crit_edge160 ], [ true, %._crit_edge156 ]
  call void @_ZN14HighsHashTableIijE5clearEv(ptr noundef nonnull align 8 dereferenceable(40) %.sink)
  br label %.thread100

.thread100:                                       ; preds = %.lr.ph166, %.thread100.sink.split, %._crit_edge162
  %101 = phi i1 [ false, %._crit_edge162 ], [ %.ph, %.thread100.sink.split ], [ false, %.lr.ph166 ]
  ret i1 %101
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt9partitionIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZN22HighsSymmetryDetection19partitionRefinementEvE3$_0ET_S9_S9_T0_"(ptr, ptr, ptr) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_Z7pdqsortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZN22HighsSymmetryDetection19partitionRefinementEvE3$_1EvT_S9_T0_"(ptr, ptr, ptr) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14HighsHashTableIijE5clearEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 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 = { 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 #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 = { 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}


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