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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.HighsCliqueTable::CliqueVar" = type { i32 }
%"struct.HighsCliqueTable::Substitution" = type { i32, %"struct.HighsCliqueTable::CliqueVar" }
%"struct.HighsDomain::Reason" = type { i32, i32 }
%class.anon.412 = type { ptr, ptr, ptr, ptr, ptr }
%class.HighsCliqueTable = type { %"class.std::vector", %"class.std::vector.3", %"class.std::vector.8", %class.HighsHashTable, %"class.std::set", %"class.std::vector.26", %"class.std::vector.31", %"class.std::vector.26", %"class.std::vector", %"class.std::vector.26", %"class.std::vector.36", %"class.std::vector.26", %"class.std::vector.41", %"class.std::vector.46", %"class.std::vector.46", %"class.std::vector.51", %"class.std::vector.26", %class.HighsRandom, i32, i32, i32, i32, i8, i64 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<HighsHashTree<int, int>, std::allocator<HighsHashTree<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsHashTree<int, int>, std::allocator<HighsHashTree<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsHashTree<int, int>, std::allocator<HighsHashTree<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsHashTree<int, int>, std::allocator<HighsHashTree<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<HighsHashTree<int>, std::allocator<HighsHashTree<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsHashTree<int>, std::allocator<HighsHashTree<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsHashTree<int>, std::allocator<HighsHashTree<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsHashTree<int>, std::allocator<HighsHashTree<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.HighsHashTable = type { %"class.std::unique_ptr", %"class.std::unique_ptr.15", i64, i64, i64 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.14" }
%"struct.std::_Head_base.14" = type { ptr }
%"class.std::unique_ptr.15" = type { %"struct.std::__uniq_ptr_data.16" }
%"struct.std::__uniq_ptr_data.16" = type { %"class.std::__uniq_ptr_impl.17" }
%"class.std::__uniq_ptr_impl.17" = type { %"class.std::tuple.18" }
%"class.std::tuple.18" = type { %"struct.std::_Tuple_impl.19" }
%"struct.std::_Tuple_impl.19" = type { %"struct.std::_Head_base.22" }
%"struct.std::_Head_base.22" = type { ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<HighsCliqueTable::Clique, std::allocator<HighsCliqueTable::Clique>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsCliqueTable::Clique, std::allocator<HighsCliqueTable::Clique>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsCliqueTable::Clique, std::allocator<HighsCliqueTable::Clique>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsCliqueTable::Clique, std::allocator<HighsCliqueTable::Clique>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<HighsCliqueTable::CliqueVar, std::allocator<HighsCliqueTable::CliqueVar>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsCliqueTable::CliqueVar, std::allocator<HighsCliqueTable::CliqueVar>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsCliqueTable::CliqueVar, std::allocator<HighsCliqueTable::CliqueVar>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsCliqueTable::CliqueVar, std::allocator<HighsCliqueTable::CliqueVar>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<HighsCliqueTable::Substitution, std::allocator<HighsCliqueTable::Substitution>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsCliqueTable::Substitution, std::allocator<HighsCliqueTable::Substitution>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsCliqueTable::Substitution, std::allocator<HighsCliqueTable::Substitution>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsCliqueTable::Substitution, std::allocator<HighsCliqueTable::Substitution>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<std::pair<int, HighsCliqueTable::CliqueVar>, std::allocator<std::pair<int, HighsCliqueTable::CliqueVar>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, HighsCliqueTable::CliqueVar>, std::allocator<std::pair<int, HighsCliqueTable::CliqueVar>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, HighsCliqueTable::CliqueVar>, std::allocator<std::pair<int, HighsCliqueTable::CliqueVar>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, HighsCliqueTable::CliqueVar>, std::allocator<std::pair<int, HighsCliqueTable::CliqueVar>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.HighsRandom = type { i64 }
%class.HighsDomain = type { %"class.std::vector.46", %"class.std::vector.26", %"class.std::vector.62", %"class.std::vector.67", %"class.std::vector.72", %"class.std::vector.77", %"class.std::vector.82", %"class.std::vector.82", %"class.std::vector.26", %"class.std::vector.26", %"class.std::vector.87", %"class.std::vector.46", %"class.std::vector.26", %"struct.HighsDomain::ObjectivePropagation", ptr, %"class.std::deque", %"class.std::deque.105", i8, %"struct.HighsDomain::Reason", i32, %"class.std::vector.26", %"class.std::vector.26", %"class.std::vector.26", %class.HighsHashTable.111, i8, %"class.std::vector.87", %"class.std::vector.87" }
%"class.std::vector.62" = type { %"struct.std::_Vector_base.63" }
%"struct.std::_Vector_base.63" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.67" = type { %"struct.std::_Vector_base.68" }
%"struct.std::_Vector_base.68" = type { %"struct.std::_Vector_base<HighsDomainChange, std::allocator<HighsDomainChange>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsDomainChange, std::allocator<HighsDomainChange>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsDomainChange, std::allocator<HighsDomainChange>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsDomainChange, std::allocator<HighsDomainChange>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.72" = type { %"struct.std::_Vector_base.73" }
%"struct.std::_Vector_base.73" = type { %"struct.std::_Vector_base<HighsDomain::Reason, std::allocator<HighsDomain::Reason>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsDomain::Reason, std::allocator<HighsDomain::Reason>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsDomain::Reason, std::allocator<HighsDomain::Reason>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsDomain::Reason, std::allocator<HighsDomain::Reason>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.77" = type { %"struct.std::_Vector_base.78" }
%"struct.std::_Vector_base.78" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.82" = type { %"struct.std::_Vector_base.83" }
%"struct.std::_Vector_base.83" = type { %"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HighsDomain::ObjectivePropagation" = type { ptr, ptr, ptr, %class.HighsCDouble, i32, double, i8, %"class.std::vector.92", %"class.std::vector.62", %"class.std::vector.87", %"class.std::vector.97" }
%class.HighsCDouble = type { double, double }
%"class.std::vector.92" = type { %"struct.std::_Vector_base.93" }
%"struct.std::_Vector_base.93" = type { %"struct.std::_Vector_base<HighsDomain::ObjectivePropagation::ObjectiveContribution, std::allocator<HighsDomain::ObjectivePropagation::ObjectiveContribution>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsDomain::ObjectivePropagation::ObjectiveContribution, std::allocator<HighsDomain::ObjectivePropagation::ObjectiveContribution>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsDomain::ObjectivePropagation::ObjectiveContribution, std::allocator<HighsDomain::ObjectivePropagation::ObjectiveContribution>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsDomain::ObjectivePropagation::ObjectiveContribution, std::allocator<HighsDomain::ObjectivePropagation::ObjectiveContribution>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.97" = type { %"struct.std::_Vector_base.98" }
%"struct.std::_Vector_base.98" = type { %"struct.std::_Vector_base<HighsDomain::ObjectivePropagation::PartitionCliqueData, std::allocator<HighsDomain::ObjectivePropagation::PartitionCliqueData>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsDomain::ObjectivePropagation::PartitionCliqueData, std::allocator<HighsDomain::ObjectivePropagation::PartitionCliqueData>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsDomain::ObjectivePropagation::PartitionCliqueData, std::allocator<HighsDomain::ObjectivePropagation::PartitionCliqueData>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsDomain::ObjectivePropagation::PartitionCliqueData, std::allocator<HighsDomain::ObjectivePropagation::PartitionCliqueData>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<HighsDomain::CutpoolPropagation, std::allocator<HighsDomain::CutpoolPropagation>>::_Deque_impl" }
%"struct.std::_Deque_base<HighsDomain::CutpoolPropagation, std::allocator<HighsDomain::CutpoolPropagation>>::_Deque_impl" = type { %"struct.std::_Deque_base<HighsDomain::CutpoolPropagation, std::allocator<HighsDomain::CutpoolPropagation>>::_Deque_impl_data" }
%"struct.std::_Deque_base<HighsDomain::CutpoolPropagation, std::allocator<HighsDomain::CutpoolPropagation>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::deque.105" = type { %"class.std::_Deque_base.106" }
%"class.std::_Deque_base.106" = type { %"struct.std::_Deque_base<HighsDomain::ConflictPoolPropagation, std::allocator<HighsDomain::ConflictPoolPropagation>>::_Deque_impl" }
%"struct.std::_Deque_base<HighsDomain::ConflictPoolPropagation, std::allocator<HighsDomain::ConflictPoolPropagation>>::_Deque_impl" = type { %"struct.std::_Deque_base<HighsDomain::ConflictPoolPropagation, std::allocator<HighsDomain::ConflictPoolPropagation>>::_Deque_impl_data" }
%"struct.std::_Deque_base<HighsDomain::ConflictPoolPropagation, std::allocator<HighsDomain::ConflictPoolPropagation>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.110", %"struct.std::_Deque_iterator.110" }
%"struct.std::_Deque_iterator.110" = type { ptr, ptr, ptr, ptr }
%class.HighsHashTable.111 = type { %"class.std::unique_ptr.112", %"class.std::unique_ptr.15", i64, i64, i64 }
%"class.std::unique_ptr.112" = type { %"struct.std::__uniq_ptr_data.113" }
%"struct.std::__uniq_ptr_data.113" = type { %"class.std::__uniq_ptr_impl.114" }
%"class.std::__uniq_ptr_impl.114" = type { %"class.std::tuple.115" }
%"class.std::tuple.115" = type { %"struct.std::_Tuple_impl.116" }
%"struct.std::_Tuple_impl.116" = type { %"struct.std::_Head_base.119" }
%"struct.std::_Head_base.119" = type { ptr }
%"class.std::vector.87" = type { %"struct.std::_Vector_base.88" }
%"struct.std::_Vector_base.88" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.52 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__._ZN16HighsCliqueTable15addImplicationsER11HighsDomainii = external hidden unnamed_addr constant [74 x i8], align 1

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK16HighsCliqueTable9CliqueVar10complementEv(ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16HighsCliqueTable9CliqueVarC2Eii(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11HighsDomain11changeBoundE14HighsBoundTypeidNS_6ReasonE(ptr noundef nonnull align 8 dereferenceable(824), i32 noundef, i32 noundef, double noundef, i64) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16HighsCliqueTable15addImplicationsER11HighsDomainii(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef nonnull align 8 dereferenceable(824) %1, i32 noundef %2, i32 noundef %3) #4 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.HighsCliqueTable::CliqueVar", align 4
  %10 = alloca %"struct.HighsCliqueTable::Substitution", align 4
  %11 = alloca %"struct.HighsCliqueTable::CliqueVar", align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.HighsDomain::Reason", align 4
  %14 = alloca %"struct.HighsDomain::Reason", align 4
  %15 = alloca %class.anon.412, align 8
  %16 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %17 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %18 = load i32, ptr %7, align 4, !tbaa !9
  %19 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN16HighsCliqueTable9CliqueVarC2Eii(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %18, i32 noundef %19)
  br label %20

20:                                               ; preds = %114, %112, %4
  %21 = getelementptr inbounds %class.HighsCliqueTable, ptr %17, i32 0, i32 9
  %22 = load i32, ptr %9, align 4
  %23 = and i32 %22, 2147483647
  %24 = zext i32 %23 to i64
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %24) #5
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %115

28:                                               ; preds = %20
  %29 = getelementptr inbounds %class.HighsCliqueTable, ptr %17, i32 0, i32 10
  %30 = call noundef i64 @_ZNKSt6vectorIN16HighsCliqueTable12SubstitutionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  %31 = trunc i64 %30 to i32
  %32 = getelementptr inbounds %class.HighsCliqueTable, ptr %17, i32 0, i32 9
  %33 = load i32, ptr %9, align 4
  %34 = and i32 %33, 2147483647
  %35 = zext i32 %34 to i64
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %35) #5
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = sub nsw i32 %37, 1
  %39 = icmp sgt i32 %31, %38
  br i1 %39, label %40, label %41

40:                                               ; preds = %28
  br label %43

41:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.59, ptr noundef @.str.52, i32 noundef 1853, ptr noundef @__PRETTY_FUNCTION__._ZN16HighsCliqueTable15addImplicationsER11HighsDomainii) #6
  unreachable

42:                                               ; No predecessors!
  br label %43

43:                                               ; preds = %42, %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %44 = getelementptr inbounds %class.HighsCliqueTable, ptr %17, i32 0, i32 10
  %45 = getelementptr inbounds %class.HighsCliqueTable, ptr %17, i32 0, i32 9
  %46 = load i32, ptr %9, align 4
  %47 = and i32 %46, 2147483647
  %48 = zext i32 %47 to i64
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %48) #5
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = sub nsw i32 %50, 1
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN16HighsCliqueTable12SubstitutionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %52) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %53, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %54 = load i32, ptr %9, align 4
  %55 = lshr i32 %54, 31
  %56 = icmp eq i32 %55, 1
  br i1 %56, label %57, label %59

57:                                               ; preds = %43
  %58 = getelementptr inbounds %"struct.HighsCliqueTable::Substitution", ptr %10, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %58, i64 4, i1 false), !tbaa.struct !13
  br label %63

59:                                               ; preds = %43
  %60 = getelementptr inbounds %"struct.HighsCliqueTable::Substitution", ptr %10, i32 0, i32 1
  %61 = call i32 @_ZNK16HighsCliqueTable9CliqueVar10complementEv(ptr noundef nonnull align 4 dereferenceable(4) %60)
  %62 = getelementptr inbounds %"struct.HighsCliqueTable::CliqueVar", ptr %11, i32 0, i32 0
  store i32 %61, ptr %62, align 4
  br label %63

63:                                               ; preds = %59, %57
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %11, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %64 = load i32, ptr %9, align 4
  %65 = lshr i32 %64, 31
  %66 = icmp eq i32 %65, 1
  br i1 %66, label %67, label %89

67:                                               ; preds = %63
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %class.HighsDomain, ptr %68, i32 0, i32 25
  %70 = load i32, ptr %9, align 4
  %71 = and i32 %70, 2147483647
  %72 = zext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %72) #5
  %74 = load double, ptr %73, align 8, !tbaa !14
  %75 = fcmp oeq double %74, 1.000000e+00
  br i1 %75, label %76, label %77

76:                                               ; preds = %67
  store i32 2, ptr %12, align 4
  br label %112, !llvm.loop !16

77:                                               ; preds = %67
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = load i32, ptr %9, align 4
  %80 = and i32 %79, 2147483647
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = load i32, ptr %8, align 4, !tbaa !9
  %83 = call i64 @_ZN11HighsDomain6Reason11cliqueTableEii(i32 noundef %81, i32 noundef %82)
  store i64 %83, ptr %13, align 4
  %84 = load i64, ptr %13, align 4
  call void @_ZN11HighsDomain11changeBoundE14HighsBoundTypeidNS_6ReasonE(ptr noundef nonnull align 8 dereferenceable(824) %78, i32 noundef 0, i32 noundef %80, double noundef 1.000000e+00, i64 %84)
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = call noundef zeroext i1 @_ZNK11HighsDomain10infeasibleEv(ptr noundef nonnull align 8 dereferenceable(824) %85)
  br i1 %86, label %87, label %88

87:                                               ; preds = %77
  store i32 1, ptr %12, align 4
  br label %112

88:                                               ; preds = %77
  br label %111

89:                                               ; preds = %63
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %class.HighsDomain, ptr %90, i32 0, i32 26
  %92 = load i32, ptr %9, align 4
  %93 = and i32 %92, 2147483647
  %94 = zext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %94) #5
  %96 = load double, ptr %95, align 8, !tbaa !14
  %97 = fcmp oeq double %96, 0.000000e+00
  br i1 %97, label %98, label %99

98:                                               ; preds = %89
  store i32 2, ptr %12, align 4
  br label %112, !llvm.loop !16

99:                                               ; preds = %89
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = load i32, ptr %9, align 4
  %102 = and i32 %101, 2147483647
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = call i64 @_ZN11HighsDomain6Reason11cliqueTableEii(i32 noundef %103, i32 noundef %104)
  store i64 %105, ptr %14, align 4
  %106 = load i64, ptr %14, align 4
  call void @_ZN11HighsDomain11changeBoundE14HighsBoundTypeidNS_6ReasonE(ptr noundef nonnull align 8 dereferenceable(824) %100, i32 noundef 1, i32 noundef %102, double noundef 0.000000e+00, i64 %106)
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = call noundef zeroext i1 @_ZNK11HighsDomain10infeasibleEv(ptr noundef nonnull align 8 dereferenceable(824) %107)
  br i1 %108, label %109, label %110

109:                                              ; preds = %99
  store i32 1, ptr %12, align 4
  br label %112

110:                                              ; preds = %99
  br label %111

111:                                              ; preds = %110, %88
  store i32 0, ptr %12, align 4
  br label %112

112:                                              ; preds = %111, %109, %98, %87, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %113 = load i32, ptr %12, align 4
  switch i32 %113, label %138 [
    i32 0, label %114
    i32 2, label %20
  ]

114:                                              ; preds = %112
  br label %20, !llvm.loop !16

115:                                              ; preds = %20
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #5
  %116 = getelementptr inbounds %class.anon.412, ptr %15, i32 0, i32 0
  store ptr %17, ptr %116, align 8, !tbaa !18
  %117 = getelementptr inbounds %class.anon.412, ptr %15, i32 0, i32 1
  store ptr %9, ptr %117, align 8, !tbaa !5
  %118 = getelementptr inbounds %class.anon.412, ptr %15, i32 0, i32 2
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %119, ptr %118, align 8, !tbaa !5
  %120 = getelementptr inbounds %class.anon.412, ptr %15, i32 0, i32 3
  store ptr %7, ptr %120, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.anon.412, ptr %15, i32 0, i32 4
  store ptr %8, ptr %121, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  %122 = getelementptr inbounds %class.HighsCliqueTable, ptr %17, i32 0, i32 1
  %123 = call noundef i32 @_ZNK16HighsCliqueTable9CliqueVar5indexEv(ptr noundef nonnull align 4 dereferenceable(4) %9)
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI13HighsHashTreeIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %124) #5
  %126 = call noundef zeroext i1 @"_ZNK13HighsHashTreeIiiE8for_eachIRZN16HighsCliqueTable15addImplicationsER11HighsDomainiiE3$_0EEDTcldtcv19HighsHashTableEntryIiiE_E7forwardfp_EEOT_"(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull align 8 dereferenceable(40) %15)
  %127 = zext i1 %126 to i8
  store i8 %127, ptr %16, align 1, !tbaa !20
  %128 = load i8, ptr %16, align 1, !tbaa !20, !range !22, !noundef !23
  %129 = trunc i8 %128 to i1
  br i1 %129, label %130, label %131

130:                                              ; preds = %115
  store i32 1, ptr %12, align 4
  br label %137

131:                                              ; preds = %115
  %132 = getelementptr inbounds %class.HighsCliqueTable, ptr %17, i32 0, i32 2
  %133 = call noundef i32 @_ZNK16HighsCliqueTable9CliqueVar5indexEv(ptr noundef nonnull align 4 dereferenceable(4) %9)
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI13HighsHashTreeIivESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %134) #5
  %136 = call noundef zeroext i1 @"_ZNK13HighsHashTreeIivE8for_eachIRZN16HighsCliqueTable15addImplicationsER11HighsDomainiiE3$_0EEDTcldtcv19HighsHashTableEntryIivE_E7forwardfp_EEOT_"(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef nonnull align 8 dereferenceable(40) %15)
  store i32 0, ptr %12, align 4
  br label %137

137:                                              ; preds = %131, %130
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #5
  br label %138

138:                                              ; preds = %137, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %139 = load i32, ptr %12, align 4
  switch i32 %139, label %141 [
    i32 0, label %140
    i32 1, label %140
  ]

140:                                              ; preds = %138, %138
  ret void

141:                                              ; preds = %138
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZN11HighsDomain6Reason11cliqueTableEii(i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZNK13HighsHashTreeIiiE8for_eachIRZN16HighsCliqueTable15addImplicationsER11HighsDomainiiE3$_0EEDTcldtcv19HighsHashTableEntryIiiE_E7forwardfp_EEOT_"(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(40)) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZNK13HighsHashTreeIivE8for_eachIRZN16HighsCliqueTable15addImplicationsER11HighsDomainiiE3$_0EEDTcldtcv19HighsHashTableEntryIivE_E7forwardfp_EEOT_"(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(40)) #4 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 4, !9, i64 4, i64 4, !12}
!12 = !{!7, !7, i64 0}
!13 = !{i64 0, i64 4, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSZN16HighsCliqueTable15addImplicationsER11HighsDomainiiE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}


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

%"struct.HighsCliqueTable::CliqueVar" = type { i32 }
%"struct.HighsCliqueTable::Substitution" = type { i32, %"struct.HighsCliqueTable::CliqueVar" }
%class.anon.412 = type { ptr, ptr, ptr, ptr, ptr }

@.str.52 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__._ZN16HighsCliqueTable15addImplicationsER11HighsDomainii = external hidden unnamed_addr constant [74 x i8], align 1

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK16HighsCliqueTable9CliqueVar10complementEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16HighsCliqueTable9CliqueVarC2Eii(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16HighsCliqueTable15addImplicationsER11HighsDomainii(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef nonnull align 8 dereferenceable(824) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 align 2 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.HighsCliqueTable::CliqueVar", align 4
  %8 = alloca %"struct.HighsCliqueTable::Substitution", align 8
  %9 = alloca %class.anon.412, align 8
  store i32 %2, ptr %5, align 4, !tbaa !5
  store i32 %3, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  call void @_ZN16HighsCliqueTable9CliqueVarC2Eii(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef %2, i32 noundef %3)
  %10 = getelementptr inbounds i8, ptr %0, i64 256
  %11 = load i32, ptr %7, align 4
  %12 = and i32 %11, 2147483647
  %13 = zext nneg i32 %12 to i64
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %13) #4
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %.not16 = icmp eq i32 %15, 0
  br i1 %.not16, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %16 = getelementptr inbounds i8, ptr %0, i64 280
  %17 = getelementptr inbounds i8, ptr %8, i64 4
  %18 = getelementptr inbounds i8, ptr %1, i64 776
  %19 = getelementptr inbounds i8, ptr %1, i64 800
  br label %20

20:                                               ; preds = %.lr.ph, %67
  %21 = call noundef i64 @_ZNKSt6vectorIN16HighsCliqueTable12SubstitutionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  %22 = trunc i64 %21 to i32
  %23 = load i32, ptr %7, align 4
  %24 = and i32 %23, 2147483647
  %25 = zext nneg i32 %24 to i64
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %25) #4
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %.not12 = icmp sgt i32 %27, %22
  br i1 %.not12, label %28, label %29

28:                                               ; preds = %20
  call void @__assert_fail(ptr noundef nonnull @.str.59, ptr noundef nonnull @.str.52, i32 noundef 1853, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN16HighsCliqueTable15addImplicationsER11HighsDomainii) #5
  unreachable

29:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %30 = load i32, ptr %7, align 4
  %31 = and i32 %30, 2147483647
  %32 = zext nneg i32 %31 to i64
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %32) #4
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = add nsw i32 %34, -1
  %36 = sext i32 %35 to i64
  %37 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN16HighsCliqueTable12SubstitutionESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %36) #4
  %38 = load i64, ptr %37, align 4
  store i64 %38, ptr %8, align 8
  %39 = load i32, ptr %7, align 4
  %.not13 = icmp sgt i32 %39, -1
  br i1 %.not13, label %43, label %40

40:                                               ; preds = %29
  %41 = lshr i64 %38, 32
  %42 = trunc nuw i64 %41 to i32
  br label %45

43:                                               ; preds = %29
  %44 = call i32 @_ZNK16HighsCliqueTable9CliqueVar10complementEv(ptr noundef nonnull align 4 dereferenceable(4) %17)
  br label %45

45:                                               ; preds = %43, %40
  %.sroa.03.0 = phi i32 [ %42, %40 ], [ %44, %43 ]
  store i32 %.sroa.03.0, ptr %7, align 4, !tbaa !9
  %.not14 = icmp sgt i32 %.sroa.03.0, -1
  br i1 %.not14, label %57, label %46

46:                                               ; preds = %45
  %47 = and i32 %.sroa.03.0, 2147483647
  %48 = zext nneg i32 %47 to i64
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %48) #4
  %50 = load double, ptr %49, align 8, !tbaa !10
  %51 = fcmp oeq double %50, 1.000000e+00
  br i1 %51, label %67, label %52, !llvm.loop !12

52:                                               ; preds = %46
  %53 = load i32, ptr %7, align 4
  %54 = and i32 %53, 2147483647
  %55 = call i64 @_ZN11HighsDomain6Reason11cliqueTableEii(i32 noundef %2, i32 noundef %3)
  call void @_ZN11HighsDomain11changeBoundE14HighsBoundTypeidNS_6ReasonE(ptr noundef nonnull align 8 dereferenceable(824) %1, i32 noundef 0, i32 noundef %54, double noundef 1.000000e+00, i64 %55)
  %56 = call noundef zeroext i1 @_ZNK11HighsDomain10infeasibleEv(ptr noundef nonnull align 8 dereferenceable(824) %1)
  br i1 %56, label %.thread, label %67

57:                                               ; preds = %45
  %58 = zext nneg i32 %.sroa.03.0 to i64
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %58) #4
  %60 = load double, ptr %59, align 8, !tbaa !10
  %61 = fcmp oeq double %60, 0.000000e+00
  br i1 %61, label %67, label %62, !llvm.loop !12

62:                                               ; preds = %57
  %63 = load i32, ptr %7, align 4
  %64 = and i32 %63, 2147483647
  %65 = call i64 @_ZN11HighsDomain6Reason11cliqueTableEii(i32 noundef %2, i32 noundef %3)
  call void @_ZN11HighsDomain11changeBoundE14HighsBoundTypeidNS_6ReasonE(ptr noundef nonnull align 8 dereferenceable(824) %1, i32 noundef 1, i32 noundef %64, double noundef 0.000000e+00, i64 %65)
  %66 = call noundef zeroext i1 @_ZNK11HighsDomain10infeasibleEv(ptr noundef nonnull align 8 dereferenceable(824) %1)
  br i1 %66, label %.thread, label %67

.thread:                                          ; preds = %52, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %89

67:                                               ; preds = %52, %62, %57, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  %68 = load i32, ptr %7, align 4
  %69 = and i32 %68, 2147483647
  %70 = zext nneg i32 %69 to i64
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %70) #4
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %.not = icmp eq i32 %72, 0
  br i1 %.not, label %._crit_edge, label %20

._crit_edge:                                      ; preds = %67, %4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #4
  store ptr %0, ptr %9, align 8, !tbaa !14
  %73 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %7, ptr %73, align 8, !tbaa !17
  %74 = getelementptr inbounds i8, ptr %9, i64 16
  store ptr %1, ptr %74, align 8, !tbaa !17
  %75 = getelementptr inbounds i8, ptr %9, i64 24
  store ptr %5, ptr %75, align 8, !tbaa !17
  %76 = getelementptr inbounds i8, ptr %9, i64 32
  store ptr %6, ptr %76, align 8, !tbaa !17
  %77 = getelementptr inbounds i8, ptr %0, i64 24
  %78 = call noundef i32 @_ZNK16HighsCliqueTable9CliqueVar5indexEv(ptr noundef nonnull align 4 dereferenceable(4) %7)
  %79 = sext i32 %78 to i64
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI13HighsHashTreeIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %79) #4
  %81 = call noundef zeroext i1 @"_ZNK13HighsHashTreeIiiE8for_eachIRZN16HighsCliqueTable15addImplicationsER11HighsDomainiiE3$_0EEDTcldtcv19HighsHashTableEntryIiiE_E7forwardfp_EEOT_"(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull align 8 dereferenceable(40) %9)
  br i1 %81, label %88, label %82

82:                                               ; preds = %._crit_edge
  %83 = getelementptr inbounds i8, ptr %0, i64 48
  %84 = call noundef i32 @_ZNK16HighsCliqueTable9CliqueVar5indexEv(ptr noundef nonnull align 4 dereferenceable(4) %7)
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI13HighsHashTreeIivESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %85) #4
  %87 = call noundef zeroext i1 @"_ZNK13HighsHashTreeIivE8for_eachIRZN16HighsCliqueTable15addImplicationsER11HighsDomainiiE3$_0EEDTcldtcv19HighsHashTableEntryIivE_E7forwardfp_EEOT_"(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull align 8 dereferenceable(40) %9)
  br label %88

88:                                               ; preds = %._crit_edge, %82
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #4
  br label %89

89:                                               ; preds = %.thread, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZN11HighsDomain6Reason11cliqueTableEii(i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZNK13HighsHashTreeIiiE8for_eachIRZN16HighsCliqueTable15addImplicationsER11HighsDomainiiE3$_0EEDTcldtcv19HighsHashTableEntryIiiE_E7forwardfp_EEOT_"(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZNK13HighsHashTreeIivE8for_eachIRZN16HighsCliqueTable15addImplicationsER11HighsDomainiiE3$_0EEDTcldtcv19HighsHashTableEntryIivE_E7forwardfp_EEOT_"(ptr noundef nonnull align 8 dereferenceable(8), 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { 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 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTSZN16HighsCliqueTable15addImplicationsER11HighsDomainiiE3$_0", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!16, !16, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass