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

; 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.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.StabilizerOrbits = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", 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.__gnu_cxx::__normal_iterator.48" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.47" = type { ptr }
%class.anon.133 = type { ptr }
%struct.HighsSymmetries = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.51", %class.HighsHashTable.56, i32, i32 }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<HighsOrbitopeMatrix, std::allocator<HighsOrbitopeMatrix>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsOrbitopeMatrix, std::allocator<HighsOrbitopeMatrix>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsOrbitopeMatrix, std::allocator<HighsOrbitopeMatrix>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsOrbitopeMatrix, std::allocator<HighsOrbitopeMatrix>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.HighsHashTable.56 = type { %"class.std::unique_ptr.57", %"class.std::unique_ptr.25", i64, i64, i64 }
%"class.std::unique_ptr.57" = type { %"struct.std::__uniq_ptr_data.58" }
%"struct.std::__uniq_ptr_data.58" = type { %"class.std::__uniq_ptr_impl.59" }
%"class.std::__uniq_ptr_impl.59" = type { %"class.std::tuple.60" }
%"class.std::tuple.60" = type { %"struct.std::_Tuple_impl.61" }
%"struct.std::_Tuple_impl.61" = type { %"struct.std::_Head_base.64" }
%"struct.std::_Head_base.64" = 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 }
%struct.HighsDomainChange = type { double, i32, i32 }

@.str.52 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [56 x i8], align 1
@__PRETTY_FUNCTION__._ZN15HighsSymmetries23computeStabilizerOrbitsERK11HighsDomain = external hidden unnamed_addr constant [102 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

declare i32 @__gxx_personality_v0(...)

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

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

; 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) #2 align 2

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

; 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 noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(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
declare dso_local void @_ZN15HighsSymmetries11mergeOrbitsEii(ptr noundef nonnull align 8 dereferenceable(216), i32 noundef, i32 noundef) #1 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(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_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15HighsSymmetries23computeStabilizerOrbitsERK11HighsDomain(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(216) %1, ptr noundef nonnull align 8 dereferenceable(824) %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.StabilizerOrbits, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.48", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.48", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i8, align 1
  %25 = alloca ptr, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %36 = alloca %class.anon.133, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %40 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK11HighsDomain20getDomainChangeStackEv(ptr noundef nonnull align 8 dereferenceable(824) %41)
  store ptr %42, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK11HighsDomain21getBranchingPositionsEv(ptr noundef nonnull align 8 dereferenceable(824) %43)
  store ptr %44, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #6
  call void @_ZN16StabilizerOrbitsC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #6
  %45 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 2
  %46 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 0
  %47 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  invoke void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %47)
          to label %48 unwind label %59

48:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %49, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %52 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.48", ptr %13, i32 0, i32 0
  store ptr %51, ptr %52, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #6
  %55 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.48", ptr %14, i32 0, i32 0
  store ptr %54, ptr %55, align 8
  br label %56

56:                                               ; preds = %119, %48
  %57 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %57, label %63, label %58

58:                                               ; preds = %56
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %121

59:                                               ; preds = %3
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %10, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %11, align 4
  br label %396

63:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %65 = load i32, ptr %64, align 4, !tbaa !9
  store i32 %65, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load i32, ptr %16, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI17HighsDomainChangeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %68) #6
  %70 = getelementptr inbounds %struct.HighsDomainChange, ptr %69, i32 0, i32 1
  %71 = load i32, ptr %70, align 8, !tbaa !11
  store i32 %71, ptr %17, align 4, !tbaa !9
  %72 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 4
  %73 = load i32, ptr %17, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %74) #6
  %76 = load i32, ptr %75, align 4, !tbaa !9
  %77 = icmp eq i32 %76, -1
  br i1 %77, label %78, label %79

78:                                               ; preds = %63
  store i32 3, ptr %15, align 4
  br label %113

79:                                               ; preds = %63
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = load i32, ptr %17, align 4, !tbaa !9
  %82 = invoke noundef zeroext i8 @_ZNK11HighsDomain12variableTypeEi(ptr noundef nonnull align 8 dereferenceable(824) %80, i32 noundef %81)
          to label %83 unwind label %87

83:                                               ; preds = %79
  %84 = icmp ne i8 %82, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %83
  br label %92

86:                                               ; preds = %83
  call void @__assert_fail(ptr noundef @.str.55, ptr noundef @.str.52, i32 noundef 185, ptr noundef @__PRETTY_FUNCTION__._ZN15HighsSymmetries23computeStabilizerOrbitsERK11HighsDomain) #7
  unreachable

87:                                               ; preds = %105, %100, %79
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %10, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %396

91:                                               ; No predecessors!
  br label %92

92:                                               ; preds = %91, %85
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load i32, ptr %16, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI17HighsDomainChangeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %95) #6
  %97 = getelementptr inbounds %struct.HighsDomainChange, ptr %96, i32 0, i32 2
  %98 = load i32, ptr %97, align 4, !tbaa !15
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %105, label %100

100:                                              ; preds = %92
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load i32, ptr %17, align 4, !tbaa !9
  %103 = invoke noundef zeroext i1 @_ZNK11HighsDomain14isGlobalBinaryEi(ptr noundef nonnull align 8 dereferenceable(824) %101, i32 noundef %102)
          to label %104 unwind label %87

104:                                              ; preds = %100
  br i1 %103, label %112, label %105

105:                                              ; preds = %104, %92
  %106 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 2
  %107 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 4
  %108 = load i32, ptr %17, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %109) #6
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %106, ptr noundef nonnull align 4 dereferenceable(4) %110)
          to label %111 unwind label %87

111:                                              ; preds = %105
  br label %112

112:                                              ; preds = %111, %104
  store i32 0, ptr %15, align 4
  br label %113

113:                                              ; preds = %112, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  %114 = load i32, ptr %15, align 4
  switch i32 %114, label %116 [
    i32 0, label %115
  ]

115:                                              ; preds = %113
  store i32 0, ptr %15, align 4
  br label %116

116:                                              ; preds = %115, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %117 = load i32, ptr %15, align 4
  switch i32 %117, label %402 [
    i32 0, label %118
    i32 3, label %119
  ]

118:                                              ; preds = %116
  br label %119

119:                                              ; preds = %118, %116
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %56

121:                                              ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %122 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 0
  %123 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #6
  %124 = trunc i64 %123 to i32
  store i32 %124, ptr %18, align 4, !tbaa !9
  %125 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 2
  %126 = load i32, ptr %18, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef %127)
          to label %128 unwind label %150

128:                                              ; preds = %121
  %129 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 2
  %130 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %129) #6
  %131 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %19, i32 0, i32 0
  store ptr %130, ptr %131, align 8
  %132 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 2
  %133 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #6
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %20, i32 0, i32 0
  store ptr %133, ptr %134, align 8
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %19, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %20, i32 0, i32 0
  %138 = load ptr, ptr %137, align 8
  invoke void @_ZSt4iotaIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiEvT_S7_T0_(ptr %136, ptr %138, i32 noundef 0)
          to label %139 unwind label %150

139:                                              ; preds = %128
  %140 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 3
  %141 = load i32, ptr %18, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 1, ptr %21, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIiSaIiEE6assignEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %142, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %143 unwind label %154

143:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %232, %143
  %145 = load i32, ptr %22, align 4, !tbaa !9
  %146 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 8
  %147 = load i32, ptr %146, align 8, !tbaa !16
  %148 = icmp slt i32 %145, %147
  br i1 %148, label %158, label %149

149:                                              ; preds = %144
  store i32 4, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %235

150:                                              ; preds = %393, %323, %308, %235, %128, %121
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %10, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %11, align 4
  br label %395

154:                                              ; preds = %139
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %10, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %395

158:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %159 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 1
  %160 = call noundef ptr @_ZNSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %159) #6
  %161 = load i32, ptr %22, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 0
  %164 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %163) #6
  %165 = mul i64 %162, %164
  %166 = getelementptr inbounds i32, ptr %160, i64 %165
  store ptr %166, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  store i8 1, ptr %24, align 1, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %167 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 2
  store ptr %167, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %168 = load ptr, ptr %25, align 8, !tbaa !5
  %169 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %168) #6
  %170 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %26, i32 0, i32 0
  store ptr %169, ptr %170, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %171 = load ptr, ptr %25, align 8, !tbaa !5
  %172 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %171) #6
  %173 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %27, i32 0, i32 0
  store ptr %172, ptr %173, align 8
  br label %174

174:                                              ; preds = %196, %158
  %175 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  br i1 %175, label %177, label %176

176:                                              ; preds = %174
  store i32 7, ptr %15, align 4
  br label %198

177:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %178 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  %179 = load i32, ptr %178, align 4, !tbaa !9
  store i32 %179, ptr %28, align 4, !tbaa !9
  %180 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 0
  %181 = load i32, ptr %28, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %182) #6
  %184 = load i32, ptr %183, align 4, !tbaa !9
  %185 = load ptr, ptr %23, align 8, !tbaa !5
  %186 = load i32, ptr %28, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds i32, ptr %185, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !9
  %190 = icmp ne i32 %184, %189
  br i1 %190, label %191, label %192

191:                                              ; preds = %177
  store i8 0, ptr %24, align 1, !tbaa !40
  store i32 7, ptr %15, align 4
  br label %193

192:                                              ; preds = %177
  store i32 0, ptr %15, align 4
  br label %193

193:                                              ; preds = %192, %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  %194 = load i32, ptr %15, align 4
  switch i32 %194, label %198 [
    i32 0, label %195
  ]

195:                                              ; preds = %193
  br label %196

196:                                              ; preds = %195
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br label %174

198:                                              ; preds = %193, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %199

199:                                              ; preds = %198
  %200 = load i8, ptr %24, align 1, !tbaa !40, !range !42, !noundef !43
  %201 = trunc i8 %200 to i1
  br i1 %201, label %203, label %202

202:                                              ; preds = %199
  store i32 6, ptr %15, align 4
  br label %229

203:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %204

204:                                              ; preds = %221, %203
  %205 = load i32, ptr %29, align 4, !tbaa !9
  %206 = load i32, ptr %18, align 4, !tbaa !9
  %207 = icmp slt i32 %205, %206
  br i1 %207, label %209, label %208

208:                                              ; preds = %204
  store i32 9, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %228

209:                                              ; preds = %204
  %210 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 0
  %211 = load i32, ptr %29, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %210, i64 noundef %212) #6
  %214 = load i32, ptr %213, align 4, !tbaa !9
  %215 = load ptr, ptr %23, align 8, !tbaa !5
  %216 = load i32, ptr %29, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds i32, ptr %215, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !9
  invoke void @_ZN15HighsSymmetries11mergeOrbitsEii(ptr noundef nonnull align 8 dereferenceable(216) %40, i32 noundef %214, i32 noundef %219)
          to label %220 unwind label %224

220:                                              ; preds = %209
  br label %221

221:                                              ; preds = %220
  %222 = load i32, ptr %29, align 4, !tbaa !9
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %29, align 4, !tbaa !9
  br label %204, !llvm.loop !44

224:                                              ; preds = %209
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %10, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %395

228:                                              ; preds = %208
  store i32 0, ptr %15, align 4
  br label %229

229:                                              ; preds = %228, %202
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  %230 = load i32, ptr %15, align 4
  switch i32 %230, label %402 [
    i32 0, label %231
    i32 6, label %232
  ]

231:                                              ; preds = %229
  br label %232

232:                                              ; preds = %231, %229
  %233 = load i32, ptr %22, align 4, !tbaa !9
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %22, align 4, !tbaa !9
  br label %144, !llvm.loop !46

235:                                              ; preds = %149
  %236 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 2
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %236) #6
  %237 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 0
  %238 = load i32, ptr %18, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  invoke void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %239)
          to label %240 unwind label %150

240:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %241

241:                                              ; preds = %304, %240
  %242 = load i32, ptr %30, align 4, !tbaa !9
  %243 = load i32, ptr %18, align 4, !tbaa !9
  %244 = icmp slt i32 %242, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %241
  store i32 12, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %308

246:                                              ; preds = %241
  %247 = load ptr, ptr %6, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 0
  %249 = load i32, ptr %30, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %248, i64 noundef %250) #6
  %252 = load i32, ptr %251, align 4, !tbaa !9
  %253 = invoke noundef zeroext i8 @_ZNK11HighsDomain12variableTypeEi(ptr noundef nonnull align 8 dereferenceable(824) %247, i32 noundef %252)
          to label %254 unwind label %257

254:                                              ; preds = %246
  %255 = icmp eq i8 %253, 0
  br i1 %255, label %256, label %261

256:                                              ; preds = %254
  br label %304

257:                                              ; preds = %246
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %10, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %11, align 4
  br label %307

261:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %262 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 0
  %263 = load i32, ptr %30, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %262, i64 noundef %264) #6
  %266 = load i32, ptr %265, align 4, !tbaa !9
  %267 = invoke noundef i32 @_ZN15HighsSymmetries8getOrbitEi(ptr noundef nonnull align 8 dereferenceable(216) %40, i32 noundef %266)
          to label %268 unwind label %282

268:                                              ; preds = %261
  store i32 %267, ptr %31, align 4, !tbaa !9
  %269 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 3
  %270 = load i32, ptr %31, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %269, i64 noundef %271) #6
  %273 = load i32, ptr %272, align 4, !tbaa !9
  %274 = icmp eq i32 %273, 1
  br i1 %274, label %275, label %286

275:                                              ; preds = %268
  %276 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 2
  %277 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 0
  %278 = load i32, ptr %30, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %277, i64 noundef %279) #6
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %276, ptr noundef nonnull align 4 dereferenceable(4) %280)
          to label %281 unwind label %282

281:                                              ; preds = %275
  br label %303

282:                                              ; preds = %295, %286, %275, %261
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %10, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %307

286:                                              ; preds = %268
  %287 = load ptr, ptr %6, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 0
  %289 = load i32, ptr %30, align 4, !tbaa !9
  %290 = sext i32 %289 to i64
  %291 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef %290) #6
  %292 = load i32, ptr %291, align 4, !tbaa !9
  %293 = invoke noundef zeroext i1 @_ZNK11HighsDomain14isGlobalBinaryEi(ptr noundef nonnull align 8 dereferenceable(824) %287, i32 noundef %292)
          to label %294 unwind label %282

294:                                              ; preds = %286
  br i1 %293, label %295, label %302

295:                                              ; preds = %294
  %296 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 0
  %297 = getelementptr inbounds %struct.HighsSymmetries, ptr %40, i32 0, i32 0
  %298 = load i32, ptr %30, align 4, !tbaa !9
  %299 = sext i32 %298 to i64
  %300 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %297, i64 noundef %299) #6
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %296, ptr noundef nonnull align 4 dereferenceable(4) %300)
          to label %301 unwind label %282

301:                                              ; preds = %295
  br label %302

302:                                              ; preds = %301, %294
  br label %303

303:                                              ; preds = %302, %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %304

304:                                              ; preds = %303, %256
  %305 = load i32, ptr %30, align 4, !tbaa !9
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %30, align 4, !tbaa !9
  br label %241, !llvm.loop !47

307:                                              ; preds = %282, %257
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %395

308:                                              ; preds = %245
  %309 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 3
  store ptr %40, ptr %309, align 8, !tbaa !48
  %310 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 2
  %311 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %310) #6
  %312 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %32, i32 0, i32 0
  store ptr %311, ptr %312, align 8
  %313 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 2
  %314 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %313) #6
  %315 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %33, i32 0, i32 0
  store ptr %314, ptr %315, align 8
  %316 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %32, i32 0, i32 0
  %317 = load ptr, ptr %316, align 8
  %318 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %33, i32 0, i32 0
  %319 = load ptr, ptr %318, align 8
  invoke void @_Z7pdqsortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %317, ptr %319)
          to label %320 unwind label %150

320:                                              ; preds = %308
  %321 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 0
  %322 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %321) #6
  br i1 %322, label %393, label %323

323:                                              ; preds = %320
  %324 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 0
  %325 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %324) #6
  %326 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %34, i32 0, i32 0
  store ptr %325, ptr %326, align 8
  %327 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 0
  %328 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %327) #6
  %329 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %35, i32 0, i32 0
  store ptr %328, ptr %329, align 8
  %330 = getelementptr inbounds %class.anon.133, ptr %36, i32 0, i32 0
  store ptr %40, ptr %330, align 8, !tbaa !50
  %331 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %34, i32 0, i32 0
  %332 = load ptr, ptr %331, align 8
  %333 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %35, i32 0, i32 0
  %334 = load ptr, ptr %333, align 8
  %335 = getelementptr inbounds %class.anon.133, ptr %36, i32 0, i32 0
  %336 = load ptr, ptr %335, align 8
  invoke void @"_Z7pdqsortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZN15HighsSymmetries23computeStabilizerOrbitsERK11HighsDomainE3$_0EvT_SC_T0_"(ptr %332, ptr %334, ptr %336)
          to label %337 unwind label %150

337:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  %338 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 0
  %339 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %338) #6
  %340 = trunc i64 %339 to i32
  store i32 %340, ptr %37, align 4, !tbaa !9
  %341 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 1
  %342 = load i32, ptr %37, align 4, !tbaa !9
  %343 = add nsw i32 %342, 1
  %344 = sext i32 %343 to i64
  invoke void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %341, i64 noundef %344)
          to label %345 unwind label %353

345:                                              ; preds = %337
  %346 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store i32 0, ptr %38, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %346, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %347 unwind label %357

347:                                              ; preds = %345
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store i32 1, ptr %39, align 4, !tbaa !9
  br label %348

348:                                              ; preds = %386, %347
  %349 = load i32, ptr %39, align 4, !tbaa !9
  %350 = load i32, ptr %37, align 4, !tbaa !9
  %351 = icmp slt i32 %349, %350
  br i1 %351, label %361, label %352

352:                                              ; preds = %348
  store i32 15, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %389

353:                                              ; preds = %389, %337
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %10, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %11, align 4
  br label %392

357:                                              ; preds = %345
  %358 = landingpad { ptr, i32 }
          cleanup
  %359 = extractvalue { ptr, i32 } %358, 0
  store ptr %359, ptr %10, align 8
  %360 = extractvalue { ptr, i32 } %358, 1
  store i32 %360, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %392

361:                                              ; preds = %348
  %362 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 0
  %363 = load i32, ptr %39, align 4, !tbaa !9
  %364 = sext i32 %363 to i64
  %365 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %362, i64 noundef %364) #6
  %366 = load i32, ptr %365, align 4, !tbaa !9
  %367 = invoke noundef i32 @_ZN15HighsSymmetries8getOrbitEi(ptr noundef nonnull align 8 dereferenceable(216) %40, i32 noundef %366)
          to label %368 unwind label %381

368:                                              ; preds = %361
  %369 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 0
  %370 = load i32, ptr %39, align 4, !tbaa !9
  %371 = sub nsw i32 %370, 1
  %372 = sext i32 %371 to i64
  %373 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %369, i64 noundef %372) #6
  %374 = load i32, ptr %373, align 4, !tbaa !9
  %375 = invoke noundef i32 @_ZN15HighsSymmetries8getOrbitEi(ptr noundef nonnull align 8 dereferenceable(216) %40, i32 noundef %374)
          to label %376 unwind label %381

376:                                              ; preds = %368
  %377 = icmp ne i32 %367, %375
  br i1 %377, label %378, label %385

378:                                              ; preds = %376
  %379 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 1
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %379, ptr noundef nonnull align 4 dereferenceable(4) %39)
          to label %380 unwind label %381

380:                                              ; preds = %378
  br label %385

381:                                              ; preds = %378, %368, %361
  %382 = landingpad { ptr, i32 }
          cleanup
  %383 = extractvalue { ptr, i32 } %382, 0
  store ptr %383, ptr %10, align 8
  %384 = extractvalue { ptr, i32 } %382, 1
  store i32 %384, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %392

385:                                              ; preds = %380, %376
  br label %386

386:                                              ; preds = %385
  %387 = load i32, ptr %39, align 4, !tbaa !9
  %388 = add nsw i32 %387, 1
  store i32 %388, ptr %39, align 4, !tbaa !9
  br label %348, !llvm.loop !52

389:                                              ; preds = %352
  %390 = getelementptr inbounds %struct.StabilizerOrbits, ptr %9, i32 0, i32 1
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %390, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %391 unwind label %353

391:                                              ; preds = %389
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %393

392:                                              ; preds = %381, %357, %353
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %395

393:                                              ; preds = %391, %320
  invoke void @_ZSt11make_sharedIK16StabilizerOrbitsJS0_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(80) %9)
          to label %394 unwind label %150

394:                                              ; preds = %393
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @_ZN16StabilizerOrbitsD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void

395:                                              ; preds = %392, %307, %224, %154, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %396

396:                                              ; preds = %395, %87, %59
  call void @_ZN16StabilizerOrbitsD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %397

397:                                              ; preds = %396
  %398 = load ptr, ptr %10, align 8
  %399 = load i32, ptr %11, align 4
  %400 = insertvalue { ptr, i32 } poison, ptr %398, 0
  %401 = insertvalue { ptr, i32 } %400, i32 %399, 1
  resume { ptr, i32 } %401

402:                                              ; preds = %229, %116
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZNK11HighsDomain12variableTypeEi(ptr noundef nonnull align 8 dereferenceable(824), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK11HighsDomain14isGlobalBinaryEi(ptr noundef nonnull align 8 dereferenceable(824), i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt4iotaIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiEvT_S7_T0_(ptr, ptr, i32 noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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)) #2 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)) #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIK16StabilizerOrbitsJS0_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(80)) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = !{!12, !10, i64 8}
!12 = !{!"_ZTS17HighsDomainChange", !13, i64 0, !10, i64 8, !14, i64 12}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTS14HighsBoundType", !7, i64 0}
!15 = !{!12, !14, i64 12}
!16 = !{!17, !10, i64 208}
!17 = !{!"_ZTS15HighsSymmetries", !18, i64 0, !18, i64 24, !18, i64 48, !18, i64 72, !18, i64 96, !18, i64 120, !22, i64 144, !26, i64 168, !10, i64 208, !10, i64 212}
!18 = !{!"_ZTSSt6vectorIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt6vectorI19HighsOrbitopeMatrixSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseI19HighsOrbitopeMatrixSaIS0_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI19HighsOrbitopeMatrixSaIS0_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI19HighsOrbitopeMatrixSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTS14HighsHashTableIiiE", !27, i64 0, !33, i64 8, !39, i64 16, !39, i64 24, !39, i64 32}
!27 = !{!"_ZTSSt10unique_ptrI19HighsHashTableEntryIiiEN14HighsHashTableIiiE12OpNewDeleterEE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_dataI19HighsHashTableEntryIiiEN14HighsHashTableIiiE12OpNewDeleterELb1ELb1EE", !29, i64 0}
!29 = !{!"_ZTSSt15__uniq_ptr_implI19HighsHashTableEntryIiiEN14HighsHashTableIiiE12OpNewDeleterEE", !30, i64 0}
!30 = !{!"_ZTSSt5tupleIJP19HighsHashTableEntryIiiEN14HighsHashTableIiiE12OpNewDeleterEEE", !31, i64 0}
!31 = !{!"_ZTSSt11_Tuple_implILm0EJP19HighsHashTableEntryIiiEN14HighsHashTableIiiE12OpNewDeleterEEE", !32, i64 0}
!32 = !{!"_ZTSSt10_Head_baseILm0EP19HighsHashTableEntryIiiELb0EE", !6, i64 0}
!33 = !{!"_ZTSSt10unique_ptrIA_hSt14default_deleteIS0_EE", !34, i64 0}
!34 = !{!"_ZTSSt15__uniq_ptr_dataIhSt14default_deleteIA_hELb1ELb1EE", !35, i64 0}
!35 = !{!"_ZTSSt15__uniq_ptr_implIhSt14default_deleteIA_hEE", !36, i64 0}
!36 = !{!"_ZTSSt5tupleIJPhSt14default_deleteIA_hEEE", !37, i64 0}
!37 = !{!"_ZTSSt11_Tuple_implILm0EJPhSt14default_deleteIA_hEEE", !38, i64 0}
!38 = !{!"_ZTSSt10_Head_baseILm0EPhLb0EE", !6, i64 0}
!39 = !{!"long", !7, i64 0}
!40 = !{!41, !41, i64 0}
!41 = !{!"bool", !7, i64 0}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = distinct !{!46, !45}
!47 = distinct !{!47, !45}
!48 = !{!49, !6, i64 72}
!49 = !{!"_ZTS16StabilizerOrbits", !18, i64 0, !18, i64 24, !18, i64 48, !6, i64 72}
!50 = !{!51, !6, i64 0}
!51 = !{!"_ZTSZN15HighsSymmetries23computeStabilizerOrbitsERK11HighsDomainE3$_0", !6, i64 0}
!52 = distinct !{!52, !45}


; 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.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.StabilizerOrbits = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", 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.__gnu_cxx::__normal_iterator.48" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.47" = type { ptr }

@.str.52 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [56 x i8], align 1
@__PRETTY_FUNCTION__._ZN15HighsSymmetries23computeStabilizerOrbitsERK11HighsDomain = external hidden unnamed_addr constant [102 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

declare i32 @__gxx_personality_v0(...)

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

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

; 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 #2 align 2

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

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

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

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

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

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

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

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

; 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 #1 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(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_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15HighsSymmetries23computeStabilizerOrbitsERK11HighsDomain(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(216) %1, ptr noundef nonnull align 8 dereferenceable(824) %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.StabilizerOrbits, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.48", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.48", align 8
  %7 = alloca i32, align 4
  %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 i32, align 4
  %12 = alloca i32, align 4
  %13 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK11HighsDomain20getDomainChangeStackEv(ptr noundef nonnull align 8 dereferenceable(824) %2)
  %14 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK11HighsDomain21getBranchingPositionsEv(ptr noundef nonnull align 8 dereferenceable(824) %2)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #7
  call void @_ZN16StabilizerOrbitsC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #7
  %15 = getelementptr inbounds i8, ptr %4, i64 48
  %16 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  invoke void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %16)
          to label %17 unwind label %26

17:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %18 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  store ptr %18, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %19 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  store ptr %19, ptr %6, align 8
  %20 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %20, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %17
  %21 = getelementptr inbounds i8, ptr %1, i64 96
  br label %28

._crit_edge:                                      ; preds = %54, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %22 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %23 = trunc i64 %22 to i32
  %24 = getelementptr inbounds i8, ptr %1, i64 48
  %sext = shl i64 %22, 32
  %25 = ashr exact i64 %sext, 32
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %25)
          to label %57 unwind label %68

26:                                               ; preds = %3
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %172

28:                                               ; preds = %.lr.ph, %54
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI17HighsDomainChangeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %31) #7
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = load i32, ptr %33, align 8, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %35) #7
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = icmp eq i32 %37, -1
  br i1 %38, label %54, label %39

39:                                               ; preds = %28
  %40 = invoke noundef zeroext i8 @_ZNK11HighsDomain12variableTypeEi(ptr noundef nonnull align 8 dereferenceable(824) %2, i32 noundef %34)
          to label %41 unwind label %43

41:                                               ; preds = %39
  %.not75 = icmp eq i8 %40, 0
  br i1 %.not75, label %42, label %45

42:                                               ; preds = %41
  call void @__assert_fail(ptr noundef nonnull @.str.55, ptr noundef nonnull @.str.52, i32 noundef 185, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN15HighsSymmetries23computeStabilizerOrbitsERK11HighsDomain) #8
  unreachable

43:                                               ; preds = %52, %39
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %172

45:                                               ; preds = %41
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI17HighsDomainChangeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %31) #7
  %47 = getelementptr inbounds i8, ptr %46, i64 12
  %48 = load i32, ptr %47, align 4, !tbaa !13
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %52, label %50

50:                                               ; preds = %45
  %51 = call noundef zeroext i1 @_ZNK11HighsDomain14isGlobalBinaryEi(ptr noundef nonnull align 8 dereferenceable(824) %2, i32 noundef %34)
  br i1 %51, label %54, label %52

52:                                               ; preds = %50, %45
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %35) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(4) %53)
          to label %54 unwind label %43

54:                                               ; preds = %50, %52, %28
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %56, label %28, label %._crit_edge

57:                                               ; preds = %._crit_edge
  %58 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  %59 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @_ZSt4iotaIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiEvT_S7_T0_(ptr %58, ptr %59, i32 noundef 0)
  %60 = getelementptr inbounds i8, ptr %1, i64 72
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  store i32 1, ptr %7, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE6assignEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %25, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %61 unwind label %70

61:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  %62 = getelementptr inbounds i8, ptr %1, i64 208
  %63 = load i32, ptr %62, align 8, !tbaa !14
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %.lr.ph86, label %._crit_edge87

.lr.ph86:                                         ; preds = %61
  %65 = getelementptr inbounds i8, ptr %1, i64 24
  %66 = icmp slt i32 %23, 1
  %smax = call i32 @llvm.smax.i32(i32 %23, i32 1)
  %wide.trip.count = zext nneg i32 %smax to i64
  br label %72

._crit_edge87:                                    ; preds = %.loopexit, %61
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  invoke void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %25)
          to label %.preheader unwind label %68

.preheader:                                       ; preds = %._crit_edge87
  %67 = icmp sgt i32 %23, 0
  br i1 %67, label %.lr.ph89.preheader, label %._crit_edge90

.lr.ph89.preheader:                               ; preds = %.preheader
  %wide.trip.count104 = and i64 %22, 2147483647
  br label %.lr.ph89

68:                                               ; preds = %170, %133, %._crit_edge90, %._crit_edge87, %._crit_edge
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %172

70:                                               ; preds = %57
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  br label %172

72:                                               ; preds = %.lr.ph86, %.loopexit
  %indvars.iv98 = phi i64 [ 0, %.lr.ph86 ], [ %indvars.iv.next99, %.loopexit ]
  %73 = call noundef ptr @_ZNSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #7
  %74 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %75 = mul i64 %74, %indvars.iv98
  %76 = getelementptr inbounds i32, ptr %73, i64 %75
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %77 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  store ptr %77, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %78 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  store ptr %78, ptr %9, align 8
  %79 = 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) #7
  br i1 %79, label %.lr.ph81, label %.critedge

.lr.ph81:                                         ; preds = %72, %87
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %82) #7
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = getelementptr inbounds i32, ptr %76, i64 %82
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %.not72 = icmp eq i32 %84, %86
  br i1 %.not72, label %87, label %90

87:                                               ; preds = %.lr.ph81
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %89 = 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) #7
  br i1 %89, label %.lr.ph81, label %.critedge

90:                                               ; preds = %.lr.ph81
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %.loopexit

.critedge:                                        ; preds = %87, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br i1 %66, label %.loopexit, label %.lr.ph83

.lr.ph83:                                         ; preds = %.critedge, %95
  %indvars.iv = phi i64 [ %indvars.iv.next, %95 ], [ 0, %.critedge ]
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #7
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv
  %94 = load i32, ptr %93, align 4, !tbaa !5
  invoke void @_ZN15HighsSymmetries11mergeOrbitsEii(ptr noundef nonnull align 8 dereferenceable(216) %1, i32 noundef %92, i32 noundef %94)
          to label %95 unwind label %96

95:                                               ; preds = %.lr.ph83
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph83, !llvm.loop !39

96:                                               ; preds = %.lr.ph83
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %172

.loopexit:                                        ; preds = %95, %90, %.critedge
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %98 = load i32, ptr %62, align 8, !tbaa !14
  %99 = sext i32 %98 to i64
  %100 = icmp slt i64 %indvars.iv.next99, %99
  br i1 %100, label %72, label %._crit_edge87, !llvm.loop !41

._crit_edge90:                                    ; preds = %130, %.preheader
  %101 = getelementptr inbounds i8, ptr %4, i64 72
  store ptr %1, ptr %101, align 8, !tbaa !42
  %102 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  %103 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  invoke void @_Z7pdqsortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %102, ptr %103)
          to label %131 unwind label %68

.lr.ph89:                                         ; preds = %.lr.ph89.preheader, %130
  %indvars.iv101 = phi i64 [ 0, %.lr.ph89.preheader ], [ %indvars.iv.next102, %130 ]
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv101) #7
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = invoke noundef zeroext i8 @_ZNK11HighsDomain12variableTypeEi(ptr noundef nonnull align 8 dereferenceable(824) %2, i32 noundef %105)
          to label %107 unwind label %109

107:                                              ; preds = %.lr.ph89
  %108 = icmp eq i8 %106, 0
  br i1 %108, label %130, label %111

109:                                              ; preds = %.lr.ph89
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %172

111:                                              ; preds = %107
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv101) #7
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = invoke noundef i32 @_ZN15HighsSymmetries8getOrbitEi(ptr noundef nonnull align 8 dereferenceable(216) %1, i32 noundef %113)
          to label %115 unwind label %121

115:                                              ; preds = %111
  %116 = sext i32 %114 to i64
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %116) #7
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = icmp eq i32 %118, 1
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv101) #7
  br i1 %119, label %.invoke, label %123

121:                                              ; preds = %.invoke, %111
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %172

123:                                              ; preds = %115
  %124 = load i32, ptr %120, align 4, !tbaa !5
  %125 = call noundef zeroext i1 @_ZNK11HighsDomain14isGlobalBinaryEi(ptr noundef nonnull align 8 dereferenceable(824) %2, i32 noundef %124)
  br i1 %125, label %126, label %130

126:                                              ; preds = %123
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv101) #7
  br label %.invoke

.invoke:                                          ; preds = %115, %126
  %128 = phi ptr [ %4, %126 ], [ %15, %115 ]
  %129 = phi ptr [ %127, %126 ], [ %120, %115 ]
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %128, ptr noundef nonnull align 4 dereferenceable(4) %129)
          to label %130 unwind label %121

130:                                              ; preds = %.invoke, %123, %107
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %exitcond105.not = icmp eq i64 %indvars.iv.next102, %wide.trip.count104
  br i1 %exitcond105.not, label %._crit_edge90, label %.lr.ph89, !llvm.loop !44

131:                                              ; preds = %._crit_edge90
  %132 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br i1 %132, label %170, label %133

133:                                              ; preds = %131
  %134 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %135 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  invoke void @"_Z7pdqsortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZN15HighsSymmetries23computeStabilizerOrbitsERK11HighsDomainE3$_0EvT_SC_T0_"(ptr %134, ptr %135, ptr nonnull %1)
          to label %136 unwind label %68

136:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %137 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %138 = trunc i64 %137 to i32
  store i32 %138, ptr %10, align 4, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %4, i64 24
  %140 = shl i64 %137, 32
  %sext68 = add i64 %140, 4294967296
  %141 = ashr exact i64 %sext68, 32
  invoke void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef %141)
          to label %142 unwind label %145

142:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %143 unwind label %147

143:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  store i32 1, ptr %12, align 4, !tbaa !5
  %144 = icmp sgt i32 %138, 1
  br i1 %144, label %.lr.ph93, label %._crit_edge94

._crit_edge94:                                    ; preds = %164, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %168 unwind label %145

145:                                              ; preds = %._crit_edge94, %136
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %169

147:                                              ; preds = %142
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  br label %169

.lr.ph93:                                         ; preds = %143, %164
  %storemerge91 = phi i32 [ %166, %164 ], [ 1, %143 ]
  %149 = sext i32 %storemerge91 to i64
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %149) #7
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = invoke noundef i32 @_ZN15HighsSymmetries8getOrbitEi(ptr noundef nonnull align 8 dereferenceable(216) %1, i32 noundef %151)
          to label %153 unwind label %162

153:                                              ; preds = %.lr.ph93
  %154 = load i32, ptr %12, align 4, !tbaa !5
  %155 = add nsw i32 %154, -1
  %156 = sext i32 %155 to i64
  %157 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %156) #7
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = invoke noundef i32 @_ZN15HighsSymmetries8getOrbitEi(ptr noundef nonnull align 8 dereferenceable(216) %1, i32 noundef %158)
          to label %160 unwind label %162

160:                                              ; preds = %153
  %.not = icmp eq i32 %152, %159
  br i1 %.not, label %164, label %161

161:                                              ; preds = %160
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %164 unwind label %162

162:                                              ; preds = %161, %153, %.lr.ph93
  %163 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %169

164:                                              ; preds = %160, %161
  %165 = load i32, ptr %12, align 4, !tbaa !5
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %12, align 4, !tbaa !5
  %167 = icmp slt i32 %166, %138
  br i1 %167, label %.lr.ph93, label %._crit_edge94, !llvm.loop !45

168:                                              ; preds = %._crit_edge94
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %170

169:                                              ; preds = %162, %147, %145
  %.pn = phi { ptr, i32 } [ %163, %162 ], [ %146, %145 ], [ %148, %147 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %172

170:                                              ; preds = %168, %131
  invoke void @_ZSt11make_sharedIK16StabilizerOrbitsJS0_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %171 unwind label %68

171:                                              ; preds = %170
  call void @_ZN16StabilizerOrbitsD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #7
  ret void

172:                                              ; preds = %68, %70, %96, %169, %121, %109, %43, %26
  %.pn76 = phi { ptr, i32 } [ %44, %43 ], [ %27, %26 ], [ %97, %96 ], [ %69, %68 ], [ %.pn, %169 ], [ %71, %70 ], [ %122, %121 ], [ %110, %109 ]
  call void @_ZN16StabilizerOrbitsD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn76
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZNK11HighsDomain12variableTypeEi(ptr noundef nonnull align 8 dereferenceable(824), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt4iotaIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiEvT_S7_T0_(ptr, ptr, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 #2 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 #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIK16StabilizerOrbitsJS0_EESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #5

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { 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 = !{!10, !6, i64 8}
!10 = !{!"_ZTS17HighsDomainChange", !11, i64 0, !6, i64 8, !12, i64 12}
!11 = !{!"double", !7, i64 0}
!12 = !{!"_ZTS14HighsBoundType", !7, i64 0}
!13 = !{!10, !12, i64 12}
!14 = !{!15, !6, i64 208}
!15 = !{!"_ZTS15HighsSymmetries", !16, i64 0, !16, i64 24, !16, i64 48, !16, i64 72, !16, i64 96, !16, i64 120, !21, i64 144, !25, i64 168, !6, i64 208, !6, i64 212}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!"_ZTSSt6vectorI19HighsOrbitopeMatrixSaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseI19HighsOrbitopeMatrixSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI19HighsOrbitopeMatrixSaIS0_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI19HighsOrbitopeMatrixSaIS0_EE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!25 = !{!"_ZTS14HighsHashTableIiiE", !26, i64 0, !32, i64 8, !38, i64 16, !38, i64 24, !38, i64 32}
!26 = !{!"_ZTSSt10unique_ptrI19HighsHashTableEntryIiiEN14HighsHashTableIiiE12OpNewDeleterEE", !27, i64 0}
!27 = !{!"_ZTSSt15__uniq_ptr_dataI19HighsHashTableEntryIiiEN14HighsHashTableIiiE12OpNewDeleterELb1ELb1EE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_implI19HighsHashTableEntryIiiEN14HighsHashTableIiiE12OpNewDeleterEE", !29, i64 0}
!29 = !{!"_ZTSSt5tupleIJP19HighsHashTableEntryIiiEN14HighsHashTableIiiE12OpNewDeleterEEE", !30, i64 0}
!30 = !{!"_ZTSSt11_Tuple_implILm0EJP19HighsHashTableEntryIiiEN14HighsHashTableIiiE12OpNewDeleterEEE", !31, i64 0}
!31 = !{!"_ZTSSt10_Head_baseILm0EP19HighsHashTableEntryIiiELb0EE", !20, i64 0}
!32 = !{!"_ZTSSt10unique_ptrIA_hSt14default_deleteIS0_EE", !33, i64 0}
!33 = !{!"_ZTSSt15__uniq_ptr_dataIhSt14default_deleteIA_hELb1ELb1EE", !34, i64 0}
!34 = !{!"_ZTSSt15__uniq_ptr_implIhSt14default_deleteIA_hEE", !35, i64 0}
!35 = !{!"_ZTSSt5tupleIJPhSt14default_deleteIA_hEEE", !36, i64 0}
!36 = !{!"_ZTSSt11_Tuple_implILm0EJPhSt14default_deleteIA_hEEE", !37, i64 0}
!37 = !{!"_ZTSSt10_Head_baseILm0EPhLb0EE", !20, i64 0}
!38 = !{!"long", !7, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}
!42 = !{!43, !20, i64 72}
!43 = !{!"_ZTS16StabilizerOrbits", !16, i64 0, !16, i64 24, !16, i64 48, !20, i64 72}
!44 = distinct !{!44, !40}
!45 = distinct !{!45, !40}


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