; LLVM IR from ERGO-Code/HiGHS :: src/presolve (HPresolveAnalysis)

; 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.std::_Bit_reference" = type { ptr, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.HPresolveAnalysis = type { ptr, ptr, ptr, ptr, ptr, i32, i32, %"class.std::vector", i8, i8, i32, i32, i32, %struct.HighsPresolveLog }
%"class.std::vector" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%struct.HighsPresolveLog = type { %"class.std::vector.3" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<HighsPresolveRuleLog, std::allocator<HighsPresolveRuleLog>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsPresolveRuleLog, std::allocator<HighsPresolveRuleLog>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsPresolveRuleLog, std::allocator<HighsPresolveRuleLog>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsPresolveRuleLog, std::allocator<HighsPresolveRuleLog>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.HighsOptionsStruct = type { ptr, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", double, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, %"class.std::__cxx11::basic_string", double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string", i8, i8, i8, i32, i32, %"class.std::__cxx11::basic_string", i8, i8, i8, i32, i8, i8, i32, i32, double, i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, double, double, double, double, double, double, double, double, double, double, double, i8, i8, i8, i8, i32, double, i8, i8, %"class.std::__cxx11::basic_string", double, i32, i32, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, i8, i8, %"class.std::__cxx11::basic_string", i8, i32, %struct.HighsLogOptions }
%struct.HighsLogOptions = type <{ ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::function", ptr, i8, [7 x i8] }>
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.HighsLp = type { i32, i32, %"class.std::vector.12", %"class.std::vector.12", %"class.std::vector.12", %"class.std::vector.12", %"class.std::vector.12", %class.HighsSparseMatrix, i32, double, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i32, %"class.std::vector.22", %"class.std::vector.22", %"class.std::vector.27", %struct.HighsNameHash, %struct.HighsNameHash, i32, i32, %struct.HighsScale, i8, i8, i32, i8, %struct.HighsLpMods }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = 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.HighsSparseMatrix = type { i32, i32, i32, %"class.std::vector.17", %"class.std::vector.17", %"class.std::vector.17", %"class.std::vector.12" }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.27" = type { %"struct.std::_Vector_base.28" }
%"struct.std::_Vector_base.28" = type { %"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.HighsNameHash = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.HighsScale = type { i32, i8, i32, i32, double, %"class.std::vector.12", %"class.std::vector.12" }
%struct.HighsLpMods = type { %"class.std::vector.17", %"class.std::vector.17", %"class.std::vector.12", %"class.std::vector.12", %"class.std::vector.27", %"class.std::vector.17", %"class.std::vector.12", %"class.std::vector.17", %"class.std::vector.12", %"class.std::vector.17", %"class.std::vector.12", %"class.std::vector.12", %"class.std::vector.12" }

@.str.51 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [40 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17HPresolveAnalysis5setupEPK7HighsLpPK12HighsOptionsRKiS7_(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca %"struct.std::_Bit_reference", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %20 = load ptr, ptr %6, align 8
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 0
  store ptr %21, ptr %22, align 8, !tbaa !9
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 1
  store ptr %23, ptr %24, align 8, !tbaa !24
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 3
  store ptr %25, ptr %26, align 8, !tbaa !25
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 4
  store ptr %27, ptr %28, align 8, !tbaa !26
  %29 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  store i8 1, ptr %11, align 1, !tbaa !27
  call void @_ZNSt6vectorIbSaIbEE6assignEmRKb(ptr noundef nonnull align 8 dereferenceable(40) %29, i64 noundef 14, ptr noundef nonnull align 1 dereferenceable(1) %11)
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  %30 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !24
  %32 = getelementptr inbounds %struct.HighsOptionsStruct, ptr %31, i32 0, i32 77
  %33 = load i32, ptr %32, align 4, !tbaa !28
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %108

35:                                               ; preds = %5
  %36 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8, !tbaa !24
  %38 = getelementptr inbounds %struct.HighsOptionsStruct, ptr %37, i32 0, i32 130
  call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %38, i32 noundef 1, ptr noundef @.str.51)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 1, ptr %12, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !37
  br label %39

39:                                               ; preds = %103, %35
  %40 = load i32, ptr %13, align 4, !tbaa !37
  %41 = icmp slt i32 %40, 14
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %107

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  %44 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8, !tbaa !24
  %46 = getelementptr inbounds %struct.HighsOptionsStruct, ptr %45, i32 0, i32 77
  %47 = load i32, ptr %46, align 4, !tbaa !28
  %48 = load i32, ptr %12, align 4, !tbaa !37
  %49 = and i32 %47, %48
  %50 = icmp ne i32 %49, 0
  %51 = xor i1 %50, true
  %52 = zext i1 %51 to i8
  store i8 %52, ptr %14, align 1, !tbaa !27
  %53 = load i32, ptr %13, align 4, !tbaa !37
  %54 = icmp sge i32 %53, 6
  br i1 %54, label %55, label %83

55:                                               ; preds = %43
  %56 = load i8, ptr %14, align 1, !tbaa !27, !range !38, !noundef !39
  %57 = trunc i8 %56 to i1
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %58 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 7
  %59 = load i32, ptr %13, align 4, !tbaa !37
  %60 = sext i32 %59 to i64
  %61 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %58, i64 noundef %60)
  %62 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %63 = extractvalue { ptr, i64 } %61, 0
  store ptr %63, ptr %62, align 8
  %64 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %65 = extractvalue { ptr, i64 } %61, 1
  store i64 %65, ptr %64, align 8
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext %57) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  %67 = load i8, ptr %14, align 1, !tbaa !27, !range !38, !noundef !39
  %68 = trunc i8 %67 to i1
  br i1 %68, label %82, label %69

69:                                               ; preds = %55
  %70 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !24
  %72 = getelementptr inbounds %struct.HighsOptionsStruct, ptr %71, i32 0, i32 130
  %73 = load i32, ptr %13, align 4, !tbaa !37
  %74 = load i32, ptr %12, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #4
  %75 = load i32, ptr %13, align 4, !tbaa !37
  call void @_Z28utilPresolveRuleTypeToStringB5cxx11i(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, i32 noundef %75)
  %76 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  invoke void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %72, i32 noundef 1, ptr noundef @.str.52, i32 noundef %73, i32 noundef %74, ptr noundef %76)
          to label %77 unwind label %78

77:                                               ; preds = %69
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #4
  br label %82

78:                                               ; preds = %69
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %17, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #4
  br label %106

82:                                               ; preds = %77, %55
  br label %100

83:                                               ; preds = %43
  %84 = load i8, ptr %14, align 1, !tbaa !27, !range !38, !noundef !39
  %85 = trunc i8 %84 to i1
  br i1 %85, label %99, label %86

86:                                               ; preds = %83
  %87 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8, !tbaa !24
  %89 = getelementptr inbounds %struct.HighsOptionsStruct, ptr %88, i32 0, i32 130
  %90 = load i32, ptr %13, align 4, !tbaa !37
  %91 = load i32, ptr %12, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  %92 = load i32, ptr %13, align 4, !tbaa !37
  call void @_Z28utilPresolveRuleTypeToStringB5cxx11i(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, i32 noundef %92)
  %93 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %19) #4
  invoke void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %89, i32 noundef 4, ptr noundef @.str.53, i32 noundef %90, i32 noundef %91, ptr noundef %93)
          to label %94 unwind label %95

94:                                               ; preds = %86
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  br label %99

95:                                               ; preds = %86
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %17, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  br label %106

99:                                               ; preds = %94, %83
  br label %100

100:                                              ; preds = %99, %82
  %101 = load i32, ptr %12, align 4, !tbaa !37
  %102 = mul nsw i32 %101, 2
  store i32 %102, ptr %12, align 4, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  br label %103

103:                                              ; preds = %100
  %104 = load i32, ptr %13, align 4, !tbaa !37
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %13, align 4, !tbaa !37
  br label %39, !llvm.loop !40

106:                                              ; preds = %95, %78
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %138

107:                                              ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %108

108:                                              ; preds = %107, %5
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.HighsOptionsStruct, ptr %109, i32 0, i32 78
  %111 = load i8, ptr %110, align 8, !tbaa !42, !range !38, !noundef !39
  %112 = trunc i8 %111 to i1
  br i1 %112, label %113, label %117

113:                                              ; preds = %108
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = call noundef zeroext i1 @_ZNK7HighsLp5isMipEv(ptr noundef nonnull align 8 dereferenceable(920) %114)
  %116 = xor i1 %115, true
  br label %117

117:                                              ; preds = %113, %108
  %118 = phi i1 [ false, %108 ], [ %116, %113 ]
  %119 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 8
  %120 = zext i1 %118 to i8
  store i8 %120, ptr %119, align 8, !tbaa !43
  %121 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 8
  %122 = load i8, ptr %121, align 8, !tbaa !43, !range !38, !noundef !39
  %123 = trunc i8 %122 to i1
  %124 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 9
  %125 = zext i1 %123 to i8
  store i8 %125, ptr %124, align 1, !tbaa !44
  %126 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 10
  store i32 -1, ptr %126, align 4, !tbaa !45
  call void @_ZN17HPresolveAnalysis15resetNumDeletedEv(ptr noundef nonnull align 8 dereferenceable(128) %20)
  %127 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 13
  call void @_ZN16HighsPresolveLog5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %127)
  %128 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !9
  %130 = getelementptr inbounds %class.HighsLp, ptr %129, i32 0, i32 0
  %131 = load i32, ptr %130, align 8, !tbaa !46
  %132 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 5
  store i32 %131, ptr %132, align 8, !tbaa !75
  %133 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !9
  %135 = getelementptr inbounds %class.HighsLp, ptr %134, i32 0, i32 1
  %136 = load i32, ptr %135, align 4, !tbaa !76
  %137 = getelementptr inbounds %class.HPresolveAnalysis, ptr %20, i32 0, i32 6
  store i32 %136, ptr %137, align 4, !tbaa !77
  ret void

138:                                              ; preds = %106
  %139 = load ptr, ptr %17, align 8
  %140 = load i32, ptr %18, align 4
  %141 = insertvalue { ptr, i32 } poison, ptr %139, 0
  %142 = insertvalue { ptr, i32 } %141, i32 %140, 1
  resume { ptr, i32 } %142
}

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

declare void @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89), i32 noundef, ptr noundef, ...) #3

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2 align 2

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

declare void @_Z28utilPresolveRuleTypeToStringB5cxx11i(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #3

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

declare noundef zeroext i1 @_ZNK7HighsLp5isMipEv(ptr noundef nonnull align 8 dereferenceable(920)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16HighsPresolveLog5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS17HPresolveAnalysis", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !11, i64 44, !12, i64 48, !18, i64 88, !18, i64 89, !11, i64 92, !11, i64 96, !11, i64 100, !19, i64 104}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIbSaIbEE", !13, i64 0}
!13 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !14, i64 0}
!14 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !16, i64 0, !16, i64 16, !6, i64 32}
!16 = !{!"_ZTSSt13_Bit_iterator", !17, i64 0}
!17 = !{!"_ZTSSt18_Bit_iterator_base", !6, i64 0, !11, i64 8}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTS16HighsPresolveLog", !20, i64 0}
!20 = !{!"_ZTSSt6vectorI20HighsPresolveRuleLogSaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseI20HighsPresolveRuleLogSaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI20HighsPresolveRuleLogSaIS0_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI20HighsPresolveRuleLogSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!10, !6, i64 8}
!25 = !{!10, !6, i64 24}
!26 = !{!10, !6, i64 32}
!27 = !{!18, !18, i64 0}
!28 = !{!29, !11, i64 588}
!29 = !{!"_ZTS18HighsOptionsStruct", !30, i64 8, !30, i64 40, !30, i64 72, !30, i64 104, !33, i64 136, !30, i64 144, !30, i64 176, !11, i64 208, !30, i64 216, !33, i64 248, !33, i64 256, !33, i64 264, !33, i64 272, !33, i64 280, !33, i64 288, !33, i64 296, !33, i64 304, !33, i64 312, !33, i64 320, !33, i64 328, !11, i64 336, !11, i64 340, !11, i64 344, !11, i64 348, !11, i64 352, !11, i64 356, !11, i64 360, !11, i64 364, !11, i64 368, !11, i64 372, !11, i64 376, !11, i64 380, !11, i64 384, !11, i64 388, !30, i64 392, !18, i64 424, !18, i64 425, !18, i64 426, !11, i64 428, !11, i64 432, !30, i64 440, !18, i64 472, !18, i64 473, !18, i64 474, !11, i64 476, !18, i64 480, !18, i64 481, !11, i64 484, !11, i64 488, !33, i64 496, !11, i64 504, !11, i64 508, !11, i64 512, !18, i64 516, !11, i64 520, !18, i64 524, !18, i64 525, !18, i64 526, !18, i64 527, !18, i64 528, !18, i64 529, !18, i64 530, !11, i64 532, !11, i64 536, !11, i64 540, !11, i64 544, !11, i64 548, !11, i64 552, !11, i64 556, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !11, i64 584, !11, i64 588, !18, i64 592, !18, i64 593, !18, i64 594, !18, i64 595, !33, i64 600, !33, i64 608, !33, i64 616, !33, i64 624, !33, i64 632, !33, i64 640, !33, i64 648, !33, i64 656, !33, i64 664, !33, i64 672, !33, i64 680, !18, i64 688, !18, i64 689, !18, i64 690, !18, i64 691, !11, i64 692, !33, i64 696, !18, i64 704, !18, i64 705, !30, i64 712, !33, i64 744, !11, i64 752, !11, i64 756, !18, i64 760, !18, i64 761, !18, i64 762, !18, i64 763, !11, i64 764, !11, i64 768, !11, i64 772, !11, i64 776, !11, i64 780, !11, i64 784, !11, i64 788, !11, i64 792, !11, i64 796, !11, i64 800, !11, i64 804, !33, i64 808, !33, i64 816, !33, i64 824, !33, i64 832, !33, i64 840, !18, i64 848, !18, i64 849, !30, i64 856, !18, i64 888, !11, i64 892, !34, i64 896}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !31, i64 0, !32, i64 8, !7, i64 16}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!32 = !{!"long", !7, i64 0}
!33 = !{!"double", !7, i64 0}
!34 = !{!"_ZTS15HighsLogOptions", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !35, i64 48, !6, i64 80, !18, i64 88}
!35 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !36, i64 0, !6, i64 24}
!36 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!37 = !{!11, !11, i64 0}
!38 = !{i8 0, i8 2}
!39 = !{}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!29, !18, i64 592}
!43 = !{!10, !18, i64 88}
!44 = !{!10, !18, i64 89}
!45 = !{!10, !11, i64 92}
!46 = !{!47, !11, i64 0}
!47 = !{!"_ZTS7HighsLp", !11, i64 0, !11, i64 4, !48, i64 8, !48, i64 32, !48, i64 56, !48, i64 80, !48, i64 104, !52, i64 128, !58, i64 240, !33, i64 248, !30, i64 256, !30, i64 288, !11, i64 320, !11, i64 324, !59, i64 328, !59, i64 352, !63, i64 376, !67, i64 400, !67, i64 456, !11, i64 512, !11, i64 516, !73, i64 520, !18, i64 592, !18, i64 593, !11, i64 596, !18, i64 600, !74, i64 608}
!48 = !{!"_ZTSSt6vectorIdSaIdEE", !49, i64 0}
!49 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!52 = !{!"_ZTS17HighsSparseMatrix", !53, i64 0, !11, i64 4, !11, i64 8, !54, i64 16, !54, i64 40, !54, i64 64, !48, i64 88}
!53 = !{!"_ZTS12MatrixFormat", !7, i64 0}
!54 = !{!"_ZTSSt6vectorIiSaIiEE", !55, i64 0}
!55 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!58 = !{!"_ZTS8ObjSense", !7, i64 0}
!59 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !60, i64 0}
!60 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !62, i64 0}
!62 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!63 = !{!"_ZTSSt6vectorI12HighsVarTypeSaIS0_EE", !64, i64 0}
!64 = !{!"_ZTSSt12_Vector_baseI12HighsVarTypeSaIS0_EE", !65, i64 0}
!65 = !{!"_ZTSNSt12_Vector_baseI12HighsVarTypeSaIS0_EE12_Vector_implE", !66, i64 0}
!66 = !{!"_ZTSNSt12_Vector_baseI12HighsVarTypeSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!67 = !{!"_ZTS13HighsNameHash", !68, i64 0}
!68 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE", !69, i64 0}
!69 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !32, i64 8, !70, i64 16, !32, i64 24, !71, i64 32, !6, i64 48}
!70 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!71 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !72, i64 0, !32, i64 8}
!72 = !{!"float", !7, i64 0}
!73 = !{!"_ZTS10HighsScale", !11, i64 0, !18, i64 4, !11, i64 8, !11, i64 12, !33, i64 16, !48, i64 24, !48, i64 48}
!74 = !{!"_ZTS11HighsLpMods", !54, i64 0, !54, i64 24, !48, i64 48, !48, i64 72, !63, i64 96, !54, i64 120, !48, i64 144, !54, i64 168, !48, i64 192, !54, i64 216, !48, i64 240, !48, i64 264, !48, i64 288}
!75 = !{!10, !11, i64 40}
!76 = !{!47, !11, i64 4}
!77 = !{!10, !11, i64 44}


; 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.std::_Bit_reference" = type { ptr, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str.51 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [40 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17HPresolveAnalysis5setupEPK7HighsLpPK12HighsOptionsRKiS7_(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i8, align 1
  %7 = alloca %"struct.std::_Bit_reference", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %1, ptr %0, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %2, ptr %10, align 8, !tbaa !23
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %3, ptr %11, align 8, !tbaa !24
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %4, ptr %12, align 8, !tbaa !25
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  store i8 1, ptr %6, align 1, !tbaa !26
  call void @_ZNSt6vectorIbSaIbEE6assignEmRKb(ptr noundef nonnull align 8 dereferenceable(40) %13, i64 noundef 14, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  %14 = load ptr, ptr %10, align 8, !tbaa !23
  %15 = getelementptr inbounds i8, ptr %14, i64 588
  %16 = load i32, ptr %15, align 4, !tbaa !27
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %.loopexit, label %17

17:                                               ; preds = %5
  %18 = getelementptr inbounds i8, ptr %14, i64 896
  call void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %18, i32 noundef 1, ptr noundef nonnull @.str.51)
  %19 = getelementptr inbounds i8, ptr %7, i64 8
  br label %20

20:                                               ; preds = %17, %47
  %indvars.iv = phi i64 [ 0, %17 ], [ %indvars.iv.next, %47 ]
  %.02429 = phi i32 [ 1, %17 ], [ %48, %47 ]
  %21 = load ptr, ptr %10, align 8, !tbaa !23
  %22 = getelementptr inbounds i8, ptr %21, i64 588
  %23 = load i32, ptr %22, align 4, !tbaa !27
  %24 = and i32 %23, %.02429
  %.not26 = icmp eq i32 %24, 0
  %25 = icmp ugt i64 %indvars.iv, 5
  br i1 %25, label %26, label %39

26:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %27 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %13, i64 noundef %indvars.iv)
  %28 = extractvalue { ptr, i64 } %27, 0
  store ptr %28, ptr %7, align 8
  %29 = extractvalue { ptr, i64 } %27, 1
  store i64 %29, ptr %19, align 8
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext %.not26) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  br i1 %.not26, label %47, label %31

31:                                               ; preds = %26
  %32 = load ptr, ptr %10, align 8, !tbaa !23
  %33 = getelementptr inbounds i8, ptr %32, i64 896
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  %34 = trunc nuw nsw i64 %indvars.iv to i32
  call void @_Z28utilPresolveRuleTypeToStringB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, i32 noundef %34)
  %35 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  invoke void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %33, i32 noundef 1, ptr noundef nonnull @.str.52, i32 noundef %34, i32 noundef %.02429, ptr noundef %35)
          to label %36 unwind label %37

36:                                               ; preds = %31
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  br label %47

37:                                               ; preds = %31
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  br label %49

39:                                               ; preds = %20
  br i1 %.not26, label %47, label %40

40:                                               ; preds = %39
  %41 = getelementptr inbounds i8, ptr %21, i64 896
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #4
  %42 = trunc nuw nsw i64 %indvars.iv to i32
  call void @_Z28utilPresolveRuleTypeToStringB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, i32 noundef %42)
  %43 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  invoke void (ptr, i32, ptr, ...) @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %41, i32 noundef 4, ptr noundef nonnull @.str.53, i32 noundef %42, i32 noundef %.02429, ptr noundef %43)
          to label %44 unwind label %45

44:                                               ; preds = %40
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  br label %47

45:                                               ; preds = %40
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  br label %49

47:                                               ; preds = %39, %44, %26, %36
  %48 = shl nsw i32 %.02429, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 14
  br i1 %exitcond.not, label %.loopexit, label %20, !llvm.loop !36

49:                                               ; preds = %45, %37
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %46, %45 ]
  resume { ptr, i32 } %.pn

.loopexit:                                        ; preds = %47, %5
  %50 = getelementptr inbounds i8, ptr %2, i64 592
  %51 = load i8, ptr %50, align 8, !tbaa !38, !range !39, !noundef !40
  %52 = trunc nuw i8 %51 to i1
  br i1 %52, label %53, label %57

53:                                               ; preds = %.loopexit
  %54 = call noundef zeroext i1 @_ZNK7HighsLp5isMipEv(ptr noundef nonnull align 8 dereferenceable(920) %1)
  %55 = xor i1 %54, true
  %56 = zext i1 %55 to i8
  br label %57

57:                                               ; preds = %53, %.loopexit
  %58 = phi i8 [ 0, %.loopexit ], [ %56, %53 ]
  %59 = getelementptr inbounds i8, ptr %0, i64 88
  store i8 %58, ptr %59, align 8, !tbaa !41
  %60 = getelementptr inbounds i8, ptr %0, i64 89
  store i8 %58, ptr %60, align 1, !tbaa !42
  %61 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 -1, ptr %61, align 4, !tbaa !43
  call void @_ZN17HPresolveAnalysis15resetNumDeletedEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %62 = getelementptr inbounds i8, ptr %0, i64 104
  call void @_ZN16HighsPresolveLog5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
  %63 = load ptr, ptr %0, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %0, i64 40
  %65 = load <2 x i32>, ptr %63, align 8, !tbaa !44
  store <2 x i32> %65, ptr %64, align 8, !tbaa !44
  ret void
}

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

declare void @_Z12highsLogUserRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89), i32 noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #2 align 2

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

declare void @_Z28utilPresolveRuleTypeToStringB5cxx11i(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #3

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

declare noundef zeroext i1 @_ZNK7HighsLp5isMipEv(ptr noundef nonnull align 8 dereferenceable(920)) local_unnamed_addr #3

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS17HPresolveAnalysis", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !11, i64 48, !17, i64 88, !17, i64 89, !10, i64 92, !10, i64 96, !10, i64 100, !18, i64 104}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSSt6vectorIbSaIbEE", !12, i64 0}
!12 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !13, i64 0}
!13 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !15, i64 0, !15, i64 16, !7, i64 32}
!15 = !{!"_ZTSSt13_Bit_iterator", !16, i64 0}
!16 = !{!"_ZTSSt18_Bit_iterator_base", !7, i64 0, !10, i64 8}
!17 = !{!"bool", !8, i64 0}
!18 = !{!"_ZTS16HighsPresolveLog", !19, i64 0}
!19 = !{!"_ZTSSt6vectorI20HighsPresolveRuleLogSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseI20HighsPresolveRuleLogSaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI20HighsPresolveRuleLogSaIS0_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI20HighsPresolveRuleLogSaIS0_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!23 = !{!6, !7, i64 8}
!24 = !{!6, !7, i64 24}
!25 = !{!6, !7, i64 32}
!26 = !{!17, !17, i64 0}
!27 = !{!28, !10, i64 588}
!28 = !{!"_ZTS18HighsOptionsStruct", !29, i64 8, !29, i64 40, !29, i64 72, !29, i64 104, !32, i64 136, !29, i64 144, !29, i64 176, !10, i64 208, !29, i64 216, !32, i64 248, !32, i64 256, !32, i64 264, !32, i64 272, !32, i64 280, !32, i64 288, !32, i64 296, !32, i64 304, !32, i64 312, !32, i64 320, !32, i64 328, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !29, i64 392, !17, i64 424, !17, i64 425, !17, i64 426, !10, i64 428, !10, i64 432, !29, i64 440, !17, i64 472, !17, i64 473, !17, i64 474, !10, i64 476, !17, i64 480, !17, i64 481, !10, i64 484, !10, i64 488, !32, i64 496, !10, i64 504, !10, i64 508, !10, i64 512, !17, i64 516, !10, i64 520, !17, i64 524, !17, i64 525, !17, i64 526, !17, i64 527, !17, i64 528, !17, i64 529, !17, i64 530, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !10, i64 548, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !17, i64 592, !17, i64 593, !17, i64 594, !17, i64 595, !32, i64 600, !32, i64 608, !32, i64 616, !32, i64 624, !32, i64 632, !32, i64 640, !32, i64 648, !32, i64 656, !32, i64 664, !32, i64 672, !32, i64 680, !17, i64 688, !17, i64 689, !17, i64 690, !17, i64 691, !10, i64 692, !32, i64 696, !17, i64 704, !17, i64 705, !29, i64 712, !32, i64 744, !10, i64 752, !10, i64 756, !17, i64 760, !17, i64 761, !17, i64 762, !17, i64 763, !10, i64 764, !10, i64 768, !10, i64 772, !10, i64 776, !10, i64 780, !10, i64 784, !10, i64 788, !10, i64 792, !10, i64 796, !10, i64 800, !10, i64 804, !32, i64 808, !32, i64 816, !32, i64 824, !32, i64 832, !32, i64 840, !17, i64 848, !17, i64 849, !29, i64 856, !17, i64 888, !10, i64 892, !33, i64 896}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !31, i64 8, !8, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!31 = !{!"long", !8, i64 0}
!32 = !{!"double", !8, i64 0}
!33 = !{!"_ZTS15HighsLogOptions", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !34, i64 48, !7, i64 80, !17, i64 88}
!34 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !35, i64 0, !7, i64 24}
!35 = !{!"_ZTSSt14_Function_base", !8, i64 0, !7, i64 16}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!28, !17, i64 592}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!6, !17, i64 88}
!42 = !{!6, !17, i64 89}
!43 = !{!6, !10, i64 92}
!44 = !{!10, !10, i64 0}


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