; LLVM IR from ERGO-Code/HiGHS :: src/util/HFactor.ll (ZN7HFactor5buildEP15HighsTimerClock)

; 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.HighsTimer = type <{ ptr, double, i32, [4 x i8], %"class.std::vector", %"class.std::vector.10", %"class.std::vector.10", %"class.std::vector.17", i32, i32, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = 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.FactorTimer = type { i8 }
%class.HFactor = type { double, double, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %struct.RefactorInfo, i32, i32, i32, i32, i32, i32, i32, double, i8, ptr, ptr, ptr, ptr, double, double, i32, double, %"class.std::unique_ptr", %struct.HighsLogOptions, i8, i8, i32, i32, ptr, i32, %"class.std::vector", %"class.std::vector.10", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.10", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.10", %"class.std::vector.10", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.15", %"class.std::vector.10", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.10", %"class.std::vector", %"class.std::vector", %"class.std::vector.10", %"class.std::vector", %"class.std::vector", %"class.std::vector.10", i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.10", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.10", %"class.std::vector.10", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.10", %class.HVectorBase }
%struct.RefactorInfo = type { i8, %"class.std::vector", %"class.std::vector", %"class.std::vector.3", double }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl" }
%"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl" = type { %"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.9" }
%"struct.std::_Head_base.9" = type { ptr }
%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.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.HVectorBase = type { i32, i32, %"class.std::vector", %"class.std::vector.10", double, %"class.std::vector.15", %"class.std::vector", ptr, i8, i32, %"class.std::vector", %"class.std::vector.10" }

@.str.51 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__._ZN7HFactor5buildEP15HighsTimerClock = external hidden unnamed_addr constant [43 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [26 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 dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7HFactor5buildEP15HighsTimerClock(ptr noundef nonnull align 8 dereferenceable(1912) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %class.HighsTimer, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca %class.FactorTimer, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 136, ptr %6) #5
  call void @_ZN10HighsTimerC2Ev(ptr noundef nonnull align 8 dereferenceable(132) %6)
  %16 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 30
  store ptr %6, ptr %16, align 8, !tbaa !9
  invoke void @_ZN10HighsTimer5startEi(ptr noundef nonnull align 8 dereferenceable(132) %6, i32 noundef 0)
          to label %17 unwind label %23

17:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  store i8 0, ptr %9, align 1, !tbaa !41
  %18 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 15
  %19 = load i8, ptr %18, align 8, !tbaa !42, !range !43, !noundef !44
  %20 = trunc i8 %19 to i1
  br i1 %20, label %21, label %22

21:                                               ; preds = %17
  br label %28

22:                                               ; preds = %17
  call void @__assert_fail(ptr noundef @.str.51, ptr noundef @.str.52, i32 noundef 366, ptr noundef @__PRETTY_FUNCTION__._ZN7HFactor5buildEP15HighsTimerClock) #6
  unreachable

23:                                               ; preds = %2
  %24 = landingpad { ptr, i32 }
          cleanup
  %25 = extractvalue { ptr, i32 } %24, 0
  store ptr %25, ptr %7, align 8
  %26 = extractvalue { ptr, i32 } %24, 1
  store i32 %26, ptr %8, align 4
  br label %211

27:                                               ; No predecessors!
  br label %28

28:                                               ; preds = %27, %21
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  %29 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 6
  %30 = getelementptr inbounds %struct.RefactorInfo, ptr %29, i32 0, i32 0
  %31 = load i8, ptr %30, align 8, !tbaa !45, !range !43, !noundef !44
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %51

33:                                               ; preds = %28
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11FactorTimer5startEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef 38, ptr noundef %34)
          to label %35 unwind label %46

35:                                               ; preds = %33
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = invoke noundef i32 @_ZN7HFactor7rebuildEP15HighsTimerClock(ptr noundef nonnull align 8 dereferenceable(1912) %15, ptr noundef %36)
          to label %38 unwind label %46

38:                                               ; preds = %35
  %39 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 2
  store i32 %37, ptr %39, align 8, !tbaa !46
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11FactorTimer4stopEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef 38, ptr noundef %40)
          to label %41 unwind label %46

41:                                               ; preds = %38
  %42 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 2
  %43 = load i32, ptr %42, align 8, !tbaa !46
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %50, label %45

45:                                               ; preds = %41
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %208

46:                                               ; preds = %61, %59, %58, %55, %53, %51, %38, %35, %33
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %7, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %8, align 4
  br label %210

50:                                               ; preds = %41
  br label %51

51:                                               ; preds = %50, %28
  %52 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 6
  invoke void @_ZN12RefactorInfo5clearEv(ptr noundef nonnull align 8 dereferenceable(88) %52)
          to label %53 unwind label %46

53:                                               ; preds = %51
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11FactorTimer5startEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef 0, ptr noundef %54)
          to label %55 unwind label %46

55:                                               ; preds = %53
  %56 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 1
  store double 0.000000e+00, ptr %56, align 8, !tbaa !47
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11FactorTimer5startEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef 1, ptr noundef %57)
          to label %58 unwind label %46

58:                                               ; preds = %55
  invoke void @_ZN7HFactor11buildSimpleEv(ptr noundef nonnull align 8 dereferenceable(1912) %15)
          to label %59 unwind label %46

59:                                               ; preds = %58
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11FactorTimer4stopEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef 1, ptr noundef %60)
          to label %61 unwind label %46

61:                                               ; preds = %59
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11FactorTimer5startEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef 2, ptr noundef %62)
          to label %63 unwind label %46

63:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %64 = invoke noundef i32 @_ZN7HFactor11buildKernelEv(ptr noundef nonnull align 8 dereferenceable(1912) %15)
          to label %65 unwind label %71

65:                                               ; preds = %63
  store i32 %64, ptr %12, align 4, !tbaa !48
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11FactorTimer4stopEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef 2, ptr noundef %66)
          to label %67 unwind label %71

67:                                               ; preds = %65
  %68 = load i32, ptr %12, align 4, !tbaa !48
  %69 = icmp eq i32 %68, -1
  br i1 %69, label %70, label %75

70:                                               ; preds = %67
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %206

71:                                               ; preds = %65, %63
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %7, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %8, align 4
  br label %207

75:                                               ; preds = %67
  %76 = load i32, ptr %12, align 4, !tbaa !48
  %77 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 2
  store i32 %76, ptr %77, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  %78 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 13
  %79 = load i32, ptr %78, align 8, !tbaa !49
  %80 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 11
  %81 = load i32, ptr %80, align 8, !tbaa !50
  %82 = icmp slt i32 %79, %81
  %83 = zext i1 %82 to i8
  store i8 %83, ptr %13, align 1, !tbaa !41
  %84 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 2
  %85 = load i32, ptr %84, align 8, !tbaa !46
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %90, label %87

87:                                               ; preds = %75
  %88 = load i8, ptr %13, align 1, !tbaa !41, !range !43, !noundef !44
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %112

90:                                               ; preds = %87, %75
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11FactorTimer5startEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef 3, ptr noundef %91)
          to label %92 unwind label %103

92:                                               ; preds = %90
  %93 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 13
  %94 = load i32, ptr %93, align 8, !tbaa !49
  %95 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 11
  %96 = load i32, ptr %95, align 8, !tbaa !50
  %97 = icmp eq i32 %94, %96
  br i1 %97, label %98, label %107

98:                                               ; preds = %92
  %99 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 25
  %100 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 2
  %101 = load i32, ptr %100, align 8, !tbaa !46
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %99, i32 noundef 4, ptr noundef @.str.53, i32 noundef %101)
          to label %102 unwind label %103

102:                                              ; preds = %98
  br label %107

103:                                              ; preds = %200, %162, %145, %139, %138, %136, %115, %109, %108, %107, %98, %90
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %7, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %207

107:                                              ; preds = %102, %92
  invoke void @_ZN7HFactor25buildHandleRankDeficiencyEv(ptr noundef nonnull align 8 dereferenceable(1912) %15)
          to label %108 unwind label %103

108:                                              ; preds = %107
  invoke void @_ZN7HFactor14buildMarkSingCEv(ptr noundef nonnull align 8 dereferenceable(1912) %15)
          to label %109 unwind label %103

109:                                              ; preds = %108
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11FactorTimer4stopEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef 3, ptr noundef %110)
          to label %111 unwind label %103

111:                                              ; preds = %109
  br label %112

112:                                              ; preds = %111, %87
  %113 = load i8, ptr %13, align 1, !tbaa !41, !range !43, !noundef !44
  %114 = trunc i8 %113 to i1
  br i1 %114, label %115, label %136

115:                                              ; preds = %112
  %116 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 6
  invoke void @_ZN12RefactorInfo5clearEv(ptr noundef nonnull align 8 dereferenceable(88) %116)
          to label %117 unwind label %103

117:                                              ; preds = %115
  %118 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 6
  %119 = getelementptr inbounds %struct.RefactorInfo, ptr %118, i32 0, i32 0
  %120 = load i8, ptr %119, align 8, !tbaa !45, !range !43, !noundef !44
  %121 = trunc i8 %120 to i1
  %122 = xor i1 %121, true
  br i1 %122, label %123, label %124

123:                                              ; preds = %117
  br label %126

124:                                              ; preds = %117
  call void @__assert_fail(ptr noundef @.str.54, ptr noundef @.str.52, i32 noundef 422, ptr noundef @__PRETTY_FUNCTION__._ZN7HFactor5buildEP15HighsTimerClock) #6
  unreachable

125:                                              ; No predecessors!
  br label %126

126:                                              ; preds = %125, %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %127 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 2
  %128 = load i32, ptr %127, align 8, !tbaa !46
  %129 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 11
  %130 = load i32, ptr %129, align 8, !tbaa !50
  %131 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 13
  %132 = load i32, ptr %131, align 8, !tbaa !49
  %133 = sub nsw i32 %130, %132
  %134 = sub nsw i32 %128, %133
  store i32 %134, ptr %14, align 4, !tbaa !48
  %135 = load i32, ptr %14, align 4, !tbaa !48
  store i32 %135, ptr %3, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %205

136:                                              ; preds = %112
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11FactorTimer5startEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef 4, ptr noundef %137)
          to label %138 unwind label %103

138:                                              ; preds = %136
  invoke void @_ZN7HFactor11buildFinishEv(ptr noundef nonnull align 8 dereferenceable(1912) %15)
          to label %139 unwind label %103

139:                                              ; preds = %138
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11FactorTimer4stopEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef 4, ptr noundef %140)
          to label %141 unwind label %103

141:                                              ; preds = %139
  %142 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 2
  %143 = load i32, ptr %142, align 8, !tbaa !46
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %148

145:                                              ; preds = %141
  %146 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 6
  invoke void @_ZN12RefactorInfo5clearEv(ptr noundef nonnull align 8 dereferenceable(88) %146)
          to label %147 unwind label %103

147:                                              ; preds = %145
  br label %162

148:                                              ; preds = %141
  %149 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 6
  %150 = getelementptr inbounds %struct.RefactorInfo, ptr %149, i32 0, i32 0
  %151 = load i8, ptr %150, align 8, !tbaa !45, !range !43, !noundef !44
  %152 = trunc i8 %151 to i1
  %153 = xor i1 %152, true
  br i1 %153, label %154, label %155

154:                                              ; preds = %148
  br label %157

155:                                              ; preds = %148
  call void @__assert_fail(ptr noundef @.str.54, ptr noundef @.str.52, i32 noundef 443, ptr noundef @__PRETTY_FUNCTION__._ZN7HFactor5buildEP15HighsTimerClock) #6
  unreachable

156:                                              ; No predecessors!
  br label %157

157:                                              ; preds = %156, %154
  %158 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 1
  %159 = load double, ptr %158, align 8, !tbaa !47
  %160 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 6
  %161 = getelementptr inbounds %struct.RefactorInfo, ptr %160, i32 0, i32 4
  store double %159, ptr %161, align 8, !tbaa !51
  br label %162

162:                                              ; preds = %157, %147
  %163 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 63
  %164 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 11
  %165 = load i32, ptr %164, align 8, !tbaa !50
  %166 = sext i32 %165 to i64
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %163, i64 noundef %166) #5
  %168 = load i32, ptr %167, align 4, !tbaa !48
  %169 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 75
  %170 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 11
  %171 = load i32, ptr %170, align 8, !tbaa !50
  %172 = sub nsw i32 %171, 1
  %173 = sext i32 %172 to i64
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %169, i64 noundef %173) #5
  %175 = load i32, ptr %174, align 4, !tbaa !48
  %176 = add nsw i32 %168, %175
  %177 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 11
  %178 = load i32, ptr %177, align 8, !tbaa !50
  %179 = add nsw i32 %176, %178
  %180 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 8
  store i32 %179, ptr %180, align 4, !tbaa !52
  %181 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 2
  %182 = load i32, ptr %181, align 8, !tbaa !46
  %183 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 9
  %184 = load i32, ptr %183, align 8, !tbaa !53
  %185 = sub nsw i32 %184, %182
  store i32 %185, ptr %183, align 8, !tbaa !53
  %186 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 22
  %187 = load i32, ptr %186, align 8, !tbaa !54
  %188 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 25
  %189 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 2
  %190 = load i32, ptr %189, align 8, !tbaa !46
  %191 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 7
  %192 = load i32, ptr %191, align 8, !tbaa !55
  %193 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 8
  %194 = load i32, ptr %193, align 4, !tbaa !52
  %195 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 9
  %196 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 10
  %197 = load i32, ptr %196, align 4, !tbaa !56
  %198 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 31
  %199 = load i32, ptr %198, align 8, !tbaa !57
  invoke void @_Z22debugLogRankDeficiencyiRK15HighsLogOptionsiiiRKiii(i32 noundef %187, ptr noundef nonnull align 8 dereferenceable(89) %188, i32 noundef %190, i32 noundef %192, i32 noundef %194, ptr noundef nonnull align 4 dereferenceable(4) %195, i32 noundef %197, i32 noundef %199)
          to label %200 unwind label %103

200:                                              ; preds = %162
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN11FactorTimer4stopEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %10, i32 noundef 0, ptr noundef %201)
          to label %202 unwind label %103

202:                                              ; preds = %200
  %203 = getelementptr inbounds %class.HFactor, ptr %15, i32 0, i32 2
  %204 = load i32, ptr %203, align 8, !tbaa !46
  store i32 %204, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %205

205:                                              ; preds = %202, %126
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %206

206:                                              ; preds = %205, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %208

207:                                              ; preds = %103, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %210

208:                                              ; preds = %206, %45
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  call void @_ZN10HighsTimerD2Ev(ptr noundef nonnull align 8 dereferenceable(132) %6) #5
  call void @llvm.lifetime.end.p0(i64 136, ptr %6) #5
  %209 = load i32, ptr %3, align 4
  ret i32 %209

210:                                              ; preds = %207, %46
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  br label %211

211:                                              ; preds = %210, %23
  call void @_ZN10HighsTimerD2Ev(ptr noundef nonnull align 8 dereferenceable(132) %6) #5
  call void @llvm.lifetime.end.p0(i64 136, ptr %6) #5
  br label %212

212:                                              ; preds = %211
  %213 = load ptr, ptr %7, align 8
  %214 = load i32, ptr %8, align 4
  %215 = insertvalue { ptr, i32 } poison, ptr %213, 0
  %216 = insertvalue { ptr, i32 } %215, i32 %214, 1
  resume { ptr, i32 } %216
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10HighsTimerC2Ev(ptr noundef nonnull align 8 dereferenceable(132)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10HighsTimer5startEi(ptr noundef nonnull align 8 dereferenceable(132), i32 noundef) #2 align 2

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

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

declare noundef i32 @_ZN7HFactor7rebuildEP15HighsTimerClock(ptr noundef nonnull align 8 dereferenceable(1912), ptr noundef) #4

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

declare void @_ZN12RefactorInfo5clearEv(ptr noundef nonnull align 8 dereferenceable(88)) #4

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

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

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

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

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

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

declare void @_Z22debugLogRankDeficiencyiRK15HighsLogOptionsiiiRKiii(i32 noundef, ptr noundef nonnull align 8 dereferenceable(89), i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10HighsTimerD2Ev(ptr noundef nonnull align 8 dereferenceable(132)) unnamed_addr #1 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 = { 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 = { "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, !6, i64 416}
!10 = !{!"_ZTS7HFactor", !11, i64 0, !11, i64 8, !12, i64 16, !13, i64 24, !13, i64 48, !13, i64 72, !17, i64 96, !12, i64 184, !12, i64 188, !12, i64 192, !12, i64 196, !12, i64 200, !12, i64 204, !12, i64 208, !11, i64 216, !18, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !11, i64 264, !11, i64 272, !12, i64 280, !11, i64 288, !23, i64 296, !29, i64 304, !18, i64 400, !18, i64 401, !12, i64 404, !12, i64 408, !6, i64 416, !12, i64 424, !13, i64 432, !32, i64 456, !13, i64 480, !13, i64 504, !13, i64 528, !32, i64 552, !13, i64 576, !13, i64 600, !13, i64 624, !13, i64 648, !13, i64 672, !13, i64 696, !13, i64 720, !32, i64 744, !32, i64 768, !13, i64 792, !13, i64 816, !13, i64 840, !13, i64 864, !13, i64 888, !13, i64 912, !36, i64 936, !32, i64 960, !13, i64 984, !13, i64 1008, !13, i64 1032, !13, i64 1056, !13, i64 1080, !13, i64 1104, !13, i64 1128, !13, i64 1152, !13, i64 1176, !13, i64 1200, !32, i64 1224, !13, i64 1248, !13, i64 1272, !32, i64 1296, !13, i64 1320, !13, i64 1344, !32, i64 1368, !12, i64 1392, !12, i64 1396, !13, i64 1400, !13, i64 1424, !13, i64 1448, !32, i64 1472, !13, i64 1496, !13, i64 1520, !13, i64 1544, !13, i64 1568, !32, i64 1592, !32, i64 1616, !13, i64 1640, !13, i64 1664, !13, i64 1688, !32, i64 1712, !40, i64 1736}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTS12RefactorInfo", !18, i64 0, !13, i64 8, !13, i64 32, !19, i64 56, !11, i64 80}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIaSaIaEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIaSaIaEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt10unique_ptrIN7HFactor7LogDataESt14default_deleteIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_dataIN7HFactor7LogDataESt14default_deleteIS1_ELb1ELb1EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_implIN7HFactor7LogDataESt14default_deleteIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt5tupleIJPN7HFactor7LogDataESt14default_deleteIS1_EEE", !27, i64 0}
!27 = !{!"_ZTSSt11_Tuple_implILm0EJPN7HFactor7LogDataESt14default_deleteIS1_EEE", !28, i64 0}
!28 = !{!"_ZTSSt10_Head_baseILm0EPN7HFactor7LogDataELb0EE", !6, i64 0}
!29 = !{!"_ZTS15HighsLogOptions", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !30, i64 48, !6, i64 80, !18, i64 88}
!30 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !31, i64 0, !6, i64 24}
!31 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!32 = !{!"_ZTSSt6vectorIdSaIdEE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSSt6vectorIcSaIcEE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"_ZTS11HVectorBaseIdE", !12, i64 0, !12, i64 4, !13, i64 8, !32, i64 32, !11, i64 56, !36, i64 64, !13, i64 88, !6, i64 112, !18, i64 120, !12, i64 124, !13, i64 128, !32, i64 152}
!41 = !{!18, !18, i64 0}
!42 = !{!10, !18, i64 224}
!43 = !{i8 0, i8 2}
!44 = !{}
!45 = !{!10, !18, i64 96}
!46 = !{!10, !12, i64 16}
!47 = !{!10, !11, i64 8}
!48 = !{!12, !12, i64 0}
!49 = !{!10, !12, i64 208}
!50 = !{!10, !12, i64 200}
!51 = !{!10, !11, i64 176}
!52 = !{!10, !12, i64 188}
!53 = !{!10, !12, i64 192}
!54 = !{!10, !12, i64 280}
!55 = !{!10, !12, i64 184}
!56 = !{!10, !12, i64 196}
!57 = !{!10, !12, i64 424}


; 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.HighsTimer = type <{ ptr, double, i32, [4 x i8], %"class.std::vector", %"class.std::vector.10", %"class.std::vector.10", %"class.std::vector.17", i32, i32, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = 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.FactorTimer = type { i8 }

@.str.51 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__._ZN7HFactor5buildEP15HighsTimerClock = external hidden unnamed_addr constant [43 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [26 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 dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7HFactor5buildEP15HighsTimerClock(ptr noundef nonnull align 8 dereferenceable(1912) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.HighsTimer, align 8
  %4 = alloca %class.FactorTimer, align 1
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %3) #5
  call void @_ZN10HighsTimerC2Ev(ptr noundef nonnull align 8 dereferenceable(132) %3)
  %5 = getelementptr inbounds i8, ptr %0, i64 416
  store ptr %3, ptr %5, align 8, !tbaa !5
  invoke void @_ZN10HighsTimer5startEi(ptr noundef nonnull align 8 dereferenceable(132) %3, i32 noundef 0)
          to label %6 unwind label %11

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 224
  %8 = load i8, ptr %7, align 8, !tbaa !40, !range !41, !noundef !42
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %13, label %10

10:                                               ; preds = %6
  call void @__assert_fail(ptr noundef nonnull @.str.51, ptr noundef nonnull @.str.52, i32 noundef 366, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HFactor5buildEP15HighsTimerClock) #6
  unreachable

11:                                               ; preds = %2
  %12 = landingpad { ptr, i32 }
          cleanup
  br label %118

13:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 96
  %15 = load i8, ptr %14, align 8, !tbaa !43, !range !41, !noundef !42
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %26

17:                                               ; preds = %13
  invoke void @_ZN11FactorTimer5startEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %4, i32 noundef 38, ptr noundef %1)
          to label %18 unwind label %24

18:                                               ; preds = %17
  %19 = invoke noundef i32 @_ZN7HFactor7rebuildEP15HighsTimerClock(ptr noundef nonnull align 8 dereferenceable(1912) %0, ptr noundef %1)
          to label %20 unwind label %24

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %19, ptr %21, align 8, !tbaa !44
  invoke void @_ZN11FactorTimer4stopEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %4, i32 noundef 38, ptr noundef %1)
          to label %22 unwind label %24

22:                                               ; preds = %20
  %23 = load i32, ptr %21, align 8, !tbaa !44
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %116, label %26

24:                                               ; preds = %32, %31, %30, %28, %27, %26, %20, %18, %17
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %117

26:                                               ; preds = %22, %13
  invoke void @_ZN12RefactorInfo5clearEv(ptr noundef nonnull align 8 dereferenceable(88) %14)
          to label %27 unwind label %24

27:                                               ; preds = %26
  invoke void @_ZN11FactorTimer5startEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %4, i32 noundef 0, ptr noundef %1)
          to label %28 unwind label %24

28:                                               ; preds = %27
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  store double 0.000000e+00, ptr %29, align 8, !tbaa !45
  invoke void @_ZN11FactorTimer5startEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %4, i32 noundef 1, ptr noundef %1)
          to label %30 unwind label %24

30:                                               ; preds = %28
  invoke void @_ZN7HFactor11buildSimpleEv(ptr noundef nonnull align 8 dereferenceable(1912) %0)
          to label %31 unwind label %24

31:                                               ; preds = %30
  invoke void @_ZN11FactorTimer4stopEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %4, i32 noundef 1, ptr noundef %1)
          to label %32 unwind label %24

32:                                               ; preds = %31
  invoke void @_ZN11FactorTimer5startEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %4, i32 noundef 2, ptr noundef %1)
          to label %33 unwind label %24

33:                                               ; preds = %32
  %34 = invoke noundef i32 @_ZN7HFactor11buildKernelEv(ptr noundef nonnull align 8 dereferenceable(1912) %0)
          to label %35 unwind label %38

35:                                               ; preds = %33
  invoke void @_ZN11FactorTimer4stopEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %4, i32 noundef 2, ptr noundef %1)
          to label %36 unwind label %38

36:                                               ; preds = %35
  %37 = icmp eq i32 %34, -1
  br i1 %37, label %116, label %40

38:                                               ; preds = %35, %33
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %117

40:                                               ; preds = %36
  %41 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %34, ptr %41, align 8, !tbaa !44
  %42 = getelementptr inbounds i8, ptr %0, i64 208
  %43 = load i32, ptr %42, align 8, !tbaa !46
  %44 = getelementptr inbounds i8, ptr %0, i64 200
  %45 = load i32, ptr %44, align 8, !tbaa !47
  %46 = icmp slt i32 %43, %45
  %.not28 = icmp ne i32 %34, 0
  %brmerge = select i1 %.not28, i1 true, i1 %46
  br i1 %brmerge, label %47, label %60

47:                                               ; preds = %40
  invoke void @_ZN11FactorTimer5startEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %4, i32 noundef 3, ptr noundef %1)
          to label %48 unwind label %55

48:                                               ; preds = %47
  %49 = load i32, ptr %42, align 8, !tbaa !46
  %50 = load i32, ptr %44, align 8, !tbaa !47
  %51 = icmp eq i32 %49, %50
  br i1 %51, label %52, label %57

52:                                               ; preds = %48
  %53 = getelementptr inbounds i8, ptr %0, i64 304
  %54 = load i32, ptr %41, align 8, !tbaa !44
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %53, i32 noundef 4, ptr noundef nonnull @.str.53, i32 noundef %54)
          to label %57 unwind label %55

55:                                               ; preds = %113, %84, %76, %73, %72, %71, %61, %59, %58, %57, %52, %47
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %117

57:                                               ; preds = %52, %48
  invoke void @_ZN7HFactor25buildHandleRankDeficiencyEv(ptr noundef nonnull align 8 dereferenceable(1912) %0)
          to label %58 unwind label %55

58:                                               ; preds = %57
  invoke void @_ZN7HFactor14buildMarkSingCEv(ptr noundef nonnull align 8 dereferenceable(1912) %0)
          to label %59 unwind label %55

59:                                               ; preds = %58
  invoke void @_ZN11FactorTimer4stopEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %4, i32 noundef 3, ptr noundef %1)
          to label %60 unwind label %55

60:                                               ; preds = %40, %59
  br i1 %46, label %61, label %71

61:                                               ; preds = %60
  invoke void @_ZN12RefactorInfo5clearEv(ptr noundef nonnull align 8 dereferenceable(88) %14)
          to label %62 unwind label %55

62:                                               ; preds = %61
  %63 = load i8, ptr %14, align 8, !tbaa !43, !range !41, !noundef !42
  %64 = trunc nuw i8 %63 to i1
  br i1 %64, label %65, label %66

65:                                               ; preds = %62
  call void @__assert_fail(ptr noundef nonnull @.str.54, ptr noundef nonnull @.str.52, i32 noundef 422, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HFactor5buildEP15HighsTimerClock) #6
  unreachable

66:                                               ; preds = %62
  %67 = load i32, ptr %41, align 8, !tbaa !44
  %68 = load i32, ptr %44, align 8, !tbaa !47
  %69 = load i32, ptr %42, align 8, !tbaa !46
  %.neg = sub i32 %67, %68
  %70 = add i32 %.neg, %69
  br label %116

71:                                               ; preds = %60
  invoke void @_ZN11FactorTimer5startEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %4, i32 noundef 4, ptr noundef %1)
          to label %72 unwind label %55

72:                                               ; preds = %71
  invoke void @_ZN7HFactor11buildFinishEv(ptr noundef nonnull align 8 dereferenceable(1912) %0)
          to label %73 unwind label %55

73:                                               ; preds = %72
  invoke void @_ZN11FactorTimer4stopEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %4, i32 noundef 4, ptr noundef %1)
          to label %74 unwind label %55

74:                                               ; preds = %73
  %75 = load i32, ptr %41, align 8, !tbaa !44
  %.not29 = icmp eq i32 %75, 0
  br i1 %.not29, label %77, label %76

76:                                               ; preds = %74
  invoke void @_ZN12RefactorInfo5clearEv(ptr noundef nonnull align 8 dereferenceable(88) %14)
          to label %84 unwind label %55

77:                                               ; preds = %74
  %78 = load i8, ptr %14, align 8, !tbaa !43, !range !41, !noundef !42
  %79 = trunc nuw i8 %78 to i1
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  call void @__assert_fail(ptr noundef nonnull @.str.54, ptr noundef nonnull @.str.52, i32 noundef 443, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HFactor5buildEP15HighsTimerClock) #6
  unreachable

81:                                               ; preds = %77
  %82 = load double, ptr %29, align 8, !tbaa !45
  %83 = getelementptr inbounds i8, ptr %0, i64 176
  store double %82, ptr %83, align 8, !tbaa !48
  br label %84

84:                                               ; preds = %76, %81
  %85 = getelementptr inbounds i8, ptr %0, i64 1176
  %86 = load i32, ptr %44, align 8, !tbaa !47
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %87) #5
  %89 = load i32, ptr %88, align 4, !tbaa !49
  %90 = getelementptr inbounds i8, ptr %0, i64 1424
  %91 = load i32, ptr %44, align 8, !tbaa !47
  %92 = add nsw i32 %91, -1
  %93 = sext i32 %92 to i64
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %93) #5
  %95 = load i32, ptr %94, align 4, !tbaa !49
  %96 = add nsw i32 %95, %89
  %97 = load i32, ptr %44, align 8, !tbaa !47
  %98 = add nsw i32 %96, %97
  %99 = getelementptr inbounds i8, ptr %0, i64 188
  store i32 %98, ptr %99, align 4, !tbaa !50
  %100 = load i32, ptr %41, align 8, !tbaa !44
  %101 = getelementptr inbounds i8, ptr %0, i64 192
  %102 = load i32, ptr %101, align 8, !tbaa !51
  %103 = sub nsw i32 %102, %100
  store i32 %103, ptr %101, align 8, !tbaa !51
  %104 = getelementptr inbounds i8, ptr %0, i64 280
  %105 = load i32, ptr %104, align 8, !tbaa !52
  %106 = getelementptr inbounds i8, ptr %0, i64 304
  %107 = getelementptr inbounds i8, ptr %0, i64 184
  %108 = load i32, ptr %107, align 8, !tbaa !53
  %109 = getelementptr inbounds i8, ptr %0, i64 196
  %110 = load i32, ptr %109, align 4, !tbaa !54
  %111 = getelementptr inbounds i8, ptr %0, i64 424
  %112 = load i32, ptr %111, align 8, !tbaa !55
  invoke void @_Z22debugLogRankDeficiencyiRK15HighsLogOptionsiiiRKiii(i32 noundef %105, ptr noundef nonnull align 8 dereferenceable(89) %106, i32 noundef %100, i32 noundef %108, i32 noundef %98, ptr noundef nonnull align 4 dereferenceable(4) %101, i32 noundef %110, i32 noundef %112)
          to label %113 unwind label %55

113:                                              ; preds = %84
  invoke void @_ZN11FactorTimer4stopEiP15HighsTimerClock(ptr noundef nonnull align 1 dereferenceable(1) %4, i32 noundef 0, ptr noundef %1)
          to label %114 unwind label %55

114:                                              ; preds = %113
  %115 = load i32, ptr %41, align 8, !tbaa !44
  br label %116

116:                                              ; preds = %36, %114, %66, %22
  %.2 = phi i32 [ 0, %22 ], [ -1, %36 ], [ %70, %66 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @_ZN10HighsTimerD2Ev(ptr noundef nonnull align 8 dereferenceable(132) %3) #5
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %3) #5
  ret i32 %.2

117:                                              ; preds = %38, %55, %24
  %.pn.pn = phi { ptr, i32 } [ %25, %24 ], [ %56, %55 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  br label %118

118:                                              ; preds = %117, %11
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %117 ], [ %12, %11 ]
  call void @_ZN10HighsTimerD2Ev(ptr noundef nonnull align 8 dereferenceable(132) %3) #5
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10HighsTimerC2Ev(ptr noundef nonnull align 8 dereferenceable(132)) unnamed_addr #2 align 2

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

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

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

declare noundef i32 @_ZN7HFactor7rebuildEP15HighsTimerClock(ptr noundef nonnull align 8 dereferenceable(1912), ptr noundef) local_unnamed_addr #4

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

declare void @_ZN12RefactorInfo5clearEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

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

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

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

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

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

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

declare void @_Z22debugLogRankDeficiencyiRK15HighsLogOptionsiiiRKiii(i32 noundef, ptr noundef nonnull align 8 dereferenceable(89), i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10HighsTimerD2Ev(ptr noundef nonnull align 8 dereferenceable(132)) unnamed_addr #1 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 = { 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 = { "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, !15, i64 416}
!6 = !{!"_ZTS7HFactor", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !11, i64 48, !11, i64 72, !16, i64 96, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !7, i64 216, !17, i64 224, !15, i64 232, !15, i64 240, !15, i64 248, !15, i64 256, !7, i64 264, !7, i64 272, !10, i64 280, !7, i64 288, !22, i64 296, !28, i64 304, !17, i64 400, !17, i64 401, !10, i64 404, !10, i64 408, !15, i64 416, !10, i64 424, !11, i64 432, !31, i64 456, !11, i64 480, !11, i64 504, !11, i64 528, !31, i64 552, !11, i64 576, !11, i64 600, !11, i64 624, !11, i64 648, !11, i64 672, !11, i64 696, !11, i64 720, !31, i64 744, !31, i64 768, !11, i64 792, !11, i64 816, !11, i64 840, !11, i64 864, !11, i64 888, !11, i64 912, !35, i64 936, !31, i64 960, !11, i64 984, !11, i64 1008, !11, i64 1032, !11, i64 1056, !11, i64 1080, !11, i64 1104, !11, i64 1128, !11, i64 1152, !11, i64 1176, !11, i64 1200, !31, i64 1224, !11, i64 1248, !11, i64 1272, !31, i64 1296, !11, i64 1320, !11, i64 1344, !31, i64 1368, !10, i64 1392, !10, i64 1396, !11, i64 1400, !11, i64 1424, !11, i64 1448, !31, i64 1472, !11, i64 1496, !11, i64 1520, !11, i64 1544, !11, i64 1568, !31, i64 1592, !31, i64 1616, !11, i64 1640, !11, i64 1664, !11, i64 1688, !31, i64 1712, !39, i64 1736}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSSt6vectorIiSaIiEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTS12RefactorInfo", !17, i64 0, !11, i64 8, !11, i64 32, !18, i64 56, !7, i64 80}
!17 = !{!"bool", !8, i64 0}
!18 = !{!"_ZTSSt6vectorIaSaIaEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIaSaIaEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!22 = !{!"_ZTSSt10unique_ptrIN7HFactor7LogDataESt14default_deleteIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_dataIN7HFactor7LogDataESt14default_deleteIS1_ELb1ELb1EE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_implIN7HFactor7LogDataESt14default_deleteIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt5tupleIJPN7HFactor7LogDataESt14default_deleteIS1_EEE", !26, i64 0}
!26 = !{!"_ZTSSt11_Tuple_implILm0EJPN7HFactor7LogDataESt14default_deleteIS1_EEE", !27, i64 0}
!27 = !{!"_ZTSSt10_Head_baseILm0EPN7HFactor7LogDataELb0EE", !15, i64 0}
!28 = !{!"_ZTS15HighsLogOptions", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !29, i64 48, !15, i64 80, !17, i64 88}
!29 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !30, i64 0, !15, i64 24}
!30 = !{!"_ZTSSt14_Function_base", !8, i64 0, !15, i64 16}
!31 = !{!"_ZTSSt6vectorIdSaIdEE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!35 = !{!"_ZTSSt6vectorIcSaIcEE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!39 = !{!"_ZTS11HVectorBaseIdE", !10, i64 0, !10, i64 4, !11, i64 8, !31, i64 32, !7, i64 56, !35, i64 64, !11, i64 88, !15, i64 112, !17, i64 120, !10, i64 124, !11, i64 128, !31, i64 152}
!40 = !{!6, !17, i64 224}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!6, !17, i64 96}
!44 = !{!6, !10, i64 16}
!45 = !{!6, !7, i64 8}
!46 = !{!6, !10, i64 208}
!47 = !{!6, !10, i64 200}
!48 = !{!6, !7, i64 176}
!49 = !{!10, !10, i64 0}
!50 = !{!6, !10, i64 188}
!51 = !{!6, !10, i64 192}
!52 = !{!6, !10, i64 280}
!53 = !{!6, !10, i64 184}
!54 = !{!6, !10, i64 196}
!55 = !{!6, !10, i64 424}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass