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

; 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.HighsDomain::ObjectivePropagation::ObjectiveContributionTree" = type { %"class.highs::CacheMinRbTree", ptr }
%"class.highs::CacheMinRbTree" = type { %"class.highs::RbTree", ptr }
%"class.highs::RbTree" = type { ptr }
%"struct.HighsDomain::ObjectivePropagation" = type { ptr, ptr, ptr, %class.HighsCDouble, i32, double, i8, %"class.std::vector.38", %"class.std::vector.8", %"class.std::vector.33", %"class.std::vector.43" }
%class.HighsCDouble = type { double, double }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = 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.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = 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 }
%"class.std::vector.43" = type { %"struct.std::_Vector_base.44" }
%"struct.std::_Vector_base.44" = 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 }
%"struct.HighsDomain::ObjectivePropagation::ObjectiveContribution" = type { double, i32, i32, %"struct.highs::RbTreeLinks" }
%"struct.highs::RbTreeLinks" = type { [2 x i32], i32 }
%class.HighsDomain = type { %"class.std::vector", %"class.std::vector.3", %"class.std::vector.8", %"class.std::vector.13", %"class.std::vector.18", %"class.std::vector.23", %"class.std::vector.28", %"class.std::vector.28", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.33", %"class.std::vector", %"class.std::vector.3", %"struct.HighsDomain::ObjectivePropagation", ptr, %"class.std::deque", %"class.std::deque.51", i8, %"struct.HighsDomain::Reason", i32, %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %class.HighsHashTable, i8, %"class.std::vector.33", %"class.std::vector.33" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = 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.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = 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.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = 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.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = 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 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::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.51" = type { %"class.std::_Deque_base.52" }
%"class.std::_Deque_base.52" = 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.56", %"struct.std::_Deque_iterator.56" }
%"struct.std::_Deque_iterator.56" = type { ptr, ptr, ptr, ptr }
%"struct.HighsDomain::Reason" = type { i32, i32 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.HighsHashTable = type { %"class.std::unique_ptr", %"class.std::unique_ptr.59", 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.58" }
%"struct.std::_Head_base.58" = type { ptr }
%"class.std::unique_ptr.59" = type { %"struct.std::__uniq_ptr_data.60" }
%"struct.std::__uniq_ptr_data.60" = type { %"class.std::__uniq_ptr_impl.61" }
%"class.std::__uniq_ptr_impl.61" = type { %"class.std::tuple.62" }
%"class.std::tuple.62" = type { %"struct.std::_Tuple_impl.63" }
%"struct.std::_Tuple_impl.63" = type { %"struct.std::_Head_base.66" }
%"struct.std::_Head_base.66" = type { ptr }

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef double @_ZL10boundRangeddd12HighsVarType(double noundef, double noundef, double noundef, i8 noundef zeroext) #3

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11HighsDomain20ObjectivePropagation26recomputeCapacityThresholdEv(ptr noundef nonnull align 8 dereferenceable(160) %0) #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.HighsDomain::ObjectivePropagation::ObjectiveContributionTree", align 8
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %18 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 1
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK22HighsObjectiveFunction24getCliquePartitionStartsEv(ptr noundef nonnull align 8 dereferenceable(120) %19)
  store ptr %20, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %21 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 1
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = call noundef i32 @_ZNK22HighsObjectiveFunction22getNumCliquePartitionsEv(ptr noundef nonnull align 8 dereferenceable(120) %22)
  store i32 %23, ptr %4, align 4, !tbaa !31
  %24 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !32
  %26 = call noundef double @_ZNK11HighsDomain7feastolEv(ptr noundef nonnull align 8 dereferenceable(824) %25)
  %27 = fneg double %26
  %28 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 5
  store double %27, ptr %28, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !31
  br label %29

29:                                               ; preds = %85, %1
  %30 = load i32, ptr %5, align 4, !tbaa !31
  %31 = load i32, ptr %4, align 4, !tbaa !31
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %88

34:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #6
  %35 = load i32, ptr %5, align 4, !tbaa !31
  call void @_ZN11HighsDomain20ObjectivePropagation25ObjectiveContributionTreeC2EPS0_i(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef %17, i32 noundef %35)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %36 = call noundef i32 @_ZNK5highs14CacheMinRbTreeIN11HighsDomain20ObjectivePropagation25ObjectiveContributionTreeEE5firstEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  store i32 %36, ptr %8, align 4, !tbaa !31
  %37 = load i32, ptr %8, align 4, !tbaa !31
  %38 = icmp eq i32 %37, -1
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  store i32 4, ptr %6, align 4
  br label %82

40:                                               ; preds = %34
  %41 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !32
  %43 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 7
  %44 = load i32, ptr %8, align 4, !tbaa !31
  %45 = sext i32 %44 to i64
  %46 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %45) #6
  %47 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation::ObjectiveContribution", ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 8, !tbaa !34
  %49 = call noundef zeroext i1 @_ZNK11HighsDomain7isFixedEi(ptr noundef nonnull align 8 dereferenceable(824) %42, i32 noundef %48)
  br i1 %49, label %50, label %51

50:                                               ; preds = %40
  store i32 4, ptr %6, align 4
  br label %82

51:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %52 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 7
  %53 = load i32, ptr %8, align 4, !tbaa !31
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %54) #6
  %56 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation::ObjectiveContribution", ptr %55, i32 0, i32 0
  %57 = load double, ptr %56, align 8, !tbaa !37
  store double %57, ptr %9, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %58 = call noundef i32 @_ZNK5highs6RbTreeIN11HighsDomain20ObjectivePropagation25ObjectiveContributionTreeEE4lastEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  store i32 %58, ptr %10, align 4, !tbaa !31
  %59 = load i32, ptr %10, align 4, !tbaa !31
  %60 = load i32, ptr %8, align 4, !tbaa !31
  %61 = icmp ne i32 %59, %60
  br i1 %61, label %62, label %71

62:                                               ; preds = %51
  %63 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 7
  %64 = load i32, ptr %10, align 4, !tbaa !31
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %65) #6
  %67 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation::ObjectiveContribution", ptr %66, i32 0, i32 0
  %68 = load double, ptr %67, align 8, !tbaa !37
  %69 = load double, ptr %9, align 8, !tbaa !38
  %70 = fsub double %69, %68
  store double %70, ptr %9, align 8, !tbaa !38
  br label %71

71:                                               ; preds = %62, %51
  %72 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %73 = load double, ptr %9, align 8, !tbaa !38
  %74 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !32
  %76 = call noundef double @_ZNK11HighsDomain7feastolEv(ptr noundef nonnull align 8 dereferenceable(824) %75)
  %77 = fsub double 1.000000e+00, %76
  %78 = fmul double %73, %77
  store double %78, ptr %11, align 8, !tbaa !38
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %80 = load double, ptr %79, align 8, !tbaa !38
  %81 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 5
  store double %80, ptr %81, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  store i32 0, ptr %6, align 4
  br label %82

82:                                               ; preds = %71, %50, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  %83 = load i32, ptr %6, align 4
  switch i32 %83, label %149 [
    i32 0, label %84
    i32 4, label %85
  ]

84:                                               ; preds = %82
  br label %85

85:                                               ; preds = %84, %82
  %86 = load i32, ptr %5, align 4, !tbaa !31
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %5, align 4, !tbaa !31
  br label %29, !llvm.loop !39

88:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %89 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK22HighsObjectiveFunction20getObjectiveNonzerosEv(ptr noundef nonnull align 8 dereferenceable(120) %90)
  store ptr %91, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #6
  %94 = trunc i64 %93 to i32
  store i32 %94, ptr %13, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = load i32, ptr %4, align 4, !tbaa !31
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %97) #6
  %99 = load i32, ptr %98, align 4, !tbaa !31
  store i32 %99, ptr %14, align 4, !tbaa !31
  br label %100

100:                                              ; preds = %145, %88
  %101 = load i32, ptr %14, align 4, !tbaa !31
  %102 = load i32, ptr %13, align 4, !tbaa !31
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %148

105:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = load i32, ptr %14, align 4, !tbaa !31
  %108 = sext i32 %107 to i64
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %108) #6
  %110 = load i32, ptr %109, align 4, !tbaa !31
  store i32 %110, ptr %15, align 4, !tbaa !31
  %111 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %112 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 2
  %113 = load ptr, ptr %112, align 8, !tbaa !41
  %114 = load i32, ptr %15, align 4, !tbaa !31
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds double, ptr %113, i64 %115
  %117 = load double, ptr %116, align 8, !tbaa !38
  %118 = call double @llvm.fabs.f64(double %117)
  %119 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !32
  %121 = getelementptr inbounds %class.HighsDomain, ptr %120, i32 0, i32 26
  %122 = load i32, ptr %15, align 4, !tbaa !31
  %123 = sext i32 %122 to i64
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %123) #6
  %125 = load double, ptr %124, align 8, !tbaa !38
  %126 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !32
  %128 = getelementptr inbounds %class.HighsDomain, ptr %127, i32 0, i32 25
  %129 = load i32, ptr %15, align 4, !tbaa !31
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef %130) #6
  %132 = load double, ptr %131, align 8, !tbaa !38
  %133 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !32
  %135 = call noundef double @_ZNK11HighsDomain7feastolEv(ptr noundef nonnull align 8 dereferenceable(824) %134)
  %136 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !32
  %138 = load i32, ptr %15, align 4, !tbaa !31
  %139 = call noundef zeroext i8 @_ZNK11HighsDomain12variableTypeEi(ptr noundef nonnull align 8 dereferenceable(824) %137, i32 noundef %138)
  %140 = call noundef double @_ZL10boundRangeddd12HighsVarType(double noundef %125, double noundef %132, double noundef %135, i8 noundef zeroext %139)
  %141 = fmul double %118, %140
  store double %141, ptr %16, align 8, !tbaa !38
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %143 = load double, ptr %142, align 8, !tbaa !38
  %144 = getelementptr inbounds %"struct.HighsDomain::ObjectivePropagation", ptr %17, i32 0, i32 5
  store double %143, ptr %144, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %145

145:                                              ; preds = %105
  %146 = load i32, ptr %14, align 4, !tbaa !31
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %14, align 4, !tbaa !31
  br label %100, !llvm.loop !42

148:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void

149:                                              ; preds = %82
  unreachable
}

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTSN11HighsDomain20ObjectivePropagationE", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !13, i64 40, !12, i64 48, !14, i64 56, !15, i64 64, !19, i64 88, !23, i64 112, !27, i64 136}
!11 = !{!"_ZTS12HighsCDouble", !12, i64 0, !12, i64 8}
!12 = !{!"double", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorISt4pairIiiESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseISt4pairIiiESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt4pairIiiESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt4pairIiiESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIN11HighsDomain20ObjectivePropagation19PartitionCliqueDataESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIN11HighsDomain20ObjectivePropagation19PartitionCliqueDataESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN11HighsDomain20ObjectivePropagation19PartitionCliqueDataESaIS2_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN11HighsDomain20ObjectivePropagation19PartitionCliqueDataESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!13, !13, i64 0}
!32 = !{!10, !6, i64 0}
!33 = !{!10, !12, i64 48}
!34 = !{!35, !13, i64 8}
!35 = !{!"_ZTSN11HighsDomain20ObjectivePropagation21ObjectiveContributionE", !12, i64 0, !13, i64 8, !13, i64 12, !36, i64 16}
!36 = !{!"_ZTSN5highs11RbTreeLinksIiEE", !7, i64 0, !13, i64 8}
!37 = !{!35, !12, i64 0}
!38 = !{!12, !12, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!10, !6, i64 16}
!42 = distinct !{!42, !40}


; 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.HighsDomain::ObjectivePropagation::ObjectiveContributionTree" = type { %"class.highs::CacheMinRbTree", ptr }
%"class.highs::CacheMinRbTree" = type { %"class.highs::RbTree", ptr }
%"class.highs::RbTree" = type { ptr }

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef double @_ZL10boundRangeddd12HighsVarType(double noundef, double noundef, double noundef, i8 noundef zeroext) local_unnamed_addr #3

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11HighsDomain20ObjectivePropagation26recomputeCapacityThresholdEv(ptr noundef nonnull align 8 dereferenceable(160) %0) local_unnamed_addr #4 align 2 {
  %2 = alloca %"class.HighsDomain::ObjectivePropagation::ObjectiveContributionTree", align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK22HighsObjectiveFunction24getCliquePartitionStartsEv(ptr noundef nonnull align 8 dereferenceable(120) %6)
  %8 = load ptr, ptr %5, align 8, !tbaa !5
  %9 = tail call noundef i32 @_ZNK22HighsObjectiveFunction22getNumCliquePartitionsEv(ptr noundef nonnull align 8 dereferenceable(120) %8)
  %10 = load ptr, ptr %0, align 8, !tbaa !30
  %11 = tail call noundef double @_ZNK11HighsDomain7feastolEv(ptr noundef nonnull align 8 dereferenceable(824) %10)
  %12 = fneg double %11
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  store double %12, ptr %13, align 8, !tbaa !31
  %14 = icmp sgt i32 %9, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %15 = getelementptr inbounds i8, ptr %0, i64 64
  br label %26

._crit_edge:                                      ; preds = %52, %1
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK22HighsObjectiveFunction20getObjectiveNonzerosEv(ptr noundef nonnull align 8 dereferenceable(120) %16)
  %18 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %19 = trunc i64 %18 to i32
  %20 = sext i32 %9 to i64
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %20) #6
  %22 = load i32, ptr %21, align 4, !tbaa !32
  %23 = icmp slt i32 %22, %19
  br i1 %23, label %.lr.ph32, label %._crit_edge33

.lr.ph32:                                         ; preds = %._crit_edge
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = sext i32 %22 to i64
  br label %54

26:                                               ; preds = %.lr.ph, %52
  %.029 = phi i32 [ 0, %.lr.ph ], [ %53, %52 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZN11HighsDomain20ObjectivePropagation25ObjectiveContributionTreeC2EPS0_i(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull %0, i32 noundef %.029)
  %27 = call noundef i32 @_ZNK5highs14CacheMinRbTreeIN11HighsDomain20ObjectivePropagation25ObjectiveContributionTreeEE5firstEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %28 = icmp eq i32 %27, -1
  br i1 %28, label %52, label %29

29:                                               ; preds = %26
  %30 = load ptr, ptr %0, align 8, !tbaa !30
  %31 = sext i32 %27 to i64
  %32 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %31) #6
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = load i32, ptr %33, align 8, !tbaa !33
  %35 = call noundef zeroext i1 @_ZNK11HighsDomain7isFixedEi(ptr noundef nonnull align 8 dereferenceable(824) %30, i32 noundef %34)
  br i1 %35, label %52, label %36

36:                                               ; preds = %29
  %37 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %31) #6
  %38 = load double, ptr %37, align 8, !tbaa !36
  %39 = call noundef i32 @_ZNK5highs6RbTreeIN11HighsDomain20ObjectivePropagation25ObjectiveContributionTreeEE4lastEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %.not = icmp eq i32 %39, %27
  br i1 %.not, label %45, label %40

40:                                               ; preds = %36
  %41 = sext i32 %39 to i64
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %41) #6
  %43 = load double, ptr %42, align 8, !tbaa !36
  %44 = fsub double %38, %43
  br label %45

45:                                               ; preds = %40, %36
  %.025 = phi double [ %44, %40 ], [ %38, %36 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %46 = load ptr, ptr %0, align 8, !tbaa !30
  %47 = call noundef double @_ZNK11HighsDomain7feastolEv(ptr noundef nonnull align 8 dereferenceable(824) %46)
  %48 = fsub double 1.000000e+00, %47
  %49 = fmul double %.025, %48
  store double %49, ptr %3, align 8, !tbaa !37
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %51 = load double, ptr %50, align 8, !tbaa !37
  store double %51, ptr %13, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %52

52:                                               ; preds = %29, %26, %45
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  %53 = add nuw nsw i32 %.029, 1
  %exitcond.not = icmp eq i32 %53, %9
  br i1 %exitcond.not, label %._crit_edge, label %26, !llvm.loop !38

._crit_edge33:                                    ; preds = %54, %._crit_edge
  ret void

54:                                               ; preds = %.lr.ph32, %54
  %indvars.iv = phi i64 [ %25, %.lr.ph32 ], [ %indvars.iv.next, %54 ]
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv) #6
  %56 = load i32, ptr %55, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %57 = load ptr, ptr %24, align 8, !tbaa !40
  %58 = sext i32 %56 to i64
  %59 = getelementptr inbounds double, ptr %57, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !37
  %61 = call double @llvm.fabs.f64(double %60)
  %62 = load ptr, ptr %0, align 8, !tbaa !30
  %63 = getelementptr inbounds i8, ptr %62, i64 800
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %58) #6
  %65 = load double, ptr %64, align 8, !tbaa !37
  %66 = load ptr, ptr %0, align 8, !tbaa !30
  %67 = getelementptr inbounds i8, ptr %66, i64 776
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %58) #6
  %69 = load double, ptr %68, align 8, !tbaa !37
  %70 = load ptr, ptr %0, align 8, !tbaa !30
  %71 = call noundef double @_ZNK11HighsDomain7feastolEv(ptr noundef nonnull align 8 dereferenceable(824) %70)
  %72 = load ptr, ptr %0, align 8, !tbaa !30
  %73 = call noundef zeroext i8 @_ZNK11HighsDomain12variableTypeEi(ptr noundef nonnull align 8 dereferenceable(824) %72, i32 noundef %56)
  %74 = call noundef double @_ZL10boundRangeddd12HighsVarType(double noundef %65, double noundef %69, double noundef %71, i8 noundef zeroext %73)
  %75 = fmul double %61, %74
  store double %75, ptr %4, align 8, !tbaa !37
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %77 = load double, ptr %76, align 8, !tbaa !37
  store double %77, ptr %13, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond35.not = icmp eq i32 %lftr.wideiv, %19
  br i1 %exitcond35.not, label %._crit_edge33, label %54, !llvm.loop !41
}

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"_ZTSN11HighsDomain20ObjectivePropagationE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !12, i64 40, !11, i64 48, !13, i64 56, !14, i64 64, !18, i64 88, !22, i64 112, !26, i64 136}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS12HighsCDouble", !11, i64 0, !11, i64 8}
!11 = !{!"double", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTSSt6vectorIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN11HighsDomain20ObjectivePropagation21ObjectiveContributionESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!18 = !{!"_ZTSSt6vectorISt4pairIiiESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseISt4pairIiiESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt4pairIiiESaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt4pairIiiESaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!22 = !{!"_ZTSSt6vectorIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!26 = !{!"_ZTSSt6vectorIN11HighsDomain20ObjectivePropagation19PartitionCliqueDataESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN11HighsDomain20ObjectivePropagation19PartitionCliqueDataESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN11HighsDomain20ObjectivePropagation19PartitionCliqueDataESaIS2_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN11HighsDomain20ObjectivePropagation19PartitionCliqueDataESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!30 = !{!6, !7, i64 0}
!31 = !{!6, !11, i64 48}
!32 = !{!12, !12, i64 0}
!33 = !{!34, !12, i64 8}
!34 = !{!"_ZTSN11HighsDomain20ObjectivePropagation21ObjectiveContributionE", !11, i64 0, !12, i64 8, !12, i64 12, !35, i64 16}
!35 = !{!"_ZTSN5highs11RbTreeLinksIiEE", !8, i64 0, !12, i64 8}
!36 = !{!34, !11, i64 0}
!37 = !{!11, !11, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!6, !7, i64 16}
!41 = distinct !{!41, !39}


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