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

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

%"class.std::__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] }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%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.HighsPresolveRuleLog = type { i32, i32, i32 }
%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.54 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [84 x i8], align 1
@__PRETTY_FUNCTION__._ZN17HPresolveAnalysis20startPresolveRuleLogEi = external hidden unnamed_addr constant [61 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [116 x i8], align 1
@stdout = external global ptr, align 8
@.str.61 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [22 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
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17HPresolveAnalysis20startPresolveRuleLogEi(ptr noundef nonnull align 8 dereferenceable(128) %0, i32 noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i8, align 1
  %6 = alloca %"struct.std::_Bit_reference", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %13 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  store i8 0, ptr %5, align 1, !tbaa !11
  %14 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 9
  %15 = load i8, ptr %14, align 1, !tbaa !13, !range !26, !noundef !27
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  br label %20

18:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.54, ptr noundef @.str.55, i32 noundef 79, ptr noundef @__PRETTY_FUNCTION__._ZN17HPresolveAnalysis20startPresolveRuleLogEi) #6
  unreachable

19:                                               ; No predecessors!
  br label %20

20:                                               ; preds = %19, %17
  %21 = load i32, ptr %4, align 4, !tbaa !9
  %22 = icmp sge i32 %21, 0
  br i1 %22, label %23, label %26

23:                                               ; preds = %20
  %24 = load i32, ptr %4, align 4, !tbaa !9
  %25 = icmp sle i32 %24, 13
  br label %26

26:                                               ; preds = %23, %20
  %27 = phi i1 [ false, %20 ], [ %25, %23 ]
  br i1 %27, label %28, label %29

28:                                               ; preds = %26
  br label %31

29:                                               ; preds = %26
  call void @__assert_fail(ptr noundef @.str.56, ptr noundef @.str.55, i32 noundef 80, ptr noundef @__PRETTY_FUNCTION__._ZN17HPresolveAnalysis20startPresolveRuleLogEi) #6
  unreachable

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30, %28
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  %32 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 7
  %33 = load i32, ptr %4, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %32, i64 noundef %34)
  %36 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 0
  %37 = extractvalue { ptr, i64 } %35, 0
  store ptr %37, ptr %36, align 8
  %38 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 1
  %39 = extractvalue { ptr, i64 } %35, 1
  store i64 %39, ptr %38, align 8
  %40 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br i1 %40, label %41, label %42

41:                                               ; preds = %31
  br label %44

42:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str.57, ptr noundef @.str.55, i32 noundef 81, ptr noundef @__PRETTY_FUNCTION__._ZN17HPresolveAnalysis20startPresolveRuleLogEi) #6
  unreachable

43:                                               ; No predecessors!
  br label %44

44:                                               ; preds = %43, %41
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  %45 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 9
  store i8 0, ptr %45, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 -1, ptr %7, align 4, !tbaa !9
  %46 = load i32, ptr %4, align 4, !tbaa !9
  %47 = icmp eq i32 %46, -1
  br i1 %47, label %48, label %62

48:                                               ; preds = %44
  %49 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 3
  %50 = load ptr, ptr %49, align 8, !tbaa !28
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !29
  %54 = load i32, ptr %53, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  call void @_Z28utilPresolveRuleTypeToStringB5cxx11i(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, i32 noundef -1)
  %55 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  %56 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.58, i32 noundef -1, i32 noundef %51, i32 noundef %54, ptr noundef %55)
          to label %57 unwind label %58

57:                                               ; preds = %48
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  br label %62

58:                                               ; preds = %48
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %9, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  br label %154

62:                                               ; preds = %57, %44
  %63 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 13
  %64 = getelementptr inbounds %struct.HighsPresolveLog, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %4, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI20HighsPresolveRuleLogSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %66) #5
  %68 = getelementptr inbounds %struct.HighsPresolveRuleLog, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 4, !tbaa !30
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %68, align 4, !tbaa !30
  %71 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 10
  %72 = load i32, ptr %71, align 4, !tbaa !32
  %73 = icmp eq i32 %72, -1
  br i1 %73, label %74, label %75

74:                                               ; preds = %62
  br label %77

75:                                               ; preds = %62
  call void @__assert_fail(ptr noundef @.str.59, ptr noundef @.str.55, i32 noundef 96, ptr noundef @__PRETTY_FUNCTION__._ZN17HPresolveAnalysis20startPresolveRuleLogEi) #6
  unreachable

76:                                               ; No predecessors!
  br label %77

77:                                               ; preds = %76, %74
  %78 = load i32, ptr %4, align 4, !tbaa !9
  %79 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 10
  store i32 %78, ptr %79, align 4, !tbaa !32
  %80 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 11
  %81 = load i32, ptr %80, align 8, !tbaa !33
  %82 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 3
  %83 = load ptr, ptr %82, align 8, !tbaa !28
  %84 = load i32, ptr %83, align 4, !tbaa !9
  %85 = icmp ne i32 %81, %84
  br i1 %85, label %93, label %86

86:                                               ; preds = %77
  %87 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 12
  %88 = load i32, ptr %87, align 4, !tbaa !34
  %89 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !29
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = icmp ne i32 %88, %91
  br i1 %92, label %93, label %111

93:                                               ; preds = %86, %77
  %94 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !35
  %96 = getelementptr inbounds %class.HighsLp, ptr %95, i32 0, i32 10
  %97 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %96) #5
  %98 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 11
  %99 = load i32, ptr %98, align 8, !tbaa !33
  %100 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 3
  %101 = load ptr, ptr %100, align 8, !tbaa !28
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 12
  %104 = load i32, ptr %103, align 4, !tbaa !34
  %105 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 4
  %106 = load ptr, ptr %105, align 8, !tbaa !29
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.60, ptr noundef %97, i32 noundef %99, i32 noundef %102, i32 noundef %104, i32 noundef %107)
  %109 = load ptr, ptr @stdout, align 8, !tbaa !5
  %110 = call i32 @fflush(ptr noundef %109)
  br label %111

111:                                              ; preds = %93, %86
  %112 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 11
  %113 = load i32, ptr %112, align 8, !tbaa !33
  %114 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 3
  %115 = load ptr, ptr %114, align 8, !tbaa !28
  %116 = load i32, ptr %115, align 4, !tbaa !9
  %117 = icmp eq i32 %113, %116
  br i1 %117, label %118, label %119

118:                                              ; preds = %111
  br label %121

119:                                              ; preds = %111
  call void @__assert_fail(ptr noundef @.str.61, ptr noundef @.str.55, i32 noundef 109, ptr noundef @__PRETTY_FUNCTION__._ZN17HPresolveAnalysis20startPresolveRuleLogEi) #6
  unreachable

120:                                              ; No predecessors!
  br label %121

121:                                              ; preds = %120, %118
  %122 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 12
  %123 = load i32, ptr %122, align 4, !tbaa !34
  %124 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !29
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %127 = icmp eq i32 %123, %126
  br i1 %127, label %128, label %129

128:                                              ; preds = %121
  br label %131

129:                                              ; preds = %121
  call void @__assert_fail(ptr noundef @.str.62, ptr noundef @.str.55, i32 noundef 110, ptr noundef @__PRETTY_FUNCTION__._ZN17HPresolveAnalysis20startPresolveRuleLogEi) #6
  unreachable

130:                                              ; No predecessors!
  br label %131

131:                                              ; preds = %130, %128
  %132 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 3
  %133 = load ptr, ptr %132, align 8, !tbaa !28
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 11
  store i32 %134, ptr %135, align 8, !tbaa !33
  %136 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !29
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 12
  store i32 %138, ptr %139, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 -255, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 -688, ptr %12, align 4, !tbaa !9
  %140 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 11
  %141 = load i32, ptr %140, align 8, !tbaa !33
  %142 = icmp eq i32 %141, -255
  br i1 %142, label %143, label %153

143:                                              ; preds = %131
  %144 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 12
  %145 = load i32, ptr %144, align 4, !tbaa !34
  %146 = icmp eq i32 %145, -688
  br i1 %146, label %147, label %153

147:                                              ; preds = %143
  %148 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 11
  %149 = load i32, ptr %148, align 8, !tbaa !33
  %150 = getelementptr inbounds %class.HPresolveAnalysis, ptr %13, i32 0, i32 12
  %151 = load i32, ptr %150, align 4, !tbaa !34
  %152 = call i32 (ptr, ...) @printf(ptr noundef @.str.63, i32 noundef %149, i32 noundef %151)
  br label %153

153:                                              ; preds = %147, %143, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  ret void

154:                                              ; preds = %58
  %155 = load ptr, ptr %9, align 8
  %156 = load i32, ptr %10, align 4
  %157 = insertvalue { ptr, i32 } poison, ptr %155, 0
  %158 = insertvalue { ptr, i32 } %157, i32 %156, 1
  resume { ptr, i32 } %158
}

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

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

declare i32 @printf(ptr noundef, ...) #3

declare i32 @fflush(ptr noundef) #3

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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !12, i64 89}
!14 = !{!"_ZTS17HPresolveAnalysis", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !15, i64 48, !12, i64 88, !12, i64 89, !10, i64 92, !10, i64 96, !10, i64 100, !21, i64 104}
!15 = !{!"_ZTSSt6vectorIbSaIbEE", !16, i64 0}
!16 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !17, i64 0}
!17 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !19, i64 0, !19, i64 16, !6, i64 32}
!19 = !{!"_ZTSSt13_Bit_iterator", !20, i64 0}
!20 = !{!"_ZTSSt18_Bit_iterator_base", !6, i64 0, !10, i64 8}
!21 = !{!"_ZTS16HighsPresolveLog", !22, i64 0}
!22 = !{!"_ZTSSt6vectorI20HighsPresolveRuleLogSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseI20HighsPresolveRuleLogSaIS0_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI20HighsPresolveRuleLogSaIS0_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI20HighsPresolveRuleLogSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!14, !6, i64 24}
!29 = !{!14, !6, i64 32}
!30 = !{!31, !10, i64 0}
!31 = !{!"_ZTS20HighsPresolveRuleLog", !10, i64 0, !10, i64 4, !10, i64 8}
!32 = !{!14, !10, i64 92}
!33 = !{!14, !10, i64 96}
!34 = !{!14, !10, i64 100}
!35 = !{!14, !6, i64 0}


; 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 }

@.str.54 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [84 x i8], align 1
@__PRETTY_FUNCTION__._ZN17HPresolveAnalysis20startPresolveRuleLogEi = external hidden unnamed_addr constant [61 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [116 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.61 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [22 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17HPresolveAnalysis20startPresolveRuleLogEi(ptr noundef nonnull align 8 dereferenceable(128) %0, i32 noundef %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.std::_Bit_reference", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 89
  %5 = load i8, ptr %4, align 1, !tbaa !5, !range !23, !noundef !24
  %6 = trunc nuw i8 %5 to i1
  br i1 %6, label %8, label %7

7:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.54, ptr noundef nonnull @.str.55, i32 noundef 79, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HPresolveAnalysis20startPresolveRuleLogEi) #5
  unreachable

8:                                                ; preds = %2
  %9 = icmp ult i32 %1, 14
  br i1 %9, label %11, label %10

10:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.56, ptr noundef nonnull @.str.55, i32 noundef 80, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HPresolveAnalysis20startPresolveRuleLogEi) #5
  unreachable

11:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %12 = getelementptr inbounds i8, ptr %0, i64 48
  %13 = zext nneg i32 %1 to i64
  %14 = tail call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %13)
  %15 = extractvalue { ptr, i64 } %14, 0
  store ptr %15, ptr %3, align 8
  %16 = getelementptr inbounds i8, ptr %3, i64 8
  %17 = extractvalue { ptr, i64 } %14, 1
  store i64 %17, ptr %16, align 8
  %18 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  br i1 %18, label %20, label %19

19:                                               ; preds = %11
  call void @__assert_fail(ptr noundef nonnull @.str.57, ptr noundef nonnull @.str.55, i32 noundef 81, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HPresolveAnalysis20startPresolveRuleLogEi) #5
  unreachable

20:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  store i8 0, ptr %4, align 1, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %0, i64 104
  %22 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI20HighsPresolveRuleLogSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %13) #6
  %23 = load i32, ptr %22, align 4, !tbaa !25
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %22, align 4, !tbaa !25
  %25 = getelementptr inbounds i8, ptr %0, i64 92
  %26 = load i32, ptr %25, align 4, !tbaa !27
  %27 = icmp eq i32 %26, -1
  br i1 %27, label %29, label %28

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

29:                                               ; preds = %20
  store i32 %1, ptr %25, align 4, !tbaa !27
  %30 = getelementptr inbounds i8, ptr %0, i64 96
  %31 = load i32, ptr %30, align 8, !tbaa !28
  %32 = getelementptr inbounds i8, ptr %0, i64 24
  %33 = load ptr, ptr %32, align 8, !tbaa !29
  %34 = load i32, ptr %33, align 4, !tbaa !30
  %.not = icmp eq i32 %31, %34
  br i1 %.not, label %35, label %41

35:                                               ; preds = %29
  %36 = getelementptr inbounds i8, ptr %0, i64 100
  %37 = load i32, ptr %36, align 4, !tbaa !31
  %38 = getelementptr inbounds i8, ptr %0, i64 32
  %39 = load ptr, ptr %38, align 8, !tbaa !32
  %40 = load i32, ptr %39, align 4, !tbaa !30
  %.not9 = icmp eq i32 %37, %40
  br i1 %.not9, label %.thread, label %41

41:                                               ; preds = %29, %35
  %42 = load ptr, ptr %0, align 8, !tbaa !33
  %43 = getelementptr inbounds i8, ptr %42, i64 256
  %44 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %43) #6
  %45 = load i32, ptr %30, align 8, !tbaa !28
  %46 = load ptr, ptr %32, align 8, !tbaa !29
  %47 = load i32, ptr %46, align 4, !tbaa !30
  %48 = getelementptr inbounds i8, ptr %0, i64 100
  %49 = load i32, ptr %48, align 4, !tbaa !31
  %50 = getelementptr inbounds i8, ptr %0, i64 32
  %51 = load ptr, ptr %50, align 8, !tbaa !32
  %52 = load i32, ptr %51, align 4, !tbaa !30
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.60, ptr noundef %44, i32 noundef %45, i32 noundef %47, i32 noundef %49, i32 noundef %52)
  %54 = load ptr, ptr @stdout, align 8, !tbaa !34
  %55 = call i32 @fflush(ptr noundef %54)
  %.pre = load i32, ptr %30, align 8, !tbaa !28
  %.pre10 = load ptr, ptr %32, align 8, !tbaa !29
  %.pre11 = load i32, ptr %.pre10, align 4, !tbaa !30
  %56 = icmp eq i32 %.pre, %.pre11
  br i1 %56, label %.thread, label %57

57:                                               ; preds = %41
  call void @__assert_fail(ptr noundef nonnull @.str.61, ptr noundef nonnull @.str.55, i32 noundef 109, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HPresolveAnalysis20startPresolveRuleLogEi) #5
  unreachable

.thread:                                          ; preds = %35, %41
  %58 = phi i32 [ %.pre11, %41 ], [ %31, %35 ]
  %59 = getelementptr inbounds i8, ptr %0, i64 100
  %60 = load i32, ptr %59, align 4, !tbaa !31
  %61 = getelementptr inbounds i8, ptr %0, i64 32
  %62 = load ptr, ptr %61, align 8, !tbaa !32
  %63 = load i32, ptr %62, align 4, !tbaa !30
  %64 = icmp eq i32 %60, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %.thread
  call void @__assert_fail(ptr noundef nonnull @.str.62, ptr noundef nonnull @.str.55, i32 noundef 110, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN17HPresolveAnalysis20startPresolveRuleLogEi) #5
  unreachable

66:                                               ; preds = %.thread
  store i32 %58, ptr %30, align 8, !tbaa !28
  %67 = load i32, ptr %62, align 4, !tbaa !30
  store i32 %67, ptr %59, align 4, !tbaa !31
  %68 = icmp eq i32 %58, -255
  %69 = icmp eq i32 %67, -688
  %or.cond = select i1 %68, i1 %69, i1 false
  br i1 %or.cond, label %70, label %72

70:                                               ; preds = %66
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.63, i32 noundef -255, i32 noundef -688)
  br label %72

72:                                               ; preds = %70, %66
  ret void
}

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind }
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, !17, i64 89}
!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 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!26, !10, i64 0}
!26 = !{!"_ZTS20HighsPresolveRuleLog", !10, i64 0, !10, i64 4, !10, i64 8}
!27 = !{!6, !10, i64 92}
!28 = !{!6, !10, i64 96}
!29 = !{!6, !7, i64 24}
!30 = !{!10, !10, i64 0}
!31 = !{!6, !10, i64 100}
!32 = !{!6, !7, i64 32}
!33 = !{!6, !7, i64 0}
!34 = !{!7, !7, i64 0}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PromotePass,SROAPass,SimplifyCFGPass,TailCallElimPass