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

; 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.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.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.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.52 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [38 x i8], align 1
@__PRETTY_FUNCTION__._ZN7HFactor25buildHandleRankDeficiencyEv = external hidden unnamed_addr constant [42 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7HFactor25buildHandleRankDeficiencyEv(ptr noundef nonnull align 8 dereferenceable(1912) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8
  %20 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 22
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 25
  %23 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %24 = load i32, ptr %23, align 8, !tbaa !41
  %25 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 38
  %26 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 32
  %27 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 19
  %28 = load ptr, ptr %27, align 8, !tbaa !42
  %29 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 2
  %30 = load i32, ptr %29, align 8, !tbaa !43
  %31 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 3
  %32 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 4
  call void @_Z25debugReportRankDeficiencyiiRK15HighsLogOptionsiRKSt6vectorIiSaIiEES6_PKiiS6_S6_(i32 noundef 0, i32 noundef %21, ptr noundef nonnull align 8 dereferenceable(89) %22, i32 noundef %24, ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef %28, i32 noundef %30, ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %32)
  %33 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 13
  %34 = load i32, ptr %33, align 8, !tbaa !44
  %35 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %36 = load i32, ptr %35, align 8, !tbaa !41
  %37 = icmp slt i32 %34, %36
  br i1 %37, label %38, label %47

38:                                               ; preds = %1
  %39 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %40 = load i32, ptr %39, align 8, !tbaa !41
  %41 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 13
  %42 = load i32, ptr %41, align 8, !tbaa !44
  %43 = sub nsw i32 %40, %42
  %44 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 2
  %45 = load i32, ptr %44, align 8, !tbaa !43
  %46 = add nsw i32 %45, %43
  store i32 %46, ptr %44, align 8, !tbaa !43
  br label %47

47:                                               ; preds = %38, %1
  %48 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 3
  %49 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 2
  %50 = load i32, ptr %49, align 8, !tbaa !43
  %51 = sext i32 %50 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %51)
  %52 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 4
  %53 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 2
  %54 = load i32, ptr %53, align 8, !tbaa !43
  %55 = sext i32 %54 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %55)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !45
  %56 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 13
  %57 = load i32, ptr %56, align 8, !tbaa !44
  %58 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %59 = load i32, ptr %58, align 8, !tbaa !41
  %60 = icmp slt i32 %57, %59
  br i1 %60, label %61, label %66

61:                                               ; preds = %47
  %62 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 32
  %63 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %64 = load i32, ptr %63, align 8, !tbaa !41
  %65 = sext i32 %64 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %65)
  br label %78

66:                                               ; preds = %47
  %67 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 13
  %68 = load i32, ptr %67, align 8, !tbaa !44
  %69 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %70 = load i32, ptr %69, align 8, !tbaa !41
  %71 = icmp sgt i32 %68, %70
  br i1 %71, label %72, label %77

72:                                               ; preds = %66
  %73 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 32
  %74 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 13
  %75 = load i32, ptr %74, align 8, !tbaa !44
  %76 = sext i32 %75 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %76)
  br label %77

77:                                               ; preds = %72, %66
  br label %78

78:                                               ; preds = %77, %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !45
  br label %79

79:                                               ; preds = %90, %78
  %80 = load i32, ptr %4, align 4, !tbaa !45
  %81 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %82 = load i32, ptr %81, align 8, !tbaa !41
  %83 = icmp slt i32 %80, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %93

85:                                               ; preds = %79
  %86 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 32
  %87 = load i32, ptr %4, align 4, !tbaa !45
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %88) #6
  store i32 -1, ptr %89, align 4, !tbaa !45
  br label %90

90:                                               ; preds = %85
  %91 = load i32, ptr %4, align 4, !tbaa !45
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %4, align 4, !tbaa !45
  br label %79, !llvm.loop !46

93:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !45
  br label %94

94:                                               ; preds = %127, %93
  %95 = load i32, ptr %5, align 4, !tbaa !45
  %96 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 13
  %97 = load i32, ptr %96, align 8, !tbaa !44
  %98 = icmp slt i32 %95, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %130

100:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %101 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 38
  %102 = load i32, ptr %5, align 4, !tbaa !45
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %103) #6
  %105 = load i32, ptr %104, align 4, !tbaa !45
  store i32 %105, ptr %6, align 4, !tbaa !45
  %106 = load i32, ptr %6, align 4, !tbaa !45
  %107 = icmp sge i32 %106, 0
  br i1 %107, label %108, label %119

108:                                              ; preds = %100
  %109 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 19
  %110 = load ptr, ptr %109, align 8, !tbaa !42
  %111 = load i32, ptr %5, align 4, !tbaa !45
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds i32, ptr %110, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !45
  %115 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 32
  %116 = load i32, ptr %6, align 4, !tbaa !45
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %117) #6
  store i32 %114, ptr %118, align 4, !tbaa !45
  br label %126

119:                                              ; preds = %100
  %120 = load i32, ptr %5, align 4, !tbaa !45
  %121 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 4
  %122 = load i32, ptr %3, align 4, !tbaa !45
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %3, align 4, !tbaa !45
  %124 = sext i32 %122 to i64
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %124) #6
  store i32 %120, ptr %125, align 4, !tbaa !45
  br label %126

126:                                              ; preds = %119, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %5, align 4, !tbaa !45
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %5, align 4, !tbaa !45
  br label %94, !llvm.loop !48

130:                                              ; preds = %99
  %131 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 13
  %132 = load i32, ptr %131, align 8, !tbaa !44
  %133 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %134 = load i32, ptr %133, align 8, !tbaa !41
  %135 = icmp slt i32 %132, %134
  br i1 %135, label %136, label %164

136:                                              ; preds = %130
  %137 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 38
  %138 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %139 = load i32, ptr %138, align 8, !tbaa !41
  %140 = sext i32 %139 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %140)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %141 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 13
  %142 = load i32, ptr %141, align 8, !tbaa !44
  store i32 %142, ptr %7, align 4, !tbaa !45
  br label %143

143:                                              ; preds = %160, %136
  %144 = load i32, ptr %7, align 4, !tbaa !45
  %145 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %146 = load i32, ptr %145, align 8, !tbaa !41
  %147 = icmp slt i32 %144, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %163

149:                                              ; preds = %143
  %150 = load i32, ptr %7, align 4, !tbaa !45
  %151 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 4
  %152 = load i32, ptr %3, align 4, !tbaa !45
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %3, align 4, !tbaa !45
  %154 = sext i32 %152 to i64
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %154) #6
  store i32 %150, ptr %155, align 4, !tbaa !45
  %156 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 38
  %157 = load i32, ptr %7, align 4, !tbaa !45
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %158) #6
  store i32 -1, ptr %159, align 4, !tbaa !45
  br label %160

160:                                              ; preds = %149
  %161 = load i32, ptr %7, align 4, !tbaa !45
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %7, align 4, !tbaa !45
  br label %143, !llvm.loop !49

163:                                              ; preds = %148
  br label %164

164:                                              ; preds = %163, %130
  %165 = load i32, ptr %3, align 4, !tbaa !45
  %166 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 2
  %167 = load i32, ptr %166, align 8, !tbaa !43
  %168 = icmp eq i32 %165, %167
  br i1 %168, label %169, label %170

169:                                              ; preds = %164
  br label %172

170:                                              ; preds = %164
  call void @__assert_fail(ptr noundef @.str.67, ptr noundef @.str.52, i32 noundef 1314, ptr noundef @__PRETTY_FUNCTION__._ZN7HFactor25buildHandleRankDeficiencyEv) #7
  unreachable

171:                                              ; No predecessors!
  br label %172

172:                                              ; preds = %171, %169
  store i32 0, ptr %3, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !45
  br label %173

173:                                              ; preds = %202, %172
  %174 = load i32, ptr %8, align 4, !tbaa !45
  %175 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %176 = load i32, ptr %175, align 8, !tbaa !41
  %177 = icmp slt i32 %174, %176
  br i1 %177, label %179, label %178

178:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %205

179:                                              ; preds = %173
  %180 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 32
  %181 = load i32, ptr %8, align 4, !tbaa !45
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %182) #6
  %184 = load i32, ptr %183, align 4, !tbaa !45
  %185 = icmp slt i32 %184, 0
  br i1 %185, label %186, label %201

186:                                              ; preds = %179
  %187 = load i32, ptr %8, align 4, !tbaa !45
  %188 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 3
  %189 = load i32, ptr %3, align 4, !tbaa !45
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %188, i64 noundef %190) #6
  store i32 %187, ptr %191, align 4, !tbaa !45
  %192 = load i32, ptr %3, align 4, !tbaa !45
  %193 = add nsw i32 %192, 1
  %194 = sub nsw i32 0, %193
  %195 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 32
  %196 = load i32, ptr %8, align 4, !tbaa !45
  %197 = sext i32 %196 to i64
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %195, i64 noundef %197) #6
  store i32 %194, ptr %198, align 4, !tbaa !45
  %199 = load i32, ptr %3, align 4, !tbaa !45
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %3, align 4, !tbaa !45
  br label %201

201:                                              ; preds = %186, %179
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %8, align 4, !tbaa !45
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %8, align 4, !tbaa !45
  br label %173, !llvm.loop !50

205:                                              ; preds = %178
  %206 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %207 = load i32, ptr %206, align 8, !tbaa !41
  %208 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 13
  %209 = load i32, ptr %208, align 8, !tbaa !44
  %210 = icmp slt i32 %207, %209
  br i1 %210, label %211, label %239

211:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %212 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %213 = load i32, ptr %212, align 8, !tbaa !41
  store i32 %213, ptr %9, align 4, !tbaa !45
  br label %214

214:                                              ; preds = %235, %211
  %215 = load i32, ptr %9, align 4, !tbaa !45
  %216 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 13
  %217 = load i32, ptr %216, align 8, !tbaa !44
  %218 = icmp slt i32 %215, %217
  br i1 %218, label %220, label %219

219:                                              ; preds = %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %238

220:                                              ; preds = %214
  %221 = load i32, ptr %9, align 4, !tbaa !45
  %222 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 3
  %223 = load i32, ptr %3, align 4, !tbaa !45
  %224 = sext i32 %223 to i64
  %225 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %222, i64 noundef %224) #6
  store i32 %221, ptr %225, align 4, !tbaa !45
  %226 = load i32, ptr %3, align 4, !tbaa !45
  %227 = add nsw i32 %226, 1
  %228 = sub nsw i32 0, %227
  %229 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 32
  %230 = load i32, ptr %9, align 4, !tbaa !45
  %231 = sext i32 %230 to i64
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %229, i64 noundef %231) #6
  store i32 %228, ptr %232, align 4, !tbaa !45
  %233 = load i32, ptr %3, align 4, !tbaa !45
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %3, align 4, !tbaa !45
  br label %235

235:                                              ; preds = %220
  %236 = load i32, ptr %9, align 4, !tbaa !45
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %9, align 4, !tbaa !45
  br label %214, !llvm.loop !51

238:                                              ; preds = %219
  br label %239

239:                                              ; preds = %238, %205
  %240 = load i32, ptr %3, align 4, !tbaa !45
  %241 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 2
  %242 = load i32, ptr %241, align 8, !tbaa !43
  %243 = icmp eq i32 %240, %242
  br i1 %243, label %244, label %245

244:                                              ; preds = %239
  br label %247

245:                                              ; preds = %239
  call void @__assert_fail(ptr noundef @.str.67, ptr noundef @.str.52, i32 noundef 1336, ptr noundef @__PRETTY_FUNCTION__._ZN7HFactor25buildHandleRankDeficiencyEv) #7
  unreachable

246:                                              ; No predecessors!
  br label %247

247:                                              ; preds = %246, %244
  %248 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 22
  %249 = load i32, ptr %248, align 8, !tbaa !9
  %250 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 25
  %251 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %252 = load i32, ptr %251, align 8, !tbaa !41
  %253 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 38
  %254 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 32
  %255 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 19
  %256 = load ptr, ptr %255, align 8, !tbaa !42
  %257 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 2
  %258 = load i32, ptr %257, align 8, !tbaa !43
  %259 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 3
  %260 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 4
  call void @_Z25debugReportRankDeficiencyiiRK15HighsLogOptionsiRKSt6vectorIiSaIiEES6_PKiiS6_S6_(i32 noundef 1, i32 noundef %249, ptr noundef nonnull align 8 dereferenceable(89) %250, i32 noundef %252, ptr noundef nonnull align 8 dereferenceable(24) %253, ptr noundef nonnull align 8 dereferenceable(24) %254, ptr noundef %256, i32 noundef %258, ptr noundef nonnull align 8 dereferenceable(24) %259, ptr noundef nonnull align 8 dereferenceable(24) %260)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %261 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 2
  %262 = load i32, ptr %261, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %263 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 13
  %264 = load i32, ptr %263, align 8, !tbaa !44
  %265 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %266 = load i32, ptr %265, align 8, !tbaa !41
  %267 = sub nsw i32 %264, %266
  store i32 %267, ptr %11, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !45
  %268 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %269 = load i32, ptr %268, align 4, !tbaa !45
  %270 = sub nsw i32 %262, %269
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  store i32 %270, ptr %10, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !45
  br label %271

271:                                              ; preds = %318, %247
  %272 = load i32, ptr %13, align 4, !tbaa !45
  %273 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 2
  %274 = load i32, ptr %273, align 8, !tbaa !43
  %275 = icmp slt i32 %272, %274
  br i1 %275, label %277, label %276

276:                                              ; preds = %271
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %321

277:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %278 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 3
  %279 = load i32, ptr %13, align 4, !tbaa !45
  %280 = sext i32 %279 to i64
  %281 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %278, i64 noundef %280) #6
  %282 = load i32, ptr %281, align 4, !tbaa !45
  store i32 %282, ptr %14, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %283 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 4
  %284 = load i32, ptr %13, align 4, !tbaa !45
  %285 = sext i32 %284 to i64
  %286 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %283, i64 noundef %285) #6
  %287 = load i32, ptr %286, align 4, !tbaa !45
  store i32 %287, ptr %15, align 4, !tbaa !45
  %288 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 38
  %289 = load i32, ptr %15, align 4, !tbaa !45
  %290 = sext i32 %289 to i64
  %291 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef %290) #6
  %292 = load i32, ptr %291, align 4, !tbaa !45
  %293 = icmp eq i32 %292, -1
  br i1 %293, label %294, label %295

294:                                              ; preds = %277
  br label %297

295:                                              ; preds = %277
  call void @__assert_fail(ptr noundef @.str.68, ptr noundef @.str.52, i32 noundef 1347, ptr noundef @__PRETTY_FUNCTION__._ZN7HFactor25buildHandleRankDeficiencyEv) #7
  unreachable

296:                                              ; No predecessors!
  br label %297

297:                                              ; preds = %296, %294
  %298 = load i32, ptr %14, align 4, !tbaa !45
  %299 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 38
  %300 = load i32, ptr %15, align 4, !tbaa !45
  %301 = sext i32 %300 to i64
  %302 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %299, i64 noundef %301) #6
  store i32 %298, ptr %302, align 4, !tbaa !45
  %303 = load i32, ptr %13, align 4, !tbaa !45
  %304 = load i32, ptr %10, align 4, !tbaa !45
  %305 = icmp slt i32 %303, %304
  br i1 %305, label %306, label %317

306:                                              ; preds = %297
  %307 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 63
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %308 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 64
  %309 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %308) #6
  %310 = trunc i64 %309 to i32
  store i32 %310, ptr %16, align 4, !tbaa !45
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %307, ptr noundef nonnull align 4 dereferenceable(4) %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %311 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 70
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %311, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %312 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 71
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store double 1.000000e+00, ptr %17, align 8, !tbaa !52
  call void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %312, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %313 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 74
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %314 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 76
  %315 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %314) #6
  %316 = trunc i64 %315 to i32
  store i32 %316, ptr %18, align 4, !tbaa !45
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %313, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %317

317:                                              ; preds = %306, %297
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %318

318:                                              ; preds = %317
  %319 = load i32, ptr %13, align 4, !tbaa !45
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %13, align 4, !tbaa !45
  br label %271, !llvm.loop !53

321:                                              ; preds = %276
  %322 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 22
  %323 = load i32, ptr %322, align 8, !tbaa !9
  %324 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 25
  %325 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %326 = load i32, ptr %325, align 8, !tbaa !41
  %327 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 38
  %328 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 32
  %329 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 19
  %330 = load ptr, ptr %329, align 8, !tbaa !42
  %331 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 2
  %332 = load i32, ptr %331, align 8, !tbaa !43
  %333 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 3
  %334 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 4
  call void @_Z25debugReportRankDeficiencyiiRK15HighsLogOptionsiRKSt6vectorIiSaIiEES6_PKiiS6_S6_(i32 noundef 2, i32 noundef %323, ptr noundef nonnull align 8 dereferenceable(89) %324, i32 noundef %326, ptr noundef nonnull align 8 dereferenceable(24) %327, ptr noundef nonnull align 8 dereferenceable(24) %328, ptr noundef %330, i32 noundef %332, ptr noundef nonnull align 8 dereferenceable(24) %333, ptr noundef nonnull align 8 dereferenceable(24) %334)
  %335 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 22
  %336 = load i32, ptr %335, align 8, !tbaa !9
  %337 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 25
  %338 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 11
  %339 = load i32, ptr %338, align 8, !tbaa !41
  %340 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 40
  %341 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 41
  %342 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 44
  %343 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 45
  %344 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 32
  %345 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 2
  %346 = load i32, ptr %345, align 8, !tbaa !43
  %347 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 4
  %348 = getelementptr inbounds %class.HFactor, ptr %19, i32 0, i32 3
  call void @_Z27debugReportRankDeficientASMiRK15HighsLogOptionsiRKSt6vectorIiSaIiEES6_S6_RKS2_IdSaIdEES6_iS6_S6_(i32 noundef %336, ptr noundef nonnull align 8 dereferenceable(89) %337, i32 noundef %339, ptr noundef nonnull align 8 dereferenceable(24) %340, ptr noundef nonnull align 8 dereferenceable(24) %341, ptr noundef nonnull align 8 dereferenceable(24) %342, ptr noundef nonnull align 8 dereferenceable(24) %343, ptr noundef nonnull align 8 dereferenceable(24) %344, i32 noundef %346, ptr noundef nonnull align 8 dereferenceable(24) %347, ptr noundef nonnull align 8 dereferenceable(24) %348)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret void
}

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

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

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

declare void @_Z25debugReportRankDeficiencyiiRK15HighsLogOptionsiRKSt6vectorIiSaIiEES6_PKiiS6_S6_(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(89), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5

declare void @_Z27debugReportRankDeficientASMiRK15HighsLogOptionsiRKSt6vectorIiSaIiEES6_S6_RKS2_IdSaIdEES6_iS6_S6_(i32 noundef, ptr noundef nonnull align 8 dereferenceable(89), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { 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, !12, i64 280}
!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 = !{!10, !12, i64 200}
!42 = !{!10, !6, i64 256}
!43 = !{!10, !12, i64 16}
!44 = !{!10, !12, i64 208}
!45 = !{!12, !12, i64 0}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = distinct !{!48, !47}
!49 = distinct !{!49, !47}
!50 = distinct !{!50, !47}
!51 = distinct !{!51, !47}
!52 = !{!11, !11, i64 0}
!53 = distinct !{!53, !47}


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

@.str.52 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [38 x i8], align 1
@__PRETTY_FUNCTION__._ZN7HFactor25buildHandleRankDeficiencyEv = external hidden unnamed_addr constant [42 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

; Function Attrs: mustprogress 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7HFactor25buildHandleRankDeficiencyEv(ptr noundef nonnull align 8 dereferenceable(1912) %0) local_unnamed_addr #3 align 2 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = getelementptr inbounds i8, ptr %0, i64 280
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 304
  %11 = getelementptr inbounds i8, ptr %0, i64 200
  %12 = load i32, ptr %11, align 8, !tbaa !40
  %13 = getelementptr inbounds i8, ptr %0, i64 576
  %14 = getelementptr inbounds i8, ptr %0, i64 432
  %15 = getelementptr inbounds i8, ptr %0, i64 256
  %16 = load ptr, ptr %15, align 8, !tbaa !41
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load i32, ptr %17, align 8, !tbaa !42
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  %20 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_Z25debugReportRankDeficiencyiiRK15HighsLogOptionsiRKSt6vectorIiSaIiEES6_PKiiS6_S6_(i32 noundef 0, i32 noundef %9, ptr noundef nonnull align 8 dereferenceable(89) %10, i32 noundef %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef %16, i32 noundef %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
  %21 = getelementptr inbounds i8, ptr %0, i64 208
  %22 = load i32, ptr %21, align 8, !tbaa !43
  %23 = load i32, ptr %11, align 8, !tbaa !40
  %24 = icmp slt i32 %22, %23
  %.pre = load i32, ptr %17, align 8, !tbaa !42
  br i1 %24, label %25, label %28

25:                                               ; preds = %1
  %26 = sub i32 %23, %22
  %27 = add nsw i32 %26, %.pre
  store i32 %27, ptr %17, align 8, !tbaa !42
  br label %28

28:                                               ; preds = %25, %1
  %29 = phi i32 [ %27, %25 ], [ %.pre, %1 ]
  %30 = sext i32 %29 to i64
  tail call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %30)
  %31 = load i32, ptr %17, align 8, !tbaa !42
  %32 = sext i32 %31 to i64
  tail call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %32)
  %33 = load i32, ptr %21, align 8, !tbaa !43
  %34 = load i32, ptr %11, align 8, !tbaa !40
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %thread-pre-split, label %36

36:                                               ; preds = %28
  %37 = icmp sgt i32 %33, %34
  br i1 %37, label %thread-pre-split, label %39

thread-pre-split:                                 ; preds = %36, %28
  %.sink125 = phi i32 [ %34, %28 ], [ %33, %36 ]
  %38 = sext i32 %.sink125 to i64
  tail call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %38)
  %.pr = load i32, ptr %11, align 8, !tbaa !40
  br label %39

39:                                               ; preds = %thread-pre-split, %36
  %40 = phi i32 [ %.pr, %thread-pre-split ], [ %34, %36 ]
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph, label %.preheader60

.preheader60:                                     ; preds = %.lr.ph, %39
  %42 = phi i32 [ %40, %39 ], [ %46, %.lr.ph ]
  %43 = load i32, ptr %21, align 8, !tbaa !43
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %.lr.ph67, label %._crit_edge

.lr.ph:                                           ; preds = %39, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %39 ]
  %45 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv) #6
  store i32 -1, ptr %45, align 4, !tbaa !44
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %46 = load i32, ptr %11, align 8, !tbaa !40
  %47 = sext i32 %46 to i64
  %48 = icmp slt i64 %indvars.iv.next, %47
  br i1 %48, label %.lr.ph, label %.preheader60, !llvm.loop !45

._crit_edge.loopexit:                             ; preds = %65
  %.pre119 = load i32, ptr %11, align 8, !tbaa !40
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader60
  %49 = phi i32 [ %42, %.preheader60 ], [ %.pre119, %._crit_edge.loopexit ]
  %.0.lcssa = phi i32 [ 0, %.preheader60 ], [ %.1, %._crit_edge.loopexit ]
  %.lcssa63 = phi i32 [ %43, %.preheader60 ], [ %66, %._crit_edge.loopexit ]
  %50 = icmp slt i32 %.lcssa63, %49
  br i1 %50, label %69, label %.loopexit59

.lr.ph67:                                         ; preds = %.preheader60, %65
  %indvars.iv96 = phi i64 [ %indvars.iv.next97, %65 ], [ 0, %.preheader60 ]
  %.066 = phi i32 [ %.1, %65 ], [ 0, %.preheader60 ]
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv96) #6
  %52 = load i32, ptr %51, align 4, !tbaa !44
  %53 = icmp sgt i32 %52, -1
  br i1 %53, label %54, label %60

54:                                               ; preds = %.lr.ph67
  %55 = load ptr, ptr %15, align 8, !tbaa !41
  %56 = getelementptr inbounds i32, ptr %55, i64 %indvars.iv96
  %57 = load i32, ptr %56, align 4, !tbaa !44
  %58 = zext nneg i32 %52 to i64
  %59 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %58) #6
  store i32 %57, ptr %59, align 4, !tbaa !44
  br label %65

60:                                               ; preds = %.lr.ph67
  %61 = add nsw i32 %.066, 1
  %62 = sext i32 %.066 to i64
  %63 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %62) #6
  %64 = trunc nuw nsw i64 %indvars.iv96 to i32
  store i32 %64, ptr %63, align 4, !tbaa !44
  br label %65

65:                                               ; preds = %60, %54
  %.1 = phi i32 [ %.066, %54 ], [ %61, %60 ]
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %66 = load i32, ptr %21, align 8, !tbaa !43
  %67 = sext i32 %66 to i64
  %68 = icmp slt i64 %indvars.iv.next97, %67
  br i1 %68, label %.lr.ph67, label %._crit_edge.loopexit, !llvm.loop !47

69:                                               ; preds = %._crit_edge
  %70 = sext i32 %49 to i64
  tail call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %70)
  %71 = load i32, ptr %21, align 8, !tbaa !43
  %72 = load i32, ptr %11, align 8, !tbaa !40
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %.lr.ph72.preheader, label %.loopexit59

.lr.ph72.preheader:                               ; preds = %69
  %74 = sext i32 %.0.lcssa to i64
  %75 = sext i32 %71 to i64
  br label %.lr.ph72

.lr.ph72:                                         ; preds = %.lr.ph72.preheader, %.lr.ph72
  %indvars.iv101 = phi i64 [ %75, %.lr.ph72.preheader ], [ %indvars.iv.next102, %.lr.ph72 ]
  %indvars.iv99 = phi i64 [ %74, %.lr.ph72.preheader ], [ %indvars.iv.next100, %.lr.ph72 ]
  %indvars.iv.next100 = add nsw i64 %indvars.iv99, 1
  %76 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv99) #6
  %77 = trunc nsw i64 %indvars.iv101 to i32
  store i32 %77, ptr %76, align 4, !tbaa !44
  %78 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv101) #6
  store i32 -1, ptr %78, align 4, !tbaa !44
  %indvars.iv.next102 = add nsw i64 %indvars.iv101, 1
  %79 = load i32, ptr %11, align 8, !tbaa !40
  %80 = sext i32 %79 to i64
  %81 = icmp slt i64 %indvars.iv.next102, %80
  br i1 %81, label %.lr.ph72, label %.loopexit59.loopexit, !llvm.loop !48

.loopexit59.loopexit:                             ; preds = %.lr.ph72
  %82 = trunc nsw i64 %indvars.iv.next100 to i32
  br label %.loopexit59

.loopexit59:                                      ; preds = %.loopexit59.loopexit, %69, %._crit_edge
  %83 = phi i32 [ %49, %._crit_edge ], [ %72, %69 ], [ %79, %.loopexit59.loopexit ]
  %.3 = phi i32 [ %.0.lcssa, %._crit_edge ], [ %.0.lcssa, %69 ], [ %82, %.loopexit59.loopexit ]
  %84 = load i32, ptr %17, align 8, !tbaa !42
  %85 = icmp eq i32 %.3, %84
  br i1 %85, label %.preheader58, label %87

.preheader58:                                     ; preds = %.loopexit59
  %86 = icmp sgt i32 %83, 0
  br i1 %86, label %.lr.ph76, label %._crit_edge77

87:                                               ; preds = %.loopexit59
  tail call void @__assert_fail(ptr noundef nonnull @.str.67, ptr noundef nonnull @.str.52, i32 noundef 1314, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HFactor25buildHandleRankDeficiencyEv) #7
  unreachable

._crit_edge77:                                    ; preds = %102, %.preheader58
  %.4.lcssa = phi i32 [ 0, %.preheader58 ], [ %.5, %102 ]
  %.lcssa62 = phi i32 [ %83, %.preheader58 ], [ %103, %102 ]
  %88 = load i32, ptr %21, align 8
  %89 = icmp slt i32 %.lcssa62, %88
  br i1 %89, label %.lr.ph82.preheader, label %.loopexit

.lr.ph82.preheader:                               ; preds = %._crit_edge77
  %90 = sext i32 %.4.lcssa to i64
  %91 = sext i32 %.lcssa62 to i64
  br label %.lr.ph82

.lr.ph76:                                         ; preds = %.preheader58, %102
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %102 ], [ 0, %.preheader58 ]
  %.475 = phi i32 [ %.5, %102 ], [ 0, %.preheader58 ]
  %92 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv106) #6
  %93 = load i32, ptr %92, align 4, !tbaa !44
  %94 = icmp slt i32 %93, 0
  br i1 %94, label %95, label %102

95:                                               ; preds = %.lr.ph76
  %96 = sext i32 %.475 to i64
  %97 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %96) #6
  %98 = trunc nuw nsw i64 %indvars.iv106 to i32
  store i32 %98, ptr %97, align 4, !tbaa !44
  %99 = add nsw i32 %.475, 1
  %100 = xor i32 %.475, -1
  %101 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv106) #6
  store i32 %100, ptr %101, align 4, !tbaa !44
  br label %102

102:                                              ; preds = %.lr.ph76, %95
  %.5 = phi i32 [ %99, %95 ], [ %.475, %.lr.ph76 ]
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %103 = load i32, ptr %11, align 8, !tbaa !40
  %104 = sext i32 %103 to i64
  %105 = icmp slt i64 %indvars.iv.next107, %104
  br i1 %105, label %.lr.ph76, label %._crit_edge77, !llvm.loop !49

.lr.ph82:                                         ; preds = %.lr.ph82.preheader, %.lr.ph82
  %indvars.iv111 = phi i64 [ %91, %.lr.ph82.preheader ], [ %indvars.iv.next112, %.lr.ph82 ]
  %indvars.iv109 = phi i64 [ %90, %.lr.ph82.preheader ], [ %indvars.iv.next110, %.lr.ph82 ]
  %106 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv109) #6
  %107 = trunc nsw i64 %indvars.iv111 to i32
  store i32 %107, ptr %106, align 4, !tbaa !44
  %indvars.iv.next110 = add nsw i64 %indvars.iv109, 1
  %108 = trunc nsw i64 %indvars.iv109 to i32
  %109 = xor i32 %108, -1
  %110 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv111) #6
  store i32 %109, ptr %110, align 4, !tbaa !44
  %indvars.iv.next112 = add nsw i64 %indvars.iv111, 1
  %111 = load i32, ptr %21, align 8, !tbaa !43
  %112 = sext i32 %111 to i64
  %113 = icmp slt i64 %indvars.iv.next112, %112
  br i1 %113, label %.lr.ph82, label %.loopexit.loopexit, !llvm.loop !50

.loopexit.loopexit:                               ; preds = %.lr.ph82
  %114 = trunc nsw i64 %indvars.iv.next110 to i32
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %._crit_edge77
  %.7 = phi i32 [ %.4.lcssa, %._crit_edge77 ], [ %114, %.loopexit.loopexit ]
  %115 = load i32, ptr %17, align 8, !tbaa !42
  %116 = icmp eq i32 %.7, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %.loopexit
  tail call void @__assert_fail(ptr noundef nonnull @.str.67, ptr noundef nonnull @.str.52, i32 noundef 1336, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HFactor25buildHandleRankDeficiencyEv) #7
  unreachable

118:                                              ; preds = %.loopexit
  %119 = load i32, ptr %8, align 8, !tbaa !5
  %120 = load i32, ptr %11, align 8, !tbaa !40
  %121 = load ptr, ptr %15, align 8, !tbaa !41
  tail call void @_Z25debugReportRankDeficiencyiiRK15HighsLogOptionsiRKSt6vectorIiSaIiEES6_PKiiS6_S6_(i32 noundef 1, i32 noundef %119, ptr noundef nonnull align 8 dereferenceable(89) %10, i32 noundef %120, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef %121, i32 noundef %.7, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
  %122 = load i32, ptr %17, align 8, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %123 = load i32, ptr %21, align 8, !tbaa !43
  %124 = load i32, ptr %11, align 8, !tbaa !40
  %125 = sub nsw i32 %123, %124
  store i32 %125, ptr %2, align 4, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 0, ptr %3, align 4, !tbaa !44
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %127 = load i32, ptr %126, align 4, !tbaa !44
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  %128 = load i32, ptr %17, align 8, !tbaa !42
  %129 = icmp sgt i32 %128, 0
  br i1 %129, label %.lr.ph86, label %._crit_edge87

.lr.ph86:                                         ; preds = %118
  %130 = sub nsw i32 %122, %127
  %131 = getelementptr inbounds i8, ptr %0, i64 1176
  %132 = getelementptr inbounds i8, ptr %0, i64 1200
  %133 = getelementptr inbounds i8, ptr %0, i64 1344
  %134 = getelementptr inbounds i8, ptr %0, i64 1368
  %135 = getelementptr inbounds i8, ptr %0, i64 1400
  %136 = getelementptr inbounds i8, ptr %0, i64 1448
  %137 = sext i32 %130 to i64
  br label %148

._crit_edge87:                                    ; preds = %167, %118
  %.lcssa = phi i32 [ %128, %118 ], [ %168, %167 ]
  %138 = load i32, ptr %8, align 8, !tbaa !5
  %139 = load i32, ptr %11, align 8, !tbaa !40
  %140 = load ptr, ptr %15, align 8, !tbaa !41
  call void @_Z25debugReportRankDeficiencyiiRK15HighsLogOptionsiRKSt6vectorIiSaIiEES6_PKiiS6_S6_(i32 noundef 2, i32 noundef %138, ptr noundef nonnull align 8 dereferenceable(89) %10, i32 noundef %139, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef %140, i32 noundef %.lcssa, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
  %141 = load i32, ptr %8, align 8, !tbaa !5
  %142 = load i32, ptr %11, align 8, !tbaa !40
  %143 = getelementptr inbounds i8, ptr %0, i64 624
  %144 = getelementptr inbounds i8, ptr %0, i64 648
  %145 = getelementptr inbounds i8, ptr %0, i64 720
  %146 = getelementptr inbounds i8, ptr %0, i64 744
  %147 = load i32, ptr %17, align 8, !tbaa !42
  call void @_Z27debugReportRankDeficientASMiRK15HighsLogOptionsiRKSt6vectorIiSaIiEES6_S6_RKS2_IdSaIdEES6_iS6_S6_(i32 noundef %141, ptr noundef nonnull align 8 dereferenceable(89) %10, i32 noundef %142, ptr noundef nonnull align 8 dereferenceable(24) %143, ptr noundef nonnull align 8 dereferenceable(24) %144, ptr noundef nonnull align 8 dereferenceable(24) %145, ptr noundef nonnull align 8 dereferenceable(24) %146, ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %147, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %19)
  ret void

148:                                              ; preds = %.lr.ph86, %167
  %indvars.iv116 = phi i64 [ 0, %.lr.ph86 ], [ %indvars.iv.next117, %167 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv116) #6
  %150 = load i32, ptr %149, align 4, !tbaa !44
  store i32 %150, ptr %4, align 4, !tbaa !44
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv116) #6
  %152 = load i32, ptr %151, align 4, !tbaa !44
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %153) #6
  %155 = load i32, ptr %154, align 4, !tbaa !44
  %156 = icmp eq i32 %155, -1
  br i1 %156, label %158, label %157

157:                                              ; preds = %148
  call void @__assert_fail(ptr noundef nonnull @.str.68, ptr noundef nonnull @.str.52, i32 noundef 1347, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HFactor25buildHandleRankDeficiencyEv) #7
  unreachable

158:                                              ; preds = %148
  %159 = load i32, ptr %4, align 4, !tbaa !44
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %153) #6
  store i32 %159, ptr %160, align 4, !tbaa !44
  %161 = icmp slt i64 %indvars.iv116, %137
  br i1 %161, label %162, label %167

162:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %163 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #6
  %164 = trunc i64 %163 to i32
  store i32 %164, ptr %5, align 4, !tbaa !44
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %131, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %133, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store double 1.000000e+00, ptr %6, align 8, !tbaa !51
  call void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %134, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %165 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #6
  %166 = trunc i64 %165 to i32
  store i32 %166, ptr %7, align 4, !tbaa !44
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %135, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %167

167:                                              ; preds = %162, %158
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %168 = load i32, ptr %17, align 8, !tbaa !42
  %169 = sext i32 %168 to i64
  %170 = icmp slt i64 %indvars.iv.next117, %169
  br i1 %170, label %148, label %._crit_edge87, !llvm.loop !52
}

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

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

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

declare void @_Z25debugReportRankDeficiencyiiRK15HighsLogOptionsiRKSt6vectorIiSaIiEES6_PKiiS6_S6_(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(89), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

declare void @_Z27debugReportRankDeficientASMiRK15HighsLogOptionsiRKSt6vectorIiSaIiEES6_S6_RKS2_IdSaIdEES6_iS6_S6_(i32 noundef, ptr noundef nonnull align 8 dereferenceable(89), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { 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, !10, i64 280}
!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, !10, i64 200}
!41 = !{!6, !15, i64 256}
!42 = !{!6, !10, i64 16}
!43 = !{!6, !10, i64 208}
!44 = !{!10, !10, i64 0}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}
!47 = distinct !{!47, !46}
!48 = distinct !{!48, !46}
!49 = distinct !{!49, !46}
!50 = distinct !{!50, !46}
!51 = !{!7, !7, i64 0}
!52 = distinct !{!52, !46}


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